/*  - Style: gradient-fluid-cool */
/* File: themes/ky-sport/style.css */

/* =============================================
   CSS VARIABLES & DESIGN SYSTEM
   ============================================= */
:root {
  --primary:        #3a7bff;
  --primary-dark:   #2450d6;
  --primary-light:  #6aa7ff;
  --accent:         #27c2b4;
  --bg-dark:        #eef4fb;
  --bg-card:        #f9fcff;
  --bg-card2:       #f1f7ff;
  --bg-header:      rgba(249,252,255,0.82);
  --border:         #d7e4f4;
  --border-gold:    rgba(58,123,255,0.26);
  --text-primary:   #10233f;
  --text-secondary: #49617f;
  --text-muted:     #7f95af;
  --radius:         22px;
  --radius-lg:      30px;
  --shadow:         0 18px 45px rgba(36,80,214,0.14);
  --shadow-gold:    0 22px 50px rgba(58,123,255,0.22);
  --transition:     0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --font-main:      'PingFang SC','Microsoft YaHei','Hiragino Sans GB',sans-serif;
  --header-h:       78px;
  --container:      1320px;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-main);
  background: linear-gradient(180deg, #edf4fb 0%, #f6fbff 48%, #eef5ff 100%);
  color: var(--text-primary);
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color var(--transition), opacity var(--transition), transform var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1 { font-size: clamp(2.35rem, 5.6vw, 4.2rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.16; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.28; letter-spacing: -0.01em; }
h4 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
p  { font-size: 1.04rem; color: var(--text-secondary); }

.gold { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Section heading style */
.section-title {
  text-align: center;
  margin-bottom: 64px;
}
.section-title h2 {
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--text-secondary); max-width: 680px; margin: 0 auto; }
.section-title .divider {
  width: 94px; height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--primary), rgba(106,167,255,0));
  margin: 22px auto 0;
  border-radius: 999px;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 104px 0; }
.section-dark  { background: linear-gradient(180deg, #eaf2fb 0%, #eef6ff 100%); }
.section-card  { background: linear-gradient(180deg, rgba(249,252,255,0.92) 0%, rgba(242,248,255,0.96) 100%); }
.section-card2 { background: linear-gradient(180deg, rgba(240,247,255,0.92) 0%, rgba(234,244,255,0.98) 100%); }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.grid-main-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 12px; }
.gap-4 { gap: 22px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary-dark));
  color: #f7fbff;
  box-shadow: 0 16px 34px rgba(39,194,180,0.22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #f7fbff;
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-gold);
}
.btn-outline {
  border: 1px solid rgba(58,123,255,0.22);
  color: var(--primary);
  background: rgba(249,252,255,0.55);
}
.btn-outline:hover {
  background: linear-gradient(135deg, rgba(58,123,255,0.12), rgba(39,194,180,0.12));
  color: var(--primary-dark);
  box-shadow: 0 14px 30px rgba(58,123,255,0.14);
}
.btn-accent {
  background: linear-gradient(135deg, #27c2b4, #1f9ae0);
  color: #f4fbff;
}
.btn-accent:hover {
  background: linear-gradient(135deg, #4ad7c7, #3a7bff);
  color: #f4fbff;
  transform: translateY(-3px);
}
.btn-lg { padding: 18px 44px; font-size: 1.12rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: linear-gradient(180deg, rgba(249,252,255,0.88) 0%, rgba(241,247,255,0.96) 100%);
  border: 1px solid rgba(215,228,244,0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 18px 40px rgba(29,66,138,0.08);
  backdrop-filter: blur(14px);
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 24px; }
.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}
.card-title a:hover { color: var(--primary); }
.card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card-excerpt {
  font-size: 0.93rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(215,228,244,0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Post list item */
.post-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(215,228,244,0.88);
}
.post-item:last-child { border-bottom: none; }
.post-item-thumb {
  width: 112px;
  height: 78px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
}
.post-item-body { flex: 1; min-width: 0; }
.post-item-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.post-item-title a:hover { color: var(--primary); }
.post-item-meta { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(215,228,244,0.72);
  height: var(--header-h);
  box-shadow: 0 12px 34px rgba(20,47,94,0.08);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
.site-logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Main nav */
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 18px;
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(58,123,255,0.12), rgba(39,194,180,0.1));
}
.main-nav .nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--primary-dark));
  color: #f6fbff !important;
  padding: 10px 22px;
  font-weight: 800;
  border-radius: 999px;
  margin-left: 14px;
  box-shadow: 0 14px 28px rgba(36,80,214,0.18);
}
.main-nav .nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #f6fbff !important;
}

