/* =========================
   GLOBAL THEME
========================= */
:root {
  --bg: #f8fafc;
  --bg-soft: #eefaf2;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #172033;
  --muted: #5f6f8f;

  --primary: #16a34a;
  --primary-2: #4ade80;
  --accent: #22c55e;

  --success: #16a34a;
  --danger: #ef4444;
  --warning: #f59e0b;

  --border: rgba(23, 32, 51, 0.08);
  --shadow: 0 18px 50px rgba(33, 56, 98, 0.10);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1180px;
  --transition: 220ms ease;
}

/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.12), transparent 24%),
    radial-gradient(circle at bottom center, rgba(34, 197, 94, 0.08), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #eefaf2 100%);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body.with-figures-bg {
  background:
    radial-gradient(circle at 14px 14px, rgba(22, 163, 74, 0.08) 2px, transparent 2.8px) 0 0 / 64px 64px,
    radial-gradient(circle at 50px 50px, rgba(34, 197, 94, 0.06) 2px, transparent 2.8px) 0 0 / 64px 64px,
    linear-gradient(45deg, rgba(22, 163, 74, 0.04) 0 10%, transparent 10% 90%, rgba(22, 163, 74, 0.04) 90% 100%) 0 0 / 64px 64px,
    linear-gradient(-45deg, rgba(74, 222, 128, 0.03) 0 10%, transparent 10% 90%, rgba(74, 222, 128, 0.03) 90% 100%) 32px 32px / 64px 64px,
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.12), transparent 24%),
    radial-gradient(circle at bottom center, rgba(34, 197, 94, 0.08), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #eefaf2 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

ul,
ol {
  padding-left: 1.25rem;
}

/* =========================
   LAYOUT
========================= */
.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 24px;
}

.page-center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

/* =========================
   TYPOGRAPHY
========================= */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  width: 100%;
  max-width: none;
  color: var(--muted);
  font-size: 1.05rem;
}

.gradient-text {
  background: linear-gradient(135deg, #166534, #16a34a 45%, #4ade80 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

/* =========================
   BADGES / LABELS
========================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #15803d;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.35);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.20);
}

.pill.info {
  background: rgba(22, 163, 74, 0.10);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.16);
}

.pill.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.pill.danger {
  background: rgba(239, 68, 68, 0.10);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.16);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition);
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.96);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
}

.btn-block {
  width: 100%;
}

/* =========================
   CARDS
========================= */
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88),
    rgba(255, 255, 255, 0.74)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.box,
.auth-box,
.panel-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.panel-wide {
  max-width: 900px;
  width: 100%;
}

/* =========================
   NAVBAR
========================= */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  padding-top: 16px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(33, 56, 98, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.20);
  color: white;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
}

.lang-option {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  transition: background var(--transition), color var(--transition),
    box-shadow var(--transition);
}

.lang-option.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 64px 0 84px;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: start;
}

.hero-copy {
  max-width: none;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: stretch;
}

.hero-strip {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 8px;
}

.hero-strip .btn {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex: 1 1 520px;
}

.mini-stat {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  flex: 1 1 150px;
  min-width: 150px;
}

.mini-stat strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   DASHBOARD / PANELS
========================= */
.hero-visual {
  position: relative;
  min-height: 0;
  width: 100%;
}

.dashboard {
  position: relative;
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.dashboard::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -30%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12), transparent 70%);
  pointer-events: none;
}

.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 14px;
  margin-bottom: 20px;
}

.dashboard-head-copy {
  min-width: 220px;
  max-width: 100%;
}

.dashboard-top h3 {
  margin: 0 0 4px;
  line-height: 1.2;
}

.dashboard-top p {
  margin: 0;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.35;
}

.dashboard-tabs {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-self: start;
}

.dashboard-tab {
  appearance: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(23, 32, 51, 0.08);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

.dashboard-tab.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.10), rgba(74, 222, 128, 0.12));
  border-color: rgba(23, 32, 51, 0.10);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.10);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.preview-panel[hidden] {
  display: none;
}

.analytics-card,
.profile-card,
.small-panel {
  border-radius: 20px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.analytics-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.info-main-card,
.info-side-card {
  gap: 18px;
}

.info-card-head,
.info-side-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-badge,
.info-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 900;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.20);
}

.info-card-head h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-top: 4px;
}

