/* ANARCHY PROJECT - Mobile Optimization */

/* Touch targets */
@media (max-width: 768px) {
  button, a, .btn, .nav-item { min-height: 44px; }
  input, textarea, select { font-size: 16px !important; }
  body { overflow-x: hidden; }
  
  /* ===== HEADER / NAVBAR ===== */
  header, nav, .navbar, [class*="nav-header"], [class*="navbar"] {
    padding: 12px 16px !important;
  }
  
  /* Tailwind-based header - hide middle nav items */
  nav.flex > div.hidden,
  nav.flex > a.hidden,
  header div.hidden,
  .md\:flex:not(.flex),
  [class*="lg:flex"]:not(.flex),
  nav .gap-4:not(:first-child):not(:last-child),
  nav .gap-6:not(:first-child):not(:last-child),
  nav .gap-8:not(:first-child):not(:last-child) {
    display: none !important;
  }
  
  /* Main nav container */
  nav.fixed, nav.sticky, header.fixed, header.sticky,
  [class*="fixed"][class*="top-0"],
  [class*="sticky"][class*="top-0"] {
    padding: 8px 16px !important;
  }
  
  /* Nav flex container - show only logo & login */
  nav.flex, header .flex {
    justify-content: space-between !important;
  }
  
  /* Hide Policy, TOS and other middle links */
  nav a[href*="policy"], 
  nav a[href*="tos"],
  nav a[href*="terms"],
  header a[href*="policy"],
  header a[href*="tos"] {
    display: none !important;
  }
  
  /* Keep login visible */
  nav a[href*="login"], 
  header a[href*="login"],
  a.login-btn,
  [class*="login"] {
    display: flex !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
  }
  
  /* Logo styling */
  header .logo, nav .logo, [class*="brand"], 
  nav > a:first-child, header > div > a:first-child {
    font-size: 16px !important;
  }
  
  /* Language flag in nav - keep small */
  nav img[alt*="flag"], nav img[src*="flag"],
  nav .lang-flag, [class*="language"] img {
    width: 20px !important;
    height: 14px !important;
  }
  
  /* Language dropdown */
  [class*="language"] {
    position: relative !important;
  }
  
  /* Mobile Nav Toggle */
  .mobile-nav-toggle {
    display: flex !important;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-nav-toggle svg { width: 24px; height: 24px; }
  
  /* ===== CS2, TOS, POLICY pages only (pages with <header> tag) ===== */
  /* Hide Home link only, keep TOS/Policy visible */
  header nav.flex > a[href="index.html"],
  header .nav-link:not([href*="tos"]):not([href*="policy"]),
  header .navbar-links {
    display: none !important;
  }
  
  /* Keep these visible in header */
  header .nav-back-btn, 
  header .login-btn,
  header .language-switcher,
  header nav a[href*="login"] {
    display: flex !important;
  }
  
  /* Compact header on landing pages */
  header .max-w-7xl {
    padding: 0 16px !important;
  }
  
  header nav.flex {
    gap: 8px !important;
  }
  
  /* Hide brand text on small screens in header */
  header .nav-brand-text {
    display: none !important;
  }
  
  header .nav-logo,
  header img[alt*="Logo"] {
    width: 28px !important;
    height: 28px !important;
  }
  
  /* Login button styling */
  .login-btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
    white-space: nowrap;
    margin-right: 16px !important;
  }
  
  /* Show TOS/Privacy links on mobile - match login button */
  header nav a[href*="tos"],
  header nav a[href*="policy"] {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    opacity: 0.7;
    height: 38px !important;
    line-height: 1 !important;
  }
  
  /* Language switcher - only compact in header */
  header .language-switcher .lang-btn,
  header .lang-btn {
    padding: 6px 10px !important;
    gap: 4px !important;
  }
  
  header .language-switcher .lang-code,
  header .lang-code {
    display: none !important;
  }
  
  header .lang-flag {
    width: 20px !important;
    height: 14px !important;
  }
  
  header .lang-btn .chevron {
    width: 8px !important;
    height: 8px !important;
  }
  
  /* Language dropdown position */
  #language-dropdown {
    right: 0 !important;
    left: auto !important;
  }
  
  /* Mobile Nav Panel */
  .mobile-nav-panel {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }
  
  .mobile-nav-panel.active { transform: translateX(0); }
  
  .mobile-nav-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
  }
  
  .mobile-nav-panel a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
  
  /* Mobile overlay */
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
  }
  .mobile-overlay.active { display: block; }
  
  /* Hero adjustments */
  .hero, #hero { padding: 100px 16px 40px !important; min-height: auto !important; }
  .hero-content { padding: 0 !important; }
  .hero h1, .hero-title, .title-word { font-size: 2.5rem !important; line-height: 1.1 !important; }
  .hero-desc-new, .hero-description { font-size: 1rem !important; padding: 0 8px; }
  .hero-cta, .hero-buttons { flex-direction: column !important; width: 100%; gap: 12px !important; }
  .hero-cta a, .hero-buttons a { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column !important; gap: 16px !important; padding: 20px !important; }
  .stat-divider { width: 60px !important; height: 1px !important; }
  .hero-pills { gap: 8px !important; }
  .pill { padding: 8px 14px !important; font-size: 12px !important; }
  
  /* Cards */
  .glass-card, .card, .login-card { 
    padding: 24px 20px !important; 
    border-radius: 20px !important;
    margin: 0 8px;
  }
  
  /* Forms */
  .form-input, input, textarea { padding: 14px 16px !important; }
  .form-group { margin-bottom: 16px !important; }
  .submit-btn, button[type="submit"] { padding: 16px 24px !important; }
  
  /* Grids */
  .grid, .stats-grid, [class*="grid-cols"] { 
    grid-template-columns: 1fr !important; 
    gap: 16px !important; 
  }
  
  /* Social buttons */
  .social-buttons { flex-direction: column !important; }
  .social-btn { justify-content: center; }
  
  /* Back button */
  .back-home, .nav-back-btn { 
    top: 16px !important; 
    left: 16px !important; 
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
  
  /* Language switcher */
  .language-switcher { 
    position: fixed !important; 
    bottom: 16px !important; 
    right: 16px !important;
    top: auto !important;
  }
  
  /* Content sections */
  .content-section, .main-content section { padding: 60px 16px 40px !important; }
  .page-title { font-size: 2rem !important; }
  
  /* Modals */
  .modal { 
    max-width: calc(100% - 32px) !important; 
    margin: 16px !important;
    max-height: 90vh !important;
  }
  
  /* ===== FOOTER ===== */
  footer, #contact-footer, [class*="footer"] { 
    text-align: center !important;
    padding: 32px 16px !important;
  }
  
  /* Footer main container */
  footer > div, footer .max-w-7xl {
    padding: 0 16px !important;
  }
  
  /* Footer top section - stack vertically */
  footer .flex.flex-col.lg\:flex-row,
  footer > div > div:first-child,
  footer .lg\:flex-row {
    flex-direction: column !important;
    gap: 24px !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  /* Footer brand section */
  footer .flex.items-center.gap-4,
  footer .flex.items-center.gap-3 {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  
  /* Footer links row - wrap and center */
  footer .flex.flex-wrap,
  footer .flex.items-center.gap-8,
  footer .gap-8,
  footer .gap-6 {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 16px !important;
  }
  
  footer .flex.flex-wrap a,
  footer .flex.items-center.gap-8 a,
  footer .gap-8 a,
  footer .gap-6 a {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
  
  /* Footer social icons - center */
  footer .flex.items-center.gap-3 a,
  footer .flex.gap-4 a {
    padding: 8px !important;
  }
  
  /* Footer bottom bar */
  footer .pt-6.border-t,
  footer > div > div:last-child,
  footer .border-t {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
    padding-top: 16px !important;
  }
  
  /* Copyright text */
  footer .text-white\/30,
  footer .text-sm,
  footer span {
    font-size: 12px !important;
  }
  
  /* Back to top link */
  footer a[href="#hero"],
  footer a[href="#top"],
  [class*="back-to-top"] {
    justify-content: center !important;
    margin: 0 auto !important;
  }
  
  /* Footer description text */
  footer p {
    font-size: 13px !important;
    max-width: 100% !important;
  }
  
  /* Footer logo */
  footer img {
    max-width: 40px !important;
    height: auto !important;
  }
  
  /* Hide extra footer elements on very small screens */
  footer .hidden-mobile {
    display: none !important;
  }
  
  /* Navbar header adjustments */
  .nav-header { padding: 0 16px !important; }
  .nav-header > div { padding: 0 !important; }
  
  /* Product cards */
  .product-card, .sub-card { min-width: 100% !important; }
  
  /* Pricing */
  .price-options { grid-template-columns: 1fr !important; }
  
  /* Tables */
  table { display: block; overflow-x: auto; }
  
  /* Tabs scroll */
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap !important; }
  .tab { white-space: nowrap; flex-shrink: 0; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1, .hero-title, .title-word { font-size: 2rem !important; }
  .glass-card, .card, .login-card { padding: 20px 16px !important; }
  .login-title { font-size: 24px !important; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero, #hero { min-height: auto !important; padding: 80px 16px 20px !important; }
}

/* ===== DASHBOARD PAGES MOBILE STYLES ===== */
@media (max-width: 768px) {
  /* Page headers */
  .page-header { margin-bottom: 24px !important; }
  .page-title { font-size: 22px !important; }
  .page-subtitle { font-size: 13px !important; }

  /* Support page layout - stack columns */
  .support-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .support-sidebar {
    order: -1;
  }

  .support-sidebar .card:not(:first-child) {
    display: none;
  }

  .tickets-section .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .tickets-section .section-header .btn {
    width: 100%;
  }

  /* Tabs - horizontal scroll */
  .tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
    margin-bottom: 16px !important;
    gap: 6px !important;
  }

  .tab {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
  }

  .tab-count {
    min-width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
    margin-left: 6px !important;
  }

  /* Settings page */
  .settings-nav {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding-bottom: 12px !important;
    margin-bottom: 24px !important;
  }

  .settings-tab {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
  }

  .settings-card {
    border-radius: 14px !important;
  }

  .setting-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .setting-info {
    width: 100%;
  }

  .setting-input {
    width: 100% !important;
  }

  .avatar-upload {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }

  .theme-options {
    justify-content: center !important;
  }

  .accent-options {
    justify-content: center !important;
  }

  /* Market page */
  .filters {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .search-box {
    max-width: 100% !important;
    min-width: 100% !important;
  }

  .filter-select {
    width: 100% !important;
  }

  .filter-tags {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
  }

  .filter-tag {
    flex-shrink: 0 !important;
  }

  .items-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .item-card {
    border-radius: 14px !important;
  }

  .my-items-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .my-items-header .btn {
    width: 100%;
  }

  /* Publish form */
  #publishTab > div {
    max-width: 100% !important;
  }

  /* Referral page */
  .referral-card,
  .promo-card {
    padding: 20px !important;
  }

  .referral-stats {
    grid-template-columns: 1fr !important;
  }

  .copy-input-group {
    flex-direction: column !important;
  }

  .copy-input-group input {
    border-radius: 10px !important;
  }

  .copy-input-group button {
    border-radius: 10px !important;
    width: 100%;
  }

  /* Ticket cards */
  .ticket-card {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  .ticket-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .ticket-meta {
    flex-wrap: wrap !important;
    gap: 8px 16px !important;
  }

  /* Buttons full width */
  .btn-primary,
  .btn-ghost {
    padding: 12px 16px !important;
  }

  /* Quick links */
  .quick-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .quick-link {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 120px !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 8px !important;
  }

  .quick-link svg {
    display: none !important;
  }

  /* FAQ */
  .faq-item {
    padding: 14px !important;
  }

  .faq-question {
    font-size: 12px !important;
  }

  .faq-answer {
    font-size: 11px !important;
  }

  /* Priority options */
  .priority-options {
    gap: 8px !important;
  }

  .priority-option {
    padding: 12px 8px !important;
  }

  /* Toast positioning */
  .toast-container {
    top: 16px !important;
    right: 16px !important;
    left: 16px !important;
  }

  .toast {
    min-width: auto !important;
    width: 100% !important;
  }

  /* Content padding */
  .content {
    padding: 20px 16px !important;
  }

  /* Footer - Dashboard pages */
  footer {
    padding: 20px 16px !important;
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }
  
  /* Dashboard footer with inline styles */
  footer[style*="display: flex"] {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 16px !important;
    text-align: center !important;
  }
  
  footer[style*="display: flex"] span,
  footer[style*="display: flex"] a {
    font-size: 12px !important;
  }

  /* Stats grid on dashboard */
  .grid.grid-cols-3,
  .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 20px !important;
  }

  /* Subscription cards */
  .sub-card {
    min-width: 100% !important;
  }

  .sub-card-header {
    height: 120px !important;
  }

  .sub-card-body {
    padding: 16px !important;
  }

  /* Products grid */
  #productsGrid {
    grid-template-columns: 1fr !important;
  }

  /* Config viewer */
  .config-viewer {
    padding: 16px !important;
  }

  .config-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* Item detail page */
  .item-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .purchase-card {
    position: static !important;
  }

  .item-gallery {
    height: 200px !important;
  }

  .related-grid {
    grid-template-columns: 1fr !important;
  }

  /* Admin pages */
  .admin-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .admin-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 600px !important;
  }

  /* User card in sidebar footer */
  .user-card {
    padding: 12px !important;
  }

  .user-avatar {
    width: 36px !important;
    height: 36px !important;
  }

  .linked-accounts {
    display: none !important;
  }

  /* Welcome title */
  #welcomeTitle,
  .mb-10 h1 {
    font-size: 24px !important;
  }
}