/* Search bar in header */
.header-search { position: relative; }
.header-search input {
  background: rgba(241,247,255,0.78);
  border: 1px solid rgba(215,228,244,0.95);
  color: var(--text-primary);
  padding: 10px 44px 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  width: 220px;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
}
.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  width: 268px;
  box-shadow: 0 0 0 5px rgba(58,123,255,0.08);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.header-search button:hover { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 999px;
  transition: all var(--transition);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(237,244,251,0.96) 0%, rgba(230,242,255,0.97) 55%, rgba(242,250,255,0.96) 100%);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  backdrop-filter: blur(18px);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 14px 36px;
  border-radius: 22px;
}
.mobile-nav a:hover { color: var(--primary); background: rgba(58,123,255,0.08); }
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(39,194,180,0.2) 0%, rgba(39,194,180,0) 34%),
    radial-gradient(circle at 88% 14%, rgba(58,123,255,0.24) 0%, rgba(58,123,255,0) 36%),
    linear-gradient(135deg, #edf6ff 0%, #f4fbff 50%, #eaf3ff 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.12;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244,250,255,0.72) 0%, rgba(234,243,255,0.34) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(249,252,255,0.48);
  border: 1px solid rgba(58,123,255,0.18);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 24px rgba(36,80,214,0.08);
}
.hero h1 { color: var(--text-primary); margin-bottom: 24px; }
.hero h1 span { color: var(--primary); }
.hero p {
  color: var(--text-secondary);
  font-size: 1.16rem;
  margin-bottom: 40px;
  max-width: 600px;
}
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(215,228,244,0.9);
}
.hero-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
}
.hero-stat-label {
  font-size: 0.86rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Floating gold particle decoration */
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -130px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(58,123,255,0.14) 0%, rgba(39,194,180,0.08) 32%, transparent 72%);
  pointer-events: none;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  background: rgba(249,252,255,0.86);
  border-bottom: 1px solid rgba(215,228,244,0.78);
  padding: 16px 0;
  backdrop-filter: blur(12px);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.breadcrumb-list a { color: var(--text-muted); }
.breadcrumb-list a:hover { color: var(--primary); }
.breadcrumb-list .sep { color: #b5c8de; }
.breadcrumb-list .current { color: var(--text-primary); }

/* =============================================
   FEATURED POSTS (Home)
   ============================================= */
.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 28px;
}
.featured-main {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}
.featured-main .card-img { aspect-ratio: 4/3; }
.featured-main .card-title { font-size: 1.38rem; }
.featured-main .card-excerpt { -webkit-line-clamp: 4; }

/* Category label */
.cat-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #f6fbff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.cat-label-accent { background: linear-gradient(135deg, #27c2b4, #1f9ae0); color: #f6fbff; }

/* =============================================
   TICKER / BREAKING NEWS
   ============================================= */
.ticker-bar {
  background: linear-gradient(135deg, #1f9ae0, #2450d6);
  color: #f6fbff;
  padding: 12px 0;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(249,252,255,0.14);
}
.ticker-inner { display: flex; align-items: center; gap: 24px; }
.ticker-label {
  font-size: 0.8rem;
  font-weight: 900;
  background: rgba(249,252,255,0.16);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.08em;
}
.ticker-track {
  display: flex;
  gap: 56px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  font-size: 0.92rem;
}
.ticker-track a { color: #f7fbff; }
.ticker-track a:hover { text-decoration: underline; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   APP DOWNLOAD CARDS
   ============================================= */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.app-card {
  background: linear-gradient(180deg, rgba(249,252,255,0.82) 0%, rgba(239,247,255,0.94) 100%);
  border: 1px solid rgba(215,228,244,0.92);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(23,60,124,0.08);
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--primary), rgba(106,167,255,0));
}
.app-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
}
.app-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 22px;
}
.app-card h4 { color: var(--primary); font-size: 1.08rem; margin-bottom: 12px; }
.app-card p { font-size: 0.86rem; color: var(--text-secondary); }

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-content h2 { margin-bottom: 24px; }
.about-content p { color: var(--text-secondary); margin-bottom: 18px; }
.about-features { margin: 34px 0; display: flex; flex-direction: column; gap: 16px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-feature-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.16), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(94, 234, 212, 0.34);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
  backdrop-filter: blur(10px);
}
.about-feature-text h4 { color: var(--primary); font-size: 1.02rem; margin-bottom: 6px; letter-spacing: 0.02em; }
.about-feature-text p { font-size: 0.9rem; margin: 0; line-height: 1.65; }
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
}
.about-img-badge {
  position: absolute;
  bottom: -28px;
  right: -14px;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.96), rgba(79, 70, 229, 0.92));
  color: #f4faff;
  font-weight: 900;
  font-size: 1.3rem;
  width: 112px;
  height: 112px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  box-shadow: 0 22px 50px rgba(49, 46, 129, 0.28);
  backdrop-filter: blur(12px);
}

/* =============================================
   FAQ
   ============================================= */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.88), rgba(224, 242, 254, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(30, 41, 59, 0.08);
  backdrop-filter: blur(12px);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  user-select: none;
  letter-spacing: 0.01em;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.faq-question:hover { color: var(--primary); background: rgba(191, 219, 254, 0.2); }
.faq-question .faq-icon {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--primary);
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(207, 250, 254, 0.92), rgba(224, 231, 255, 0.86));
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.14);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg) scale(1.05); }
.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.95;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.faq-item.open .faq-answer { display: block; }

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}
.partner-card {
  background: linear-gradient(160deg, rgba(239, 246, 255, 0.92), rgba(224, 242, 254, 0.82));
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 26px;
  padding: 28px 20px;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  box-shadow: 0 18px 42px rgba(30, 64, 175, 0.08);
  backdrop-filter: blur(10px);
}
.partner-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 24px 48px rgba(14, 116, 144, 0.16); border-color: rgba(45, 212, 191, 0.42); }
.partner-icon { font-size: 2.3rem; margin-bottom: 14px; }
.partner-name { font-weight: 800; font-size: 1.12rem; color: var(--primary); margin-bottom: 8px; letter-spacing: 0.01em; }
.partner-desc { font-size: .86rem; color: var(--text-secondary); line-height: 1.65; }

/* Trust row */
.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid rgba(94, 234, 212, 0.28);
  padding-top: 34px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.9), rgba(224, 231, 255, 0.84));
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: .92rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

@media (max-width: 768px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(226, 232, 240, 0.74));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}
.widget-header {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.45), rgba(224, 231, 255, 0.28));
}
.widget-header h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.widget-header::before {
  content: '';
  display: block;
  width: 5px;
  height: 20px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 1), rgba(79, 70, 229, 1));
  border-radius: 999px;
}
.widget-body { padding: 20px 22px; }

