@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Sora:wght@100..800&display=swap');

:root {
  --tg-blue: #2aabee;
  --tg-blue-dark: #1a96d9;
  --tg-blue-deeper: #0d7bbf;
  --tg-blue-light: #e8f6fd;
  --tg-blue-mid: #bae1f7;
  --tg-sky: #54c5f8;
  --tg-navy: #083556;
  --surface: #ffffff;
  --surface-2: #f5faff;
  --surface-3: #ebf5fc;
  --text-primary: #0a1929;
  --text-secondary: #3d6180;
  --text-muted: #7fa8c2;
  --border: rgba(42, 171, 238, 0.14);
  --border-mid: rgba(42, 171, 238, 0.25);
  --border-strong: rgba(42, 171, 238, 0.4);
  --shadow-card: 0 4px 24px rgba(42, 171, 238, 0.1),
    0 1px 4px rgba(10, 25, 41, 0.06);
  --shadow-hover: 0 8px 32px rgba(42, 171, 238, 0.18),
    0 2px 8px rgba(10, 25, 41, 0.08);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --sidebar-w: 256px;
  --topbar-h: 62px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Outfit", sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
.sora {
  font-family: "Sora", sans-serif;
  line-height: 1.18;
}

/* NAVBAR */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(
    135deg,
    var(--tg-blue) 0%,
    var(--tg-blue-deeper) 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg {
  width: 20px;
  height: 20px;
}
.nav-link {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 0.93rem;
  color: var(--text-secondary) !important;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--tg-blue) !important;
  background: var(--tg-blue-light);
}
.btn-nav-cta {
  background: var(--tg-blue);
  color: #fff !important;
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 9px 22px !important;
  border-radius: 10px;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-nav-cta:hover {
  background: var(--tg-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.35);
  color: #fff !important;
}

/* HERO */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--surface-2);
  padding: 80px 0 60px;
}
.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(42, 171, 238, 0.09);
  top: -100px;
  left: -150px;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(84, 197, 248, 0.07);
  top: 200px;
  right: -100px;
}
.orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(13, 123, 191, 0.06);
  bottom: -80px;
  left: 30%;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    rgba(42, 171, 238, 0.055) 1px,
    transparent 1px
  ),
    linear-gradient(90deg, rgba(42, 171, 238, 0.055) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(42, 171, 238, 0.09);
  border: 1px solid rgba(42, 171, 238, 0.22);
  border-radius: 100px;
  padding: 5px 16px 5px 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--tg-blue-deeper);
  margin-bottom: 26px;
  animation: fadeUp 0.6s ease both;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tg-blue);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

.hero-headline {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.022em;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-headline .accent {
  color: var(--tg-blue);
  position: relative;
  display: inline-block;
}
.hero-headline .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--tg-blue), var(--tg-sky));
  border-radius: 2px;
  animation: lineGrow 0.8s 0.7s ease both;
  transform-origin: left;
  transform: scaleX(0);
}
@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 510px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary-cta {
  background: linear-gradient(
    135deg,
    var(--tg-blue) 0%,
    var(--tg-blue-deeper) 100%
  );
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(42, 171, 238, 0.32);
  letter-spacing: 0.01em;
  cursor: pointer;
}
.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(42, 171, 238, 0.44);
  color: #fff;
}
.btn-primary-cta svg {
  width: 17px;
  height: 17px;
}

.btn-ghost-cta {
  background: transparent;
  color: var(--text-secondary);
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid var(--border-mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.22s;
  cursor: pointer;
}
.btn-ghost-cta:hover {
  border-color: var(--tg-blue);
  color: var(--tg-blue);
  background: var(--tg-blue-light);
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  animation: fadeUp 0.6s 0.4s ease both;
}
.trust-avatars {
  display: flex;
}
.trust-avatars span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--surface-2);
  margin-right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.av1 {
  background: #2aabee;
}
.av2 {
  background: #54c5f8;
}
.av3 {
  background: #0d7bbf;
}
.av4 {
  background: #1a96d9;
}

/* LOGIN CARD */
.login-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: var(--shadow-card);
  position: relative;
  animation: fadeUp 0.7s 0.2s ease both;
  z-index: 2;
}
.login-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tg-blue), transparent);
  border-radius: 2px;
}

.login-card-head {
  text-align: center;
  margin-bottom: 26px;
}
.lc-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-deeper));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.28);
}
.lc-logo svg {
  width: 26px;
  height: 26px;
}
.login-card-head h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.login-card-head p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.lc-label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}
.lc-control {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.93rem;
  color: var(--text-primary);
  background: var(--surface-2);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.lc-control:focus {
  border-color: var(--tg-blue);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.13);
  background: var(--surface);
}
.lc-control::placeholder {
  color: var(--text-muted);
}
.lc-group {
  margin-bottom: 17px;
}
.pw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.forgot-pw {
  font-size: 0.79rem;
  color: var(--tg-blue);
  text-decoration: none;
  font-weight: 400;
}
.forgot-pw:hover {
  text-decoration: underline;
  color: var(--tg-blue-dark);
}

