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

 /* Prevent overscroll behavior that can close the app */
 html,
 body {
     overscroll-behavior: contain;
     overscroll-behavior-y: contain;
     -webkit-overflow-scrolling: touch;
 }

 :root {
     /* Core Colors */
     --primary-hue: 260;
     /* Deep Purple */
     --neon-purple: hsl(var(--primary-hue), 100%, 65%);
     --neon-purple-glow: hsl(var(--primary-hue), 100%, 75%);
     --neon-purple-dim: hsl(var(--primary-hue), 60%, 20%);

     --accent-green: #00fa9a;
     --accent-gold: #ffd700;
     --accent-red: #ff2a6d;
     /* Cyberpunk red */

     /* Backgrounds */
     --bg-dark: #030005;
     /* Almost black */
     --bg-card: rgba(20, 10, 30, 0.4);
     /* Glassy dark */
     --bg-card-hover: rgba(40, 20, 60, 0.6);

     /* Text */
     --text-main: #ffffff;
     --text-secondary: #a0a0b0;
     --text-muted: #606070;

     /* Borders & Effects */
     --glass-border: rgba(255, 255, 255, 0.08);
     --glass-shine: rgba(255, 255, 255, 0.03);
     --glow-spread: 20px;

     /* Spacing */
     --header-height: 80px;
     --bottom-nav-height: 80px;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
     -webkit-tap-highlight-color: transparent;
     font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 }

 body {
     background-color: var(--bg-dark);
     color: var(--text-main);
     overflow-x: hidden;
     min-height: 100vh;
     display: flex;
     flex-direction: column;
     position: relative;
     /* Static atmospheric background - removed animation to prevent lightening */
     background:
         radial-gradient(circle at 10% 20%, rgba(60, 20, 120, 0.18) 0%, transparent 50%),
         radial-gradient(circle at 90% 80%, rgba(0, 250, 154, 0.1) 0%, transparent 50%),
         radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.06) 0%, transparent 60%),
         var(--bg-dark);
 }

 /* Enhanced scrollbar styling */
 ::-webkit-scrollbar {
     width: 8px;
 }

 ::-webkit-scrollbar-track {
     background: rgba(10, 10, 15, 0.8);
     border-left: 1px solid rgba(255, 255, 255, 0.05);
 }

 ::-webkit-scrollbar-thumb {
     background: linear-gradient(180deg, rgba(138, 43, 226, 0.6), rgba(138, 43, 226, 0.4));
     border-radius: 4px;
     border: 1px solid rgba(138, 43, 226, 0.3);
     transition: background 0.3s ease;
 }

 ::-webkit-scrollbar-thumb:hover {
     background: linear-gradient(180deg, rgba(138, 43, 226, 0.8), rgba(138, 43, 226, 0.6));
 }

 /* ================= HEADER ================= */
 .app-header {
     height: var(--header-height);
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0 2rem;
     position: sticky;
     top: 0;
     z-index: 100;
     background: rgba(3, 0, 5, 0.85);
     backdrop-filter: blur(25px);
     -webkit-backdrop-filter: blur(25px);
     border-bottom: 1px solid var(--glass-border);
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
     transition: all 0.3s ease;
 }

 .logo-container {
     display: flex;
     justify-content: center;
     align-items: center;
     background: transparent;
     /* Explicitly ensure no background */
 }

 .logo {
     font-size: 1.5rem;
     font-weight: 900;
     letter-spacing: -0.5px;
     background: linear-gradient(135deg, #fff 0%, var(--neon-purple) 100%);
     background-clip: text;
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.4));
     animation: logoGlow 3s ease-in-out infinite;
 }

 .logo-image {
     height: 70px;
     width: auto;
     max-width: 280px;
     object-fit: contain;
     filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5));
     animation: logoGlow 3s ease-in-out infinite;
     border-radius: 8px;
     background: transparent;
     /* No background for perfect PNG transparency */
     image-rendering: -webkit-optimize-contrast;
     /* Crisp edges */
     image-rendering: crisp-edges;
     -webkit-backface-visibility: hidden;
     /* Smooth rendering */
     backface-visibility: hidden;
     transition: all 0.3s ease;
     cursor: pointer;
 }

 .logo-image:hover {
     transform: scale(1.05);
     filter: drop-shadow(0 0 30px rgba(138, 43, 226, 0.7));
 }

 @keyframes logoGlow {

     0%,
     100% {
         filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5));
     }

     50% {
         filter: drop-shadow(0 0 30px rgba(138, 43, 226, 0.7));
     }
 }

 .logo-subtitle {
     font-size: 0.6rem;
     color: var(--text-secondary);
     letter-spacing: 2px;
     text-transform: uppercase;
     font-weight: 600;
     margin-top: 2px;
 }

 .header-actions {
     display: flex;
     align-items: center;
     gap: 1rem;
 }

 .btn-connect-wallet {
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid var(--glass-border);
     color: var(--text-main);
     padding: 0.6rem 1.2rem;
     border-radius: 12px;
     font-size: 0.75rem;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
 }

 .btn-connect-wallet::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
     transform: translateX(-100%);
     transition: 0.6s;
 }

 .btn-connect-wallet:hover {
     border-color: var(--neon-purple);
     box-shadow:
         0 0 20px rgba(138, 43, 226, 0.4),
         0 4px 15px rgba(138, 43, 226, 0.2);
     background: rgba(138, 43, 226, 0.15);
     transform: translateY(-2px);
 }

 .btn-connect-wallet:hover::before {
     transform: translateX(100%);
 }

 .btn-connect-wallet:active {
     transform: translateY(0) scale(0.98);
     box-shadow:
         0 0 15px rgba(138, 43, 226, 0.3),
         0 2px 10px rgba(138, 43, 226, 0.15);
 }

 .btn-connect-wallet.full-width {
     width: 100%;
     margin-bottom: 1rem;
     text-align: center;
     padding: 0.8rem;
     font-size: 0.9rem;
 }

 .hamburger-menu {
     border: none;
     background: none;
     cursor: pointer;
     width: 30px;
     height: 30px;
     position: relative;
     display: flex;
     flex-direction: column;
     justify-content: center;
     gap: 6px;
     z-index: 250;
     /* Increased from 200 to be above menu overlay (150) */
 }

 .bar {
     width: 100%;
     height: 2px;
     background: white;
     border-radius: 4px;
     transition: all 0.3s ease;
 }

 .hamburger-menu.active .bar:nth-child(1) {
     transform: translateY(8px) rotate(45deg);
 }

 .hamburger-menu.active .bar:nth-child(2) {
     opacity: 0;
 }

 .hamburger-menu.active .bar:nth-child(3) {
     transform: translateY(-8px) rotate(-45deg);
 }


 /* ================= MENU OVERLAY ================= */
 .menu-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background:
         radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
         radial-gradient(circle at 80% 70%, rgba(0, 250, 154, 0.08) 0%, transparent 50%),
         rgba(5, 5, 8, 0.98);
     backdrop-filter: blur(20px);
     z-index: 150;
     padding: 5rem 2rem 2rem;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: flex-start;
     overflow-y: auto;
     -webkit-overflow-scrolling: touch;
     opacity: 0;
     pointer-events: none;
     transition: opacity 0.4s ease;
 }

 .menu-overlay.open {
     opacity: 1;
     pointer-events: all;
 }

 /* Close button inside menu */
 .menu-close-btn {
     position: absolute;
     top: 1.5rem;
     right: 1.5rem;
     border: none;
     background: none;
     cursor: pointer;
     width: 30px;
     height: 30px;
     display: flex;
     flex-direction: column;
     justify-content: center;
     gap: 6px;
     z-index: 160;
     opacity: 0;
     transition: opacity 0.3s ease 0.2s;
 }

 .menu-overlay.open .menu-close-btn {
     opacity: 1;
 }

 .menu-close-btn .bar {
     width: 100%;
     height: 2px;
     background: white;
     border-radius: 4px;
     transition: all 0.3s ease;
 }

 .menu-close-btn .bar:nth-child(1) {
     transform: translateY(8px) rotate(45deg);
 }

 .menu-close-btn .bar:nth-child(2) {
     opacity: 0;
 }

 .menu-close-btn .bar:nth-child(3) {
     transform: translateY(-8px) rotate(-45deg);
 }

 .menu-close-btn:hover .bar {
     background: var(--neon-purple);
 }

 /* Menu Header - Centered */
 .menu-header {
     max-width: 400px;
     width: 100%;
     margin-bottom: 1rem;
     /* Reduced from 3rem to 1rem */
     text-align: center;
 }

 /* ==================== WALLET DASHBOARD STYLES ==================== */

 /* Disconnected State */
 .wallet-disconnected {
     padding: 1.5rem 1.2rem;
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .wallet-icon-placeholder {
     width: 64px;
     height: 64px;
     margin: 0 auto 1.2rem;
     background: linear-gradient(160deg, rgba(138, 43, 226, 0.08), rgba(0, 120, 255, 0.05));
     border-radius: 18px;
     display: flex;
     align-items: center;
     justify-content: center;
     border: 1.5px solid rgba(138, 43, 226, 0.18);
     box-shadow:
         0 6px 20px rgba(0, 0, 0, 0.25),
         0 0 12px rgba(138, 43, 226, 0.08);
     transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
 }

 .wallet-icon-placeholder svg {
     color: rgba(138, 43, 226, 0.7);
     filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.25));
     width: 28px;
     height: 28px;
 }

 .wallet-icon-placeholder:hover {
     transform: scale(1.06);
     border-color: rgba(138, 43, 226, 0.3);
     box-shadow:
         0 8px 28px rgba(0, 0, 0, 0.3),
         0 0 20px rgba(138, 43, 226, 0.12);
 }

 .wallet-status-title {
     font-size: 1.15rem;
     font-weight: 700;
     margin-bottom: 0.5rem;
     color: rgba(255, 255, 255, 0.9);
     letter-spacing: -0.3px;
 }

 .wallet-status-description {
     font-size: 0.82rem;
     color: rgba(255, 255, 255, 0.4);
     margin-bottom: 1.6rem;
     line-height: 1.6;
     max-width: 260px;
 }

 /* Connected State */
 .wallet-connected {
     padding: 0.8rem;
 }

 .wallet-card {
     position: relative;
     background: linear-gradient(160deg, rgba(20, 20, 40, 0.95), rgba(12, 12, 28, 0.98));
     border: 1px solid rgba(138, 43, 226, 0.18);
     border-radius: 22px;
     padding: 1.6rem;
     margin-bottom: 1.2rem;
     backdrop-filter: blur(20px);
     box-shadow:
         0 10px 40px rgba(0, 0, 0, 0.45),
         0 0 0 1px rgba(138, 43, 226, 0.06),
         inset 0 1px 0 rgba(255, 255, 255, 0.06),
         inset 0 -1px 0 rgba(0, 0, 0, 0.1);
     transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
     overflow: hidden;
 }

 .wallet-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 1px;
     background: linear-gradient(90deg,
             transparent,
             rgba(138, 43, 226, 0.4) 20%,
             rgba(0, 150, 255, 0.3) 50%,
             rgba(138, 43, 226, 0.4) 80%,
             transparent);
 }

 .wallet-card:hover {
     border-color: rgba(138, 43, 226, 0.28);
     box-shadow:
         0 16px 56px rgba(0, 0, 0, 0.5),
         0 0 0 1px rgba(138, 43, 226, 0.1),
         0 0 40px rgba(138, 43, 226, 0.06),
         inset 0 1px 0 rgba(255, 255, 255, 0.08);
     transform: translateY(-1px);
 }

 /* Identity Row */
 .wallet-identity-row {
     display: flex;
     align-items: center;
     gap: 1.1rem;
     margin-bottom: 1.4rem;
     padding-bottom: 1.4rem;
     border-bottom: 1px solid rgba(138, 43, 226, 0.08);
 }

 .wallet-identicon {
     width: 48px;
     height: 48px;
     border-radius: 14px;
     overflow: hidden;
     flex-shrink: 0;
     border: 2px solid rgba(138, 43, 226, 0.25);
     box-shadow:
         0 4px 12px rgba(0, 0, 0, 0.35),
         0 0 16px rgba(138, 43, 226, 0.12);
     transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
     background: linear-gradient(145deg, #1a1a2e, #252548);
 }

 .wallet-identicon:hover {
     transform: scale(1.08);
     border-color: rgba(138, 43, 226, 0.45);
     box-shadow:
         0 6px 20px rgba(0, 0, 0, 0.45),
         0 0 24px rgba(138, 43, 226, 0.2);
 }

 .wallet-identicon canvas {
     width: 100%;
     height: 100%;
     display: block;
     border-radius: 12px;
 }

 .wallet-address-info {
     flex: 1;
     display: flex;
     flex-direction: column;
     gap: 0.6rem;
     min-width: 0;
 }

 .wallet-address-row {
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .wallet-address {
     font-size: 0.95rem;
     font-weight: 600;
     font-family: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace;
     color: rgba(255, 255, 255, 0.88);
     letter-spacing: 0.4px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .wallet-status-indicator {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 20px;
     height: 20px;
     background: rgba(0, 250, 154, 0.12);
     border: 1px solid rgba(0, 250, 154, 0.25);
     border-radius: 50%;
     color: #00fa9a;
     font-size: 0.65rem;
     font-weight: 700;
     filter: none;
     animation: statusPulse 3s ease-in-out infinite;
     flex-shrink: 0;
     box-shadow: 0 0 10px rgba(0, 250, 154, 0.15);
 }

 @keyframes statusPulse {

     0%,
     100% {
         box-shadow: 0 0 10px rgba(0, 250, 154, 0.15);
     }

     50% {
         box-shadow: 0 0 18px rgba(0, 250, 154, 0.3);
     }
 }

 .btn-copy-address {
     display: inline-flex;
     align-items: center;
     gap: 0.4rem;
     background: rgba(138, 43, 226, 0.08);
     border: 1px solid rgba(138, 43, 226, 0.15);
     color: rgba(255, 255, 255, 0.55);
     padding: 0.35rem 0.75rem;
     border-radius: 8px;
     font-size: 0.72rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
     align-self: flex-start;
     letter-spacing: 0.3px;
     text-transform: uppercase;
 }

 .btn-copy-address:hover {
     background: rgba(138, 43, 226, 0.15);
     border-color: rgba(138, 43, 226, 0.35);
     color: rgba(255, 255, 255, 0.85);
     transform: translateY(-1px);
     box-shadow: 0 3px 10px rgba(138, 43, 226, 0.15);
 }

 .btn-copy-address:active {
     transform: translateY(0);
     background: rgba(138, 43, 226, 0.2);
 }

 .btn-copy-address svg {
     flex-shrink: 0;
     opacity: 0.7;
 }

 /* Balance Section */
 .wallet-balance-section {
     position: relative;
     background: linear-gradient(160deg, rgba(138, 43, 226, 0.08), rgba(0, 120, 255, 0.05));
     border: 1px solid rgba(138, 43, 226, 0.12);
     border-radius: 16px;
     padding: 1.3rem 1.5rem;
     text-align: center;
     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
     overflow: hidden;
 }

 .wallet-balance-section::after {
     content: '';
     position: absolute;
     top: -50%;
     right: -30%;
     width: 120px;
     height: 120px;
     background: radial-gradient(circle, rgba(138, 43, 226, 0.06), transparent 70%);
     pointer-events: none;
 }

 .wallet-balance-section .balance-label {
     font-size: 0.68rem;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 1.6px;
     color: rgba(255, 255, 255, 0.4);
     margin-bottom: 0.5rem;
 }

 .balance-value {
     font-size: 1.7rem;
     font-weight: 700;
     color: #fff;
     font-family: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace;
     text-shadow: 0 0 30px rgba(138, 43, 226, 0.35);
     letter-spacing: -0.3px;
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(200, 180, 255, 0.9));
     background-clip: text;
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
 }

 /* Disconnect Button */
 .btn-disconnect-wallet {
     width: 100%;
     background: transparent;
     border: 1px solid rgba(255, 255, 255, 0.06);
     color: rgba(255, 255, 255, 0.35);
     padding: 0.85rem;
     border-radius: 12px;
     font-size: 0.82rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     letter-spacing: 0.2px;
 }

 .btn-disconnect-wallet:hover {
     background: rgba(255, 60, 100, 0.06);
     border-color: rgba(255, 60, 100, 0.2);
     color: rgba(255, 100, 130, 0.8);
     box-shadow: none;
     transform: none;
 }

 .btn-disconnect-wallet:active {
     background: rgba(255, 60, 100, 0.1);
 }

 .btn-disconnect-wallet svg {
     flex-shrink: 0;
     opacity: 0.5;
 }

 .menu-divider {
     width: 100%;
     max-width: 400px;
     height: 1px;
     background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
     margin: 1rem 0;
     /* Reduced from 2rem to 1rem */
 }

 .menu-items {
     display: flex;
     flex-direction: column;
     gap: 1rem;
     width: 100%;
     max-width: 400px;
 }

 .menu-link {
     font-size: 1.3rem;
     font-weight: 700;
     color: var(--text-secondary);
     text-decoration: none;
     transition: all 0.3s ease;
     padding: 1rem 1.5rem;
     border-radius: 16px;
     background: rgba(255, 255, 255, 0.02);
     border: 1px solid rgba(255, 255, 255, 0.05);
     text-align: center;
     position: relative;
     overflow: hidden;
 }

 .menu-link::before {
     content: '';
     position: absolute;
     left: 0;
     top: 0;
     bottom: 0;
     width: 0;
     background: linear-gradient(90deg, var(--neon-purple), transparent);
     transition: width 0.3s ease;
 }

 .menu-link:hover {
     color: #fff;
     background: rgba(255, 255, 255, 0.05);
     border-color: var(--neon-purple);
     transform: translateX(0);
     box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
 }

 .menu-link:hover::before {
     width: 4px;
 }

 /* ================= MAIN CONTENT ================= */
 .main-content {
     flex: 1;
     padding: 1.5rem;
     padding-bottom: calc(var(--bottom-nav-height) + 6rem);
     max-width: 1200px;
     margin: 0 auto;
     width: 100%;
     overflow-y: visible;
 }

 /* HERO SECTION */
 .hero-card.premium-hero {
     background: linear-gradient(145deg, #0b0514 0%, #170928 100%);
     border-radius: 20px;
     padding: 1.25rem 1.25rem 1rem;
     position: relative;
     overflow: hidden;
     border: 1px solid rgba(255,255,255,0.06);
     box-shadow: 
         inset 0 1px 0 rgba(255,255,255,0.08),
         0 20px 40px rgba(0,0,0,0.5), 
         0 0 35px rgba(138,43,226,0.12);
     margin-bottom: 1.25rem;
     display: flex;
     flex-direction: column;
     gap: 1.2rem;
     transition: all 0.4s ease;
 }

 .hero-card.premium-hero:hover {
     box-shadow: 
         inset 0 1px 0 rgba(255,255,255,0.1),
         0 25px 50px rgba(0,0,0,0.6), 
         0 0 45px rgba(138,43,226,0.2);
     transform: translateY(-2px);
 }

 .premium-hero-glow {
     position: absolute;
     top: -60%;
     right: -30%;
     width: 300px;
     height: 300px;
     background: radial-gradient(circle, rgba(138,43,226,0.25) 0%, transparent 60%);
     border-radius: 50%;
     pointer-events: none;
     z-index: 1;
     animation: pulseGlow 5s ease-in-out infinite alternate;
 }

 @keyframes pulseGlow {
     0% { transform: scale(0.9) opacity(0.8); }
     100% { transform: scale(1.1) opacity(1); }
 }

 .hero-content {
     position: relative;
     z-index: 2;
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
 }

 .hero-text {
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     gap: 0.5rem;
 }

 .hero-badge {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     padding: 0.25rem 0.5rem;
     background: rgba(52, 211, 153, 0.1);
     border: 1px solid rgba(52, 211, 153, 0.25);
     border-radius: 12px;
     color: #34d399;
     font-size: 0.6rem;
     font-weight: 800;
     letter-spacing: 0.8px;
     text-transform: uppercase;
     box-shadow: 0 0 15px rgba(52, 211, 153, 0.1);
 }

 .live-dot {
     width: 5px;
     height: 5px;
     background: #34d399;
     border-radius: 50%;
     box-shadow: 0 0 8px currentColor;
     animation: blink 1.5s infinite;
 }

 @keyframes blink {
     0%, 100% { opacity: 1; transform: scale(1); }
     50% { opacity: 0.5; transform: scale(0.8); }
 }

 .hero-title {
     font-size: 1.45rem;
     line-height: 1.15;
     font-weight: 800;
     color: #fff;
     margin: 0;
     letter-spacing: -0.5px;
 }

 .hero-gradient-text {
     background: linear-gradient(135deg, #ffd700, #ffeaa7, #ff8c00);
     background-clip: text;
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     text-shadow: 0 0 25px rgba(255,215,0,0.3);
 }

 .hero-subtitle {
     color: rgba(255,255,255,0.6);
     font-size: 0.75rem;
     font-weight: 600;
     letter-spacing: 0.2px;
     margin: 0;
     margin-top: 0.25rem;
 }
 .hero-prize {
     color: #fff;
     font-weight: 700;
     font-size: 0.9rem;
     text-shadow: 0 0 10px rgba(255,255,255,0.2);
 }

 /* CSS 3D Crystal */
 .hero-visual {
     position: relative;
     z-index: 2;
     padding-right: 0.2rem;
     padding-top: 0.5rem;
 }

 .crypto-crystal {
     width: 60px;
     height: 60px;
     background: linear-gradient(135deg, rgba(138,43,226,0.7), rgba(80,20,180,0.95));
     border-radius: 16px;
     transform: rotate(15deg);
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 
         inset -2px -2px 10px rgba(0,0,0,0.5),
         inset 2px 2px 12px rgba(255,255,255,0.3),
         0 15px 30px rgba(138,43,226,0.35),
         0 0 35px rgba(138,43,226,0.25);
     animation: crystalFloat 4s ease-in-out infinite;
     position: relative;
 }

 .crypto-crystal::before {
     content: '';
     position: absolute;
     inset: 2px;
     border-radius: 14px;
     border: 1px solid rgba(255,255,255,0.25);
     background: linear-gradient(to bottom right, rgba(255,255,255,0.15), transparent);
     pointer-events: none;
 }

 .crystal-logo {
     color: #fff;
     font-weight: 900;
     font-size: 1rem;
     transform: rotate(-15deg);
     text-shadow: 0 2px 8px rgba(255,255,255,0.6);
     letter-spacing: -0.5px;
     z-index: 2;
 }

 @keyframes crystalFloat {
     0%, 100% { transform: translateY(0) rotate(15deg) scale(1); }
     50% { transform: translateY(-8px) rotate(12deg) scale(1.05); }
 }

 /* Hero Footer CTA */
 .hero-footer {
     display: flex;
     justify-content: space-between;
     align-items: center;
     position: relative;
     z-index: 2;
     padding-top: 0.85rem;
     border-top: 1px solid rgba(255,255,255,0.06);
 }

 .hero-timer {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 0.75rem;
     color: rgba(255,255,255,0.65);
     font-family: 'SF Mono', 'Consolas', monospace;
     font-weight: 600;
     line-height: 1;
 }

 .hero-timer i {
     color: var(--neon-purple);
     font-size: 0.85rem;
     opacity: 0.8;
 }

 .hero-cta-btn {
     display: flex;
     align-items: center;
     gap: 5px;
     background: rgba(138,43,226,0.15);
     border: 1px solid rgba(138,43,226,0.35);
     color: #fff;
     padding: 0.4rem 0.8rem;
     border-radius: 10px;
     font-size: 0.75rem;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.2s ease;
     box-shadow: 0 4px 12px rgba(138,43,226,0.15);
 }

 .hero-cta-btn:hover {
     background: rgba(138,43,226,0.25);
     border-color: rgba(138,43,226,0.5);
     transform: translateX(2px);
     box-shadow: 0 6px 16px rgba(138,43,226,0.25);
 }

 /* TICKER */
 .ticker-container {
     width: 100%;
     overflow: hidden;
     margin-top: 0;
     margin-bottom: 1.5rem;
     position: relative;
     padding: 0.5rem 0;
 }

 .ticker-container::before,
 .ticker-container::after {
     content: '';
     position: absolute;
     top: 0;
     bottom: 0;
     width: 80px;
     z-index: 2;
     pointer-events: none;
 }

 .ticker-container::before {
     left: 0;
     background: linear-gradient(to right, var(--bg-dark), transparent);
 }

 .ticker-container::after {
     right: 0;
     background: linear-gradient(to left, var(--bg-dark), transparent);
 }

 .ticker-track {
     display: flex;
     gap: 1rem;
     width: max-content;
     animation: scroll 30s linear infinite;
 }

 .ticker-track:hover {
     animation-play-state: paused;
 }

 .ticker-item {
     background: rgba(255, 255, 255, 0.04);
     border: 1px solid var(--glass-border);
     padding: 0.8rem 1.2rem;
     border-radius: 14px;
     display: flex;
     align-items: center;
     gap: 0.8rem;
     min-width: 140px;
     backdrop-filter: blur(8px);
     transition: all 0.3s ease;
 }

 .ticker-item:hover {
     background: rgba(255, 255, 255, 0.08);
     border-color: rgba(255, 255, 255, 0.15);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
 }

 .token-icon {
     width: 26px;
     height: 26px;
     border-radius: 50%;
     object-fit: contain;
     background: transparent;
     padding: 0;
     border: none;
     filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
 }

 .token-info {
     display: flex;
     flex-direction: column;
 }

 .token-name {
     font-weight: 700;
     font-size: 0.85rem;
 }

 .token-price {
     font-size: 0.75rem;
     color: var(--text-secondary);
     font-variant-numeric: tabular-nums;
 }

 .token-change {
     margin-left: auto;
     font-size: 0.75rem;
     font-weight: 700;
     font-variant-numeric: tabular-nums;
 }

 .positive {
     color: var(--accent-green);
     text-shadow: 0 0 10px rgba(0, 250, 154, 0.3);
 }

 .negative {
     color: var(--accent-red);
     text-shadow: 0 0 10px rgba(255, 42, 109, 0.3);
 }

 @keyframes scroll {
     to {
         transform: translateX(-50%);
     }
 }

 /* AI ALERTS */
 .ai-alerts {
     display: flex;
     overflow-x: auto;
     overflow-y: hidden;
     scroll-snap-type: x mandatory;
     -webkit-overflow-scrolling: touch;
     gap: 1rem;
     padding: 0 1.25rem 2rem 1.25rem;
     margin-bottom: 0.5rem;
     scrollbar-width: none; /* Firefox */
 }
 .ai-alerts::-webkit-scrollbar {
     display: none; /* Chrome, Safari */
 }
 .ai-alerts .news-card {
     flex: 0 0 76%; /* Make cards take 76% width so next card peeks and it shrinks diagonally */
     scroll-snap-align: center;
     margin-bottom: 0; /* Remove vertical margin since it's horizontal now */
     padding: 1rem 1.15rem; /* Shorter vertical padding to reduce empty space */
     display: flex;
     flex-direction: column;
 }

 .glass-card {
     background: var(--bg-card);
     border: 1px solid var(--glass-border);
     border-radius: 20px;
     padding: 1.5rem;
     margin-bottom: 2rem;
     position: relative;
     overflow: hidden;
     backdrop-filter: blur(15px);
     box-shadow:
         0 8px 25px rgba(0, 0, 0, 0.3),
         inset 0 1px 0 rgba(255, 255, 255, 0.05);
     transition: all 0.3s ease;
 }

 .glass-card:hover {
     border-color: rgba(255, 255, 255, 0.12);
     box-shadow:
         0 12px 35px rgba(0, 0, 0, 0.4),
         inset 0 1px 0 rgba(255, 255, 255, 0.08);
 }

 .glass-card::before {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: radial-gradient(circle at center, rgba(138, 43, 226, 0.08), transparent 60%);
     pointer-events: none;
     animation: shimmer 8s ease-in-out infinite;
 }

 @keyframes shimmer {

     0%,
     100% {
         transform: translate(0, 0);
     }

     50% {
         transform: translate(-20px, -20px);
     }
 }

 .alert-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 1rem;
 }

 .alert-title {
     font-weight: 700;
     font-size: 1.1rem;
 }

 .alert-tag {
     background: rgba(0, 250, 154, 0.1);
     color: var(--accent-green);
     padding: 0.4rem 0.8rem;
     border-radius: 20px;
     font-size: 0.7rem;
     font-weight: 800;
     text-transform: uppercase;
     letter-spacing: 1px;
 }

 .alert-tag.bullish {
     background: rgba(0, 250, 154, 0.15);
     color: var(--accent-green);
 }

 .alert-tag.bearish {
     background: rgba(255, 42, 109, 0.15);
     color: var(--accent-red);
 }

 .alert-tag.neutral {
     background: rgba(160, 160, 176, 0.15);
     color: var(--text-secondary);
 }

 .news-card {
     cursor: pointer;
     animation: fadeSlideIn 0.4s ease forwards;
     opacity: 0;
     margin-bottom: 1rem;
 }

 @keyframes fadeSlideIn {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .news-time {
     font-size: 0.75rem;
     color: var(--text-muted);
     font-style: italic;
 }

 .alert-body p {
     color: var(--text-secondary);
     line-height: 1.6;
 }

 .highlight {
     color: var(--text-main);
     font-weight: 700;
 }

 /* CHAT SECTION HEADER */
 .chat-section-header {
     margin: 0.75rem 0 1.25rem;
     padding: 1.5rem;
     background: radial-gradient(120% 120% at 50% 0%, rgba(138, 43, 226, 0.15) 0%, transparent 100%);
     border: 1px solid rgba(138, 43, 226, 0.2);
     border-radius: 20px;
     text-align: center;
     position: relative;
     overflow: hidden;
 }

 .chat-section-header::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
 }

 .section-icon {
     font-size: 2rem;
     margin-bottom: 0.5rem;
     animation: float 3s ease-in-out infinite;
     color: var(--neon-purple);
 }

 .section-title {
     font-size: 1.3rem;
     font-weight: 800;
     margin-bottom: 0.5rem;
     background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
 }

 .section-subtitle {
     font-size: 0.85rem;
     color: var(--text-secondary);
     margin: 0;
 }

 /* CHIPS */
 .suggestions-scroller {
     display: flex;
     gap: 1rem;
     overflow-x: auto;
     overflow-y: visible;
     padding-bottom: 2rem;
     padding-top: 0.5rem;
     margin-bottom: 1.5rem; /* Reduced from 3rem for cohesive grid rhythm */
     scrollbar-width: none;
     position: relative;
 }

 .suggestions-scroller::-webkit-scrollbar {
     display: none;
 }

 .chip {
     background: rgba(255, 255, 255, 0.04);
     border: 1px solid var(--glass-border);
     padding: 0.8rem 1.5rem;
     border-radius: 100px;
     color: var(--text-secondary);
     white-space: nowrap;
     font-size: 0.85rem;
     cursor: pointer;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     flex-shrink: 0;
     z-index: 1;
     isolation: isolate;
 }

 .chip::before {
     content: '';
     position: absolute;
     inset: -2px;
     background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
     transform: translateX(-100%);
     transition: 0.5s;
     border-radius: 100px;
     z-index: -1;
 }

 .chip:hover {
     background: rgba(255, 255, 255, 0.08);
     border-color: var(--neon-purple);
     color: #fff;
     box-shadow: 0 3px 12px rgba(138, 43, 226, 0.3);
     transform: translateY(-2px);
     z-index: 100;
 }

 .chip:hover::before {
     transform: translateX(100%);
 }

 .chip:active {
     transform: translateY(0) scale(0.98);
     z-index: 100;
 }

 /* CHAT HISTORY */
 .chat-history {
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
     margin-top: 0;
     padding-bottom: 4rem;
     /* Increased for better scroll */
 }

 .chat-message {
     display: flex;
     gap: 1rem;
     animation: messageSlideIn 0.4s ease;
 }

 @keyframes messageSlideIn {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .chat-message.user {
     justify-content: flex-end;
 }

 .chat-message.ai {
     justify-content: flex-start;
 }

 .message-avatar {
     width: 36px;
     height: 36px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.2rem;
     flex-shrink: 0;
 }

 .chat-message.user .message-avatar {
     background: linear-gradient(135deg, #667eea, #764ba2);
     order: 2;
 }

 .chat-message.ai .message-avatar {
     background: linear-gradient(135deg, var(--neon-purple), #8b5cf6);
 }

 .message-bubble {
     max-width: 75%;
     padding: 1rem 1.25rem;
     border-radius: 18px;
     position: relative;
 }

 .chat-message.user .message-bubble {
     background: rgba(138, 43, 226, 0.2);
     border: 1px solid rgba(138, 43, 226, 0.3);
     color: #fff;
 }

 .chat-message.ai .message-bubble {
     background: rgba(255, 255, 255, 0.03);
     border: 1px solid var(--glass-border);
     color: var(--text-main);
 }

 .message-text {
     font-size: 0.95rem;
     line-height: 1.5;
 }

 .message-time {
     font-size: 0.7rem;
     color: var(--text-muted);
     margin-top: 0.5rem;
     display: block;
 }

 /* ===============================================
   TOOLS PAGE - MOBILE-FIRST REDESIGN
   =============================================== */

 /* Page Header */
 .page-title {
     font-size: 1.75rem;
     font-weight: 800;
     margin-bottom: 0.5rem;
     text-align: center;
     color: #fff;
     letter-spacing: -0.5px;
 }

 .page-subtitle {
     text-align: center;
     font-size: 0.9rem;
     color: var(--text-secondary);
     margin-bottom: 2rem;
     font-weight: 400;
     line-height: 1.4;
 }

 /* Mobile-First Grid: 1 Column */
 .tools-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 16px;
     padding-bottom: 4rem;
     /* Increased from 2rem to allow more scroll */
 }

 /* Tablet & Desktop: 2 Columns */
 @media (min-width: 768px) {
     .tools-grid {
         grid-template-columns: repeat(2, 1fr);
         gap: 20px;
     }
 }

 /* Tool Card Base */
 .tool-card {
     background: linear-gradient(145deg, rgba(25, 25, 30, 0.95), rgba(15, 15, 20, 0.98));
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.06);
     border-radius: 16px;
     padding: 1.25rem;
     display: flex;
     flex-direction: column;
     gap: 1rem;
     position: relative;
     overflow: hidden;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow:
         0 4px 12px rgba(0, 0, 0, 0.4),
         inset 0 1px 0 rgba(255, 255, 255, 0.03);
 }

 /* Hover State */
 .tool-card:hover {
     transform: translateY(-4px);
     border-color: rgba(255, 255, 255, 0.12);
     box-shadow:
         0 12px 28px rgba(0, 0, 0, 0.5),
         inset 0 1px 0 rgba(255, 255, 255, 0.05);
 }

 /* Active/Pressed State */
 .tool-card:active {
     transform: translateY(-2px);
 }

 /* Tool Header (Badge + Tag Row) */
 .tool-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 0.5rem;
 }

 /* Tool Badge (Service Type) */
 .tool-badge {
     font-size: 0.8rem;
     font-weight: 700;
     padding: 0.35rem 0.75rem;
     border-radius: 8px;
     background: rgba(138, 43, 226, 0.15);
     color: #c5a3ff;
     border: 1px solid rgba(138, 43, 226, 0.3);
     display: inline-flex;
     align-items: center;
     gap: 0.3rem;
 }

 /* Tool Tags (Free, Pro, Business, Enterprise) */
 .tool-tag {
     font-size: 0.65rem;
     font-weight: 800;
     padding: 0.3rem 0.6rem;
     border-radius: 6px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 .tool-tag.free {
     background: rgba(0, 250, 154, 0.1);
     color: var(--accent-green);
     border: 1px solid rgba(0, 250, 154, 0.3);
 }

 .tool-tag.premium {
     background: rgba(138, 43, 226, 0.1);
     color: #d8b4fe;
     border: 1px solid rgba(138, 43, 226, 0.3);
 }

 .tool-tag.business {
     background: rgba(0, 250, 154, 0.1);
     color: #8affc1;
     border: 1px solid rgba(0, 250, 154, 0.3);
 }

 .tool-tag.enterprise {
     background: rgba(255, 215, 0, 0.1);
     color: #ffe680;
     border: 1px solid rgba(255, 215, 0, 0.3);
 }

 /* Tool Title */
 .tool-title {
     font-size: 1.15rem;
     font-weight: 700;
     color: #ffffff;
     margin: 0;
     line-height: 1.3;
     letter-spacing: -0.2px;
 }

 /* Tool Description */
 .tool-description {
     font-size: 0.85rem;
     color: #b8b8c0;
     line-height: 1.5;
     margin: 0;
     font-weight: 400;
 }

 /* Tool Footer (Price + Action) */
 .tool-footer {
     margin-top: auto;
     display: flex;
     flex-direction: column;
     gap: 0.75rem;
     padding-top: 0.5rem;
     border-top: 1px solid rgba(255, 255, 255, 0.05);
 }

 /* Price Row */
 .tool-price-row {
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .tool-price-row .price-amount {
     font-size: 1.4rem;
     font-weight: 800;
     color: #fff;
     letter-spacing: -0.5px;
 }

 /* Action Button */
 .tool-action-btn {
     width: 100%;
     padding: 0.85rem 1.2rem;
     background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(120, 30, 200, 0.95));
     border: 1px solid rgba(138, 43, 226, 0.5);
     border-radius: 12px;
     color: #fff;
     font-size: 0.9rem;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.25s ease;
     box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
     min-height: 48px;
     /* Thumb-friendly */
 }

 .tool-action-btn:hover {
     background: linear-gradient(135deg, rgba(138, 43, 226, 1), rgba(120, 30, 200, 1));
     box-shadow: 0 6px 20px rgba(138, 43, 226, 0.35);
     transform: translateY(-2px);
 }

 .tool-action-btn:active {
     transform: translateY(0);
     box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
 }

 /* Button Group Layout */
 .tool-buttons-group {
     display: flex;
     gap: 0.5rem;
     width: 100%;
 }

 .tool-buttons-group .tool-action-btn {
     flex: 1;
 }

 /* Info/Read More Button */
 .tool-info-btn {
     flex: 0 0 auto;
     padding: 0.85rem 1rem;
     background: transparent;
     border: 1px solid rgba(138, 43, 226, 0.4);
     border-radius: 12px;
     color: var(--neon-purple);
     font-size: 0.85rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.25s ease;
     min-height: 48px;
     white-space: nowrap;
 }

 .tool-info-btn:hover {
     background: rgba(138, 43, 226, 0.1);
     border-color: var(--neon-purple);
     transform: translateY(-2px);
 }

 .tool-info-btn:active {
     transform: translateY(0);
 }

 .tool-info-btn:active {
     transform: translateY(0);
 }

 /* Button Color Variants Based on Card Type */

 /* Team Service Buttons (Blue/Cyan) */
 .team-service .tool-action-btn {
     background: linear-gradient(135deg, rgba(0, 150, 255, 0.9), rgba(0, 120, 220, 0.95));
     border-color: rgba(0, 150, 255, 0.5);
     box-shadow: 0 4px 12px rgba(0, 150, 255, 0.2);
 }

 .team-service .tool-action-btn:hover {
     background: linear-gradient(135deg, rgba(0, 150, 255, 1), rgba(0, 120, 220, 1));
     box-shadow: 0 6px 20px rgba(0, 150, 255, 0.35);
 }

 .team-service .tool-info-btn {
     border-color: rgba(0, 150, 255, 0.4);
     color: #0096ff;
 }

 .team-service .tool-info-btn:hover {
     background: rgba(0, 150, 255, 0.1);
     border-color: #0096ff;
 }

 /* Deploy Service Buttons (Green) */
 .deploy-service .tool-action-btn {
     background: linear-gradient(135deg, rgba(0, 250, 154, 0.9), rgba(0, 200, 130, 0.95));
     border-color: rgba(0, 250, 154, 0.5);
     box-shadow: 0 4px 12px rgba(0, 250, 154, 0.2);
 }

 .deploy-service .tool-action-btn:hover {
     background: linear-gradient(135deg, rgba(0, 250, 154, 1), rgba(0, 200, 130, 1));
     box-shadow: 0 6px 20px rgba(0, 250, 154, 0.35);
 }

 .deploy-service .tool-info-btn {
     border-color: rgba(0, 250, 154, 0.4);
     color: var(--accent-green);
 }

 .deploy-service .tool-info-btn:hover {
     background: rgba(0, 250, 154, 0.1);
     border-color: var(--accent-green);
 }

 /* Premium Card Override - Yellow Read More Button */
 .premium-card .tool-info-btn {
     border-color: rgba(255, 215, 0, 0.4);
     color: var(--accent-gold);
 }

 .premium-card .tool-info-btn:hover {
     background: rgba(255, 215, 0, 0.1);
     border-color: var(--accent-gold);
 }

 /* Premium Button Variant */
 .tool-action-btn.premium {
     background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 170, 0, 0.95));
     border-color: rgba(255, 215, 0, 0.5);
     box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
     color: #000;
 }

 .tool-action-btn.premium:hover {
     background: linear-gradient(135deg, rgba(255, 215, 0, 1), rgba(255, 170, 0, 1));
     box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
 }

 /* Service Type Specific Styling */
 .ai-service {
     border-left: 3px solid rgba(138, 43, 226, 0.6);
 }

 .team-service {
     border-left: 3px solid rgba(0, 150, 255, 0.6);
 }

 .team-service .tool-badge {
     background: rgba(0, 150, 255, 0.15);
     color: #80d4ff;
     border-color: rgba(0, 150, 255, 0.3);
 }

 /* Team Service - Blue Pro Tag */
 .team-service .tool-tag.premium {
     background: rgba(0, 150, 255, 0.1);
     color: #80d4ff;
     border: 1px solid rgba(0, 150, 255, 0.3);
 }

 /* AI Service - Purple Free Tag */
 .ai-service .tool-tag.free {
     background: rgba(138, 43, 226, 0.1);
     color: #d8b4fe;
     border: 1px solid rgba(138, 43, 226, 0.3);
 }

 .deploy-service {
     border-left: 3px solid rgba(0, 250, 154, 0.6);
 }

 .deploy-service .tool-badge {
     background: rgba(0, 250, 154, 0.15);
     color: #8affc1;
     border-color: rgba(0, 250, 154, 0.3);
 }

 /* Premium Card Highlight */
 .premium-card {
     border: 2px solid rgba(255, 215, 0, 0.3);
     border-left: 3px solid rgba(255, 215, 0, 0.7);
     background: linear-gradient(145deg, rgba(40, 35, 20, 0.95), rgba(25, 20, 10, 0.98));
 }

 .premium-card .tool-badge {
     background: rgba(255, 215, 0, 0.15);
     color: #ffe680;
     border-color: rgba(255, 215, 0, 0.4);
 }

 /* ===============================================
   LEGAL PAGE
   =============================================== */

 /* Legal Hero */
 .legal-hero {
     text-align: center;
     padding: 3rem 1.5rem;
     background: linear-gradient(160deg, rgba(138, 43, 226, 0.15), rgba(0, 150, 255, 0.08));
     border-radius: 24px;
     margin-bottom: 2rem;
     position: relative;
     overflow: hidden;
     border: 1px solid rgba(138, 43, 226, 0.2);
 }

 .legal-hero::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 4px;
     background: linear-gradient(90deg, var(--neon-purple), #0096ff, var(--accent-green));
 }

 .legal-hero-icon {
     font-size: 4rem;
     margin-bottom: 1rem;
     animation: float 4s ease-in-out infinite;
 }

 .legal-hero-title {
     font-size: 2.5rem;
     font-weight: 900;
     margin-bottom: 0.5rem;
     background: linear-gradient(135deg, #fff, var(--neon-purple));
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
 }

 .legal-hero-slogan {
     font-size: 1.2rem;
     font-weight: 700;
     color: var(--accent-gold);
     margin-bottom: 1rem;
     text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
 }

 .legal-hero-subtitle {
     font-size: 0.95rem;
     color: var(--text-secondary);
     max-width: 600px;
     margin: 0 auto;
     line-height: 1.6;
 }

 /* Statistics Grid */
 .stats-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 1rem;
     margin-bottom: 3rem;
 }

 @media (min-width: 768px) {
     .stats-grid {
         grid-template-columns: repeat(4, 1fr);
     }
 }

 .stat-card {
     background: linear-gradient(145deg, rgba(25, 25, 30, 0.95), rgba(15, 15, 20, 0.98));
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.08);
     border-radius: 16px;
     padding: 1.5rem;
     text-align: center;
     position: relative;
     overflow: hidden;
     transition: all 0.3s ease;
 }

 .stat-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     background: linear-gradient(90deg, var(--neon-purple), transparent);
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 .stat-card:hover {
     transform: translateY(-4px);
     border-color: rgba(138, 43, 226, 0.3);
     box-shadow: 0 8px 20px rgba(138, 43, 226, 0.2);
 }

 .stat-card:hover::before {
     opacity: 1;
 }

 .stat-value {
     font-size: 2rem;
     font-weight: 900;
     background: linear-gradient(135deg, var(--neon-purple), #0096ff);
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
     margin-bottom: 0.5rem;
 }

 .stat-label {
     font-size: 0.75rem;
     color: var(--text-secondary);
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 /* Legal Sections */
 .legal-section {
     margin-bottom: 3rem;
 }

 .section-heading {
     font-size: 1.8rem;
     font-weight: 800;
     margin-bottom: 1.5rem;
     color: #fff;
     position: relative;
     padding-left: 1rem;
 }

 .section-heading::before {
     content: '';
     position: absolute;
     left: 0;
     top: 50%;
     transform: translateY(-50%);
     width: 4px;
     height: 70%;
     background: linear-gradient(180deg, var(--neon-purple), #0096ff);
     border-radius: 2px;
 }

 .legal-text {
     font-size: 1rem;
     line-height: 1.8;
     color: var(--text-secondary);
     margin-bottom: 1.5rem;
 }

 .legal-text:last-child {
     margin-bottom: 0;
 }

 .text-highlight {
     color: var(--neon-purple);
     font-weight: 700;
     position: relative;
 }

 .text-highlight::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     height: 2px;
     background: linear-gradient(90deg, var(--neon-purple), transparent);
     opacity: 0.3;
 }

 /* Advantages Grid */
 .advantages-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1.5rem;
 }

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

 .advantage-card {
     background: rgba(255, 255, 255, 0.02);
     border: 1px solid rgba(255, 255, 255, 0.06);
     border-radius: 16px;
     padding: 1.5rem;
     transition: all 0.3s ease;
     position: relative;
     overflow: hidden;
 }

 .advantage-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 4px;
     height: 0;
     background: linear-gradient(180deg, var(--neon-purple), #0096ff);
     transition: height 0.3s ease;
 }

 .advantage-card:hover {
     background: rgba(255, 255, 255, 0.04);
     border-color: rgba(138, 43, 226, 0.2);
     transform: translateX(4px);
 }

 .advantage-card:hover::before {
     height: 100%;
 }

 .advantage-icon {
     font-size: 2.5rem;
     margin-bottom: 1rem;
     display: inline-block;
     animation: iconFloat 3s ease-in-out infinite;
 }

 @keyframes iconFloat {

     0%,
     100% {
         transform: translateY(0);
     }

     50% {
         transform: translateY(-5px);
     }
 }

 .advantage-title {
     font-size: 1.1rem;
     font-weight: 700;
     color: #fff;
     margin-bottom: 0.75rem;
 }

 .advantage-text {
     font-size: 0.9rem;
     line-height: 1.6;
     color: var(--text-secondary);
     margin: 0;
 }

 /* ===============================================
   SERVICES DOCUMENTATION PAGE
   =============================================== */

 .services-doc-container {
     max-width: 900px;
     margin: 0 auto;
     padding-bottom: 3rem;
 }

 .service-doc-section {
     background: rgba(255, 255, 255, 0.02);
     border: 1px solid rgba(255, 255, 255, 0.06);
     border-radius: 20px;
     padding: 2.5rem;
     margin-bottom: 2.5rem;
     border-left: 4px solid var(--neon-purple);
     position: relative;
 }

 .service-doc-premium {
     background: linear-gradient(145deg, rgba(40, 20, 60, 0.3), rgba(20, 10, 30, 0.4));
     border: 2px solid rgba(138, 43, 226, 0.4);
     box-shadow: 0 8px 25px rgba(138, 43, 226, 0.15);
 }

 .premium-indicator {
     position: absolute;
     top: 1.5rem;
     right: 1.5rem;
     background: linear-gradient(135deg, var(--neon-purple), var(--accent-gold));
     color: #000;
     padding: 0.4rem 0.9rem;
     border-radius: 8px;
     font-size: 0.65rem;
     font-weight: 900;
     letter-spacing: 1.5px;
     box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
 }

 .service-doc-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     margin-bottom: 1.5rem;
     gap: 1rem;
 }

 .service-doc-title {
     font-size: 1.6rem;
     font-weight: 800;
     color: var(--neon-purple);
     margin: 0;
     line-height: 1.3;
     flex: 1;
 }

 .service-doc-price {
     font-size: 1.3rem;
     font-weight: 800;
     color: var(--accent-gold);
     white-space: nowrap;
     text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
 }

 .service-doc-subtitle {
     font-size: 1.1rem;
     font-weight: 600;
     color: #fff;
     margin: 0 0 1.5rem 0;
     font-style: italic;
     opacity: 0.9;
 }

 .service-doc-text {
     font-size: 1rem;
     line-height: 1.8;
     color: var(--text-secondary);
     margin-bottom: 2rem;
 }

 .service-feature-heading {
     font-size: 1rem;
     font-weight: 700;
     color: #fff;
     margin: 2rem 0 1rem 0;
     position: relative;
     padding-left: 1rem;
 }

 .service-feature-heading::before {
     content: '';
     position: absolute;
     left: 0;
     top: 50%;
     transform: translateY(-50%);
     width: 4px;
     height: 70%;
     background: var(--neon-purple);
     border-radius: 2px;
 }

 .service-doc-list {
     list-style: none;
     padding: 0;
     margin: 0;
 }

 .service-doc-list li {
     font-size: 0.95rem;
     line-height: 1.9;
     color: var(--text-secondary);
     margin-bottom: 1.2rem;
     padding-left: 1.8rem;
     position: relative;
 }

 .service-doc-list li::before {
     content: '▸';
     position: absolute;
     left: 0;
     color: var(--neon-purple);
     font-weight: bold;
     font-size: 1.2rem;
 }

 .service-doc-list li strong {
     color: #fff;
     font-weight: 700;
 }

 @media (max-width: 768px) {
     .service-doc-header {
         flex-direction: column;
         align-items: flex-start;
     }

     .service-doc-title {
         font-size: 1.4rem;
     }

     .premium-indicator {
         top: 1rem;
         right: 1rem;
     }
 }

 /* ===============================================
   COMMUNITY PAGE - MODERN PREMIUM DESIGN
   =============================================== */

 /* Grid Layout - 3 columns desktop, 2 mobile */
 .community-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 1.2rem;
     padding-bottom: 2rem;
     max-width: 900px;
     margin: 0 auto;
 }

 @media (min-width: 768px) {
     .community-grid {
         grid-template-columns: repeat(3, 1fr);
         gap: 1.5rem;
     }
 }


 /* Base Community Card */
 .community-card {
     position: relative;
     background: linear-gradient(145deg, rgba(20, 20, 25, 0.95), rgba(10, 10, 15, 1));
     backdrop-filter: blur(10px);
     border: 1.5px solid rgba(255, 255, 255, 0.08);
     border-radius: 12px;
     padding: 1.5rem 1rem;
     text-align: center;
     overflow: hidden;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: space-between;
     gap: 1rem;
     min-height: 200px;
     cursor: pointer;
 }

 .community-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
     opacity: 0;
     transition: opacity 0.3s ease;
     pointer-events: none;
 }

 .community-card:hover {
     transform: translateY(-4px);
     border-color: rgba(255, 255, 255, 0.15);
     box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
 }

 .community-card:hover::before {
     opacity: 1;
 }

 /* Icon Container - Compact */
 .community-icon {
     position: relative;
     width: 48px;
     height: 48px;
     background: rgba(255, 255, 255, 0.05);
     border: 1.5px solid rgba(255, 255, 255, 0.1);
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.5rem;
     transition: all 0.3s ease;
     flex-shrink: 0;
 }

 .community-card:hover .community-icon {
     transform: scale(1.1);
 }

 /* Title - Clean Typography */
 .community-title {
     position: relative;
     font-size: 0.95rem;
     font-weight: 700;
     color: #fff;
     margin: 0;
     letter-spacing: 0.3px;
     flex-grow: 1;
     display: flex;
     align-items: center;
 }

 /* Stats Badge - Compact & Modern */
 .community-stats {
     display: inline-flex;
     align-items: center;
     gap: 0.4rem;
     padding: 0.4rem 0.75rem;
     background: rgba(255, 255, 255, 0.06);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 20px;
     backdrop-filter: blur(10px);
     flex-shrink: 0;
 }

 .stat-icon {
     font-size: 0.85rem;
     opacity: 0.9;
 }

 .stat-text {
     font-size: 0.7rem;
     font-weight: 600;
     color: rgba(255, 255, 255, 0.85);
     letter-spacing: 0.3px;
 }

 /* Button - Branded & Compact */
 .community-btn {
     width: 100%;
     padding: 0.7rem 1rem;
     background: rgba(255, 255, 255, 0.08);
     border: 1.5px solid rgba(255, 255, 255, 0.15);
     border-radius: 8px;
     color: #fff;
     font-size: 0.8rem;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     cursor: pointer;
     transition: all 0.3s ease;
     flex-shrink: 0;
 }

 .community-btn:hover {
     background: rgba(255, 255, 255, 0.12);
     border-color: rgba(255, 255, 255, 0.25);
     transform: translateY(-2px);
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
 }

 .community-btn:active {
     transform: translateY(0);
 }

 /* ========================
   PLATFORM-SPECIFIC BRANDING
   ======================== */

 /* Telegram - #0088cc */
 .telegram-card {
     border-color: rgba(0, 136, 204, 0.2);
 }

 .telegram-card:hover {
     border-color: rgba(0, 136, 204, 0.5);
     box-shadow: 0 16px 40px rgba(0, 136, 204, 0.25);
 }

 .telegram-card .community-icon {
     background: rgba(0, 136, 204, 0.15);
     border-color: rgba(0, 136, 204, 0.3);
 }

 .telegram-card .community-btn {
     background: linear-gradient(135deg, #0088cc, #0077b5);
     border-color: rgba(0, 136, 204, 0.6);
     color: #fff;
 }

 .telegram-card .community-btn:hover {
     background: linear-gradient(135deg, #009ae6, #0088cc);
     border-color: rgba(0, 136, 204, 0.8);
     box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
 }

 /* Discord - #5865F2 */
 .discord-card {
     border-color: rgba(88, 101, 242, 0.2);
 }

 .discord-card:hover {
     border-color: rgba(88, 101, 242, 0.5);
     box-shadow: 0 16px 40px rgba(88, 101, 242, 0.25);
 }

 .discord-card .community-icon {
     background: rgba(88, 101, 242, 0.15);
     border-color: rgba(88, 101, 242, 0.3);
 }

 .discord-card .community-btn {
     background: linear-gradient(135deg, #5865F2, #4752c4);
     border-color: rgba(88, 101, 242, 0.6);
     color: #fff;
 }

 .discord-card .community-btn:hover {
     background: linear-gradient(135deg, #6875f5, #5865F2);
     border-color: rgba(88, 101, 242, 0.8);
     box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
 }

 /* YouTube - #FF0000 */
 .youtube-card {
     border-color: rgba(255, 0, 0, 0.2);
 }

 .youtube-card:hover {
     border-color: rgba(255, 0, 0, 0.5);
     box-shadow: 0 16px 40px rgba(255, 0, 0, 0.25);
 }

 .youtube-card .community-icon {
     background: rgba(255, 0, 0, 0.15);
     border-color: rgba(255, 0, 0, 0.3);
 }

 .youtube-card .community-btn {
     background: linear-gradient(135deg, #FF0000, #cc0000);
     border-color: rgba(255, 0, 0, 0.6);
     color: #fff;
 }

 .youtube-card .community-btn:hover {
     background: linear-gradient(135deg, #ff1a1a, #FF0000);
     border-color: rgba(255, 0, 0, 0.8);
     box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4);
 }

 /* GitHub - #171515 (dark with subtle accent) */
 .github-card {
     border-color: rgba(255, 255, 255, 0.12);
 }

 .github-card:hover {
     border-color: rgba(255, 255, 255, 0.3);
     box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
 }

 .github-card .community-icon {
     background: rgba(255, 255, 255, 0.08);
     border-color: rgba(255, 255, 255, 0.15);
 }

 .github-card .community-btn {
     background: linear-gradient(135deg, #24292e, #1a1d21);
     border-color: rgba(255, 255, 255, 0.2);
     color: #fff;
 }

 .github-card .community-btn:hover {
     background: linear-gradient(135deg, #2f363d, #24292e);
     border-color: rgba(255, 255, 255, 0.3);
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
 }

 /* Twitter/X - #1DA1F2 */
 .twitter-card {
     border-color: rgba(29, 161, 242, 0.2);
 }

 .twitter-card:hover {
     border-color: rgba(29, 161, 242, 0.5);
     box-shadow: 0 16px 40px rgba(29, 161, 242, 0.25);
 }

 .twitter-card .community-icon {
     background: rgba(29, 161, 242, 0.15);
     border-color: rgba(29, 161, 242, 0.3);
 }

 .twitter-card .community-btn {
     background: linear-gradient(135deg, #1DA1F2, #1a91da);
     border-color: rgba(29, 161, 242, 0.6);
     color: #fff;
 }

 .twitter-card .community-btn:hover {
     background: linear-gradient(135deg, #2fb1ff, #1DA1F2);
     border-color: rgba(29, 161, 242, 0.8);
     box-shadow: 0 8px 24px rgba(29, 161, 242, 0.4);
 }

 /* Medium - #00AB6C */
 .medium-card {
     border-color: rgba(0, 171, 108, 0.2);
 }

 .medium-card:hover {
     border-color: rgba(0, 171, 108, 0.5);
     box-shadow: 0 16px 40px rgba(0, 171, 108, 0.25);
 }

 .medium-card .community-icon {
     background: rgba(0, 171, 108, 0.15);
     border-color: rgba(0, 171, 108, 0.3);
 }

 .medium-card .community-btn {
     background: linear-gradient(135deg, #00AB6C, #009959);
     border-color: rgba(0, 171, 108, 0.6);
     color: #fff;
 }

 .medium-card .community-btn:hover {
     background: linear-gradient(135deg, #00c279, #00AB6C);
     border-color: rgba(0, 171, 108, 0.8);
     box-shadow: 0 8px 24px rgba(0, 171, 108, 0.4);
 }

 /* BOTTOM AREA */
 .pricing-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
     padding-bottom: 2rem;
 }

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

 .pricing-card {
     background: linear-gradient(145deg, rgba(25, 25, 30, 0.95), rgba(15, 15, 20, 0.98));
     backdrop-filter: blur(15px);
     border: 1px solid rgba(255, 255, 255, 0.08);
     border-radius: 20px;
     padding: 2rem;
     position: relative;
     overflow: hidden;
     transition: all 0.4s ease;
     display: flex;
     flex-direction: column;
 }

 .pricing-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     background: linear-gradient(90deg, var(--neon-purple), transparent);
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 .pricing-card:hover {
     transform: translateY(-4px);
     border-color: rgba(138, 43, 226, 0.3);
     box-shadow: 0 12px 30px rgba(138, 43, 226, 0.2);
 }

 .pricing-card:hover::before {
     opacity: 1;
 }

 /* Premium Card Highlight */
 .pricing-card-premium {
     border: 2px solid rgba(138, 43, 226, 0.5);
     background: linear-gradient(145deg, rgba(40, 20, 60, 0.95), rgba(20, 10, 30, 0.98));
     box-shadow:
         0 8px 25px rgba(138, 43, 226, 0.3),
         inset 0 1px 0 rgba(138, 43, 226, 0.1);
 }

 .pricing-card-premium::before {
     opacity: 1;
     background: linear-gradient(90deg, var(--neon-purple), var(--accent-gold), var(--neon-purple));
     background-size: 200% 100%;
     animation: shimmerGlow 3s linear infinite;
 }

 @keyframes shimmerGlow {
     0% {
         background-position: 0% 0%;
     }

     100% {
         background-position: 200% 0%;
     }
 }

 .premium-badge {
     position: absolute;
     top: 1rem;
     right: 1rem;
     background: linear-gradient(135deg, var(--neon-purple), var(--accent-gold));
     color: #000;
     padding: 0.4rem 0.8rem;
     border-radius: 8px;
     font-size: 0.65rem;
     font-weight: 900;
     letter-spacing: 1px;
     box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
 }

 .pricing-header {
     margin-bottom: 1.5rem;
 }

 .pricing-title {
     font-size: 1.4rem;
     font-weight: 800;
     color: #fff;
     margin-bottom: 1rem;
 }

 .pricing-price {
     display: flex;
     align-items: baseline;
     gap: 0.5rem;
 }

 .pricing-price .price-amount {
     font-size: 3rem;
     font-weight: 900;
     background: linear-gradient(135deg, var(--neon-purple), #0096ff);
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
 }

 .pricing-price .price-currency {
     font-size: 1.2rem;
     font-weight: 700;
     color: var(--text-secondary);
 }

 .pricing-description {
     font-size: 0.95rem;
     line-height: 1.6;
     color: var(--text-secondary);
     margin-bottom: 1.5rem;
 }

 .pricing-features {
     list-style: none;
     padding: 0;
     margin: 0 0 2rem 0;
     flex-grow: 1;
 }

 .pricing-features li {
     font-size: 0.9rem;
     line-height: 1.8;
     color: var(--text-secondary);
     margin-bottom: 0.75rem;
     padding-left: 0.5rem;
 }

 .pricing-features li strong {
     color: #fff;
 }

 .pricing-button {
     width: 100%;
     padding: 1rem;
     border-radius: 12px;
     font-size: 0.9rem;
     font-weight: 700;
     letter-spacing: 0.5px;
     cursor: pointer;
     transition: all 0.3s ease;
     border: none;
     text-transform: uppercase;
 }

 .pricing-button-outline {
     background: transparent;
     border: 2px solid rgba(138, 43, 226, 0.5);
     color: var(--neon-purple);
 }

 .pricing-button-outline:hover {
     background: rgba(138, 43, 226, 0.1);
     border-color: var(--neon-purple);
     box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
     transform: translateY(-2px);
 }

 .pricing-button-outline:active {
     transform: translateY(0);
 }

 .pricing-button-solid {
     background: linear-gradient(135deg, var(--neon-purple), #8b5cf6);
     color: #fff;
     border: none;
     box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
 }

 .pricing-button-solid:hover {
     background: linear-gradient(135deg, #8b5cf6, var(--neon-purple));
     box-shadow: 0 6px 25px rgba(138, 43, 226, 0.6);
     transform: translateY(-2px);
 }

 .pricing-button-solid:active {
     transform: translateY(0);
     box-shadow: 0 2px 10px rgba(138, 43, 226, 0.4);
 }

 /* BOTTOM AREA */
 .bottom-area {
     position: fixed;
     bottom: 0;
     left: 0;
     right: 0;
     background: rgba(3, 0, 5, 0.92);
     backdrop-filter: blur(25px);
     border-top: 1px solid var(--glass-border);
     padding: 0.75rem 1.5rem 1rem;
     /* Reduced from 1rem 1.5rem 1.5rem */
     z-index: 90;
     box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
 }



 .bottom-nav {
     display: flex;
     justify-content: center;
     gap: 3rem;
 }

 .nav-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 6px;
     color: var(--text-muted);
     text-decoration: none;
     font-size: 0.7rem;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
 }

 .nav-item .icon {
     font-size: 1.4rem;
     transition: all 0.3s ease;
 }

 .nav-item:hover,
 .nav-item.active {
     color: var(--neon-purple);
 }

 .nav-item:hover .icon {
     transform: translateY(-3px) scale(1.1);
 }

 .nav-item.active .icon {
     transform: translateY(-5px);
     filter: drop-shadow(0 5px 12px rgba(138, 43, 226, 0.5));
     animation: iconBounce 0.6s ease;
 }

 @keyframes iconBounce {

     0%,
     100% {
         transform: translateY(-5px);
     }

     50% {
         transform: translateY(-8px);
     }
 }

 /* UTIL CLASSES */
 .hidden {
     display: none !important;
 }

 .full-width {
     width: 100%;
 }

 /* TOAST */
 .toast {
     position: fixed;
     bottom: 120px;
     left: 50%;
     transform: translateX(-50%) translateY(20px);
     background: #1a1a1a;
     color: white;
     padding: 1rem 2rem;
     border-radius: 50px;
     border: 1px solid var(--accent-red);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
     opacity: 0;
     pointer-events: none;
     transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     z-index: 1000;
 }

 .toast.show {
     opacity: 1;
     transform: translateX(-50%) translateY(0);
 }

 /* Responsive Grid adjustment */
 @media (max-width: 600px) {
     .tools-grid {
         grid-template-columns: 1fr;
     }

     .hero-text h1 {
         font-size: 1.5rem;
     }
 }

 /* Menu Header Status */
 .user-status-container {
     width: 100%;
     margin-bottom: 1.5rem;
     padding: 1.2rem;
     background: rgba(255, 255, 255, 0.03);
     border: 1px solid var(--glass-border);
     border-radius: 16px;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 0.5rem;
     backdrop-filter: blur(10px);
 }

 .status-row {
     display: flex;
     align-items: center;
     gap: 0.8rem;
     font-size: 1rem;
 }

 .status-label {
     color: var(--text-secondary);
     font-weight: 500;
 }

 .status-value {
     font-weight: 700;
     padding: 0.3rem 0.8rem;
     border-radius: 20px;
     font-size: 0.8rem;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 .status-value.not-connected {
     background: rgba(255, 42, 109, 0.1);
     color: var(--accent-red);
     border: 1px solid rgba(255, 42, 109, 0.3);
 }

 .status-value.connected {
     background: rgba(0, 250, 154, 0.1);
     color: var(--accent-green);
     border: 1px solid rgba(0, 250, 154, 0.3);
 }

 .status-description {
     font-size: 0.75rem;
     color: var(--text-muted);
     text-align: center;
     margin-top: 0.2rem;
 }

 /* ═══════════════════════════════════════════════════════════════
   SERVICE PURCHASE MODALS (services.js)
   ═══════════════════════════════════════════════════════════════ */

 .svc-modal-overlay {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.75);
     backdrop-filter: blur(4px);
     -webkit-backdrop-filter: blur(4px);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 9999;
     padding: 1rem;
     animation: svcFadeIn 0.18s ease;
 }

 @keyframes svcFadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 .svc-modal {
     background: linear-gradient(135deg, #0f0f2e 0%, #1a1a40 100%);
     border: 1px solid rgba(100, 100, 255, 0.25);
     border-radius: 16px;
     padding: 1.5rem 1.25rem 1.25rem;
     width: 100%;
     max-width: 360px;
     box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
     animation: svcSlideUp 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
 }

 @keyframes svcSlideUp {
     from {
         transform: translateY(24px);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 }

 .svc-modal.svc-modal-warning {
     border-color: rgba(255, 180, 0, 0.35);
 }

 .svc-modal.svc-modal-success {
     border-color: rgba(0, 250, 154, 0.35);
 }

 /* Header */
 .svc-modal-header {
     display: flex;
     align-items: center;
     gap: 0.6rem;
     margin-bottom: 1.25rem;
 }

 .svc-modal-icon {
     font-size: 1.4rem;
     line-height: 1;
 }

 .svc-modal-title {
     font-size: 1.05rem;
     font-weight: 700;
     color: #e8e8ff;
     margin: 0;
 }

 /* Body rows */
 .svc-modal-body {
     display: flex;
     flex-direction: column;
     gap: 0.55rem;
     margin-bottom: 1.1rem;
 }

 .svc-modal-row {
     display: flex;
     justify-content: space-between;
     align-items: baseline;
     gap: 0.5rem;
 }

 .svc-modal-label {
     font-size: 0.82rem;
     color: var(--text-muted, #8888aa);
     flex-shrink: 0;
 }

 .svc-modal-value {
     font-size: 0.9rem;
     color: #d8d8ee;
     font-weight: 600;
     text-align: right;
 }

 .svc-modal-value code {
     font-family: 'Courier New', monospace;
     font-size: 0.82rem;
     color: #a0a0cc;
 }

 .svc-price-highlight {
     color: #ffd700 !important;
     text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
 }

 .svc-value-zero {
     color: #ff6b6b !important;
 }

 .svc-modal-price-row .svc-modal-value {
     font-size: 1rem;
 }

 .svc-modal-divider {
     height: 1px;
     background: rgba(255, 255, 255, 0.06);
     margin: 0.2rem 0;
 }

 /* Next-steps note */
 .svc-modal-next-steps {
     font-size: 0.8rem;
     color: var(--text-muted, #8888aa);
     background: rgba(255, 255, 255, 0.04);
     border-radius: 8px;
     padding: 0.6rem 0.75rem;
     margin-bottom: 1rem;
     line-height: 1.5;
 }

 /* Action buttons */
 .svc-modal-actions {
     display: flex;
     gap: 0.6rem;
 }

 .svc-modal-actions-col {
     flex-direction: column;
 }

 .svc-btn {
     flex: 1;
     padding: 0.65rem 0.75rem;
     border-radius: 10px;
     font-size: 0.88rem;
     font-weight: 600;
     border: none;
     cursor: pointer;
     transition: opacity 0.15s, transform 0.1s;
     letter-spacing: 0.02em;
 }

 .svc-btn:active {
     transform: scale(0.97);
 }

 .svc-btn-primary {
     background: linear-gradient(135deg, #6c63ff, #8b5cf6);
     color: #fff;
     box-shadow: 0 3px 12px rgba(108, 99, 255, 0.4);
 }

 .svc-btn-primary:hover {
     opacity: 0.9;
 }

 .svc-btn-secondary {
     background: rgba(255, 255, 255, 0.07);
     color: #c0c0e0;
     border: 1px solid rgba(255, 255, 255, 0.1);
 }

 .svc-btn-secondary:hover {
     background: rgba(255, 255, 255, 0.11);
 }

 .svc-btn-full {
     flex: none;
     width: 100%;
 }

 /* Tool action button — loading state */
 .tool-action-btn:disabled {
     opacity: 0.65;
     cursor: not-allowed;
     pointer-events: none;
 }

 .svc-spinner {
     display: inline-block;
     width: 12px;
     height: 12px;
     border: 2px solid rgba(255, 255, 255, 0.3);
     border-top-color: #fff;
     border-radius: 50%;
     animation: svcSpin 0.7s linear infinite;
     vertical-align: middle;
     margin-right: 4px;
 }

 @keyframes svcSpin {
     to {
         transform: rotate(360deg);
     }
 }


/* ================================================================
   AI AUDIT SECTION
================================================================ */

/* ── Entry: header ─────────────────────────────────────────────── */
.ai-audit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ai-audit-header-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(138,43,226,0.5));
}
.ai-audit-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--neon-purple) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
.ai-audit-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0.2rem 0 0;
}

/* ── Entry: input ──────────────────────────────────────────────── */
.ai-audit-input-wrap {
    margin-bottom: 1.5rem;
}
.ai-audit-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.ai-audit-input {
    flex: 1;
    background: rgba(20,10,35,0.6);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    color: var(--text-main);
    font-size: 0.88rem;
    font-family: 'SF Mono','Consolas',monospace;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.ai-audit-input:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(138,43,226,0.15);
}
.ai-audit-paste-btn {
    background: rgba(138,43,226,0.1);
    border: 1px solid rgba(138,43,226,0.25);
    color: var(--neon-purple);
    padding: 0 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.ai-audit-paste-btn:hover {
    background: rgba(138,43,226,0.2);
    border-color: var(--neon-purple);
}
.ai-audit-input-error {
    font-size: 0.78rem;
    color: #ff2a6d;
    margin-bottom: 0.5rem;
    padding: 0 0.2rem;
}
.ai-audit-analyze-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(138,43,226,0.8), rgba(80,20,180,0.9));
    border: 1px solid rgba(138,43,226,0.4);
    border-radius: 14px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.ai-audit-analyze-btn:hover:not(:disabled) {
    box-shadow: 0 0 24px rgba(138,43,226,0.4);
    transform: translateY(-1px);
}
.ai-audit-analyze-btn:disabled {
    opacity: 0.7;
    cursor: default;
}
/* spinner inside button */
.audit-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: svcSpin 0.8s linear infinite;
}

/* ── Entry: list header / empty state ──────────────────────────── */
.ai-audit-list-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}
.ai-audit-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(20,10,35,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}
.ai-audit-empty-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.ai-audit-empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}
.ai-audit-empty-sub { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Audit Card Preview ────────────────────────────────────────── */
.audit-history-list { display: flex; flex-direction: column; gap: 0.75rem; }
.audit-card-preview {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--neon-purple);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.audit-card-preview:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.acp-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.acp-risk-badge {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
}
.acp-score {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'SF Mono',monospace;
}
.acp-id {
    font-size: 0.67rem;
    color: var(--text-muted);
    margin-left: auto;
    font-family: monospace;
}
.acp-protocol {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acp-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 0.4rem;
}
.acp-dot { color: var(--text-muted); }
.acp-addr { font-family: monospace; color: var(--text-muted); }
.acp-footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.acp-date { font-size: 0.72rem; color: var(--text-muted); }
.acp-counts { font-size: 0.75rem; font-weight: 700; margin-left: auto; }
.acp-chevron { color: var(--text-muted); font-size: 1.2rem; margin-left: 0.4rem; }

/* ── Detail: topbar ────────────────────────────────────────────── */
.audit-detail-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.audit-back-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(138,43,226,0.1);
    border: 1px solid rgba(138,43,226,0.2);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.audit-back-btn:hover { background: rgba(138,43,226,0.2); }
.audit-detail-topbar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* ── Summary Card ──────────────────────────────────────────────── */
.audit-summary-card {
    border-radius: 20px;
    padding: 1.4rem;
    margin-bottom: 1rem;
    overflow: hidden;
}
.asc-risk-header {
    border: 1px solid;
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
    display: inline-block;
    margin-bottom: 1.1rem;
}
.asc-risk-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.asc-score-row {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}
.asc-ring-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}
.asc-ring { width: 80px; height: 80px; transform: rotate(-90deg); }
.asc-ring-track { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8; }
.asc-ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}
.asc-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.asc-ring-score { font-size: 1.25rem; font-weight: 800; font-family: 'SF Mono',monospace; line-height: 1; }
.asc-ring-sub { font-size: 0.6rem; color: var(--text-muted); }
.asc-meta-block { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.asc-meta-row { display: flex; gap: 0.4rem; font-size: 0.78rem; }
.asc-meta-label { color: var(--text-muted); min-width: 68px; flex-shrink: 0; }
.asc-meta-val { color: var(--text-main); font-weight: 600; word-break: break-all; }
.asc-addr-row { display: flex; align-items: center; gap: 0.4rem; }
.asc-mono { font-family: 'SF Mono',monospace; font-size: 0.78rem; }
.asc-copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.asc-copy-btn:hover { color: var(--neon-purple); }
/* Severity grid */
.asc-severity-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.asc-sev-box {
    flex: 1;
    min-width: 52px;
    background: rgba(255,255,255,0.03);
    border: 1px solid;
    border-radius: 10px;
    padding: 0.55rem 0.4rem;
    text-align: center;
}
.asc-sev-count { display: block; font-size: 1.2rem; font-weight: 800; font-family: 'SF Mono',monospace; line-height: 1; }
.asc-sev-label { display: block; font-size: 0.6rem; color: var(--text-muted); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.5px; }
/* Ratings row */
.asc-ratings-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.7rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}
.asc-rating-pill { flex: 1; min-width: 90px; text-align: center; }
.asc-rating-label { display: block; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.asc-rating-val { font-size: 1rem; font-weight: 800; }
.asc-rating-level { display: block; font-size: 0.65rem; }
/* Expand blocks */
.asc-expand-block { margin-bottom: 0.9rem; }
.asc-expand-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.asc-expand-body {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.asc-expand-btn {
    background: none;
    border: none;
    color: var(--neon-purple);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0;
    margin-top: 0.2rem;
}

/* ── PDF Button ────────────────────────────────────────────────── */
.audit-pdf-btn {
    width: 100%;
    padding: 0.9rem;
    background: rgba(0,250,154,0.06);
    border: 1px solid rgba(0,250,154,0.2);
    border-radius: 14px;
    color: var(--accent-green);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: background 0.2s, box-shadow 0.2s;
}
.audit-pdf-btn:hover {
    background: rgba(0,250,154,0.1);
    box-shadow: 0 0 16px rgba(0,250,154,0.15);
}

/* ── Findings ──────────────────────────────────────────────────── */
.audit-findings-section { margin-bottom: 1.5rem; }
.audit-findings-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}
.af-header-counts { font-weight: 600; text-transform: none; letter-spacing: 0; }
.audit-findings-list { display: flex; flex-direction: column; gap: 0.5rem; }
.af-empty { color: var(--text-muted); font-size: 0.82rem; }
.af-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-left: 4px solid;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.af-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
}
.af-id { font-family: 'SF Mono',monospace; font-size: 0.72rem; font-weight: 700; }
.af-sev-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.af-title { font-size: 0.85rem; font-weight: 600; flex: 1; color: var(--text-main); }
.af-resolved { text-decoration: line-through; opacity: 0.6; }
.af-chevron { color: var(--text-muted); font-size: 1rem; transition: transform 0.2s; }
.af-body {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.1rem 1rem 0.85rem;
    border-top: 1px solid var(--glass-border);
}
.af-body.open { display: flex; }
.af-field { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.8rem; }
.af-field-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); }
.af-status-resolved { color: var(--accent-green); font-weight: 700; }
.af-status-open { color: #ff8c42; font-weight: 700; }

/* ── AI Audit Chat ─────────────────────────────────────────────── */
.audit-chat-section {
    background: rgba(10,5,20,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.2rem;
    margin-bottom: 2rem;
}
.audit-chat-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
}
.audit-chat-icon { font-size: 1.8rem; }
.audit-chat-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.audit-chat-subtitle { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }
/* chips */
.audit-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.audit-chat-chip {
    background: rgba(138,43,226,0.08);
    border: 1px solid rgba(138,43,226,0.2);
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.audit-chat-chip:hover {
    background: rgba(138,43,226,0.18);
    border-color: var(--neon-purple);
    color: var(--text-main);
}
/* empty state */
.audit-chat-empty {
    text-align: center;
    padding: 1.5rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}
/* chat messages */
.audit-chat-history {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 0.8rem;
}
.audit-chat-msg {
    max-width: 88%;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    font-size: 0.83rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}
.audit-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(138,43,226,0.4), rgba(80,20,180,0.5));
    border: 1px solid rgba(138,43,226,0.3);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.audit-msg-ai {
    align-self: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}
/* sticky input */
.audit-chat-input-wrap {
    display: flex;
    gap: 0.5rem;
    position: sticky;
    bottom: 0;
    background: rgba(3,0,5,0.92);
    backdrop-filter: blur(12px);
    padding: 0.5rem 0 0;
    margin: 0 -1.2rem -1.2rem;
    padding: 0.6rem 1.2rem;
    border-top: 1px solid var(--glass-border);
    border-radius: 0 0 20px 20px;
}
.audit-chat-input-field {
    flex: 1;
    background: rgba(20,10,35,0.7);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}
.audit-chat-input-field:focus { border-color: var(--neon-purple); }
.audit-chat-send-btn {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(138,43,226,0.7), rgba(80,20,180,0.8));
    border: 1px solid rgba(138,43,226,0.4);
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.audit-chat-send-btn:hover {
    box-shadow: 0 0 14px rgba(138,43,226,0.4);
    transform: scale(1.05);
}


/* ================================================================
   VISUAL POLISH PASS — PHOSPHOR ICONS + MOBILE-FIRST UPGRADES
================================================================ */

/* ── Phosphor icon baseline ─────────────────────────────────────*/
i[class*="ph"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

/* ── Bottom Navigation — redesigned for Phosphor icons ──────────*/
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(6, 3, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 0;
    height: 62px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 62px;
    text-decoration: none;
    color: rgba(255,255,255,0.38);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.nav-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background 0.18s ease, transform 0.15s ease;
}

.nav-icon-wrap i {
    font-size: 1.35rem;
    line-height: 1;
}

.nav-item .label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1;
}

/* Active state */
.nav-item.active {
    color: var(--neon-purple);
}

.nav-item.active .nav-icon-wrap {
    background: rgba(138,43,226,0.14);
    transform: translateY(-1px);
}

/* Active indicator bar */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--neon-purple);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 8px rgba(138,43,226,0.5);
}

.nav-item:hover:not(.active) .nav-icon-wrap {
    background: rgba(255,255,255,0.05);
}

/* ── Send Button — redesigned ───────────────────────────────────*/
.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, rgba(138,43,226,0.85), rgba(80,20,180,0.95));
    border: 1px solid rgba(138,43,226,0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(138,43,226,0.3);
    box-sizing: border-box;
}

.send-btn:hover {
    box-shadow: 0 6px 20px rgba(138,43,226,0.45);
    transform: translateY(-1px);
}

.send-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(138,43,226,0.25);
}

/* ── Chat input wrapper ─────────────────────────────────────────*/
.chat-input-wrapper {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0 1rem; /* Exactly 1rem from screen edges */
    margin: 0 -1.5rem 0.75rem -1.5rem; /* Negates parent 1.5rem padding */
    width: calc(100% + 3rem); /* Forces full viewport width */
    box-sizing: border-box;
}

.chat-input-box {
    flex: 1;
    min-width: 0;
    height: 42px;
    background: rgba(20,10,35,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.chat-input-box:focus-within {
    border-color: rgba(138,43,226,0.45);
    box-shadow: 0 0 0 3px rgba(138,43,226,0.1);
}

.chat-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    color: #fff;
    font-size: 0.85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    outline: none;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: none;
}

.chat-input::placeholder {
    color: rgba(255,255,255,0.3);
}

/* ── Section icon — compatible with Phosphor ────────────────────*/
.section-icon {
    font-size: unset;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138,43,226,0.12);
    border: 1px solid rgba(138,43,226,0.2);
    border-radius: 16px;
    animation: none; /* remove float animation from section icon */
}

/* ── Legal hero icon ────────────────────────────────────────────*/
.legal-hero-icon {
    font-size: unset;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138,43,226,0.12);
    border: 1.5px solid rgba(138,43,226,0.25);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(138,43,226,0.2), 0 0 40px rgba(138,43,226,0.1);
    animation: none;
}

/* ── Tool badge with Phosphor icon ──────────────────────────────*/
.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

.tool-badge i {
    font-size: 0.95rem;
}

/* ── Community card icons — brand-colored ───────────────────────*/
.community-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: unset;
    transition: transform 0.2s ease;
}

.community-card:hover .community-icon {
    transform: scale(1.08);
}

/* Per-platform icon colors */
.community-icon--telegram {
    background: rgba(38, 169, 224, 0.12);
    border: 1px solid rgba(38, 169, 224, 0.25);
    color: #26a9e0;
}

.community-icon--discord {
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.25);
    color: #5865f2;
}

.community-icon--youtube {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.community-icon--github {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255,255,255,0.85);
}

.community-icon--twitter {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255,255,255,0.9);
}

