:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --primary-light: #e74c3c;
  --accent: #f39c12;
  --accent-dark: #e67e22;
  --dark: #1a1a2e;
  --dark-secondary: #16213e;
  --dark-tertiary: #0f3460;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --text-muted: #8899a6;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --border: #e9ecef;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s ease;
  --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar .date-text {
  color: var(--accent);
  font-weight: 600;
}

.top-bar a {
  color: rgba(255,255,255,0.7);
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar .divider {
  color: rgba(255,255,255,0.3);
  margin: 0 10px;
}

/* ========== NAVBAR ========== */
.navbar {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
  padding: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1050;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff !important;
  padding: 14px 0;
}

.navbar-brand .brand-icon {
  color: var(--primary-light);
  margin-right: 8px;
  font-size: 1.5rem;
}

.navbar-brand .brand-accent {
  color: var(--accent);
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 18px 16px !important;
  position: relative;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 3px 3px 0 0;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-nav .nav-link.hot::before {
  content: 'HOT';
  position: absolute;
  top: 8px;
  right: 0;
  background: var(--primary-light);
  color: #fff;
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-actions .btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 20px;
}

.nav-actions .btn-outline-light {
  border-color: rgba(255,255,255,0.5);
}

.nav-actions .btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.nav-actions .btn-warning {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a2e;
  font-weight: 700;
}

.nav-actions .btn-warning:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #1a1a2e;
}

/* ========== HERO ========== */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-tertiary) 50%, var(--dark-secondary) 100%);
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(231,76,60,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(243,156,18,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), #f1c40f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-top: 16px;
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.hero-actions .btn {
  padding: 10px 28px;
  font-weight: 700;
  border-radius: 25px;
  font-size: 0.95rem;
}

.hero-stats {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px 22px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-heading);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 400px;
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.hero-card-item:last-child {
  border-bottom: none;
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-card-icon.rising { background: rgba(46,204,113,0.2); color: #2ecc71; }
.hero-card-icon.hot { background: rgba(231,76,60,0.2); color: #e74c3c; }
.hero-card-icon.watch { background: rgba(52,152,219,0.2); color: #3498db; }
.hero-card-icon.rank { background: rgba(243,156,18,0.2); color: #f39c12; }

.hero-card-value {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-card-value.up { color: #2ecc71; }
.hero-card-value.down { color: #e74c3c; }

/* ========== SECTION COMMON ========== */
.section-padding {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-label {
  display: inline-block;
  background: rgba(192,57,43,0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header.text-start .section-desc {
  margin: 0;
}

.divider-line {
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  margin: 12px auto 0;
}

.section-header.text-start .divider-line {
  margin: 12px 0 0;
}

.bg-alt {
  background: #fff;
}

/* ========== CARD BASE ========== */
.card-custom {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
}

.card-custom:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* ========== TODAY HIGHLIGHTS ========== */
.highlight-card {
  padding: 20px;
  cursor: pointer;
}

.highlight-card .card-tag {
  display: inline-block;
  background: var(--primary-light);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.highlight-card .card-tag.new { background: #2ecc71; }
.highlight-card .card-tag.urgent { background: #e74c3c; }

.highlight-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.highlight-card .card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.highlight-card .card-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.highlight-card .card-meta i {
  margin-right: 3px;
}

/* ========== DATA MODULE ========== */
.data-stat-card {
  padding: 24px;
  text-align: center;
  position: relative;
}

.data-stat-card .stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
}

.data-stat-card .stat-icon.blue { background: rgba(52,152,219,0.12); color: #3498db; }
.data-stat-card .stat-icon.green { background: rgba(46,204,113,0.12); color: #2ecc71; }
.data-stat-card .stat-icon.orange { background: rgba(243,156,18,0.12); color: #f39c12; }
.data-stat-card .stat-icon.purple { background: rgba(155,89,182,0.12); color: #9b59b6; }

.data-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  font-family: var(--font-heading);
}

.data-stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.data-stat-card .stat-change {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 6px;
}

.data-stat-card .stat-change.positive { color: #2ecc71; }
.data-stat-card .stat-change.negative { color: #e74c3c; }

/* ========== DATA CENTER TABLE ========== */
.table-custom {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-custom thead th {
  background: var(--dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 14px 16px;
  border: none;
  letter-spacing: 0.5px;
}

.table-custom tbody td {
  padding: 12px 16px;
  font-size: 0.88rem;
  vertical-align: middle;
  border-color: #f0f0f0;
}

.table-custom tbody tr:hover {
  background: #fafbfc;
}

.table-custom .badge-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-up { background: rgba(46,204,113,0.15); color: #27ae60; }
.badge-down { background: rgba(231,76,60,0.15); color: #c0392b; }
.badge-stable { background: rgba(149,165,166,0.15); color: #7f8c8d; }

/* ========== FORUM ========== */
.forum-card {
  padding: 20px;
}

.forum-card .user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.forum-card .user-info {
  font-size: 0.85rem;
}

.forum-card .user-name {
  font-weight: 700;
  color: var(--dark);
}

.forum-card .post-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.forum-card .post-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 10px 0 6px;
}

.forum-card .post-preview {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.forum-card .post-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.forum-card .post-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== GALLERY ========== */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 40px 16px 16px;
  color: #fff;
}

.gallery-card .gallery-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery-card .gallery-count {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* ========== EXPERT RANKING / HERO LIST ========== */
.expert-card {
  padding: 24px;
  text-align: center;
}

.expert-card .rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
}

.expert-card .rank-badge.gold { background: linear-gradient(135deg, #f39c12, #f1c40f); }
.expert-card .rank-badge.silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6); }
.expert-card .rank-badge.bronze { background: linear-gradient(135deg, #e67e22, #d35400); }

.expert-card .expert-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.expert-card .expert-title {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

.expert-card .expert-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.expert-card .expert-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.expert-card .expert-stat-val {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.expert-card .expert-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ========== REVIEWS ========== */
.review-card {
  padding: 22px;
}

.review-card .review-stars {
  color: #f39c12;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.review-card .review-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}

.review-card .reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.review-card .reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.review-card .reviewer-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
}

.review-card .reviewer-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ========== DOWNLOAD ========== */
.download-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-card .dl-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.download-card .dl-icon.pdf { background: rgba(231,76,60,0.12); color: #e74c3c; }
.download-card .dl-icon.xls { background: rgba(46,204,113,0.12); color: #27ae60; }
.download-card .dl-icon.zip { background: rgba(52,152,219,0.12); color: #2980b9; }
.download-card .dl-icon.doc { background: rgba(155,89,182,0.12); color: #8e44ad; }

.download-card .dl-info { flex: 1; }

.download-card .dl-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
}

.download-card .dl-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.download-card .btn-dl {
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
}

/* ========== FAQ / ACCORDION ========== */
.accordion-custom .accordion-button {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  box-shadow: none;
  padding: 16px 20px;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: rgba(192,57,43,0.03);
}

.accordion-custom .accordion-button:focus {
  box-shadow: none;
  border-color: #e0e0e0;
}

.accordion-custom .accordion-body {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.8;
  padding: 12px 20px 20px;
}

.accordion-custom .accordion-item {
  border: 1px solid var(--border);
  margin-bottom: 8px;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

/* ========== SYNC INFO ========== */
.sync-card {
  padding: 28px;
  text-align: center;
}

.sync-card .sync-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.sync-card .sync-icon.desktop { color: #3498db; }
.sync-card .sync-icon.tablet { color: #f39c12; }
.sync-card .sync-icon.mobile { color: #2ecc71; }
.sync-card .sync-icon.cloud { color: #9b59b6; }

.sync-card .sync-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

.sync-card .sync-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* ========== DATA INTEGRATION ========== */
.integration-timeline {
  position: relative;
  padding-left: 30px;
}

.integration-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 1px;
}

.integration-item {
  position: relative;
  margin-bottom: 28px;
}

.integration-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.integration-item .item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.integration-item .item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.cta-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-top: 8px;
}

.cta-section .btn-light {
  padding: 10px 28px;
  font-weight: 700;
  border-radius: 25px;
  color: var(--primary);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 50px 0 20px;
}

.footer h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  margin-top: 30px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  margin-right: 8px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}

/* ========== BREADCRUMB ========== */
.breadcrumb-bg {
  background: #f0f2f5;
  padding: 14px 0;
}

.breadcrumb-custom {
  margin: 0;
  font-size: 0.82rem;
}

.breadcrumb-custom a {
  color: var(--text-light);
}

.breadcrumb-custom a:hover {
  color: var(--primary);
}

.breadcrumb-custom .active {
  color: var(--text-muted);
}

/* ========== MODALS ========== */
.modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--dark), var(--dark-secondary));
  color: #fff;
  border-bottom: none;
  padding: 16px 24px;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 28px;
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 14px rgba(192,57,43,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========== SKELETON LOADING ========== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== ANIMATIONS ========== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== PULSE ========== */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243,156,18,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(243,156,18,0); }
}

.pulse-ring {
  animation: pulse 2s infinite;
}

/* ========== COUNTER ========== */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.count-animate {
  animation: countUp 0.5s ease forwards;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 12px 16px !important;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .nav-actions {
    margin-top: 10px;
    padding-bottom: 14px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-visual {
    margin-top: 30px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 10px;
  }

  .hero-stat {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hero-stat-num {
    font-size: 1.4rem;
  }

  .section-padding {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .cta-title {
    font-size: 1.4rem;
  }

  .cta-section .btn {
    margin-top: 16px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .data-stat-card .stat-value {
    font-size: 1.5rem;
  }

  .download-card {
    flex-direction: column;
    text-align: center;
  }

  .download-card .btn-dl {
    margin-top: 10px;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .navbar, .top-bar, .back-to-top, .cta-section, .footer-social {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