/* Sidebar search */
.widget-search { display: flex; gap: 10px; }
.widget-search input {
  flex: 1;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--text-primary);
  padding: 11px 16px;
  border-radius: 20px;
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.widget-search input:focus { outline: none; border-color: rgba(56, 189, 248, 0.62); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14); }
.widget-search button {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.98), rgba(67, 56, 202, 0.94));
  color: #f3f8ff;
  padding: 11px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

/* Category list */
.cat-list { display: flex; flex-direction: column; }
.cat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.92rem;
}
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item a { color: var(--text-secondary); transition: color var(--transition), transform var(--transition); }
.cat-list-item a:hover { color: var(--primary); transform: translateX(3px); }
.cat-count {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(224, 231, 255, 0.9));
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Popular posts widget */
.popular-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.popular-item:last-child { border-bottom: none; }
.popular-rank {
  font-size: 1.35rem;
  font-weight: 900;
  color: rgba(148, 163, 184, 0.9);
  width: 28px;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 4px;
}
.popular-item:nth-child(1) .popular-rank { color: var(--primary); }
.popular-item:nth-child(2) .popular-rank { color: var(--text-secondary); }
.popular-item:nth-child(3) .popular-rank { color: #6477d6; }
.popular-img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
}
.popular-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.popular-title a:hover { color: var(--primary); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.9), rgba(224, 231, 255, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.tag-item:hover {
  border-color: rgba(45, 212, 191, 0.46);
  color: var(--primary);
  background: linear-gradient(135deg, rgba(207, 250, 254, 0.9), rgba(224, 231, 255, 0.94));
  transform: translateY(-2px);
}

/* =============================================
   SINGLE POST
   ============================================= */
.post-hero {
  position: relative;
  height: 440px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
}
.post-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.82) 0%, rgba(30, 41, 59, 0.34) 52%, rgba(14, 165, 233, 0.06) 100%);
}
.post-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 52px;
}
.post-header { padding: 48px 0 0; }
.post-title { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 18px; line-height: 1.12; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.post-meta span { display: flex; align-items: center; gap: 8px; }
.post-content {
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 2;
}
.post-content h2, .post-content h3, .post-content h4 {
  color: var(--text-primary);
  margin: 32px 0 14px;
  line-height: 1.2;
}
.post-content p { margin-bottom: 18px; }
.post-content img {
  max-width: 100%;
  border-radius: 24px;
  margin: 24px 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}
.post-content a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.post-content blockquote {
  border-left: 4px solid rgba(34, 211, 238, 0.9);
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.86), rgba(224, 231, 255, 0.72));
  border-radius: 0 24px 24px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-secondary);
  box-shadow: 0 14px 30px rgba(14, 116, 144, 0.08);
}
.post-content ul, .post-content ol {
  padding-left: 28px;
  margin: 18px 0;
  list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 10px; color: var(--text-secondary); }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.94rem;
}
.post-content th {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.92), rgba(224, 231, 255, 0.88));
  color: var(--primary);
  padding: 12px 16px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.post-content td {
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
}

/* Post tags */
.post-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.post-tags-label { font-size: 0.86rem; color: var(--text-muted); font-weight: 700; }

/* Share bar */
.share-bar {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.88), rgba(226, 232, 240, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0;
  flex-wrap: wrap;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(10px);
}
.share-label { font-size: 0.88rem; color: var(--text-muted); font-weight: 700; margin-right: 6px; }
.share-btn {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #effbff;
  display: inline-block;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12); filter: brightness(1.04); }