.community-icon--medium {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255,255,255,0.8);
}

/* ── Community stats row ────────────────────────────────────────*/
.community-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

/* ── Advantage card icon containers ────────────────────────────*/
.advantage-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138,43,226,0.1);
    border: 1px solid rgba(138,43,226,0.2);
    border-radius: 16px;
    font-size: unset;
    color: var(--neon-purple);
    box-shadow: 0 4px 14px rgba(138,43,226,0.12);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.advantage-card:hover .advantage-icon {
    background: rgba(138,43,226,0.16);
    box-shadow: 0 6px 20px rgba(138,43,226,0.2);
}

/* ── AI Audit section: icon containers ─────────────────────────*/
.ai-audit-header-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138,43,226,0.12);
    border: 1px solid rgba(138,43,226,0.22);
    border-radius: 17px;
    flex-shrink: 0;
    font-size: unset;
}

.ai-audit-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138,43,226,0.08);
    border: 1px solid rgba(138,43,226,0.16);
    border-radius: 20px;
    font-size: unset;
}

.audit-chat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138,43,226,0.1);
    border: 1px solid rgba(138,43,226,0.2);
    border-radius: 15px;
    flex-shrink: 0;
    font-size: unset;
}

/* ── Mobile-first improvements ──────────────────────────────────*/

