@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@600;700&display=swap");

:root {
  --color-charcoal: #1f1f1f;
  --color-beige: #f4ede4;
  --color-ivory: #faf6ef;
  --color-terracotta: #c86b42;
  --color-terracotta-dark: #aa5734;
  --color-ochre: #d4a13d;
  --color-sand: #e7d7b8;
  --color-brown: #7a5a45;
  --text-main: #1f1f1f;
  --text-muted: #6b5e55;
  --border-soft: rgba(31, 31, 31, 0.08);
  --shadow-soft: 0 12px 40px rgba(31, 31, 31, 0.08);
  --shadow-card: 0 10px 26px rgba(31, 31, 31, 0.07);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-height: 76px;
  --sidebar-width: 260px;
  --right-width: 330px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(212, 161, 61, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbf6ef 0%, var(--color-beige) 100%);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 84px auto auto 20px;
  width: 86px;
  height: 420px;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(45deg, transparent 42%, var(--color-terracotta) 44%, transparent 46%),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(200, 107, 66, 0.35) 17px 19px, transparent 20px 34px);
  mask-image: linear-gradient(#000, transparent);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: 0;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.16; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }

.text-muted-k { color: var(--text-muted); }
.text-accent { color: var(--color-terracotta); }
.small-k { font-size: 0.86rem; color: var(--text-muted); }

.desktop-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 48px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 212px;
  color: var(--text-main);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.brand-logo {
  position: relative;
  width: 68px;
  height: 42px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(3.15);
}

.brand-word { font-size: 1.05rem; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 28px 0 24px;
  color: var(--text-main);
}

.desktop-nav a.active,
.desktop-nav a:hover { color: var(--color-terracotta); }

.desktop-nav a.active::after,
.desktop-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-terracotta);
}

.search-pill {
  flex: 1 1 260px;
  max-width: 470px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--text-muted);
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--text-main);
  transition: 0.2s ease;
}

.icon-btn:hover,
.icon-btn.active {
  background: #efe1cf;
  color: var(--color-terracotta);
}

.avatar,
.avatar-sm,
.avatar-lg {
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #e9d1a6, #c86b42);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.avatar { width: 44px; height: 44px; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.75rem; }
.avatar-lg { width: 130px; height: 130px; font-size: 2.4rem; border-width: 6px; }

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--right-width);
  gap: 28px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 36px 72px;
}

.app-shell.no-left { grid-template-columns: minmax(0, 1fr) var(--right-width); }
.app-shell.no-right { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.app-shell.single { display: block; max-width: 1480px; }

.sidebar,
.right-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.sidebar {
  min-height: calc(100vh - var(--header-height) - 48px);
  padding-right: 18px;
  border-right: 1px solid var(--border-soft);
}

.sidebar-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-title {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
}

.side-link.active,
.side-link:hover {
  background: #efe1cf;
  color: var(--color-terracotta);
}

.k-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(250, 246, 239, 0.82);
  box-shadow: var(--shadow-card);
}

.k-card.padded { padding: 22px; }
.k-card.soft { background: rgba(255, 251, 245, 0.68); box-shadow: none; }

.k-card::after,
.patterned::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  pointer-events: none;
  opacity: 0.08;
  background: repeating-linear-gradient(45deg, transparent 0 12px, var(--color-terracotta) 13px 15px, transparent 16px 28px);
}

.k-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--color-ivory);
  color: var(--text-main);
  font-weight: 700;
  transition: 0.2s ease;
}

.k-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31,31,31,0.08); }
.k-button-primary { border-color: var(--color-terracotta); background: var(--color-terracotta); color: #fff; }
.k-button-primary:hover { background: var(--color-terracotta-dark); color: #fff; }
.k-button-secondary { background: #fff8ee; color: var(--color-charcoal); }
.k-button-dark { background: var(--color-charcoal); color: #fff; border-color: var(--color-charcoal); }
.k-button-outline { background: transparent; border-color: rgba(122, 90, 69, 0.28); color: var(--color-brown); }
.k-button-sm { min-height: 34px; padding: 7px 13px; font-size: 0.83rem; }

.k-chip,
.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(122, 90, 69, 0.18);
  border-radius: 999px;
  background: rgba(250, 246, 239, 0.88);
  color: var(--color-brown);
  font-size: 0.82rem;
  font-weight: 700;
}

.k-chip.active {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta);
  color: #fff;
}

.flag { font-size: 1.05rem; line-height: 1; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-terracotta);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.76rem;
}

.section-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--text-main);
}

.video-stage {
  min-height: 690px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #1f1f1f;
  color: white;
  box-shadow: 0 22px 60px rgba(31, 31, 31, 0.18);
}