.share-wechat  { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.share-weibo   { background: linear-gradient(135deg, #6366f1, #4338ca); }
.share-twitter { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.share-copy    { background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(148, 163, 184, 0.22); color: var(--text-muted); cursor: pointer; }

/* Related posts */
.related-posts { margin-top: 56px; }
.related-posts h3 { margin-bottom: 24px; font-size: 1.18rem; border-left: 4px solid rgba(34, 211, 238, 0.88); padding-left: 14px; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
}
.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--text-secondary);
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}
.page-item:hover { border-color: rgba(34, 211, 238, 0.42); color: var(--primary); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08); }
.page-item.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.96), rgba(79, 70, 229, 0.92));
  border-color: rgba(79, 70, 229, 0.44);
  color: #eefcff;
}
.page-item.disabled { opacity: 0.4; pointer-events: none; }

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-header { padding: 48px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.2); margin-bottom: 42px; }
.search-form-large { display: flex; gap: 14px; max-width: 680px; }
.search-form-large input {
  flex: 1;
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--text-primary);
  padding: 16px 22px;
  border-radius: 22px;
  font-size: 1.04rem;
  backdrop-filter: blur(10px);
}
.search-form-large input:focus { outline: none; border-color: rgba(56, 189, 248, 0.62); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12); }
.search-results-count { font-size: 0.92rem; color: var(--text-muted); margin-top: 14px; }
.search-highlight { color: var(--primary); font-weight: 800; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: linear-gradient(180deg, #e6f3fb 0%, #dbeafe 52%, #e9e8ff 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.footer-brand-text { color: var(--text-secondary); font-size: 0.92rem; margin: 18px 0 22px; line-height: 1.85; }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}
.social-btn:hover { border-color: rgba(34, 211, 238, 0.42); color: var(--primary); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1); }
.footer-col h5 {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--text-primary); padding-left: 6px; }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { font-size: 0.83rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.83rem; color: var(--text-muted); }
.footer-legal a:hover { color: var(--primary); }
.footer-beian { margin-top: 8px; font-size: 13px;}
.footer-beian a { color: #6b7280; text-decoration: none; transition: color 0.3s ease;}
.footer-beian a:hover { color: #1e293b; text-decoration: underline;}

/* Disclaimer bar */
.disclaimer-bar {
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.72), rgba(224, 231, 255, 0.72));
  border-top: 1px solid rgba(94, 234, 212, 0.24);
  padding: 14px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

/* =============================================
   404 PAGE
   ============================================= */
.page-404 {
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-code {
  font-size: 8.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 0.95;
  opacity: 0.18;
  letter-spacing: -0.04em;
}
.error-title { font-size: 2rem; margin-bottom: 14px; }
.error-msg { color: var(--text-muted); margin-bottom: 32px; font-size: 1rem; }

/* =============================================
   STATIC PAGES (about, contact, privacy, terms)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.92) 0%, rgba(191, 219, 254, 0.74) 48%, rgba(224, 231, 255, 0.92) 100%);
  padding: 72px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

.content-box {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(226, 232, 240, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 30px;
  padding: 46px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}
.content-box h2 {
  font-size: 1.42rem;
  color: var(--primary);
  margin: 32px 0 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.content-box h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.content-box p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.95; }
.content-box ul { padding-left: 24px; list-style: disc; }
.content-box li { color: var(--text-secondary); margin-bottom: 10px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label { font-size: 0.92rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.02em; }
.form-group input,
.form-group textarea,
.form-group select {
  background: linear-gradient(180deg, rgba(233,244,255,0.82), rgba(214,231,247,0.76));
  border: 1px solid rgba(114,148,184,0.34);
  color: var(--text-primary);
  padding: 13px 18px;
  border-radius: 22px;
  font-size: 0.96rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
  box-shadow: 0 10px 28px rgba(24,55,94,0.08), inset 0 1px 0 rgba(255,255,255,0.36);
  backdrop-filter: blur(10px);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(61,189,224,0.88);
  box-shadow: 0 0 0 5px rgba(61,189,224,0.16), 0 14px 32px rgba(31,87,138,0.12);
  background: linear-gradient(180deg, rgba(239,248,255,0.94), rgba(221,237,252,0.88));
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { min-height: 164px; resize: vertical; }
.form-notice { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }

/* Contact info blocks */
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(235,246,255,0.78), rgba(214,228,244,0.7));
  border: 1px solid rgba(118,152,188,0.3);
  border-radius: 26px;
  box-shadow: 0 16px 34px rgba(22,59,96,0.08);
  backdrop-filter: blur(12px);
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(84,196,228,0.2), rgba(119,121,255,0.18));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.28rem;
  flex-shrink: 0;
  color: rgba(48,103,196,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.contact-info-item h5 { font-size: 0.92rem; color: var(--primary); margin-bottom: 6px; letter-spacing: 0.03em; text-transform: uppercase; }
.contact-info-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* =============================================
   CATEGORY PAGE
   ============================================= */
.category-header {
  background: linear-gradient(135deg, rgba(228,240,252,0.88), rgba(214,228,245,0.74) 52%, rgba(226,238,255,0.86));
  border-bottom: 1px solid rgba(121,153,188,0.28);
  padding: 42px 0;
  margin-bottom: 44px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.4);
}
.category-header h1 { font-size: 2.05rem; letter-spacing: -0.02em; }
.category-header p { color: var(--text-muted); font-size: 0.98rem; margin-top: 10px; line-height: 1.7; }

.sort-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(122,154,190,0.24);
  flex-wrap: wrap;
}
.sort-bar-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.sort-btn {
  font-size: 0.86rem;
  padding: 9px 18px;
  border: 1px solid rgba(118,153,189,0.28);
  border-radius: 999px;
  color: var(--text-muted);
  transition: all var(--transition);
  background: linear-gradient(180deg, rgba(236,246,255,0.72), rgba(218,232,248,0.64));
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}
.sort-btn:hover, .sort-btn.active {
  border-color: rgba(71,195,214,0.82);
  color: rgba(33,106,165,0.96);
  background: linear-gradient(135deg, rgba(112,229,222,0.18), rgba(122,135,255,0.2));
  box-shadow: 0 10px 24px rgba(33,92,144,0.12);
  transform: translateY(-1px);
}

/* =============================================
   LOADING / ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(87,214,228,0.34); }
  50%       { box-shadow: 0 0 0 10px rgba(87,214,228,0); }
}
.pulse { animation: pulse-gold 2.2s infinite; }

/* =============================================
   NOTICE / ALERT
   ============================================= */