/* Ensure all interactive elements have 44px+ tap area */
button, .nav-item, .chip, .community-btn, .tool-action-btn, .tool-info-btn {
    min-height: 44px;
}

/* Main content padding on mobile */
@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
        padding-bottom: calc(var(--bottom-nav-height) + 5rem);
    }

    .page-title {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    /* Tool cards: tighter on small screens */
    .tool-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .tool-title { font-size: 1rem; }
    .tool-description { font-size: 0.8rem; }

    /* Audit section on small screens */
    .asc-score-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .asc-ring-wrap {
        margin-bottom: 0.8rem;
    }

    .asc-ratings-row {
        flex-wrap: wrap;
    }
}

/* Community grid: 2 columns always */
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 360px) {
    .community-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
}

/* Community card refinements */
.community-card {
    border-radius: 18px;
    padding: 1.1rem 0.8rem;
    text-align: center;
    background: rgba(20,10,35,0.5);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.community-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.13);
    background: rgba(30,15,50,0.6);
}

.community-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.community-btn {
    width: 100%;
    padding: 0.55rem 0.5rem;
    background: rgba(138,43,226,0.1);
    border: 1px solid rgba(138,43,226,0.25);
    border-radius: 10px;
    color: var(--neon-purple);
    font-size: 0.73rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, border-color 0.2s ease;
    min-height: 36px;
}