.btn-login {
  background: linear-gradient(
    135deg,
    var(--tg-blue) 0%,
    var(--tg-blue-deeper) 100%
  );
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 3px 14px rgba(42, 171, 238, 0.28);
  letter-spacing: 0.01em;
  width: 100%;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.38);
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  background: var(--surface-2);
  color: var(--text-secondary);
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-mid);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-google:hover {
  border-color: var(--tg-blue);
  background: var(--tg-blue-light);
}
.btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.signup-row {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.signup-row a {
  color: var(--tg-blue);
  font-weight: 500;
  text-decoration: none;
}
.signup-row a:hover {
  text-decoration: underline;
}

.lc-alert {
  border-radius: 10px;
  padding: 11px 38px 11px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: none;
  position: relative;
}
.lc-alert-danger {
  background: #fee8e8;
  color: #a32d2d;
}
.lc-alert-success {
  background: #e6f7ee;
  color: #1a6b3a;
}
.lc-alert .close-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  line-height: 1;
}
.lc-alert .close-btn:hover {
  opacity: 1;
}

/* STATS */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: "Sora", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--tg-blue);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* SECTION COMMON */
.section-label {
  display: inline-block;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tg-blue);
  background: rgba(42, 171, 238, 0.08);
  border: 1px solid rgba(42, 171, 238, 0.18);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 13px;
  letter-spacing: -0.015em;
}
.section-sub {
  font-size: 1.03rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 540px;
}

/* SECTION 1 */
.what-section {
  padding: 100px 0;
  background: var(--surface);
}
.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.28s;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tg-blue), var(--tg-sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  background: var(--surface);
}
.feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(42, 171, 238, 0.09);
  border: 1px solid rgba(42, 171, 238, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
}
.feature-icon svg {
  width: 21px;
  height: 21px;
  color: var(--tg-blue);
}
.feature-title {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
.cta-center {
  text-align: center;
  margin-top: 50px;
}

/* SECTION 2 */
.why-section {
  padding: 100px 0;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: "";
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(42, 171, 238, 0.055) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
  color: var(--text-secondary);
}
.why-list li:last-child {
  border-bottom: none;
}
.check-wrap {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-wrap svg {
  width: 13px;
  height: 13px;
  color: var(--tg-blue);
}
.why-list strong {
  color: var(--text-primary);
  font-weight: 500;
}

.metrics-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 350px;
  margin: auto;
}
.mc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mc-ch-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-deeper));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mc-ch-icon svg {
  width: 21px;
  height: 21px;
}
.mc-ch-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: "Sora", sans-serif;
  margin: 0 0 2px;
}
.mc-ch-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin: 0;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.metric-row:last-child {
  border-bottom: none;
}
.metric-lbl {
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.metric-val {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.badge-up {
  font-size: 0.7rem;
  background: rgba(26, 150, 60, 0.1);
  color: #1a6b3a;
  border-radius: 6px;
  padding: 2px 7px;
  font-weight: 500;
}
.badge-stable {
  font-size: 0.7rem;
  background: rgba(42, 171, 238, 0.1);
  color: var(--tg-blue-deeper);
  border-radius: 6px;
  padding: 2px 7px;
  font-weight: 500;
}
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a9e5c;
  display: inline-block;
  margin-right: 3px;
}

/* SECTION 3 */
.process-section {
  padding: 100px 0;
  background: var(--surface);
}
.step-cards-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 50px;
  position: relative;
}
.step-connector {
  position: absolute;
  top: 42px;
  left: calc(16.67% + 22px);
  right: calc(16.67% + 22px);
  height: 0;
  border-top: 1.5px dashed var(--tg-blue-mid);
  z-index: 0;
  pointer-events: none;
}
.step-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 22px 26px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.28s;
}
.step-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-deeper));
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.28);
}
.step-title {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 9px;
}
.step-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}
.no-friction {
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
.friction-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.friction-badge svg {
  width: 15px;
  height: 15px;
  color: var(--tg-blue);
}

/* CTA SECTION */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #ebf6fd 0%, #f5faff 50%, #ebf6fd 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    rgba(42, 171, 238, 0.065) 1px,
    transparent 1px
  ),
    linear-gradient(90deg, rgba(42, 171, 238, 0.065) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
}
.cta-title {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}
.cta-sub {
  font-size: 1.03rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 460px;
  margin: 0 auto 34px;
}