.notice {
  padding: 17px 22px;
  border-radius: 24px;
  font-size: 0.92rem;
  border-left: 4px solid;
  margin-bottom: 24px;
  box-shadow: 0 14px 30px rgba(21,58,95,0.07);
  line-height: 1.6;
}
.notice-warning {
  background: linear-gradient(135deg, rgba(98,235,215,0.12), rgba(112,178,255,0.1));
  border-color: rgba(54,208,191,0.92);
  color: rgba(23,110,122,0.98);
}
.notice-info {
  background: linear-gradient(135deg, rgba(110,196,255,0.12), rgba(131,116,255,0.1));
  border-color: #4da6ff;
  color: #315fd3;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-4     { grid-template-columns: repeat(2, 1fr); }
  .app-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-main-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 42px; }
  .about-img-wrap { max-width: 540px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 58px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-main { grid-row: auto; grid-column: auto; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-search { display: none; }
  .hero { min-height: 520px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .post-hero { height: 268px; }
  .post-hero-content { padding: 24px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero-btns { flex-direction: column; }
  .share-bar { flex-direction: column; align-items: flex-start; }
  .content-box { padding: 28px 22px; }
  .about-img-badge { width: 82px; height: 82px; font-size: 0.96rem; bottom: -14px; right: -14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  h1 { font-size: 1.86rem; }
  .app-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .app-card { padding: 22px 14px; }
  .error-code { font-size: 5.6rem; }
  .search-form-large { flex-direction: column; }
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =============================================
   SELECTION
   ============================================= */
::selection { background: rgba(81,209,239,0.24); color: var(--text-primary); }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(68,218,218,0.96), rgba(84,105,255,0.96));
  color: #eef7ff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.26rem;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(29,78,128,0.2), inset 0 1px 0 rgba(255,255,255,0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  z-index: 500;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 42px rgba(29,78,128,0.24); }

/* =============================================
   style-supplement.css
   Bổ sung cho style.css — app.php / login.php / signup.php
   ============================================= */


/* =============================================
   APP PAGE — app.php
   ============================================= */

.app-hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  background: linear-gradient(135deg, #dfeeff 0%, #edf7ff 38%, #dde9ff 72%, #d7fff9 100%);
  text-align: center;
}
.app-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(82,206,234,0.16) 0%, rgba(120,110,255,0.08) 38%, transparent 68%);
  pointer-events: none;
}
.app-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(92,222,219,0.16), rgba(118,122,255,0.14));
  border: 1px solid rgba(88,171,226,0.36);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 26px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(26,82,130,0.08);
}
.app-hero h1 { color: var(--text-primary); margin-bottom: 18px; }
.app-hero h1 span { color: var(--primary); }
.app-hero-sub {
  color: var(--text-secondary);
  font-size: 1.12rem;
  max-width: 600px;
  margin: 0 auto 46px;
  line-height: 1.8;
}

/* Download buttons */
.dl-btns {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 34px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 0.98rem;
  transition: all 0.35s ease;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.dl-btn-android {
  background: linear-gradient(135deg, rgba(52,219,195,1), rgba(78,118,255,1));
  color: #eef8ff;
  border: none;
  box-shadow: 0 18px 34px rgba(28,94,136,0.18);
}
.dl-btn-android:hover {
  background: linear-gradient(135deg, rgba(103,241,220,1), rgba(99,145,255,1));
  color: #f4fbff;
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 42px rgba(24,92,141,0.22);
}
.dl-btn-ios {
  background: rgba(240,248,255,0.26);
  border: 1px solid rgba(82,166,220,0.44);
  color: var(--primary);
  backdrop-filter: blur(10px);
}
.dl-btn-ios:hover {
  background: linear-gradient(135deg, rgba(95,215,224,0.14), rgba(113,123,255,0.14));
  border-color: rgba(73,197,209,0.92);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28,89,136,0.12);
}
.dl-btn-icon { font-size: 1.62rem; line-height: 1; }
.dl-btn-text-wrap { text-align: left; }
.dl-btn-sub { font-size: 0.74rem; font-weight: 500; opacity: 0.84; display: block; }
.dl-btn-main { font-size: 1.04rem; font-weight: 800; display: block; }

/* Hero stats */
.app-hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(86,164,218,0.22);
  flex-wrap: wrap;
}
.app-hero-stat { text-align: center; }
.app-hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
}
.app-hero-stat-label { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* App mockup section */
.app-mockup-section {
  padding: 72px 0;
  background: linear-gradient(180deg, rgba(233,244,255,0.88), rgba(219,232,247,0.82));
  border-top: 1px solid rgba(115,151,188,0.24);
  border-bottom: 1px solid rgba(115,151,188,0.24);
}
.app-mockup-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.app-mockup-text h2 { margin-bottom: 18px; }
.app-mockup-text h2 span { color: var(--primary); }
.app-mockup-text p { color: var(--text-secondary); margin-bottom: 28px; font-size: 1rem; line-height: 1.8; }
.app-features-list { display: flex; flex-direction: column; gap: 18px; }
.app-feature-row { display: flex; align-items: flex-start; gap: 14px; }
.app-feature-check {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, rgba(83,214,225,0.18), rgba(115,121,255,0.16));
  border: 1px solid rgba(79,171,223,0.34);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}
.app-feature-row p { font-size: 0.92rem; color: var(--text-secondary); margin: 0; line-height: 1.65; }
.app-feature-row strong { color: var(--text-primary); }