.community-btn:hover {
    background: rgba(138,43,226,0.18);
    border-color: rgba(138,43,226,0.4);
}

/* Advantage grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 600px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.advantage-card {
    background: rgba(20,10,35,0.5);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 1.2rem 1rem;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.advantage-card:hover {
    border-color: rgba(138,43,226,0.22);
    background: rgba(30,15,50,0.6);
}

.advantage-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.advantage-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* stat-card (legal/about page) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(20,10,35,0.5);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 1rem 0.8rem;
    text-align: center;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, var(--neon-purple) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.3;
}


/* ================================================================
   AI AUDIT ENTRY SCREEN — Complete CSS
   (aue-* = "Audit UI Entry" namespace)
================================================================ */

/* ── View scroll fix: view sections must scroll naturally ────── */
.view-section {
    display: block;
    width: 100%;
}

.view-section.hidden {
    display: none !important;
}

/* Main must be scrollable */
main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: calc(var(--bottom-nav-height) + 4rem);
}

/* ── Hero header — compact, side-by-side ─────────────────────── */
.aue-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem 1.25rem;
    background: linear-gradient(135deg,
        rgba(138,43,226,0.08) 0%,
        rgba(0,150,255,0.05) 100%);
    border-bottom: 1px solid rgba(138,43,226,0.12);
    position: relative;
    overflow: hidden;
}