/* FOOTER */
.footer {
  background: var(--tg-navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 52px 0 30px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.footer-brand .brand-icon svg {
  width: 18px;
  height: 18px;
}
.footer-brand-name {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 310px;
  margin: 0;
}
.footer-col-title {
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--tg-blue);
}
hr.footer-hr {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 36px 0 22px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.79rem;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}
.reveal-delay-5 {
  transition-delay: 0.4s;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero-section {
    padding: 60px 0 50px;
    min-height: auto;
  }
  .login-card {
    margin-top: 48px;
  }
  .step-cards-wrap {
    grid-template-columns: 1fr;
  }
  .step-connector {
    display: none;
  }
}
@media (max-width: 576px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary-cta,
  .btn-ghost-cta {
    justify-content: center;
  }
  .login-card {
    padding: 26px 20px;
  }
  .no-friction {
    flex-direction: column;
    gap: 12px;
  }
}

a.btn-nav-cta.signinCta {
  display: none;
}







/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LAYOUT SHELL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.app-content {
  flex: 1;
  padding: 28px 30px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIDEBAR  — white, clean
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

/* ── Brand ── */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--tg-blue) 0%, var(--tg-blue-deeper) 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(42,171,238,0.28);
}
.sidebar-brand-icon svg { width: 19px; height: 19px; }

.sidebar-brand-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ── Nav ── */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }

.nav-section-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 10px 6px;
  white-space: nowrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.17s, color 0.17s;
  cursor: pointer;
  position: relative;
  margin-bottom: 2px;
}
.nav-item:hover {
  background: var(--tg-blue-light);
  color: var(--tg-blue-deeper);
  text-decoration: none;
}
.nav-item.active {
  background: var(--tg-blue-light);
  color: var(--tg-blue-deeper);
  font-weight: 500;
}
/* Blue left accent on active */
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  background: var(--tg-blue);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.nav-icon svg { width: 17px; height: 17px; }
/* Active icon gets full Telegram blue */
.nav-item.active .nav-icon { color: var(--tg-blue); }

.nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  font-size: 0.67rem;
  font-weight: 600;
  background: var(--tg-blue);
  color: #fff;
  border-radius: 100px;
  padding: 2px 7px;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ── Sidebar Footer / user card ── */
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 12px;
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.17s;
  overflow: hidden;
  text-decoration: none;
}
.sidebar-user:hover { background: var(--tg-blue-light); text-decoration: none; }

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tg-blue) 0%, var(--tg-blue-deeper) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.user-info { flex: 1; min-width: 0; overflow: hidden; }
.user-name {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.user-role { font-size: 0.73rem; color: var(--text-muted); white-space: nowrap; }

.user-settings-icon { flex-shrink: 0; color: var(--text-muted); transition: color 0.17s; }
.sidebar-user:hover .user-settings-icon { color: var(--tg-blue); }
.user-settings-icon svg { width: 15px; height: 15px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TOP NAVBAR (authenticated)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 26px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

/* Mobile logo (hidden on desktop, shown on mobile) */
.topbar-mobile-brand {
  display: none;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.topbar-mobile-brand .tmb-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--tg-blue) 0%, var(--tg-blue-deeper) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(42,171,238,0.25);
}
.topbar-mobile-brand .tmb-icon svg { width: 17px; height: 17px; }
.topbar-mobile-brand .tmb-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.topbar-title {
  flex: 1;
  min-width: 0;
}
.topbar-title h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-breadcrumb {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.topbar-breadcrumb a:hover { color: var(--tg-blue); }
.topbar-breadcrumb .sep { opacity: 0.4; }

/* Topbar right side */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Balance chip */
.balance-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 9px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}
.balance-chip:hover {
  background: var(--tg-blue-light);
  border-color: var(--tg-blue);
  text-decoration: none;
}
.balance-chip .bc-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-deeper));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.balance-chip .bc-icon svg { width: 11px; height: 11px; color: #fff; }
.balance-chip .bc-amount {
  font-family: 'Sora', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.balance-chip .bc-caret svg { width: 13px; height: 13px; color: var(--text-muted); }

/* Currency dropdown */
.currency-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(10,25,41,0.10);
  padding: 6px;
  display: none;
  z-index: 300;
}
.currency-dropdown.open { display: block; animation: dropIn 0.17s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.currency-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.currency-dropdown a:hover { background: var(--tg-blue-light); color: var(--tg-blue-deeper); }

/* User dropdown trigger */
.tb-user-wrap { position: relative; }
.tb-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 5px;
  border-radius: 100px;
  border: 1px solid var(--border-mid);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.tb-user-btn:hover { background: var(--surface-2); border-color: var(--tg-blue-mid); text-decoration: none; }

.tb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-deeper));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.73rem;
  color: #fff;
  flex-shrink: 0;
}
.tb-username {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-user-caret svg { width: 13px; height: 13px; color: var(--text-muted); }

/* User dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(10,25,41,0.10);
  padding: 6px;
  display: none;
  z-index: 300;
}
.user-dropdown.open { display: block; animation: dropIn 0.17s ease; }

.ud-header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.ud-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Sora', sans-serif;
}
.ud-balance { font-size: 0.75rem; color: var(--text-muted); }

.ud-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
  cursor: pointer;
}
.ud-item:hover { background: var(--tg-blue-light); color: var(--tg-blue-deeper); text-decoration: none; }
.ud-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.ud-item.danger { color: #A32D2D; }
.ud-item.danger:hover { background: #FEE8E8; color: #A32D2D; }
.ud-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-mid);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-btn:hover { background: var(--tg-blue-light); color: var(--tg-blue); }
.mobile-menu-btn svg { width: 17px; height: 17px; }

/* Sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,53,86,0.38);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LANDING NAVBAR (unauthenticated)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.navbar {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--tg-blue) 0%, var(--tg-blue-deeper) 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(42,171,238,0.3);
}
.brand-icon svg { width: 18px; height: 18px; }

.btn-nav-cta {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 0.87rem;
  padding: 8px 20px;
  border-radius: 9px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.signupCta {
  background: var(--tg-blue);
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(42,171,238,0.28);
}
.signupCta:hover {
  background: var(--tg-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(42,171,238,0.38);
  color: #fff !important;
}
.signinCta {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-mid);
  margin-left: 8px;
}
.signinCta:hover {
  background: var(--tg-blue-light);
  border-color: var(--tg-blue);
  color: var(--tg-blue) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NOTIFICATIONS TOAST
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#notify-wrapper {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  min-width: 270px;
  max-width: 360px;
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(10,25,41,0.12);
  border: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 991px) {
  /* Sidebar slides off-screen on mobile */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: none;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(10,25,41,0.10);
  }
  .app-main { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
  .topbar-mobile-brand { display: flex; }
  /* Hide desktop page-title on small screens to save space */
  .topbar-title { display: none; }
  .app-content { padding: 20px 16px; }
}