/* Phone visual */
.phone-visual { display: flex; justify-content: center; gap: 30px; }
.phone-frame {
  width: 172px;
  background: linear-gradient(180deg, rgba(231,243,255,0.92), rgba(210,227,245,0.88));
  border: 2px solid rgba(110,146,184,0.3);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(18,56,96,0.18), 0 0 0 1px rgba(85,196,223,0.14);
  position: relative;
  backdrop-filter: blur(10px);
}
.phone-frame.large { width: 204px; }
.phone-notch {
  height: 28px;
  background: #d6e7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-notch::after {
  content: '';
  width: 64px;
  height: 11px;
  background: #b6cce3;
  border-radius: 0 0 12px 12px;
}
.phone-screen {
  background: linear-gradient(160deg, #f2f9ff 0%, #dfeffd 100%);
  padding: 14px;
  min-height: 308px;
}
.phone-screen-header {
  background: linear-gradient(135deg, rgba(52,209,196,1), rgba(81,108,255,1));
  border-radius: 12px;
  height: 32px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 10px 18px rgba(36,98,147,0.16);
}
.phone-screen-header span { font-size: 0.58rem; font-weight: 900; color: #f1f9ff; letter-spacing: 0.06em; }
.phone-screen-card {
  background: #f7fbff;
  border: 1px solid #cfe0f1;
  border-radius: 14px;
  height: 60px;
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 8px 18px rgba(32,78,123,0.06);
}
.phone-screen-img {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #d8eaff, #ecfbff);
  border-radius: 10px;
  flex-shrink: 0;
}
.phone-screen-lines { flex: 1; }
.phone-screen-line { height: 6px; border-radius: 999px; margin-bottom: 6px; }
.phone-screen-line.gold { background: rgba(77,204,226,0.66); width: 70%; }
.phone-screen-line.gray { background: #c7d8ea; width: 50%; }
.phone-bottom {
  height: 24px;
  background: #dcebf8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-home-bar { width: 56px; height: 5px; background: #bfd2e6; border-radius: 999px; }

/* QR section */
.qr-section { padding: 72px 0; background: var(--bg-dark); }
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.qr-card {
  background: linear-gradient(145deg, rgba(231,243,255,0.8), rgba(214,229,247,0.7));
  border: 1px solid rgba(118,152,188,0.28);
  border-radius: 28px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(20,59,94,0.08);
}
.qr-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(58,219,201,1), rgba(85,111,255,0.3), transparent);
}
.qr-card:hover {
  border-color: rgba(77,194,214,0.5);
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(27,82,129,0.14);
}
.qr-icon { font-size: 2.6rem; margin-bottom: 14px; color: rgba(56,110,196,0.94); }
.qr-card h4 { color: var(--primary); font-size: 1.06rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.qr-card p { font-size: 0.86rem; color: var(--text-secondary); margin-bottom: 22px; line-height: 1.65; }
.qr-box {
  width: 122px;
  height: 122px;
  background: #eff8ff;
  border: 1px solid rgba(120,154,189,0.24);
  border-radius: 20px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.qr-btn {
  display: inline-block;
  padding: 11px 26px;
  background: linear-gradient(135deg, rgba(55,213,195,1), rgba(83,112,255,1));
  color: #eef8ff;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 16px;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(30,90,138,0.16);
}
.qr-btn:hover {
  background: linear-gradient(135deg, rgba(100,239,220,1), rgba(96,143,255,1));
  color: #f6fcff;
  transform: translateY(-3px);
}

/* Install steps */
.install-section {
  padding: 72px 0;
  background: linear-gradient(180deg, rgba(232,243,255,0.88), rgba(217,231,247,0.84));
  border-top: 1px solid rgba(116,151,188,0.22);
}
.install-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 46px;
}
.install-tab {
  padding: 12px 30px;
  border-radius: 18px;
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid rgba(117,152,188,0.28);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  background: linear-gradient(180deg, rgba(238,247,255,0.72), rgba(220,233,248,0.64));
  letter-spacing: 0.02em;
}
.install-tab.active,
.install-tab:hover {
  background: linear-gradient(135deg, rgba(53,213,196,1), rgba(82,111,255,1));
  color: #eef8ff;
  border-color: rgba(69,192,208,0.9);
  box-shadow: 0 14px 30px rgba(26,90,139,0.16);
}
.install-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.install-step { text-align: center; position: relative; }
.install-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 32px;
  color: rgba(126,156,187,0.72);
  font-size: 1.28rem;
}
.step-num {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(90,220,224,0.16), rgba(121,123,255,0.14));
  border: 1px solid rgba(85,170,223,0.34);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.46rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0 auto 18px;
  box-shadow: 0 14px 28px rgba(25,79,126,0.08), inset 0 1px 0 rgba(255,255,255,0.34);
}
.install-step h4 { font-size: 0.98rem; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.01em; }
.install-step p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }

/* App FAQ */
.app-faq { padding: 84px 0; background: linear-gradient(180deg, #0b1324 0%, #101b33 100%); }


/* =============================================
   AUTH SHARED — login.php + signup.php
   ============================================= */

.auth-page { min-height: 100vh; display: flex; flex-direction: column; }

/* Left branding panel */
.auth-left {
  background: linear-gradient(152deg, #dff3ff 0%, #eef7ff 34%, #e1f4f4 68%, #e8e4ff 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px;
}
.auth-left::before {
  content: '';
  position: absolute;
  left: -100px;
  top: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(64, 156, 255, 0.12) 0%, transparent 68%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(116, 94, 255, 0.1) 0%, transparent 68%);
  pointer-events: none;
}
.auth-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 130, 199, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 130, 199, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.auth-left-content { position: relative; z-index: 2; }
.auth-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 56px; }
.auth-brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #29c7d8, #5d6cff);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #f6fbff;
  box-shadow: 0 14px 34px rgba(52, 122, 255, 0.24);
}
.auth-brand-name { font-size: 1.52rem; font-weight: 900; color: #1a4fd3; letter-spacing: 0.02em; }
.auth-headline {
  font-size: clamp(2.1rem, 3vw, 2.85rem);
  font-weight: 900;
  color: #13233f;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.auth-headline span { color: #385dff; }
.auth-sub {
  font-size: 1.05rem;
  color: #50627f;
  line-height: 1.85;
  margin-bottom: 56px;
  max-width: 500px;
}

/* Left panel feature list (login) */
.auth-features { display: flex; flex-direction: column; gap: 20px; }
.auth-feature { display: flex; align-items: center; gap: 16px; color: #4d607d; font-size: 0.98rem; font-weight: 600; }
.auth-feature-dot { width: 10px; height: 10px; background: linear-gradient(135deg, #23c0cf, #4670ff); border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 6px rgba(35, 192, 207, 0.12); }

/* Left panel benefits list (signup) */
.auth-benefits { display: flex; flex-direction: column; gap: 18px; }
.auth-benefit { display: flex; align-items: flex-start; gap: 14px; }
.auth-benefit-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(55, 202, 224, 0.16), rgba(100, 112, 255, 0.18));
  border: 1px solid rgba(85, 131, 255, 0.28);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(74, 109, 213, 0.1);
}
.auth-benefit-text h5 { font-size: 0.92rem; color: #2558db; margin-bottom: 4px; font-weight: 800; letter-spacing: 0.01em; }
.auth-benefit-text p { font-size: 0.82rem; color: #62718b; margin: 0; line-height: 1.6; }

/* Left panel deco footer */
.auth-left-deco { position: absolute; bottom: 40px; left: 78px; right: 78px; z-index: 2; }
.auth-deco-bar { height: 2px; background: linear-gradient(90deg, #2ac5d4, rgba(93, 108, 255, 0.3), transparent); margin-bottom: 16px; border-radius: 999px; }
.auth-deco-text { font-size: 0.78rem; color: #6d7d97; letter-spacing: 0.22em; text-transform: uppercase; }

/* Right form panel */
.auth-right {
  background: linear-gradient(180deg, #f4f9ff 0%, #edf4ff 100%);
  border-left: 1px solid rgba(111, 140, 191, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 46px;
  overflow-y: auto;
}
.auth-form-wrap { width: 100%; max-width: 390px; }
.auth-form-header { margin-bottom: 38px; }
.auth-form-header h2 { font-size: 1.82rem; font-weight: 900; color: #13233f; margin-bottom: 8px; letter-spacing: -0.02em; }
.auth-form-header p { font-size: 0.95rem; color: #6b7b95; line-height: 1.7; }

/* Form fields */
.auth-form { display: flex; flex-direction: column; gap: 22px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-label { font-size: 0.84rem; font-weight: 800; color: #50627c; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-input-wrap { position: relative; }
.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(124, 147, 196, 0.28);
  color: #13233f;
  padding: 15px 48px 15px 18px;
  border-radius: 22px;
  font-size: 0.98rem;
  transition: border-color 0.32s ease, box-shadow 0.32s ease, background 0.32s ease, transform 0.32s ease;
  font-family: var(--font-main);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 28px rgba(84, 112, 168, 0.08);
}
.auth-input:focus {
  outline: none;
  border-color: #4f72ff;
  background: rgba(240, 248, 255, 0.84);
  box-shadow: 0 0 0 4px rgba(79, 114, 255, 0.14), 0 16px 34px rgba(67, 109, 219, 0.14);
  transform: translateY(-1px);
}
.auth-input.valid  { border-color: #22c7a1; }
.auth-input.invalid { border-color: #7a86ff; }
.auth-input::placeholder { color: #91a0b8; }
.auth-input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.02rem;
  color: #8798b3;
  pointer-events: none;
}
.auth-input-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #8798b3;
  font-size: 0.88rem;
  padding: 0;
  transition: color 0.28s ease, transform 0.28s ease;
}
.auth-input-toggle:hover { color: #3e60ff; transform: translateY(-50%) scale(1.06); }
.auth-field-hint  { font-size: 0.76rem; color: #7f8da6; }
.auth-field-error { font-size: 0.76rem; color: #6d75ff; display: none; }

/* Remember / forgot row */
.auth-row { display: flex; align-items: center; justify-content: space-between; }
.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.84rem;
  color: #71819b;
}
.auth-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: #4264ff; cursor: pointer; }
.auth-forgot { font-size: 0.84rem; color: #355bff; text-decoration: none; transition: opacity 0.25s ease, color 0.25s ease; font-weight: 700; }
.auth-forgot:hover { opacity: 0.88; color: #1e46df; }

/* Submit button */
.auth-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #23c4d4, #4367ff 54%, #7257ff 100%);
  color: #f6fbff;
  font-weight: 900;
  font-size: 1.04rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  font-family: var(--font-main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(70, 103, 255, 0.28);
}
.auth-submit:hover {
  background: linear-gradient(135deg, #38d7df, #5574ff 56%, #8570ff 100%);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 22px 44px rgba(73, 104, 255, 0.34);
  filter: saturate(1.08);
}
.auth-submit:active { transform: translateY(0) scale(0.995); }

/* Divider */
.auth-divider { display: flex; align-items: center; gap: 16px; color: #8898b2; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(118, 140, 184, 0), rgba(118, 140, 184, 0.65), rgba(118, 140, 184, 0)); }

/* Social login buttons */
.auth-social { display: flex; gap: 12px; }
.auth-social-btn {
  flex: 1;
  padding: 13px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(119, 142, 189, 0.24);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #4d607c;
  cursor: pointer;
  transition: transform 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  font-family: var(--font-main);
  text-decoration: none;
  backdrop-filter: blur(12px);
}
.auth-social-btn:hover { border-color: rgba(78, 113, 255, 0.42); color: #3157ef; background: rgba(242, 248, 255, 0.82); box-shadow: 0 14px 28px rgba(86, 114, 170, 0.12); transform: translateY(-2px); }

/* Switch link */
.auth-switch { text-align: center; font-size: 0.88rem; color: #7a89a2; line-height: 1.7; }
.auth-switch a { color: #355bff; font-weight: 800; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; color: #2348dc; }

/* Notice / alert */
.auth-notice { padding: 13px 16px; border-radius: 18px; font-size: 0.84rem; display: none; backdrop-filter: blur(12px); }
.auth-notice.error  { background: rgba(111, 118, 255, 0.1);  border: 1px solid rgba(111, 118, 255, 0.26);  color: #4d59d1; display: block; }
.auth-notice.success { background: rgba(37, 199, 186, 0.1); border: 1px solid rgba(37, 199, 186, 0.28); color: #0f8b82; display: block; }


/* =============================================
   SIGNUP SPECIFIC — signup.php
   ============================================= */

/* Signup layout wider right panel */
.auth-main-signup { grid-template-columns: 1fr 560px; }
.auth-form-wrap-wide { max-width: 430px; }

/* Progress steps */
.reg-steps { display: flex; align-items: center; gap: 0; margin-bottom: 34px; }
.reg-step { flex: 1; text-align: center; position: relative; }
.reg-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  right: -50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(146, 162, 193, 0.38), rgba(146, 162, 193, 0.18));
  z-index: 0;
  border-radius: 999px;
}
.reg-step.done:not(:last-child)::after,
.reg-step.active:not(:last-child)::after { background: linear-gradient(90deg, #23c4d4, #4e6dff); }
.reg-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  border: 2px solid rgba(124, 146, 194, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 900;
  color: #8293ad;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  transition: all 0.34s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(95, 119, 166, 0.08);
}
.reg-step.active .reg-step-circle { background: linear-gradient(135deg, #23c4d4, #4e6dff); border-color: #4e6dff; color: #f6fbff; }
.reg-step.done  .reg-step-circle { background: rgba(35, 196, 212, 0.14); border-color: #36bcd7; color: #1f7fa8; }
.reg-step-label { font-size: 0.74rem; color: #8392aa; letter-spacing: 0.06em; text-transform: uppercase; }
.reg-step.active .reg-step-label { color: #355bff; font-weight: 800; }

/* Phone prefix row */
.phone-row { display: flex; gap: 10px; }
.phone-prefix {
  width: 92px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(124, 147, 196, 0.28);
  color: #4f607b;
  padding: 15px 12px;
  border-radius: 20px;
  font-size: 0.94rem;
  font-family: var(--font-main);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  backdrop-filter: blur(12px);
}
.phone-prefix:focus { outline: none; border-color: #4f72ff; box-shadow: 0 0 0 4px rgba(79, 114, 255, 0.12); background: rgba(243, 249, 255, 0.86); }
.phone-row .auth-input-wrap { flex: 1; }

/* Verify code row */
.verify-row { display: flex; gap: 12px; }
.verify-row .auth-input-wrap { flex: 1; }
.verify-btn {
  white-space: nowrap;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(124, 147, 196, 0.28);
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #3157ef;
  cursor: pointer;
  transition: all 0.28s ease;
  font-family: var(--font-main);
  backdrop-filter: blur(12px);
}
.verify-btn:hover:not(:disabled) { border-color: rgba(67, 103, 255, 0.48); background: rgba(238, 246, 255, 0.88); box-shadow: 0 12px 28px rgba(90, 118, 174, 0.1); transform: translateY(-1px); }
.verify-btn:disabled { opacity: 0.48; cursor: not-allowed; color: #8c9ab2; }

/* Password strength meter */
.pwd-strength { margin-top: 8px; }
.pwd-strength-bar { display: flex; gap: 6px; margin-bottom: 6px; }
.pwd-strength-seg { flex: 1; height: 4px; background: rgba(139, 154, 184, 0.28); border-radius: 999px; transition: background 0.3s ease, box-shadow 0.3s ease; }
.pwd-strength-label { font-size: 0.74rem; color: #8290a8; }

/* Agreement checkbox */
.auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #75849e;
  line-height: 1.7;
}
.auth-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4264ff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px;
}
.auth-agree a { color: #355bff; text-decoration: none; font-weight: 700; }
.auth-agree a:hover { text-decoration: underline; color: #2348dc; }


/* =============================================
   AUTH RESPONSIVE
   ============================================= */

/* Login: 2-col layout */
.auth-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 520px;
  min-height: calc(100vh - 72px);
}

@media (max-width: 900px) {
  .auth-main { grid-template-columns: 1fr; }
  .auth-left  { display: none; }
  .auth-right { border-left: none; min-height: calc(100vh - 60px); }
}

/* App page responsive */
@media (max-width: 768px) {
  .app-mockup-grid    { grid-template-columns: 1fr; gap: 42px; }
  .qr-grid            { grid-template-columns: 1fr; }
  .install-steps      { grid-template-columns: repeat(2, 1fr); }
  .install-step:nth-child(2)::after { display: none; }
  .app-hero-stats     { gap: 28px; }
  .phone-visual       { gap: 16px; }
  .phone-frame        { width: 136px; }
  .phone-frame.large  { width: 158px; }
  .auth-right         { padding: 34px 24px; }
}

@media (max-width: 480px) {
  .install-steps             { grid-template-columns: 1fr; }
  .install-step::after       { display: none !important; }
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, #0d1830 0%, #11264d 28%, #123a5f 64%, #0d1830 100%);
  border-top: 1px solid rgba(64, 201, 221, 0.3);
  border-bottom: 1px solid rgba(101, 111, 255, 0.28);
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 193, 217, 0.16) 0%, transparent 68%);
  pointer-events: none;
}
.cta-banner > .container { position: relative; z-index: 2; }
.cta-badge { margin-bottom: 24px; }
.cta-title { margin-bottom: 16px; }
.cta-desc {
  color: #a6bdd8;
  margin: 0 auto 34px;
  max-width: 620px;
  line-height: 1.8;
}
.cta-btns {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cta-banner { padding: 58px 0; }
  .cta-btns { flex-direction: column; align-items: stretch; max-width: 300px; margin: 0 auto; }
}