.aue-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%,
        rgba(138,43,226,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.aue-hero-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138,43,226,0.12);
    border: 1.5px solid rgba(138,43,226,0.25);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(138,43,226,0.2);
}

.aue-hero-icon i {
    font-size: 1.75rem;
    color: var(--neon-purple);
    filter: drop-shadow(0 0 8px rgba(138,43,226,0.4));
}

.aue-hero-text { flex: 1; min-width: 0; }

.aue-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.aue-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ── Input block ─────────────────────────────────────────────── */
.aue-input-block {
    padding: 1rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.aue-input-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(15,8,28,0.8);
    border: 1.5px solid rgba(138,43,226,0.2);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aue-input-row:focus-within {
    border-color: rgba(138,43,226,0.5);
    box-shadow: 0 0 0 3px rgba(138,43,226,0.1);
}

.aue-search-icon {
    padding: 0 0.7rem 0 0.9rem;
    font-size: 1rem;
    color: rgba(138,43,226,0.5);
    flex-shrink: 0;
    line-height: 1;
}

.aue-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    padding: 0.85rem 0.5rem;
    min-width: 0;
}

.aue-input::placeholder {
    color: rgba(255,255,255,0.25);
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.82rem;
}

.aue-paste-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 0.9rem;
    background: rgba(138,43,226,0.12);
    border: none;
    border-left: 1px solid rgba(138,43,226,0.2);
    color: #c5a3ff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
    letter-spacing: 0.2px;
}