.info-steps,
.info-list {
  display: grid;
  gap: 13px;
}

.info-steps > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(22, 163, 74, 0.07);
  border: 1px solid rgba(22, 163, 74, 0.10);
}

.info-steps > div > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #15803d;
  font-size: 0.84rem;
  font-weight: 900;
  border: 1px solid rgba(22, 163, 74, 0.12);
}

.info-steps p,
.info-list p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.38;
}

.info-side-card {
  align-content: start;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 1.25rem;
  font-family: Georgia, serif;
}

.info-list div {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list span {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.10);
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar,
.user-dot {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #22c55e, #86efac);
  color: #0f172a;
}

.user-dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.metric:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  grid-column: 1 / -1;
}

/* =========================
   CHART
========================= */
.chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 18px;
}

.bar {
  flex: 1;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #16a34a 0%, #4ade80 100%);
  box-shadow: inset 0 -10px 20px rgba(255, 255, 255, 0.20);
  animation: rise 1s ease both;
}

.bar:nth-child(1) { height: 38%; animation-delay: 0.05s; }
.bar:nth-child(2) { height: 54%; animation-delay: 0.12s; }
.bar:nth-child(3) { height: 46%; animation-delay: 0.18s; }
.bar:nth-child(4) { height: 72%; animation-delay: 0.24s; }
.bar:nth-child(5) { height: 68%; animation-delay: 0.3s; }
.bar:nth-child(6) { height: 84%; animation-delay: 0.36s; }
.bar:nth-child(7) { height: 96%; animation-delay: 0.42s; }

/* =========================
   LOGOS / FEATURES / ABOUT
========================= */
.logo-strip {
  padding: 18px 0 10px;
}

.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.logo-item {
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  color: #51627f;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}

.feature-card {
  padding: 26px;
  transition: transform var(--transition), border-color var(--transition),
    background var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 32, 51, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(245, 248, 255, 0.82)
  );
}

.feature-icon,
.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #15803d;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.10), rgba(74, 222, 128, 0.12));
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.ui-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 40px;
}

.about-panel {
  padding: 28px;
}

.check-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-badge {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(74, 222, 128, 0.12));
  border: 1px solid rgba(23, 32, 51, 0.08);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-visual {
  position: relative;
  min-height: 430px;
  overflow: visible;
  isolation: isolate;
}

.floating-box {
  position: absolute;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: floatY 5s ease-in-out infinite;
  z-index: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.about-visual .floating-box:hover,
.about-visual .floating-box:focus-within {
  animation: none;
  transform: translateY(-14px) scale(1.04);
  z-index: 20;
  border-color: rgba(22, 163, 74, 0.22);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.floating-box.one {
  width: 250px;
  top: 30px;
  left: 30px;
  animation-delay: 0s;
  z-index: 1;
}

.floating-box.two {
  width: 290px;
  right: 30px;
  top: 110px;
  animation-delay: 1.2s;
  z-index: 2;
}

.floating-box.three {
  width: 240px;
  left: 80px;
  bottom: 26px;
  animation-delay: 0.6s;
  z-index: 3;
}

/* =========================
   STATS / PRICING / TESTIMONIALS
========================= */
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
}

.stat-card {
  padding: 28px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card span {
  color: var(--muted);
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  align-items: stretch;
}

.pricing-card {
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  transform: scale(1.03);
  border-color: rgba(22, 163, 74, 0.18);
  background:
    linear-gradient(180deg, rgba(22, 163, 74, 0.08), rgba(255, 255, 255, 0.86)),
    rgba(255, 255, 255, 0.78);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
}

.price {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 18px 0 20px;
}

.price strong {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-features {
  display: grid;
  gap: 12px;
  margin: 20px 0 28px;
  color: var(--muted);
  padding-left: 0;
}

.pricing-features li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}

.pricing-features li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 800;
}

.pricing-card .btn {
  margin-top: auto;
}

.testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}

.testimonial {
  padding: 26px;
}

.stars {
  color: #fbbf24;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-size: 1rem;
}

.testimonial p {
  color: var(--muted);
  margin-bottom: 20px;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* =========================
   FORMS
========================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.94rem;
  color: #31415d;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition),
    box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: #8a98b4;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(22, 163, 74, 0.35);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.10);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-success,
.msg.success {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: #166534;
  font-weight: 600;
}

.form-success {
  display: none;
}

.form-success.show {
  display: block;
}

.form-success.form-error {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.18);
  color: #991b1b;
}

