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

:root {
  --bg-main: #eef3f8;
  --panel: #ffffff;
  --text-main: #132033;
  --text-soft: #5f7086;
  --brand-1: #0b6c6f;
  --brand-2: #184a74;
  --nav-bg: #111827;
  --nav-soft: #1f2937;
  --border: #dce5ef;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(900px 440px at 96% -10%, rgba(34, 197, 94, 0.2), transparent 60%),
    radial-gradient(680px 300px at 4% 0%, rgba(56, 189, 248, 0.2), transparent 55%),
    linear-gradient(180deg, #f4f8fc 0%, #edf3f9 100%);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 94px;
  padding: 14px 12px;
  background:
    radial-gradient(380px 180px at 100% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    linear-gradient(180deg, #0a1020 0%, #0f172a 55%, #0a1220 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: 100;
}

.sidebar.open {
  width: 292px;
}

.sidebar .logo-details {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 10px 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(3, 9, 22, 0.35);
}

.sidebar .logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #22d3ee 0%, #2563eb 100%);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

.sidebar .logo-mark i {
  min-width: auto;
  width: auto;
  height: auto;
  line-height: 1;
  font-size: 22px;
  color: #ffffff;
}

.sidebar .logo-name-wrap {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  min-width: 0;
}

.sidebar .logo-details .logo_name {
  color: #f8fbff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 5px 14px rgba(34, 211, 238, 0.3);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.sidebar .logo-details .logo_subname {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b6cff4;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sidebar.open .logo-details .logo_name,
.sidebar.open .logo-details .logo_subname {
  opacity: 1;
  transform: translateX(0);
}

.sidebar .logo-details #btn {
  position: static;
  margin-left: auto;
  color: #e6f0ff;
  font-size: 18px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 14px rgba(2, 8, 23, 0.25);
}

.sidebar:not(.open) .logo-details {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  height: auto;
  padding: 10px 6px;
}

.sidebar:not(.open) .logo-mark {
  width: 42px;
  height: 42px;
}

.sidebar:not(.open) .logo-details #btn {
  margin-left: 0;
  width: 26px;
  height: 26px;
  line-height: 26px;
  font-size: 14px;
  border-radius: 8px;
  background: rgba(9, 14, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 6px 14px rgba(2, 8, 23, 0.35);
}

.sidebar i {
  color: #dbe6f8;
  min-width: 50px;
  height: 46px;
  line-height: 46px;
  font-size: 20px;
  text-align: center;
  border-radius: 10px;
}

.sidebar .nav-list {
  margin-top: 14px;
  height: calc(100% - 96px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar li {
  list-style: none;
  position: relative;
  margin: 0;
}

.sidebar li a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.sidebar li a .links_name {
  color: #e5edf9;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  white-space: nowrap;
}

.sidebar.open li a .links_name {
  opacity: 1;
  pointer-events: auto;
}

.sidebar li a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.sidebar li a:hover i,
.sidebar li a:hover .links_name {
  color: #ffffff;
}

.sidebar li a:active {
  transform: translateY(1px);
}

.sidebar li .tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.sidebar li:hover .tooltip {
  opacity: 1;
}

.sidebar.open li .tooltip {
  display: none;
}

.sidebar li.profile {
  position: absolute;
  bottom: 10px;
  left: 2px;
  right: 2px;
  margin: 0;
  padding: 10px 8px 8px;
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(7px);
}

.sidebar .profile-balance {
  border-radius: 11px;
  padding: 8px 8px 10px;
  background: rgba(6, 11, 22, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar .balance-label {
  color: #bad1ef;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar .balance-value {
  margin-top: 4px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.sidebar .plan-pill {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #d4f4ee;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.12);
}

.sidebar .logout-btn {
  margin-top: 7px;
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff7f7;
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  box-shadow: 0 10px 18px rgba(190, 18, 60, 0.34);
}

.sidebar .logout-btn i {
  min-width: auto;
  width: auto;
  height: auto;
  line-height: 1;
  font-size: 15px;
  color: inherit;
}

.sidebar .logout-btn:hover {
  filter: brightness(1.05);
}

.sidebar:not(.open) .logo_name,
.sidebar:not(.open) .logo_subname,
.sidebar:not(.open) .balance-label,
.sidebar:not(.open) .plan-pill,
.sidebar:not(.open) .logout-label {
  display: none;
}

.sidebar:not(.open) .profile-balance {
  padding: 8px 5px;
  text-align: center;
}

.sidebar:not(.open) .balance-value {
  font-size: 17px;
}

.sidebar:not(.open) .logout-btn {
  margin-top: 7px;
  padding: 0;
  min-height: 32px;
}

.sidebar:not(.open) .logout-btn i {
  font-size: 16px;
}

/* Main */
.home-shell {
  margin-left: 106px;
  padding: 32px 28px 48px;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.28);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.14);
}

.hero-copy h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  margin-top: 11px;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 16px;
  max-width: 720px;
}

.hero-cta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta a {
  text-decoration: none;
}

.cta-primary,
.cta-secondary,
.cta-format {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.28);
}

.cta-secondary {
  color: #fff;
  background: linear-gradient(135deg, #fb923c 0%, #f43f5e 100%);
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.26);
}

.cta-format {
  color: #f8fbff;
  background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.24);
}

.cta-primary:hover,
.cta-secondary:hover,
.cta-format:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.hero-side {
  display: grid;
  gap: 12px;
}

.hero-side-card {
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.hero-side-card p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #66788f;
  font-weight: 700;
}

.hero-side-card h3 {
  margin-top: 7px;
  font-size: 30px;
  line-height: 1.1;
  color: #162336;
}

.hero-side-card span {
  margin-top: 5px;
  display: block;
  color: #607086;
  font-size: 13px;
  line-height: 1.4;
}

.hero-side-card--format {
  background:
    radial-gradient(180px 90px at 100% 0%, rgba(34, 211, 238, 0.2), transparent 70%),
    linear-gradient(145deg, #eef8ff 0%, #ffffff 72%);
  border-color: #bfdbfe;
}

.hero-side-card--format h3 {
  color: #0f4c81;
}

.feature-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #e7f8f5;
  font-size: 22px;
}

.feature-card h4 {
  margin-top: 12px;
  font-size: 20px;
}

.feature-card p {
  margin-top: 7px;
  color: #607086;
  line-height: 1.5;
  font-size: 14px;
}

.feature-card--highlight {
  background: linear-gradient(145deg, #fff4e5 0%, #ffffff 65%);
  border-color: #ffd4a6;
}

.feature-card--format {
  background:
    radial-gradient(260px 130px at 100% 0%, rgba(14, 165, 233, 0.16), transparent 72%),
    linear-gradient(145deg, #edf9ff 0%, #ffffff 66%);
  border-color: #bae6fd;
}

.feature-card--format .feature-icon {
  color: #1e40af;
  background: #dbeafe;
}

.inline-topup,
.inline-format {
  margin-top: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c 0%, #f43f5e 100%);
  border-radius: 10px;
  padding: 10px 12px;
}

.inline-format {
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.action-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.action-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.1);
  border-color: #c9d7e6;
}

.action-card i,
.action-card img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: #eaf4ff;
  padding: 10px;
  color: #1d4f91;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.action-card h4 {
  margin-top: 14px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.action-card p {
  margin-top: 8px;
  color: #607086;
  line-height: 1.56;
  font-size: 14px;
}

.action-card--primary {
  background: linear-gradient(140deg, #e6faf7 0%, #ffffff 65%);
  border-color: #bee6e0;
}

.action-card--format {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(260px 130px at 100% 0%, rgba(34, 211, 238, 0.22), transparent 70%),
    linear-gradient(140deg, #eef6ff 0%, #ffffff 64%);
  border-color: #bfdbfe;
}

.action-card--format::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.12));
}

.action-card--format i {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.action-kicker {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f4c81;
  background: rgba(14, 165, 233, 0.12);
}

.action-card--format h4 {
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .home-shell {
    margin-left: 96px;
    padding: 20px 16px 30px;
  }

  .sidebar {
    width: 72px;
  }

  .sidebar.open {
    width: 240px;
  }
}

@media (max-width: 620px) {
  .home-shell {
    margin-left: 84px;
    padding: 16px 12px 24px;
  }

  .hero-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .cta-primary,
  .cta-secondary,
  .cta-format {
    width: 100%;
    justify-content: center;
  }
}