@media (max-width: 576px) {
  .tb-username { display: none; }
  .topbar { padding: 0 14px; gap: 10px; }
}
.topbar-actions {
  margin-left: auto;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NEW ORDER PAGE STYLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Dashboard top cards row */
.dash-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

/* ── Welcome Card ── */
.welcome-card {
  grid-column: span 1;
  background: linear-gradient(120deg, var(--tg-blue) 0%, var(--tg-blue-deeper) 100%);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}
.welcome-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.welcome-card::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.wc-text { position: relative; z-index: 1; }
.wc-greeting {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
}
.wc-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}
.wc-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.4;
}
.wc-illustration {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wc-illus-svg i {
  color: #fff;
  font-size: 35px;
  box-shadow: 0px 0px 0px 4px #ffffff40;
  border-radius: 100px;
}
.wc-illustration img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
}
/* Placeholder SVG illustration if no image provided */
.wc-illus-svg {
  width: 88px;
  height: 88px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wc-illus-svg svg { width: 52px; height: 52px; }

/* ── Balance Card ── */
.balance-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}
.bc-card-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.bc-card-label .dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1A9E5C;
}
.bc-card-amount {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.bc-card-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.btn-topup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-deeper));
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 3px 12px rgba(42,171,238,0.28);
  align-self: flex-start;
  letter-spacing: 0.01em;
}
.btn-topup:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(42,171,238,0.38);
  color: #fff;
  text-decoration: none;
}
.btn-topup svg { width: 14px; height: 14px; }