.contact-form-wrap button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.msg,
.msg.error {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.16);
}

/* =========================
   CONTACT
========================= */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 40px;
}

.contact-info,
.contact-form-wrap {
  padding: 28px;
}

.contact-points {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-icon .ui-icon {
  width: 21px;
  height: 21px;
}

/* =========================
   AUTH PAGES
========================= */
.auth-box h1,
.auth-box h2,
.box h1,
.box h2 {
  margin-bottom: 20px;
  text-align: center;
  color: var(--text);
}

.auth-box a,
.box a {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: var(--muted);
  text-decoration: none;
}

.auth-box a:hover,
.box a:hover {
  color: var(--primary);
}

/* =========================
   DASHBOARD PAGE
========================= */
.wrap {
  max-width: 900px;
  margin: 60px auto;
  padding: 20px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================
   FOOTER
========================= */
footer {
  padding: 36px 0 52px;
}

.footer-card {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* =========================
   UTILITIES
========================= */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(23, 32, 51, 0.10),
    transparent
  );
  margin: 10px 0 0;
}

.hidden {
  display: none !important;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* =========================
   ANIMATIONS
========================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



@keyframes rise {
  from {
    transform: scaleY(0.15);
    transform-origin: bottom;
    opacity: 0.3;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
}

@keyframes floatY {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes sectionSwap {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .hero-layout,
  .about-layout,
  .contact-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual .dashboard {
    position: relative;
    min-height: 0;
  }

  .hero-visual .dashboard-grid {
    height: auto;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(22, 163, 74, 0.10);
    backdrop-filter: blur(18px);
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .logos,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .split-panels {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .section {
    padding: 78px 0;
  }

  .floating-box.one,
  .floating-box.two,
  .floating-box.three {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .about-visual {
    display: grid;
    gap: 18px;
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .navbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .language-switch {
    padding: 3px;
  }

  .lang-option {
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-strip,
  .hero-actions,
  .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .mini-stat {
    min-width: auto;
  }

  .box,
  .auth-box,
  .panel-box {
    padding: 22px;
  }
}

/* =========================
   CRYPTO USER DASHBOARD
========================= */
.crypto-dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.10), transparent 24%),
    radial-gradient(circle at bottom right, rgba(74, 222, 128, 0.14), transparent 22%),
    linear-gradient(180deg, #f7fffa 0%, #f8fafc 40%, #eefaf2 100%);
}

@media (max-width: 560px) {
  .dashboard-top {
    grid-template-columns: 1fr;
  }
}

.crypto-dashboard-page.theme-ocean {
  background:
    radial-gradient(circle at top left, rgba(2, 132, 199, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.16), transparent 22%),
    linear-gradient(180deg, #f3fbff 0%, #f5fbff 40%, #edf9ff 100%);
}

.crypto-dashboard-page.theme-sunset {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.16), transparent 22%),
    linear-gradient(180deg, #fff9f3 0%, #fff8f2 40%, #fff4ea 100%);
}

.crypto-dashboard-shell {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.crypto-sidebar {
  position: sticky;
  top: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.crypto-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crypto-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.crypto-logo-image {
  width: clamp(170px, 18vw, 230px);
  height: auto;
  object-fit: contain;
  display: block;
}

.crypto-logo-copy {
  min-width: 0;
  line-height: 1.2;
}

.crypto-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.crypto-logo strong {
  display: block;
  font-size: 1rem;
}

.crypto-logo small {
  color: var(--muted);
}

.crypto-menu {
  display: grid;
  gap: 10px;
}

.crypto-menu a {
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.crypto-menu a:hover,
.crypto-menu a.active {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.crypto-sidebar-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.10);
}

.crypto-sidebar-card h3 {
  margin: 6px 0;
}

.crypto-dashboard-main {
  display: grid;
  gap: 24px;
}

.crypto-topbar {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.crypto-topbar-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.crypto-topbar h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  margin: 6px 0;
}

.crypto-topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.dashboard-language-switch {
  flex-shrink: 0;
}

.crypto-balance-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 20px;
}

.crypto-balance-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,255,255,0.78));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: var(--shadow);
}

.crypto-balance-card.primary {
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(74, 222, 128, 0.08)),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.82));
}

.crypto-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.crypto-balance-card strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.crypto-balance-card h3 {
  font-size: 1.6rem;
  margin: 6px 0;
}

.crypto-balance-card p,
.wallet-head span {
  color: var(--muted);
}

.wallet-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #166534, #22c55e);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}

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

.profile-avatar span {
  letter-spacing: 0.04em;
}

.profile-avatar-lg {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  font-size: 1.05rem;
}

.profile-avatar-xl {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  font-size: 1.2rem;
}

.profile-avatar.preset-forest {
  background: linear-gradient(135deg, #166534, #4ade80);
}

.profile-avatar.preset-ocean {
  background: linear-gradient(135deg, #0369a1, #22d3ee);
}

.profile-avatar.preset-sunset {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.profile-avatar.preset-night {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.profile-avatar.preset-ember {
  background: linear-gradient(135deg, #991b1b, #ef4444);
}

.profile-avatar.preset-ice {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.coin-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
}

.coin-badge.btc {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.coin-badge.eth {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}

.coin-badge.usdt {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.coin-badge.sol {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

.wallet-trend {
  margin-top: 14px;
  font-weight: 700;
}

.wallet-trend.up {
  color: #16a34a;
}

.wallet-trend.neutral {
  color: var(--muted);
}

.crypto-balance-chart {
  margin-top: 18px;
  height: 90px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.crypto-balance-chart span {
  flex: 1;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #16a34a, #4ade80);
  opacity: 0.95;
}

.crypto-balance-chart span:nth-child(1) { height: 28%; }
.crypto-balance-chart span:nth-child(2) { height: 40%; }
.crypto-balance-chart span:nth-child(3) { height: 56%; }
.crypto-balance-chart span:nth-child(4) { height: 44%; }
.crypto-balance-chart span:nth-child(5) { height: 72%; }
.crypto-balance-chart span:nth-child(6) { height: 68%; }
.crypto-balance-chart span:nth-child(7) { height: 88%; }

.crypto-dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.dashboard-views-host {
  grid-template-columns: 1fr;
}

.dashboard-view-panel {
  display: none;
}

.dashboard-view-panel.active-view {
  display: block;
}

.dashboard-view-panel.view-enter {
  animation: sectionSwap 300ms ease both;
}

.crypto-panel {
  padding: 24px;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title-row h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.transaction-list,
.market-list,
.account-summary {
  display: grid;
  gap: 14px;
}

.transaction-item,
.market-item,
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.transaction-item:last-child,
.market-item:last-child,
.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.transaction-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.transaction-right {
  text-align: right;
}

.transaction-right span,
.market-values span,
.coin-inline span {
  display: block;
  font-size: 0.92rem;
}

.transaction-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
}

.transaction-icon.deposit {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}

.transaction-icon.withdraw {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.transaction-icon.swap {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.transaction-icon.staking {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

.coin-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-values {
  text-align: right;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.quick-action {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(22, 163, 74, 0.10);
  background: rgba(255, 255, 255, 0.76);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-action:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 163, 74, 0.20);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.08);
}

.quick-action strong,
.quick-action small,
.quick-icon {
  display: block;
}

.quick-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.menu-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 0.75rem;
  font-weight: 900;
}

.quick-action small {
  margin-top: 6px;
  color: var(--muted);
}

.crypto-dashboard-alert {
  margin: 0;
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease, margin 180ms ease, padding 180ms ease;
}

.crypto-dashboard-alert.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.quick-action-form {
  cursor: default;
}

.quick-action-form:hover {
  transform: none;
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.08);
}

.quick-action-form input,
.quick-action-form select {
  margin-top: 4px;
}

.quick-action-form .btn {
  margin-top: 14px;
}

.quick-action-static {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.manage-user-card {
  padding: 20px 24px;
}

.manage-user-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.general-balance-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(14, 165, 233, 0.08)),
    rgba(255, 255, 255, 0.88);
}

.general-balance-section h2 {
  margin: 4px 0 6px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.general-balance-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  min-width: min(360px, 100%);
}

.general-balance-stats div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.general-balance-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.general-balance-stats strong {
  font-size: 1.5rem;
}

.admin-credential-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(22, 163, 74, 0.12);
}

.admin-credential-panel h3 {
  margin-bottom: 4px;
}

.admin-credential-values {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-credential-values input[readonly] {
  font-family: "Courier New", monospace;
}

.admin-password-hash {
  min-width: 0;
}

.admin-password-hash summary {
  cursor: pointer;
  color: var(--crypto-primary);
  font-weight: 800;
}

.admin-password-hash code {
  display: block;
  margin-top: 8px;
  padding: 10px;
  overflow-wrap: anywhere;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--crypto-text);
}

.admin-password-update-form {
  padding-top: 10px;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.admin-password-update-form h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.settings-form {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 163, 74, 0.10);
}

.settings-form h3 {
  margin-bottom: 12px;
}

.settings-form input[type="file"] {
  padding: 10px;
  border-radius: 12px;
}

.avatar-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

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

.investment-admin-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.investment-subtitle {
  margin-bottom: 12px;
}

.investment-request-list {
  display: grid;
  gap: 10px;
}

.investment-request-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.investment-request-card.compact {
  padding: 10px 12px;
}

.investment-request-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.investment-follow-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.investment-follow-form .btn {
  margin-top: 0;
}

.contact-message-list {
  display: grid;
  gap: 12px;
}

.contact-client-group {
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.contact-client-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.contact-client-summary::-webkit-details-marker {
  display: none;
}

.contact-client-summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #166534;
  background: rgba(22, 163, 74, 0.08);
  font-weight: 900;
}

.contact-client-group[open] .contact-client-summary::after {
  content: "-";
}

.contact-client-summary a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-client-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.contact-client-messages {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.contact-message-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.contact-message-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
}

.contact-message-head a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-message-body {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 32, 51, 0.08);
  color: var(--text);
}

.contact-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-message-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.contact-message-form .btn {
  margin-top: 0;
}

.theme-options {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.theme-choice {
  display: grid;
  grid-template-columns: auto 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.theme-copy strong,
.theme-copy small {
  display: block;
}

.theme-copy small {
  color: var(--muted);
}

.theme-preview {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(23, 32, 51, 0.12);
}

.theme-preview.theme-emerald {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}

.theme-preview.theme-ocean {
  background: linear-gradient(135deg, #0284c7, #22d3ee);
}

.theme-preview.theme-sunset {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

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

.wallet-card-lg {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.78));
}

.wallet-card-lg h3 {
  margin: 6px 0 12px;
  font-size: 1.5rem;
}

.wallet-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.wallet-card-meta span {
  color: var(--muted);
}

.admin-tools-panel {
  grid-column: 1 / -1;
}

.admin-wallets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.wallet-op-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.wallet-op-card .btn {
  margin-top: auto;
}

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

.summary-row span {
  color: var(--muted);
}

.text-success {
  color: #16a34a;
}

.text-danger {
  color: #dc2626;
}

@media (max-width: 1200px) {
  .crypto-balance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .crypto-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-wallets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .investment-follow-form,
  .contact-message-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .crypto-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .crypto-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .crypto-balance-grid,
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .crypto-logo-image {
    width: 180px;
  }

  .manage-user-form,
  .admin-credential-panel,
  .profile-settings-grid,
  .investment-user-grid {
    grid-template-columns: 1fr;
  }

  .general-balance-section {
    align-items: stretch;
    flex-direction: column;
  }

  .general-balance-stats {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .wallet-cards-grid {
    grid-template-columns: 1fr;
  }

  .admin-wallets-grid,
  .asset-inline-grid,
  .investment-follow-form,
  .contact-message-form {
    grid-template-columns: 1fr;
  }

  .crypto-topbar,
  .crypto-panel,
  .crypto-sidebar {
    padding: 20px;
  }

  .crypto-topbar-user {
    width: 100%;
  }

  .crypto-topbar-actions,
  .dashboard-language-switch {
    width: 100%;
  }

  .dashboard-language-switch {
    justify-content: center;
  }

  .transaction-item,
  .market-item,
  .summary-row {
    align-items: start;
  }

  .transaction-item,
  .market-item,
  .contact-client-summary,
  .contact-message-head {
    flex-direction: column;
  }

  .contact-client-pills {
    width: 100%;
    margin-left: 0;
  }

  .transaction-right,
  .market-values {
    text-align: left;
  }
}