.feed-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1f1f1f;
}

.hero-photo,
.image-cover {
  background:
    linear-gradient(180deg, rgba(31,31,31,0.06), rgba(31,31,31,0.72)),
    var(--photo, linear-gradient(135deg, #d4a13d, #7a5a45));
  background-size: cover;
  background-position: center;
}

.photo-senegal {
  --photo:
    radial-gradient(circle at 20% 18%, rgba(255, 212, 119, 0.85), transparent 16rem),
    linear-gradient(155deg, #d79641 0%, #7a5a45 45%, #22322d 100%);
}
.photo-profile {
  --photo:
    radial-gradient(circle at 82% 20%, rgba(212, 161, 61, 0.55), transparent 18rem),
    linear-gradient(135deg, #3a261e 0%, #8d5435 48%, #1f1f1f 100%);
}
.photo-events {
  --photo:
    radial-gradient(circle at 18% 22%, rgba(250, 246, 239, 0.36), transparent 12rem),
    linear-gradient(135deg, #c86b42 0%, #a87536 45%, #1f1f1f 100%);
}
.photo-community {
  --photo:
    radial-gradient(circle at 28% 26%, rgba(231, 215, 184, 0.7), transparent 14rem),
    linear-gradient(145deg, #2b2925 0%, #7a5a45 46%, #d4a13d 100%);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.12) 48%, rgba(0,0,0,0.72));
}

.video-play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 50%;
  background: rgba(31,31,31,0.34);
  color: #fff;
  font-size: 3.2rem;
  backdrop-filter: blur(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-stage.is-playing .video-play-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.video-actions {
  position: absolute;
  right: 24px;
  top: 40%;
  transform: translateY(-50%);
  display: grid;
  gap: 16px;
  text-align: center;
  font-weight: 800;
}

.video-actions button {
  color: white;
  background: transparent;
  border: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.video-actions button.active i { color: #fff; }
.video-actions button.active .bi-heart-fill { color: #fff; }

.video-meta {
  max-width: 620px;
  padding-right: 74px;
}

.progress-line {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  overflow: hidden;
}

.progress-line span {
  display: block;
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: white;
  animation: progress 10s linear infinite;
}

.video-control-row {
  display: grid;
  grid-template-columns: 38px minmax(120px, 1fr) auto 38px;
  align-items: center;
  gap: 12px;
}

.video-mini-control {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.video-progress {
  width: 100%;
  accent-color: #fff;
  cursor: pointer;
}

.horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.video-thumb {
  width: 180px;
  cursor: pointer;
}

.country-card {
  width: 170px;
}

.video-thumb .thumb-img {
  height: 104px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d4a13d, #455f4a);
  color: white;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.post-card,
.event-card,
.profile-card,
.community-card,
.opportunity-card,
.country-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover,
.event-card:hover,
.profile-card:hover,
.community-card:hover,
.opportunity-card:hover,
.country-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card-img-top-k {
  height: 180px;
  background: linear-gradient(135deg, rgba(212,161,61,0.72), rgba(122,90,69,0.75));
  background-size: cover;
  background-position: center;
}

.event-feature {
  position: relative;
  display: grid;
  grid-template-columns: 0.48fr 0.92fr;
  min-height: 250px;
}

.dark-feature {
  color: white;
  background: linear-gradient(135deg, rgba(31,31,31,0.96), rgba(31,31,31,0.86));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-box {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
}

.profile-cover {
  position: relative;
  height: 230px;
  border-radius: 0 0 18px 18px;
  overflow: visible;
}

.profile-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: -72px;
  align-items: start;
}

.tabs-k {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
}

.tabs-k button,
.tabs-k a {
  border: 0;
  background: transparent;
  padding: 16px 0 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.tabs-k .active {
  color: var(--color-terracotta);
  box-shadow: inset 0 -2px 0 var(--color-terracotta);
}

.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(16px);
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  height: 78px;
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-soft);
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(18px);
}

.bottom-nav a,
.bottom-nav button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.bottom-nav .active { color: var(--color-terracotta); }
.bottom-nav .create-fab {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  margin-top: -24px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: #fff;
  box-shadow: 0 12px 28px rgba(200, 107, 66, 0.35);
}

.auth-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.7fr);
  align-items: stretch;
  overflow: hidden;
}

.auth-visual {
  padding: clamp(28px, 4vh, 54px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(31,31,31,0.72), rgba(122,90,69,0.58)),
    linear-gradient(145deg, #1f1f1f, #7a5a45 58%, #c86b42);
  color: #fff;
}

.auth-body::before {
  display: none;
}

.auth-brand {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  letter-spacing: 0.24em;
}

.auth-brand .brand-word {
  display: none;
}

.auth-brand .brand-logo {
  width: clamp(96px, 13vh, 136px);
  height: clamp(68px, 9.2vh, 96px);
  border-radius: 0;
  overflow: visible;
}

.auth-brand .brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vh, 44px) 44px clamp(58px, 7vh, 70px);
  background:
    linear-gradient(rgba(31, 31, 31, 0.12), rgba(31, 31, 31, 0.12)),
    url("../backgroung/background clair 2.png") center / cover no-repeat;
  overflow: hidden;
}

.auth-card {
  width: min(100%, clamp(390px, 33vw, 500px));
  max-height: none;
  overflow: hidden;
  padding: clamp(16px, 2.3vh, 26px);
}

.auth-card .form-control {
  min-height: clamp(34px, 4.6vh, 44px);
  padding-top: clamp(6px, 0.9vh, 10px);
  padding-bottom: clamp(6px, 0.9vh, 10px);
}

.auth-card .k-button {
  min-height: clamp(34px, 4.5vh, 40px);
  padding-top: clamp(6px, 0.8vh, 8px);
  padding-bottom: clamp(6px, 0.8vh, 8px);
}

.auth-card .auth-brand {
  width: 100%;
  justify-content: center;
}

.auth-card h2 {
  margin-bottom: clamp(4px, 0.8vh, 8px);
  font-size: clamp(1.25rem, 3.1vh, 1.75rem);
  text-align: center;
}

.auth-card p,
.auth-card label,
.auth-card a,
.auth-card .k-button,
.auth-card .form-control {
  font-size: clamp(0.8rem, 1.65vh, 0.95rem);
}

.auth-card .auth-brand {
  margin-bottom: clamp(8px, 1.6vh, 16px) !important;
}

.auth-card .text-muted-k {
  margin-bottom: clamp(6px, 1.2vh, 12px);
}

.auth-card .form-label.mt-3 {
  margin-top: clamp(6px, 1.1vh, 12px) !important;
  margin-bottom: clamp(3px, 0.6vh, 6px);
}

.auth-card .my-3 {
  margin-top: clamp(6px, 1.1vh, 12px) !important;
  margin-bottom: clamp(6px, 1.1vh, 12px) !important;
}

.auth-card .mt-3 {
  margin-top: clamp(6px, 1.1vh, 12px) !important;
}

.auth-card .mt-4 {
  margin-top: clamp(8px, 1.4vh, 16px) !important;
  margin-bottom: 0;
}

.auth-card::after {
  display: none;
}

.auth-copyright {
  position: fixed;
  left: 0;
  right: 42%;
  bottom: 14px;
  z-index: 2;
  color: rgba(31, 31, 31, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.auth-copyright a {
  color: var(--color-terracotta);
  font-weight: 800;
}

.auth-switch {
  position: fixed;
  right: 0;
  bottom: 14px;
  z-index: 2;
  width: 42%;
  margin: 0;
  color: rgba(31, 31, 31, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.auth-switch a {
  color: var(--color-terracotta);
  font-weight: 800;
}

.signup-card {
  padding: clamp(14px, 2vh, 24px);
}

.signup-card .row.g-3 {
  --bs-gutter-x: 10px;
  --bs-gutter-y: clamp(6px, 1.1vh, 12px);
}

.signup-card .progress.my-3,
.signup-card .mb-3 {
  margin-top: clamp(6px, 1.1vh, 12px) !important;
  margin-bottom: clamp(6px, 1.1vh, 12px) !important;
}

.signup-card .form-select,
.signup-card .country-picker-trigger,
.signup-card .gender-option span {
  min-height: clamp(34px, 4.6vh, 44px);
}

.signup-card .country-picker-trigger,
.signup-card .gender-option span {
  padding-top: clamp(6px, 0.9vh, 10px);
  padding-bottom: clamp(6px, 0.9vh, 10px);
}

.signup-card .signup-actions {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.signup-card .signup-actions #prevStep {
  justify-self: start;
}

.signup-card .signup-actions #nextStep,
.signup-card .signup-actions #submitSignup {
  grid-column: 2;
  justify-self: center;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 1px solid rgba(122, 90, 69, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(250, 246, 239, 0.42);
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-terracotta);
  background:
    linear-gradient(135deg, rgba(200, 107, 66, 0.12), transparent 34%),
    linear-gradient(45deg, transparent 0 12px, rgba(212, 161, 61, 0.08) 12px 14px, transparent 14px 26px),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 0.18rem rgba(200, 107, 66, 0.13),
    inset 4px 0 0 var(--color-terracotta);
}

.country-picker {
  position: relative;
}

.country-picker-trigger {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(122, 90, 69, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.62);
  color: var(--text-main);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(250, 246, 239, 0.42);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.country-picker.is-open .country-picker-trigger {
  border-color: var(--color-terracotta);
  background:
    linear-gradient(135deg, rgba(200, 107, 66, 0.12), transparent 34%),
    linear-gradient(45deg, transparent 0 12px, rgba(212, 161, 61, 0.08) 12px 14px, transparent 14px 26px),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 0.18rem rgba(200, 107, 66, 0.13),
    inset 4px 0 0 var(--color-terracotta);
}

.country-picker-trigger img,
.country-option img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(31,31,31,0.08);
}

.country-picker-trigger .country-code,
.country-option .country-code {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.country-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1200;
  display: none;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fffaf2;
  box-shadow: var(--shadow-soft);
}

.country-picker.is-open .country-picker-menu {
  display: block;
}

.country-picker.is-disabled {
  opacity: 0.62;
  pointer-events: none;
}

.country-options {
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  text-align: left;
}

.country-option:hover,
.country-option.active {
  background: #efe1cf;
  color: var(--color-terracotta);
}

.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.password-rules span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(122, 90, 69, 0.1);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.password-rules span.valid {
  background: rgba(69, 130, 86, 0.14);
  color: #2f6f42;
}

.gender-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gender-option {
  cursor: pointer;
}

.gender-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-option span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122, 90, 69, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.62);
  color: var(--text-main);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(250, 246, 239, 0.42);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gender-option input:checked + span {
  border-color: var(--color-terracotta);
  background:
    linear-gradient(45deg, transparent 0 12px, rgba(250, 246, 239, 0.13) 12px 14px, transparent 14px 26px),
    var(--color-terracotta);
  color: #fff;
  box-shadow:
    0 10px 22px rgba(200, 107, 66, 0.18),
    inset 0 0 0 1px rgba(250, 246, 239, 0.18);
}

.profile-type-options .k-chip {
  border-color: rgba(200, 107, 66, 0.2);
  background:
    linear-gradient(135deg, rgba(212, 161, 61, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.68);
}

.profile-type-options .k-chip.active {
  border-color: var(--color-terracotta);
  background:
    linear-gradient(45deg, transparent 0 12px, rgba(250, 246, 239, 0.14) 12px 14px, transparent 14px 26px),
    var(--color-terracotta);
  color: #fff;
  box-shadow: 0 10px 22px rgba(200, 107, 66, 0.16);
}

.identity-field {
  position: relative;
  padding-top: 10px;
}

.identity-field::before {
  content: "";
  position: absolute;
  left: calc(var(--bs-gutter-x) * 0.5);
  right: calc(var(--bs-gutter-x) * 0.5);
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-ochre));
  opacity: 0.78;
}

.city-picker {
  position: relative;
}

.city-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1150;
  display: none;
  max-height: 230px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fffaf2;
  box-shadow: var(--shadow-soft);
}

.city-suggestions.is-open {
  display: grid;
  gap: 4px;
}

.city-option {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  font-weight: 600;
}

.city-option:hover {
  background: #efe1cf;
  color: var(--color-terracotta);
}

.profile-image-preview {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.48);
}

.profile-image-preview img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-photo {
  display: inline-block;
  object-fit: cover;
}

.avatar img,
.avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.k-asset-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,0.42);
  box-shadow: 0 10px 24px rgba(31,31,31,0.08);
}

.k-asset-icon.sm {
  width: 38px;
  height: 38px;
}

.k-asset-icon.lg {
  width: 86px;
  height: 86px;
}

.k-icon-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.k-card .k-asset-icon {
  margin-bottom: 12px;
}

.auth-visual .k-asset-icon {
  width: 110px;
  height: 110px;
  background: rgba(250,246,239,0.14);
  box-shadow: none;
}

.toast-container-k {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 2000;
  display: grid;
  gap: 10px;
}

.toast-koryaan {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
  background: var(--color-charcoal);
  box-shadow: var(--shadow-soft);
  animation: slideUp 0.25s ease both;
}

.footer-k {
  border-top: 1px solid var(--border-soft);
  padding: 22px 42px;
  color: var(--text-muted);
  background: rgba(250,246,239,0.6);
}

.footer-pattern {
  height: 16px;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(200, 107, 66, 0.42) 13px 15px, transparent 16px 28px);
  opacity: 0.45;
}

@keyframes progress {
  from { width: 8%; }
  to { width: 100%; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