.aue-paste-btn:hover {
    background: rgba(138,43,226,0.2);
}

.aue-paste-btn i { font-size: 0.9rem; }

.aue-error {
    font-size: 0.78rem;
    color: var(--accent-red);
    padding: 0.3rem 0.5rem;
    background: rgba(255,42,109,0.08);
    border-radius: 8px;
    border: 1px solid rgba(255,42,109,0.2);
}

/* ── Analyze CTA button ──────────────────────────────────────── */
.aue-analyze-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.25rem;
    background: linear-gradient(135deg, rgba(138,43,226,1), rgba(90,20,180,1));
    border: 1px solid rgba(138,43,226,0.4);
    border-radius: 14px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    min-height: 52px;
    box-shadow:
        0 4px 16px rgba(138,43,226,0.3),
        inset 0 1px 0 rgba(255,255,255,0.12);
    position: relative;
    overflow: hidden;
}

.aue-analyze-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.5s ease;
}

.aue-analyze-btn:hover::after { left: 100%; }

.aue-analyze-btn:hover {
    box-shadow: 0 6px 24px rgba(138,43,226,0.45);
    transform: translateY(-1px);
}

.aue-analyze-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(138,43,226,0.2);
}

.aue-analyze-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.aue-analyze-btn i { font-size: 1rem; }