/* ── Orders Card ── */
.orders-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}
.oc-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
}
.oc-count {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.oc-count small {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}
.btn-orders {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(26,158,92,0.08);
  color: #157A48;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1px solid rgba(26,158,92,0.2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s;
  align-self: flex-start;
  letter-spacing: 0.01em;
}
.btn-orders:hover {
  background: rgba(26,158,92,0.14);
  border-color: rgba(26,158,92,0.35);
  color: #157A48;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-orders svg { width: 14px; height: 14px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORDER FORM LAYOUT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}

/* ── Form Card ── */
.order-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ofc-header {
  padding: 20px 26px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ofc-header-icon {
  width: 38px; height: 38px;
  background: var(--tg-blue-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ofc-header-icon svg { width: 18px; height: 18px; color: var(--tg-blue); }
.ofc-header-text h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.ofc-header-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.ofc-body { padding: 24px 26px; }

/* ── Form groups ── */
.of-group { margin-bottom: 20px; }
.of-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.of-label .of-required {
  color: var(--tg-blue);
  margin-left: 2px;
}

/* Override select2 & form-control inside our card */
.order-form-card .form-control,
.order-form-card .select2-selection {
  border: 1px solid var(--border-mid) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  color: var(--text-primary) !important;
  background: var(--surface-2) !important;
  height: auto !important;
  min-height: 42px !important;
  box-shadow: none !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
}
.order-form-card .form-control:focus,
.order-form-card .select2-container--focus .select2-selection {
  border-color: var(--tg-blue) !important;
  box-shadow: 0 0 0 3px rgba(42,171,238,0.12) !important;
  background: var(--surface) !important;
  outline: none !important;
}
.order-form-card .select2-container {
  width: 100% !important;
}
.order-form-card .select2-selection--single {
  display: flex !important;
  align-items: center !important;
}
.order-form-card .select2-selection__rendered {
  padding: 0 !important;
  line-height: 1.5 !important;
  color: var(--text-primary) !important;
}
.order-form-card .select2-selection__arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 12px !important;
  height: auto !important;
}

/* Charge field special styling */
.charge-field-wrap {
  position: relative;
}
.charge-field-wrap .charge-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tg-blue);
  display: flex;
  align-items: center;
}
.charge-field-wrap .charge-icon svg { width: 15px; height: 15px; }
.charge-field-wrap .form-control {
  padding-left: 36px !important;
  font-family: 'Sora', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: var(--text-primary) !important;
  background: var(--tg-blue-light) !important;
  border-color: rgba(42,171,238,0.3) !important;
}

/* Search input */
.order-form-card .search-dropdown .form-control {
  padding-left: 38px !important;
}

/* Service description */
.service-desc-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Terms checkbox */
.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}
.terms-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--tg-blue);
  flex-shrink: 0;
  cursor: pointer;
}
.terms-label a { color: var(--tg-blue); text-decoration: none; }
.terms-label a:hover { text-decoration: underline; }

/* Submit button */
.btn-place-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--tg-blue) 0%, var(--tg-blue-deeper) 100%);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 4px 16px rgba(42,171,238,0.3);
  letter-spacing: 0.01em;
  margin-top: 6px;
}
.btn-place-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 22px rgba(42,171,238,0.42);
}
.btn-place-order svg { width: 18px; height: 18px; }

/* Alert overrides */
.order-form-card .alert {
  border-radius: 10px;
  border: none;
  font-size: 0.88rem;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.order-form-card .alert-danger {
  background: #FEE8E8;
  color: #A32D2D;
}
.order-form-card .alert-success {
  background: #E6F7EE;
  color: #157A48;
  border-left: 3px solid #1A9E5C;
}
.order-form-card .alert h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.order-form-card .alert .close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.55;
  float: right;
  line-height: 1;
  color: inherit;
  padding: 0;
}
.order-form-card .alert .close:hover { opacity: 1; }

