/* Vercel-inspired Design System */ :root { --bg-primary: #000000; --bg-secondary: #0a0a0a; --fg-primary: #ededed; --fg-secondary: #a1a1a1; --accent: #fff; --accent-glow: 0 0 40px -10px rgba(255, 255, 255, 0.3); --border: #333; --border-hover: #555; --font-sans: 'Geist Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --font-mono: 'Geist Mono', 'Fira Code', monospace; --radius: 8px; --transition: all 0.2s ease; } /* Base Reset */ * { box-sizing: border-box; margin: 0; padding: 0; } body { background-color: var(--bg-primary); color: var(--fg-primary); font-family: var(--font-sans); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; /* Prevent horizontal scroll from orbs */ } /* Ambient Background Orbs */ .ambient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #000 100%); } .orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.12; transition: var(--transition); } .orb-1 { width: 500px; height: 500px; background: #fff; top: -100px; right: -100px; animation: float1 30s infinite alternate ease-in-out; } .orb-2 { width: 400px; height: 400px; background: #444; bottom: -100px; left: -50px; animation: float2 25s infinite alternate ease-in-out; } .orb-3 { width: 300px; height: 300px; background: #222; top: 40%; left: 20%; animation: float3 20s infinite alternate ease-in-out; } @keyframes float1 { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(-200px, 200px) rotate(90deg); } } @keyframes float2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(150px, -150px) scale(1.2); } } @keyframes float3 { 0% { transform: translate(0, 0); } 100% { transform: translate(100px, 100px); } } .loading-spinner { width: 24px; height: 24px; border: 2px solid rgba(255, 255, 255, 0.1); border-top-color: #50e3c2; border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Typography */ h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.04em; color: var(--fg-primary); } a { color: var(--fg-primary); text-decoration: none; transition: var(--transition); } a:hover { text-decoration: underline; } /* Components */ .container { max-width: 480px; margin: 0 auto; padding: 2rem 1.5rem; /* Increased vertical padding to prevent edge sticking */ width: 100%; min-height: 100vh; display: flex; flex-direction: column; } .content-wrapper { flex: 1; /* Pushes footer down */ width: 100%; } .card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; transition: var(--transition); } .card:hover { border-color: var(--border-hover); } .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 500; font-size: 0.875rem; cursor: pointer; transition: var(--transition); border: 1px solid transparent; text-decoration: none !important; user-select: none; } .btn-primary { background: var(--fg-primary); color: var(--bg-primary); font-weight: 600; } .btn-primary:hover { background: #ccc; box-shadow: var(--accent-glow); } .btn-outline { background: transparent; border-color: var(--border); color: var(--fg-secondary); } .btn-outline:hover { border-color: var(--fg-primary); color: var(--fg-primary); } .btn-outline:hover img { filter: brightness(0) invert(1); } /* Inputs */ .input-group { margin-bottom: 1rem; } .input-label { display: block; font-size: 0.75rem; color: var(--fg-secondary); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; } .input-field { width: 100%; padding: 0.75rem; background: #000; border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg-primary); font-family: var(--font-mono); font-size: 0.875rem; transition: var(--transition); } .input-field:focus { outline: none; border-color: var(--fg-primary); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1); } /* Global Autofill Styling for all inputs/selects/textareas */ input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, select:-webkit-autofill, select:-webkit-autofill:hover, select:-webkit-autofill:focus, textarea:-webkit-autofill, textarea:-webkit-autofill:hover, textarea:-webkit-autofill:focus { -webkit-text-fill-color: var(--fg-primary) !important; -webkit-box-shadow: 0 0 0px 1000px #000 inset !important; transition: background-color 5000s ease-in-out 0s; } /* Tabs */ .tabs { display: flex; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); } .tab-btn { flex: 1; text-align: center; padding: 0.75rem; cursor: pointer; color: var(--fg-secondary); border-bottom: 2px solid transparent; font-size: 0.875rem; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; } .tab-btn.active { color: var(--fg-primary); border-bottom-color: var(--fg-primary); } /* Header */ .header { text-align: center; margin-bottom: 2rem; } .logo-text { font-size: 2rem; background: linear-gradient(to bottom right, #fff 50%, #666 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; display: none; /* Hide text logo if image is used */ } .logo-img { max-width: 150px; /* Adjust size as needed */ height: auto; margin-bottom: 1rem; display: block; margin-left: auto; margin-right: auto; } .status-badge { display: inline-block; font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--fg-secondary); border: 1px solid var(--border); } /* Custom Language Dropdown */ .lang-dropdown { position: absolute; top: 1rem; right: 1.5rem; z-index: 100; } .lang-btn { display: flex; align-items: center; gap: 8px; background: var(--bg-secondary); border: 1px solid var(--border); padding: 6px 12px; border-radius: 6px; cursor: pointer; transition: var(--transition); color: var(--fg-primary); font-size: 11px; font-weight: 600; text-transform: uppercase; user-select: none; } .lang-btn:hover { border-color: var(--border-hover); } .lang-btn img { width: 14px; height: 14px; opacity: 0.7; } .lang-menu { position: absolute; top: calc(100% + 8px); /* More space */ right: 0; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: none; min-width: 100px; /* Slightly wider */ box-shadow: 0 10px 25px rgba(0,0,0,0.8); /* Deeper shadow */ animation: fadeInScale 0.15s ease-out; } .lang-menu.show { display: block; } .lang-option { padding: 10px 16px; /* Larger hit area */ font-size: 11px; cursor: pointer; transition: var(--transition); color: var(--fg-secondary); font-weight: 600; text-transform: uppercase; } .lang-option:hover { background: rgba(255,255,255,0.08); /* Brighter hover */ color: var(--fg-primary); } .lang-option.active { display: none; /* Hide active language from list to keep it 'relevant' */ } @keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } @media (max-width: 480px) { .container { padding: 1rem; justify-content: flex-start; /* Start from top on smaller mobile to prevent clipping */ padding-top: 2rem; } .lang-dropdown { top: 0.75rem; right: 1rem; } .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); } } @media (max-height: 700px) { .container { justify-content: flex-start; padding-top: 1rem; } .header { margin-bottom: 1rem; } } /* Sections */ .hidden { display: none; } /* Pricing Grid */ .text-time { color: #50e3c2 !important; } .text-quota { color: #3b82f6 !important; } .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.75rem; } .pricing-card { text-align: center; padding: 1rem 0.5rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); } .pricing-card:hover { border-color: var(--border-hover); } .price { font-size: 1.25rem; font-weight: 700; color: var(--fg-primary); } .duration { font-size: 0.75rem; color: var(--fg-secondary); } /* Footer */ footer { text-align: center; margin-top: auto; /* Sticky bottom logic */ padding-top: 2rem; padding-bottom: 2rem; color: var(--fg-tertiary); font-size: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.15); /* Slightly more visible line */ width: 100%; } /* QR Scanner Modal */ #qr-scanner-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 1000; display: none; flex-direction: column; align-items: center; justify-content: flex-start; /* Change from center to avoid clipping */ padding: 2rem 0; /* Add padding for scroll room */ overflow-y: auto; /* Enable scrolling */ } #reader { width: 100%; max-width: 500px; } .close-modal { position: fixed; /* Change from absolute to fixed */ top: 1rem; right: 1.5rem; background: rgba(0,0,0,0.5); /* Add subtle bg for better visibility on images */ border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 1010; /* Ensure it stays on top */ } /* Dashboard Refinement */ .greeting-text { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--fg-primary); } .sub-greeting { font-size: 0.875rem; color: var(--fg-secondary); margin-bottom: 1.5rem; } .progress-container { width: 100%; height: 6px; background: #1a1a1a; border-radius: 3px; margin-top: 0.5rem; overflow: hidden; } .progress-bar { height: 100%; border-radius: 3px; transition: width 1s ease-in-out; } .progress-time { background: #50e3c2; } .progress-quota { background: #0070f3; } .dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; } .dashboard-item { background: rgba(255, 255, 255, 0.03); padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border); } .dashboard-item .label { font-size: 0.75rem; text-transform: uppercase; color: var(--fg-secondary); letter-spacing: 0.05em; margin-bottom: 0.5rem; display: flex; align-items: center; } .dashboard-item .value { font-size: 0.875rem; font-weight: 600; } .btn-disabled { opacity: 0.5; cursor: not-allowed !important; pointer-events: none; } /* Icons & Input Wrappers */ .icon { width: 20px; height: 20px; vertical-align: middle; display: inline-block; } .input-wrapper { position: relative; } .input-icon-img { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; opacity: 0.9; pointer-events: none; } .input-with-icon { padding-left: 36px !important; } .password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0.7; transition: var(--transition); color: var(--fg-secondary); } .password-toggle:hover { opacity: 1; color: var(--fg-primary); } .password-toggle img { width: 18px; height: 18px; } .input-with-toggle { padding-right: 40px !important; } .tab-btn img { width: 16px; height: 16px; opacity: 0.7; } .tab-btn.active img { opacity: 1; } /* Utility */ .text-center { text-align: center; } .mt-4 { margin-top: 1rem; } .mb-4 { margin-bottom: 1rem; } .text-sm { font-size: 0.875rem; } .opacity-50 { opacity: 0.5; } .flex-center { display: flex; align-items: center; justify-content: center; } .scanner-controls { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; padding: 1rem; } #qr-confirm-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 2rem; z-index: 10; } #qr-confirm-overlay.hidden, .modal.hidden { display: none; } .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 2rem; z-index: 2000; } .modal-content { width: 100%; max-width: 320px; } .confirm-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; width: 100%; max-width: 320px; animation: fadeInScale 0.2s ease-out; } .confirm-details { background: #000; border: 1px solid var(--border); border-radius: 6px; padding: 1rem; } .confirm-item { display: flex; flex-direction: column; gap: 4px; } .confirm-label { font-size: 0.7rem; color: var(--fg-secondary); text-transform: uppercase; letter-spacing: 0.05em; } .confirm-value { font-family: var(--font-mono); font-size: 1.125rem; color: var(--fg-primary); word-break: break-all; }