/* Extra small phones */
@media (max-width: 380px) {
  .page-title { font-size: 20px !important; }
  
  .tab { padding: 6px 10px !important; font-size: 11px !important; }
  
  .settings-tab { padding: 6px 10px !important; font-size: 11px !important; }
  
  .stat-card { padding: 16px !important; }
  
  .stat-card .text-3xl { font-size: 24px !important; }
  
  .btn { padding: 10px 14px !important; font-size: 12px !important; }

  .priority-options {
    flex-direction: column !important;
  }

  .priority-option {
    width: 100% !important;
  }

  .quick-link {
    flex: 1 1 100% !important;
  }

  .admin-stats {
    grid-template-columns: 1fr !important;
  }
}

/* ===== TICKET & CHAT PAGE MOBILE ===== */
@media (max-width: 768px) {
  /* Ticket page */
  .ticket-header {
    padding: 16px !important;
  }

  .ticket-title {
    font-size: 18px !important;
  }

  .ticket-meta {
    flex-wrap: wrap !important;
    gap: 8px 16px !important;
  }

  /* Chat messages */
  .chat-container,
  .messages-container {
    padding: 16px !important;
  }

  .message {
    max-width: 90% !important;
    padding: 12px 14px !important;
  }

  .message-bubble {
    padding: 12px 14px !important;
    font-size: 13px !important;
  }

  .message-input-container {
    padding: 12px 16px !important;
  }

  .message-input {
    padding: 12px 14px !important;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 12px !important;
    flex-wrap: wrap !important;
  }

  /* Product page */
  .product-header {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .product-image {
    width: 100% !important;
    height: 180px !important;
  }

  .product-title {
    font-size: 22px !important;
  }

  .product-meta {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .product-actions {
    flex-direction: column !important;
  }

  .product-actions .btn {
    width: 100% !important;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Promo input */
  .promo-input {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .promo-input input {
    width: 100% !important;
  }

  .promo-input .btn {
    width: 100% !important;
  }

  /* Promo cards grid */
  .promo-grid {
    grid-template-columns: 1fr !important;
  }

  .promo-code {
    font-size: 14px !important;
    letter-spacing: 1px !important;
  }

  /* Chart container */
  .chart-container {
    height: 180px !important;
  }

  .chart-labels {
    font-size: 10px !important;
  }

  /* Referral link copy */
  .referral-link-box {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .referral-link-box input {
    width: 100% !important;
    font-size: 12px !important;
  }

  .referral-link-box .btn {
    width: 100% !important;
  }

  /* Stats row */
  .stats-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .stat-item {
    width: 100% !important;
    text-align: center !important;
  }

  /* Config card */
  .config-card {
    padding: 16px !important;
  }

  .config-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .config-actions .btn {
    width: 100% !important;
  }

  /* Config grid */
  .config-grid {
    grid-template-columns: 1fr !important;
  }

  /* Market item page */
  .market-item-header {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .market-item-image {
    width: 100% !important;
    height: 200px !important;
  }

  .market-item-actions {
    flex-direction: column !important;
  }

  .market-item-actions .btn {
    width: 100% !important;
  }

  /* Reviews section */
  .reviews-list {
    gap: 12px !important;
  }

  .review-card {
    padding: 16px !important;
  }

  .review-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* Balance modal / Top-up */
  .topup-options {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .topup-option {
    padding: 12px !important;
  }

  .payment-methods {
    grid-template-columns: 1fr !important;
  }

  /* Duration slider */
  .duration-marks {
    justify-content: space-between !important;
    padding: 0 !important;
  }

  .duration-marks span {
    font-size: 9px !important;
    padding: 2px 4px !important;
  }

  /* Total card */
  .total-card {
    padding: 16px !important;
  }

  .total-card-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .total-right {
    text-align: left !important;
  }

  .total-price {
    font-size: 28px !important;
  }
}

/* ===== LANDING & PRODUCT PAGES MOBILE ===== */
@media (max-width: 768px) {
  /* CS2/Product landing page */
  .features-section {
    padding: 60px 16px !important;
  }

  .feature-card {
    padding: 24px !important;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .pricing-section {
    padding: 60px 16px !important;
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .pricing-card {
    padding: 24px !important;
  }

  .pricing-card.featured {
    transform: none !important;
  }

  /* Screenshots gallery */
  .screenshots-section {
    padding: 60px 16px !important;
  }

  .screenshots-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .screenshot-item {
    height: 200px !important;
  }

  /* FAQ section */
  .faq-section {
    padding: 60px 16px !important;
  }

  .faq-grid {
    grid-template-columns: 1fr !important;
  }

  /* CTA section */
  .cta-section {
    padding: 60px 16px !important;
  }

  .cta-buttons {
    flex-direction: column !important;
    width: 100% !important;
  }

  .cta-buttons a,
  .cta-buttons button {
    width: 100% !important;
  }

  /* Policy & TOS pages */
  .policy-content,
  .tos-content,
  .legal-content {
    padding: 24px 16px !important;
  }

  .policy-section h2,
  .tos-section h2 {
    font-size: 20px !important;
  }

  .policy-section p,
  .tos-section p {
    font-size: 14px !important;
  }

  .legal-header {
    padding: 80px 16px 40px !important;
  }

  .legal-header h1 {
    font-size: 28px !important;
  }

  /* Video section */
  .video-section {
    padding: 40px 16px !important;
  }

  .video-container {
    border-radius: 16px !important;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  .testimonial-card {
    padding: 20px !important;
  }

  /* Status indicators */
  .status-section {
    padding: 60px 16px !important;
  }

  .status-grid {
    grid-template-columns: 1fr !important;
  }

  /* Comparison table */
  .comparison-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table table {
    min-width: 500px !important;
  }

  /* Purchase modal / checkout */
  .checkout-layout {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .checkout-summary {
    order: -1 !important;
  }

  .checkout-form {
    padding: 20px !important;
  }
}

/* ===== SAFE AREA FOR NOTCHED DEVICES ===== */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 768px) {
    .mobile-menu-toggle {
      top: calc(16px + env(safe-area-inset-top)) !important;
    }

    .sidebar {
      padding-top: env(safe-area-inset-top) !important;
    }

    .toast-container {
      top: calc(16px + env(safe-area-inset-top)) !important;
    }

    footer {
      padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }
  }
}