/* Spinner inside button */
.audit-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auditSpin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes auditSpin { to { transform: rotate(360deg); } }

/* ── Demo preset chips ───────────────────────────────────────── */
.aue-demo-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem 0.2rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.aue-demo-chips::-webkit-scrollbar { display: none; }

.aue-chips-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.aue-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(138,43,226,0.08);
    border: 1px solid rgba(138,43,226,0.2);
    border-radius: 100px;
    color: #c5a3ff;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
    min-height: 30px;
    letter-spacing: 0.2px;
}

.aue-chip:hover {
    background: rgba(138,43,226,0.16);
    border-color: rgba(138,43,226,0.4);
    color: #e0c8ff;
    transform: translateY(-1px);
}

.aue-chip:active { transform: scale(0.96); }

/* ── List header ─────────────────────────────────────────────── */
.aue-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.6rem;
}

.aue-list-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aue-clear-btn {
    font-size: 0.7rem;
    color: rgba(255,42,109,0.7);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: color 0.15s ease;
}
.aue-clear-btn:hover { color: var(--accent-red); }

/* ── Empty state ─────────────────────────────────────────────── */
.aue-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 3rem;
    text-align: center;
}

.aue-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138,43,226,0.06);
    border: 1.5px solid rgba(138,43,226,0.14);
    border-radius: 20px;
}