/* Divider inside form */
.of-divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RIGHT SIDEBAR PANEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.order-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ── How it works card ── */
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.how-card-head {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.how-card-head .hch-icon {
  width: 32px; height: 32px;
  background: var(--tg-blue-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.how-card-head .hch-icon svg { width: 16px; height: 16px; color: var(--tg-blue); }
.how-card-head h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.how-card-body { padding: 16px 20px 18px; }

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}
.how-step:last-child { margin-bottom: 0; }
.how-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-deeper));
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.how-step-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.how-step-text span {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Service tips card ── */
.tips-card {
  background: linear-gradient(135deg, rgba(42,171,238,0.06) 0%, rgba(42,171,238,0.02) 100%);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.tips-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.tips-card-head svg { width: 16px; height: 16px; color: var(--tg-blue); flex-shrink: 0; }
.tips-card-head span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Sora', sans-serif;
}
.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.tip-item:last-child { margin-bottom: 0; }
.tip-item .tip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tg-blue);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── Safety badge ── */
.safety-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.safety-icon {
  width: 40px; height: 40px;
  background: rgba(26,158,92,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.safety-icon svg { width: 20px; height: 20px; color: #1A9E5C; }
.safety-text strong {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.safety-text span { font-size: 0.78rem; color: var(--text-muted); }

/* ── New order text card ── */
.neworder-text-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 22px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1100px) {
  .order-layout {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 900px) {
  .dash-cards {
    grid-template-columns: 1fr 1fr;
  }
  .welcome-card { grid-column: span 2; }
  .order-layout {
    grid-template-columns: 1fr;
  }
  .order-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .how-card { grid-column: span 2; }
}

@media (max-width: 600px) {
  .dash-cards { grid-template-columns: 1fr; }
  .welcome-card { grid-column: span 1; }
  .wc-illustration { display: none; }
  .order-sidebar { grid-template-columns: 1fr; }
  .how-card { grid-column: span 1; }
  .ofc-body { padding: 18px 16px; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SERVICES PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Toolbar ── */
.svc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.svc-toolbar-heading h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.svc-toolbar-heading p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.svc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Currency selector */
.svc-cur-wrap {
  position: relative;
}
.svc-cur-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.svc-cur-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.svc-cur-btn .caret-icon { width: 13px; height: 13px; color: var(--text-muted); transition: transform 0.2s; }
.svc-cur-btn:hover { border-color: var(--tg-blue); background: var(--tg-blue-light); color: var(--tg-blue-deeper); }
.svc-cur-wrap.is-open .svc-cur-btn { border-color: var(--tg-blue); background: var(--tg-blue-light); }
.svc-cur-wrap.is-open .caret-icon { transform: rotate(180deg); }

.svc-cur-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(10,25,41,0.10);
  padding: 6px;
  list-style: none;
  margin: 0;
  z-index: 500;
}
.svc-cur-wrap.is-open .svc-cur-menu { display: block; animation: dropIn 0.16s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.svc-cur-menu li { margin: 0; }
.svc-cur-item {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
  font-family: 'DM Sans', sans-serif;
}
.svc-cur-item:hover { background: var(--tg-blue-light); color: var(--tg-blue-deeper); text-decoration: none; }

/* Search */
.svc-search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}
.svc-search-input {
  padding: 8px 14px;
  border: 1px solid var(--border-mid);
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  width: 220px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.svc-search-input:focus {
  border-color: var(--tg-blue);
  box-shadow: 0 0 0 3px rgba(42,171,238,0.11);
}
.svc-search-input::placeholder { color: var(--text-muted); }
.svc-search-btn {
  padding: 8px 13px;
  background: var(--tg-blue);
  border: 1px solid var(--tg-blue);
  border-radius: 0 10px 10px 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.18s;
}
.svc-search-btn:hover { background: var(--tg-blue-dark); }
.svc-search-btn svg { width: 15px; height: 15px; }

/* ── Table Shell ── */
.svc-table-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.svc-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Table ── */
.svc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
}

.svc-table thead tr {
  background: var(--tg-blue);
  border-bottom: 1px solid var(--border);
}
.svc-table thead th {
  padding: 12px 16px;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-align: left;
}
.svc-table thead th:first-child { width: 48px; }

/* Spacer row */
.svc-row-spacer td,
.svc-row-spacer { height: 0; padding: 0 !important; border: none !important; background: none !important; }

/* Category row */
.svc-cat-row td {
  padding: 0;
  background: var(--tg-blue-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.svc-cat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.16s;
}
.svc-cat-label:hover { background: var(--tg-blue-light); }

.cat-icon-wrap {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--tg-blue);
}
.cat-icon-wrap img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.cat-icon-wrap svg { width: 20px; height: 20px; }
.cat-icon-wrap .icon-tabler-square-rounded-check { color: var(--tg-blue); }

.svc-cat-label strong {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.svc-cat-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 8px;
}

.svc-cat-chevron {
  width: 15px; height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.22s;
}
.svc-cat-row.is-collapsed .svc-cat-chevron { transform: rotate(-90deg); }

/* Data rows */
.svc-data-row td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-secondary);
}
.svc-data-row:last-child td { border-bottom: none; }
.svc-data-row:hover td { background: #FAFCFF; }

/* Fav cell */
.svc-fav-cell { width: 48px; text-align: center; padding: 11px 8px !important; }
.svc-fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.16s, background 0.16s;
}
.svc-fav-btn svg { width: 15px; height: 15px; }
.svc-fav-btn:hover { color: #F0A500; background: #FFF8E6; }
.svc-fav-btn.is-fav { color: #F0A500; }

/* Name cell */
.svc-name-cell { min-width: 260px; }
.svc-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.svc-name-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.svc-id-badge {
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--tg-blue-light);
  color: var(--tg-blue-deeper);
  border: 1px solid rgba(42,171,238,0.2);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.svc-name-label {
  font-size: 0.87rem;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

.svc-name-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.16s;
}
.svc-data-row:hover .svc-name-actions { opacity: 1; }

.svc-action-btn {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border-mid);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.16s;
}
.svc-action-btn svg { width: 13px; height: 13px; }
.svc-action-btn:hover { border-color: var(--tg-blue); background: var(--tg-blue-light); color: var(--tg-blue); text-decoration: none; }
.svc-copy-btn.is-copied { border-color: #1A9E5C; background: #E6F7EE; color: #1A9E5C; }

/* Rate cell */
.svc-rate-cell { white-space: nowrap; }
.svc-rate-wrap { display: flex; align-items: baseline; gap: 4px; }
.svc-rate-value {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.svc-rate-label { font-size: 0.74rem; color: var(--text-muted); }

/* Time cell */
.svc-time-cell { white-space: nowrap; font-size: 0.84rem; }

/* Desc cell */
.svc-desc-cell { white-space: nowrap; }
.svc-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.16s;
  font-family: 'DM Sans', sans-serif;
}
.svc-details-btn svg { width: 13px; height: 13px; }
.svc-details-btn:hover { border-color: var(--tg-blue); background: var(--tg-blue-light); color: var(--tg-blue); }

/* ── Service Detail Modal ── */
.svc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,53,86,0.38);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  padding: 20px;
}
.svc-modal-overlay.is-open { display: flex; animation: modalFadeIn 0.2s ease; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.svc-modal-box {
  background: var(--surface);
  border-radius: var(--radius-xl, 20px);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(10,25,41,0.18);
  overflow: hidden;
  animation: modalSlideUp 0.22s ease;
}
@keyframes modalSlideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.svc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.svc-modal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.svc-modal-title svg { width: 18px; height: 18px; color: var(--tg-blue); }

.svc-modal-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-mid);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.16s;
}
.svc-modal-close svg { width: 14px; height: 14px; }
.svc-modal-close:hover { background: #FEE8E8; border-color: #F0BBBB; color: #A32D2D; }

.svc-modal-body { padding: 20px 22px 24px; }

.svc-modal-qty {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.svc-qty-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.svc-qty-card--min { background: var(--tg-blue-light); border-color: rgba(42,171,238,0.2); }
.svc-qty-card--max { background: rgba(26,158,92,0.06); border-color: rgba(26,158,92,0.18); }
.svc-qty-card svg { width: 20px; height: 20px; flex-shrink: 0; }
.svc-qty-card--min svg { color: var(--tg-blue); }
.svc-qty-card--max svg { color: #1A9E5C; }
.svc-qty-tag { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.svc-qty-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.svc-modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  max-height: 260px;
  overflow-y: auto;
}

/* fade-up animation for page load */
.mv-fade-up { animation: fadeUp 0.45s ease both; }
.mv-fade-up--d1 { animation-delay: 0.07s; }
.mv-fade-up--d2 { animation-delay: 0.14s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 640px) {
  .svc-toolbar { flex-direction: column; align-items: stretch; }
  .svc-toolbar-right { flex-direction: column; align-items: stretch; }
  .svc-search-input { width: 100%; }
  .svc-search-wrap { width: 100%; }
  .svc-cur-btn { width: 100%; justify-content: space-between; }
  .svc-modal-box { max-width: 100%; }
  .svc-modal-qty { grid-template-columns: 1fr; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORDER HISTORY PAGE — namespaced
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.oh-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Page header ── */
.oh-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.oh-page-header-text h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}
.oh-page-header-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

/* ── Summary strip ── */
.oh-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.oh-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}
.oh-stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}
.oh-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.oh-stat-info {}
.oh-stat-label {
  font-size: 0.71rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}
.oh-stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

/* ── Main card ── */
.oh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Toolbar ── */
.oh-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Status pills */
.oh-status-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.oh-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-mid);
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
  cursor: pointer;
}
.oh-pill:hover {
  border-color: var(--tg-blue);
  color: var(--tg-blue-deeper);
  background: var(--tg-blue-light);
  text-decoration: none;
}
.oh-pill.active {
  background: var(--tg-blue);
  color: #fff;
  border-color: var(--tg-blue);
  font-weight: 600;
}
.oh-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}
.oh-pill.active .pill-dot { opacity: 1; background: rgba(255,255,255,0.8); }

/* Search */
.oh-search-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.oh-search-input {
  padding: 8px 14px;
  border: 1px solid var(--border-mid);
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  color: var(--text-primary);
  background: var(--surface-2);
  outline: none;
  width: 210px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.oh-search-input:focus {
  border-color: var(--tg-blue);
  box-shadow: 0 0 0 3px rgba(42,171,238,0.11);
  background: var(--surface);
}
.oh-search-input::placeholder { color: var(--text-muted); }
.oh-search-btn {
  padding: 8px 13px;
  background: var(--tg-blue);
  border: 1px solid var(--tg-blue);
  border-radius: 0 10px 10px 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.18s;
}
.oh-search-btn:hover { background: var(--tg-blue-dark); }
.oh-search-btn svg { width: 15px; height: 15px; }

/* ── Table ── */
.oh-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.oh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
}
.oh-table thead tr {
  background: var(--surface-2);
  border-bottom: 2px solid var(--border-mid);
}
.oh-table thead th {
  padding: 11px 16px;
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
  text-align: left;
}
.oh-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.14s;
}
.oh-table tbody tr:last-child { border-bottom: none; }
.oh-table tbody tr:hover { background: #FAFCFF; }
.oh-table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  vertical-align: middle;
}

