@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --primary: #0c4a6e;
  --primary-light: #155e8a;
  --primary-dark: #08354f;
  --secondary: #0ea5e9;
  --accent: #38bdf8;
  --bg: #f0f7ff;
  --bg-light: #f8fbff;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(12, 74, 110, 0.06);
  --shadow: 0 4px 20px rgba(12, 74, 110, 0.08);
  --shadow-lg: 0 8px 40px rgba(12, 74, 110, 0.12);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1360px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: var(--bg-light);
  color: var(--primary);
  border: none;
}

.btn-outline:hover {
  background: rgba(12, 74, 110, 1);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--primary);
  color: #fff;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--bg);
}

.nav-link.active {
  color: var(--primary);
  background: var(--bg);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  min-width: 520px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  margin-top: 23px;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -35px;
  left: 0;
  right: 0;
  height: 35px;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.nav-dropdown-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-dropdown-card:hover {
  background: var(--bg);
}

.nav-dropdown-card:hover .nav-dropdown-icon {
  background: var(--secondary);
  color: #fff;
}

.nav-dropdown-card.active {
  background: var(--bg);
}

.nav-dropdown-card.active .nav-dropdown-icon {
  background: var(--secondary);
  color: #fff;
}

.nav-dropdown-card.active .nav-dropdown-name {
  color: var(--secondary);
}

.nav-dropdown-card:hover .nav-dropdown-name {
  color: var(--secondary);
}

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-dropdown-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: var(--bg);
  color: var(--primary);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-phone strong {
  color: var(--primary);
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: var(--transition);
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle span::before {
  top: -7px;
}

.mobile-toggle span::after {
  top: 7px;
}

/* Active state - transform to X */
.mobile-toggle.active span {
  background: transparent;
}

.mobile-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ===== Stats Section ===== */
.stats {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== CTA Section ===== */
.cta {
  background: url('../img/cta-bg.png') center/cover no-repeat;
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 24px;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.cta .btn {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.4);
  color: var(--primary);
}

.cta .btn:hover {
  background: rgba(255, 255, 255, 1);
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  color: #fff;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo img {
  width: auto;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.footer-qr-item {
  text-align: center;
}

.footer-qr-item img {
  width: 100%;
  max-width: 80px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.footer-qr-item span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}


.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* ===== Footer Friends Links ===== */
.footer-friends {
  padding: 16px 0 8px;
  margin-top: 0;
}

.footer-friends-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-friends-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  font-weight: 400;
}

.footer-friends-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-friends-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  transition: var(--transition);
  white-space: nowrap;
}

.footer-friends-links a:hover {
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-contact strong {
  color: #fff;
  font-weight: 500;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Page Header ===== */
.page-header {
  padding: 140px 0 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(12, 74, 110, 0.12) 0%, transparent 60%);
}

.page-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.page-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Detail Page Layout ===== */
.detail-section {
  background: var(--bg);
  padding: 60px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.detail-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.detail-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.detail-list {
  margin-top: 24px;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.detail-list li i {
  color: var(--secondary);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-visual {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.detail-visual-icon {
  font-size: 120px;
  color: var(--secondary);
  opacity: 0.2;
}

.detail-visual-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

/* ===== Feature Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-item {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  color: var(--secondary);
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 100%;
  width: 100%;
  bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  transition: left 0.3s ease;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.mobile-menu .mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu .mobile-dropdown-toggle i {
  font-size: 12px;
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.mobile-menu .mobile-dropdown-toggle.active i {
  transform: rotate(180deg);
}

.mobile-menu .mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  margin: 0 0 0 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
}

.mobile-menu .mobile-dropdown-content.active {
  max-height: 500px;
  opacity: 1;
  margin: 0 0 8px 0;
}

.mobile-menu .mobile-dropdown-content a {
  font-size: 14px;
  padding: 10px 0;
  border-bottom: none;
  color: var(--text-secondary);
}

.mobile-menu .mobile-dropdown-content a:hover {
  color: var(--primary);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.slide-in-left.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.slide-in-right.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 5px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .nav {
    display: none;
  }
  
  .header-contact {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-item::after {
    display: none !important;
  }

  .cta {
    padding: 40px 24px;
    margin: 0 16px;
  }

  .cta-title {
    font-size: 24px;
  }

}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
  .stats {
    grid-template-columns: 1fr;
  }

}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  background: var(--border);
  color: var(--text);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.breadcrumb-separator {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* ===== Side Toolbar ===== */
.side-toolbar {
  position: fixed;
  right: 0;
  bottom: 160px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  background: var(--primary-light);
  border-radius: var(--radius) 0 0 var(--radius);
}

.side-toolbar-item:first-child {
  border-radius: var(--radius) 0 0 0;
}

.side-toolbar-item:last-child {
  border-radius: 0 0 0 var(--radius);
}

.side-toolbar-item {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  background: transparent;
}

.side-toolbar-item i {
  font-size: 18px;
  color: #fff;
}

.side-toolbar-item:hover {
  background: var(--primary-light);
}

.side-toolbar-item:active {
  background: var(--primary-dark);
}

/* Tooltip / Popup */
.side-toolbar-popup {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
  border: 1px solid var(--border);
  z-index: 1000;
}

.side-toolbar-popup::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 6px;
  border-color: transparent transparent transparent var(--card-bg);
}

.side-toolbar-item:hover .side-toolbar-popup,
.side-toolbar-item.active .side-toolbar-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-toolbar-popup.qr-popup {
  padding: 12px;
  text-align: center;
}

.side-toolbar-popup.qr-popup img {
  width: 140px;
  max-width: none;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
}

.side-toolbar-popup.qr-popup p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.side-toolbar-popup.phone-popup {
  padding: 12px 20px;
}

.side-toolbar-popup.phone-popup strong {
  font-size: 18px;
  color: var(--primary);
  display: block;
}

.side-toolbar-popup.phone-popup span {
  font-size: 12px;
  color: var(--text-light);
}

/* Mobile QR Modal */
.mobile-qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mobile-qr-modal.active {
  display: flex;
}

.mobile-qr-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  max-width: 280px;
  width: 100%;
  animation: modalPop 0.3s ease;
}

@keyframes modalPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.mobile-qr-content img {
  width: 180px;
  max-width: none;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
}

.mobile-qr-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.mobile-qr-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.mobile-qr-close {
  padding: 10px 24px;
  background: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-qr-close:hover {
  background: var(--border);
}
/* ===== Pagination ===== */
.page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page a:first-child:empty {
  display: none;
}