.aue-empty-icon i {
    font-size: 1.9rem;
    color: rgba(138,43,226,0.4);
}

.aue-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.aue-empty-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 240px;
}

/* ── Audit history cards ─────────────────────────────────────── */
.aue-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1rem 6rem;
}

.aue-card {
    background: rgba(18,10,30,0.7);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--neon-purple);
    border-radius: 14px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.aue-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(138,43,226,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.aue-card:hover {
    background: rgba(25,15,42,0.85);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.aue-card:active { transform: scale(0.99); }

.aue-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.aue-card-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.aue-card-score {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.aue-card-score-100 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 1px;
}

.aue-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aue-card-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.aue-dot { color: rgba(255,255,255,0.25); }
.aue-addr { font-family: monospace; font-size: 0.7rem; }

.aue-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.aue-card-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.aue-card-counts {
    display: flex;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.aue-card-chevron {
    margin-left: auto;
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    transition: transform 0.15s ease;
}

.aue-card:hover .aue-card-chevron {
    transform: translateX(3px);
    color: rgba(255,255,255,0.4);
}

/* ── Detail screen topbar improvements ───────────────────────── */
.audit-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgba(6,3,12,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.audit-back-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    min-height: 36px;
    transition: all 0.15s ease;
}

.audit-back-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.audit-detail-topbar-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Inline PDF download btn (top bar) */
.audit-pdf-btn-inline {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 10px;
    color: var(--accent-gold);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.audit-pdf-btn-inline:hover {
    background: rgba(255,215,0,0.18);
    border-color: rgba(255,215,0,0.4);
}

/* ── Detail screen padding fix ───────────────────────────────── */
#audit-detail-screen {
    padding-bottom: 6rem;
}

#audit-detail-screen .audit-summary-card {
    margin: 1rem;
    border-radius: 16px;
}

#audit-detail-screen .audit-findings-section,
#audit-detail-screen .audit-chat-section {
    padding: 0 1rem;
}

/* ── Small screen tweaks for entry ──────────────────────────── */
@media (max-width: 360px) {
    .aue-title { font-size: 1.15rem; }
    .aue-hero-icon { width: 44px; height: 44px; }
    .aue-hero-icon i { font-size: 1.4rem; }
    .aue-analyze-btn { font-size: 0.88rem; }
}

/* ================================================================
   AUDIT DETAIL SCREEN — New Component CSS
   Namespaces:
     arh-*  = Audit Report Hero (score card)
     adc-*  = Audit Discussion Chat (AI section)
     afa-*  = Audit Findings Accordion
     ard-*  = Audit Report Details (collapsible)
     apdf-* = Audit PDF Card
================================================================ */

/* ── Topbar ──────────────────────────────────────────────────── */
.audit-detail-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-dark, #0d0f17);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.audit-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border: none;
    color: var(--text-muted, #8a8aae);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    min-width: 64px;
    transition: color 0.15s, background 0.15s;
}
.audit-back-btn:hover { color:#fff; background: rgba(255,255,255,0.07); }
.audit-detail-topbar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #e8e8f0);
    letter-spacing: 0.01em;
    text-align: center;
    flex: 1;
}

/* ── Score Hero (arh-*) ──────────────────────────────────────── */
.audit-summary-card {
    margin: 0.75rem;
    border-radius: 16px;
    background: rgba(20, 22, 36, 0.45);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}
.arh-root { width: 100%; }
.arh-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.arh-risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.arh-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.arh-report-id {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    font-family: 'Courier New', monospace;
    margin-left: auto;
}
.arh-network {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}
.arh-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
}
.arh-ring-wrap {
    position: relative;
    width: 80px; height: 80px;
    flex-shrink: 0;
}
.arh-ring {
    width: 80px; height: 80px;
    transform: rotate(-90deg);
}
.arh-track {
    fill: none;
    stroke: rgba(255,255,255,0.07);
    stroke-width: 7;
    stroke-linecap: round;
}
.arh-fill {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dashoffset: 0;
    transition: stroke-dasharray 0.8s cubic-bezier(.4,0,.2,1);
}
.arh-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.arh-score {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}
.arh-score-sub {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.4);
    display: block;
}
.arh-meta { flex: 1; min-width: 0; }
.arh-protocol {
    font-size: 0.97rem;
    font-weight: 600;
    color: #e8e8f0;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.arh-contract-type {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.arh-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
}
.arh-mono {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
}
.arh-copy-btn {
    background: none; border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: color 0.15s;
}
.arh-copy-btn:hover { color: rgba(255,255,255,0.7); }
.arh-date-line {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.25rem;
}
.arh-sev-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.arh-sev {
    font-size: 0.75rem;
    font-weight: 600;
}
.arh-sev-sep {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

/* ── AI Discussion Section (adc-*) — PRIMARY module ─────────── */
.adc-chat-section {
    margin: 0.5rem 0.75rem;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}
.adc-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}
.adc-chat-icon {
    width: 44px; height: 44px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.adc-chat-icon i { font-size: 1.4rem; color: #818cf8; }
.adc-chat-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f3f4f6;
    letter-spacing: 0.015em;
}
.adc-chat-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

/* Chat chips */
.audit-chat-chips {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.audit-chat-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.audit-chat-chip:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #f3f4f6;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.audit-chat-empty {
    padding: 1.5rem 1.1rem;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #9ca3af;
}
.audit-chat-history {
    max-height: 280px;
    overflow-y: auto;
    padding: 1rem 1.1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.audit-chat-msg {
    padding: 0.65rem 0.95rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.55;
    max-width: 88%;
    word-break: break-word;
}
.audit-msg-user {
    align-self: flex-end;
    background: rgba(99, 102, 241, 0.25);
    color: #f3f4f6;
    border-radius: 14px 14px 4px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.audit-msg-ai {
    align-self: flex-start;
    background: rgba(255,255,255,0.04);
    color: #d1d5db;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.audit-chat-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.1rem 0.8rem 1.6rem; /* Left padding increased to shrink input left border and center visual weight */
    border-top: 1px solid rgba(255,255,255,0.04);
}
.audit-chat-input-field {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    color: #f3f4f6;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
.audit-chat-input-field:focus { 
    border-color: rgba(99, 102, 241, 0.5); 
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.2), 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.audit-chat-send-btn {
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.2);
    border: none;
    cursor: pointer;
    color: #818cf8;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.audit-chat-send-btn:hover { 
    background: rgba(99, 102, 241, 0.35); 
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ── Findings Accordion (afa-*) ──────────────────────────────── */
.audit-findings-section {
    margin: 0.5rem 0.75rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}
.afa-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.afa-header-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #c8c8d8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.afa-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.afa-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
}
.afa-list { padding: 0.35rem 0; }

/* Individual finding item */
.afa-item {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.afa-item:last-child { border-bottom: none; }
.afa-item-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    transition: background 0.12s;
}
.afa-item-head:hover { background: rgba(255,255,255,0.03); }
.afa-sev-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.afa-item-title {
    flex: 1;
    font-size: 0.85rem;
    color: #e8e8f0;
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1.4;
}
.afa-resolved { text-decoration: line-through; color: rgba(255,255,255,0.3); }
.afa-chevron {
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}
/* Expanded body */
.afa-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
/* Expanded body animated via inline JS scrollHeight */
.afa-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.afa-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.3);
}
.afa-val {
    font-size: 0.82rem;
    color: #d1d5db;
    letter-spacing: 0.01em;
    line-height: 1.5;
}
.afa-mono { font-family: 'Courier New', monospace; font-size: 0.75rem; }
.afa-status-ok  { color: #34d399; font-weight: 600; }
.afa-status-open { color: #fb923c; font-weight: 600; }

/* ── Report Details drawer (ard-*) ──────────────────────────── */
.ard-container {
    margin: 0.5rem 0.75rem;
}
.ard-root {
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}
.ard-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}
.ard-toggle-icon { font-size: 1rem; color: rgba(255,255,255,0.4); }
.ard-toggle-label {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
}
.ard-caret {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.3);
    transition: transform 0.2s;
}
.ard-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.ard-inner {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.ard-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.6rem;
}
.ard-rating-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.ard-rating-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    width: 80px;
    flex-shrink: 0;
}
.ard-rating-bar {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.ard-rating-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(.4,0,.2,1);
}
.ard-rating-val {
    font-size: 0.72rem;
    font-weight: 700;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}
.ard-text {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.55;
    margin: 0;
}

/* ── PDF Card (apdf-*) ──────────────────────────────────────── */
.apdf-container {
    margin: 0.5rem 0.75rem 1.5rem;
}
.apdf-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.apdf-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.apdf-icon {
    width: 44px; height: 44px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    color: #10b981;
}
.apdf-info { min-width: 0; }
.apdf-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e8e8f0;
}
.apdf-id {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    font-family: 'Courier New', monospace;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.apdf-ready {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #10b981;
    margin-top: 0.25rem;
}
.apdf-dot {
    width: 6px; height: 6px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.55; transform:scale(0.85); }
}
.apdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    background: #10b981;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}
.apdf-btn:hover {
    background: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* Global state overrides */
body.ai-audit-active .chat-input-wrapper {
    display: none !important;
}

/* --- Ready PDF's List View --- */
.aue-pdf-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    padding-bottom: 24px;
}
.aue-pdf-row {
    display: flex;
    align-items: center;
    background: rgba(18, 22, 38, 0.75);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.aue-pdf-row:hover {
    background: rgba(24, 28, 48, 0.95);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}
.aue-pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 1.4rem;
    margin-right: 16px;
    flex-shrink: 0;
}
.aue-pdf-info {
    flex: 1;
    min-width: 0;
}
.aue-pdf-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aue-pdf-meta {
    font-size: 0.8rem;
    color: #94a3b8;
}
.aue-pdf-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    margin-left: 12px;
}
.aue-pdf-row:hover .aue-pdf-action {
    background: rgba(124, 58, 237, 0.2);
    color: #a855f7;
}