/* ID cell */
.oh-id-cell {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tg-blue-deeper);
  white-space: nowrap;
}
.oh-id-badge {
  background: var(--tg-blue-light);
  border: 1px solid rgba(42,171,238,0.2);
  border-radius: 7px;
  padding: 3px 9px;
  display: inline-block;
}

/* Date cell */
.oh-date-cell {
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 120px;
}
.oh-date-main { color: var(--text-secondary); font-weight: 500; display: block; }
.oh-date-time { font-size: 0.74rem; color: var(--text-muted); }

/* Link cell */
.oh-link-cell {
  max-width: 200px;
  min-width: 120px;
}
.oh-link-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}
.oh-link-text {
  font-size: 0.82rem;
  color: var(--tg-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  display: block;
}
.oh-detail-trigger {
  width: 24px; height: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.16s;
}
.oh-detail-trigger:hover { border-color: var(--tg-blue); color: var(--tg-blue); background: var(--tg-blue-light); text-decoration: none; }
.oh-detail-trigger svg { width: 12px; height: 12px; }

/* Charge cell */
.oh-charge-cell {
  white-space: nowrap;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.88rem;
}

/* Number cells */
.oh-num-cell {
  font-family: 'Sora', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
  white-space: nowrap;
}

/* Service cell */
.oh-service-cell {
  min-width: 180px;
  max-width: 240px;
}
.oh-service-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Status cell */
.oh-status-cell { white-space: nowrap; }
.oh-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.oh-status-badge .sb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Remains cell */
.oh-remains-cell {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

/* Actions cell */
.oh-actions-cell { white-space: nowrap; }
.oh-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.oh-btn-refill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: var(--tg-blue-light);
  border: 1px solid rgba(42,171,238,0.25);
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--tg-blue-deeper);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.17s;
  white-space: nowrap;
}
.oh-btn-refill svg { width: 12px; height: 12px; }
.oh-btn-refill:hover { background: var(--tg-blue); color: #fff; border-color: var(--tg-blue); text-decoration: none; }
.oh-btn-refill.disabled {
  opacity: 0.52;
  cursor: not-allowed;
  pointer-events: none;
}
.oh-btn-cancel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(163,45,45,0.07);
  border: 1px solid rgba(163,45,45,0.2);
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #A32D2D;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.17s;
  white-space: nowrap;
}
.oh-btn-cancel svg { width: 12px; height: 12px; }
.oh-btn-cancel:hover { background: rgba(163,45,45,0.14); border-color: rgba(163,45,45,0.35); text-decoration: none; }
.oh-refilling-tag {
  font-size: 0.76rem;
  color: var(--tg-blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.oh-refilling-tag svg { width: 13px; height: 13px; animation: oh-spin 1.5s linear infinite; }
@keyframes oh-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.oh-cancel-req-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Empty state */
.oh-empty {
  text-align: center;
  padding: 56px 24px;
}
.oh-empty-icon {
  width: 60px; height: 60px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.oh-empty-icon svg { width: 28px; height: 28px; color: var(--text-muted); }
.oh-empty h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.oh-empty p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }

/* ── Pagination ── */
.oh-pagination-wrap {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.oh-pagination-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.oh-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.oh-pagination li a,
.oh-pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.16s;
  cursor: pointer;
}
.oh-pagination li a:hover {
  background: var(--tg-blue-light);
  border-color: var(--border-mid);
  color: var(--tg-blue-deeper);
  text-decoration: none;
}
.oh-pagination li.active a {
  background: var(--tg-blue);
  color: #fff;
  border-color: var(--tg-blue);
  box-shadow: 0 3px 10px rgba(42,171,238,0.28);
}

/* ── Detail Modal ── */
.oh-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,53,86,0.38);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  padding: 20px;
}
.oh-modal-overlay.is-open { display: flex; animation: ohModalFade 0.2s ease; }
@keyframes ohModalFade { from { opacity: 0; } to { opacity: 1; } }
.oh-modal-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(10,25,41,0.18);
  overflow: hidden;
  animation: ohModalSlide 0.22s ease;
}
@keyframes ohModalSlide { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.oh-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.oh-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.oh-modal-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-mid);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.16s;
}
.oh-modal-close svg { width: 14px; height: 14px; }
.oh-modal-close:hover { background: #FEE8E8; border-color: #F0BBBB; color: #A32D2D; }
.oh-modal-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.oh-modal-group {}
.oh-modal-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
  font-family: 'Sora', sans-serif;
}
.oh-modal-control {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--surface-2);
  resize: vertical;
}
textarea.oh-modal-control { min-height: 100px; }

/* ── RTL ── */
.rtl-nav { direction: rtl; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .oh-summary-strip { grid-template-columns: repeat(3, 1fr); }
  .oh-toolbar { flex-direction: column; align-items: stretch; }
  .oh-search-input { width: 100%; }
  .oh-search-wrap { width: 100%; }
}
@media (max-width: 500px) {
  .oh-summary-strip { grid-template-columns: repeat(2, 1fr); }
}
