/* ============================================
   AV7 SMART PORTAL - Netflix-Style Design System
   Open Catalog + OTP Auth + Asaas Integration
   ============================================ */

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --bg-card: #16162e;
    --bg-card-hover: #1e1e40;
    --bg-surface: #1a1a3e;
    --bg-input: #1c1c3a;
    --bg-nav: rgba(10, 10, 26, 0.85);

    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8e;
    --text-accent: #c8b6ff;

    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --accent-tertiary: #c084fc;
    --accent-glow: rgba(124, 58, 237, 0.4);

    --gradient-hero: linear-gradient(135deg, #4c1d95 0%, #7c3aed 40%, #a855f7 70%, #c084fc 100%);
    --gradient-button: linear-gradient(135deg, #7c3aed, #a855f7);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-success: linear-gradient(135deg, #059669, #10b981);
    --gradient-danger: linear-gradient(135deg, #dc2626, #ef4444);

    --border-color: rgba(124, 58, 237, 0.15);
    --border-glow: rgba(124, 58, 237, 0.3);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 68px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
input { font-family: inherit; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 4px; }

/* ============================================
   NAVIGATION
   ============================================ */
.portal-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 1000;
    transition: background var(--transition-normal);
}
.portal-nav.scrolled {
    background: rgba(10, 10, 26, 0.95);
    box-shadow: var(--shadow-md);
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.nav-logo-icon { font-size: 24px; }
.nav-logo-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-link {
    padding: 8px 16px; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); border-radius: var(--radius-sm);
    transition: all var(--transition-fast); position: relative;
}
.nav-link:hover { color: var(--text-primary); background: rgba(124, 58, 237, 0.1); }
.nav-link.active { color: var(--text-primary); background: rgba(124, 58, 237, 0.15); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px; background: var(--accent-primary); border-radius: 1px;
}
.nav-right { display: flex; align-items: center; gap: 16px; }

.btn-nav-login {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 20px;
    background: var(--gradient-button);
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; color: white;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px var(--accent-glow);
}
.btn-nav-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.search-container { position: relative; display: flex; align-items: center; }
.search-toggle {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all var(--transition-fast);
}
.search-toggle:hover { background: rgba(124, 58, 237, 0.15); }
.search-toggle svg { width: 18px; height: 18px; color: var(--text-secondary); }
.search-input {
    width: 0; padding: 0; border: none; background: transparent;
    color: var(--text-primary); font-size: 14px; transition: all var(--transition-normal); outline: none;
}
.search-container.open .search-input {
    width: 200px; padding: 8px 12px; background: var(--bg-input);
    border: 1px solid var(--border-glow); border-radius: var(--radius-sm); margin-right: 8px;
}

/* User profile */
.user-area { display: flex; align-items: center; }
.user-profile { position: relative; cursor: pointer; }
.user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--gradient-button);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: white;
    border: 2px solid transparent; transition: all var(--transition-fast);
}
.user-avatar:hover { border-color: var(--accent-secondary); box-shadow: 0 0 15px var(--accent-glow); }
.profile-dropdown {
    position: absolute; top: calc(100% + 12px); right: 0; width: 260px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all var(--transition-fast); overflow: hidden; z-index: 100;
}
.profile-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { display: flex; align-items: center; gap: 12px; padding: 16px; }
.dropdown-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--gradient-button);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.dropdown-info { display: flex; flex-direction: column; }
.dropdown-name { font-size: 14px; font-weight: 600; }
.dropdown-email { font-size: 12px; color: var(--text-muted); }
.dropdown-divider { height: 1px; background: var(--border-color); }
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; font-size: 14px; color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-item:hover { background: rgba(124, 58, 237, 0.1); color: var(--text-primary); }
.dropdown-item.logout { color: #ef4444; }
.dropdown-item.logout:hover { background: rgba(239, 68, 68, 0.1); color: #f87171; }

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    position: relative; min-height: 400px; height: auto; display: flex; align-items: center;
    justify-content: center; text-align: center; padding: 40px 0;
    margin-top: var(--nav-height); overflow: hidden;
}
.hero-bg-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
                var(--bg-primary);
}
.hero-bg-animation { position: absolute; inset: 0; z-index: 0; }
.floating-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
    animation: floatOrb 15s infinite ease-in-out;
}
.orb-1 { width: 350px; height: 350px; background: var(--accent-primary); top: -100px; left: -50px; }
.orb-2 { width: 250px; height: 250px; background: #a855f7; bottom: -50px; right: -50px; animation-delay: -5s; }
.orb-3 { width: 200px; height: 200px; background: #6366f1; top: 40%; left: 60%; animation-delay: -10s; }
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -80px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.9); }
    75% { transform: translate(70px, 30px) scale(1.05); }
}
.hero-content {
    position: relative; z-index: 1; padding: 0 48px; max-width: 1200px;
    display: flex; flex-direction: column; align-items: center;
    animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-block; padding: 6px 16px;
    background: rgba(124, 58, 237, 0.2); border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px; font-size: 12px; font-weight: 700;
    color: var(--accent-tertiary); letter-spacing: 1px; margin-bottom: 12px;
}
.hero-title { font-size: 48px; font-weight: 900; line-height: 1.1; margin-bottom: 12px; letter-spacing: -2px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-description { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; max-width: 800px; text-align: center; margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; gap: 48px; justify-content: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number {
    font-size: 36px; font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================
   SYSTEM SECTIONS
   ============================================ */
.portal-content { padding: 20px 0 0; }
.systems-section { margin-bottom: 48px; }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 0 48px; margin-bottom: 16px; }
.section-title { font-size: 32px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.section-icon { font-size: 36px; }
.section-controls { display: flex; gap: 8px; }
.scroll-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-secondary); font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.scroll-btn:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: white; }

.systems-row {
    display: flex; gap: 16px; padding: 8px 48px 16px;
    overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.systems-row::-webkit-scrollbar { display: none; }

/* System Card */
.system-card {
    flex-shrink: 0; width: 340px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-color);
    overflow: hidden; cursor: pointer; transition: all var(--transition-normal); position: relative;
}
.system-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow); z-index: 10;
}
.card-thumbnail { width: 100%; height: 200px; position: relative; overflow: hidden; }
.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.system-card:hover .card-thumbnail img { transform: scale(1.08); }
.card-thumbnail-gradient {
    position: absolute; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.card-lock-overlay {
    position: absolute; inset: 0; background: rgba(10, 10, 26, 0.6);
    display: flex; align-items: center; justify-content: center;
}
.lock-icon {
    width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.card-badge {
    position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-active { background: var(--gradient-success); color: white; }
.badge-coming-soon { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; animation: comingSoonPulse 2s ease-in-out infinite; }
@keyframes comingSoonPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(139, 92, 246, 0.3); }
}

.card-info { padding: 24px; }
.card-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-category { font-size: 14px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.card-description { font-size: 16px; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-footer {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 12px 16px; border-top: 1px solid var(--border-color);
}
.card-action-btn {
    padding: 6px 16px; border-radius: 6px; font-size: 12px; font-weight: 600;
    transition: all var(--transition-fast);
}
.card-action-btn.btn-access { background: var(--gradient-button); color: white; }
.card-action-btn.btn-access:hover { box-shadow: 0 0 15px var(--accent-glow); transform: translateY(-1px); }
.card-action-btn.btn-coming-soon {
    background: rgba(99, 102, 241, 0.15); color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2); cursor: not-allowed; opacity: 0.7;
}
.card-action-btn.btn-details {
    background: rgba(124, 58, 237, 0.15); color: var(--accent-tertiary);
    border: 1px solid var(--border-glow);
}
.card-action-btn.btn-details:hover { background: var(--gradient-button); color: white; border-color: transparent; }

/* Coming Soon state */
.system-card.coming-soon { opacity: 0.55; filter: saturate(0.4); }
.system-card.coming-soon:hover { opacity: 0.8; filter: saturate(0.7); transform: translateY(-4px) scale(1.01); }
.coming-soon-overlay { background: rgba(10, 10, 26, 0.5) !important; backdrop-filter: blur(2px); }
.coming-soon-label {
    padding: 10px 28px; background: rgba(99, 102, 241, 0.25); backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 8px;
    font-size: 14px; font-weight: 800; letter-spacing: 3px;
    color: #c4b5fd; text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Grid */
.systems-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px; padding: 8px 48px 16px;
}
.systems-grid .system-card { width: 100%; }

/* ============================================
   AUTH MODAL (OTP)
   ============================================ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--transition-normal); padding: 20px;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-card {
    width: 100%; max-width: 640px; max-height: 90vh;
    background: var(--bg-secondary); border-radius: var(--radius-xl);
    border: 1px solid var(--border-color); overflow: hidden; overflow-y: auto;
    transform: scale(0.9) translateY(20px); transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal-card { transform: scale(1) translateY(0); }
.modal-close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
    border-radius: 50%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px);
    color: white; font-size: 16px; display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: all var(--transition-fast);
}
.modal-close:hover { background: rgba(239, 68, 68, 0.5); transform: rotate(90deg); }

/* Auth modal specifics */
.auth-modal-card { max-width: 420px; position: relative; }
.auth-step { padding: 48px 40px; text-align: center; }
.auth-icon { font-size: 56px; margin-bottom: 16px; }
.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 28px; }
.auth-subtitle strong { color: var(--accent-tertiary); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.input-group { text-align: left; }
.input-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon {
    position: absolute; left: 14px; width: 18px; height: 18px;
    color: var(--text-muted); pointer-events: none;
}
.input-wrapper input {
    width: 100%; padding: 14px 14px 14px 44px;
    background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); color: var(--text-primary); font-size: 15px;
    transition: all var(--transition-fast); outline: none;
}
.input-wrapper input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow); }
.input-wrapper input::placeholder { color: var(--text-muted); }

/* OTP inputs */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.otp-input {
    width: 48px; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
    background: var(--bg-input); border: 2px solid var(--border-color);
    border-radius: var(--radius-md); color: var(--text-primary);
    transition: all var(--transition-fast); outline: none;
}
.otp-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow); }
.otp-input.filled { border-color: var(--accent-secondary); background: rgba(124, 58, 237, 0.1); }

.btn-auth {
    width: 100%; padding: 14px; background: var(--gradient-button);
    border-radius: var(--radius-md); color: white; font-size: 15px; font-weight: 700;
    position: relative; overflow: hidden; transition: all var(--transition-normal);
    box-shadow: 0 4px 15px var(--accent-glow); display: flex; align-items: center; justify-content: center;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 6px 25px var(--accent-glow); }
.btn-auth.loading .btn-text { opacity: 0; }
.btn-auth.loading .btn-loader { display: block; }
.btn-loader {
    display: none; position: absolute; width: 24px; height: 24px;
    border: 3px solid rgba(255,255,255,0.3); border-top-color: white;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-pay {
    background: var(--gradient-gold) !important; color: #1a1a1a !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
    text-align: center;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
}
.btn-whatsapp:hover {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5) !important;
}

.auth-footer-link {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.auth-footer-link p {
    font-size: 13px;
    color: var(--text-muted);
}
.auth-footer-link a {
    color: var(--accent-tertiary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.auth-footer-link a:hover {
    color: var(--accent-secondary);
}

.auth-error {
    padding: 10px; background: rgba(220, 38, 38, 0.15); border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-sm); color: #fca5a5; font-size: 13px; text-align: center; display: none;
}
.auth-error.show { display: block; animation: shake 0.5s ease-in-out; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.auth-resend { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-resend { font-size: 13px; color: var(--accent-tertiary); font-weight: 600; transition: color var(--transition-fast); }
.btn-resend:hover { color: var(--accent-secondary); }
.btn-resend:disabled { color: var(--text-muted); cursor: not-allowed; }
.resend-timer { font-size: 12px; color: var(--text-muted); }
.btn-back-email { margin-top: 12px; font-size: 13px; color: var(--text-muted); transition: color var(--transition-fast); }
.btn-back-email:hover { color: var(--accent-tertiary); }

/* System detail modal */
.modal-hero { position: relative; height: 240px; background-size: cover; background-position: center; }
.modal-hero-gradient { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 60%); }
.modal-badge {
    position: absolute; bottom: 16px; left: 24px; padding: 6px 14px; border-radius: 8px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; z-index: 5;
}
.modal-body { padding: 0 24px 24px; position: relative; z-index: 5; }
.modal-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.modal-category { font-size: 13px; color: var(--accent-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.modal-description { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px; }
.modal-features { margin-bottom: 24px; }
.modal-features h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feature-item {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary);
    padding: 8px 12px; background: rgba(124, 58, 237, 0.05);
    border-radius: var(--radius-sm); border: 1px solid rgba(124, 58, 237, 0.08);
}
.feature-check { color: #10b981; font-size: 14px; flex-shrink: 0; }
.modal-actions { display: flex; gap: 12px; }
.modal-btn {
    flex: 1; padding: 14px 24px; border-radius: var(--radius-md);
    font-size: 15px; font-weight: 700; text-align: center; transition: all var(--transition-fast);
}
.modal-btn-primary { background: var(--gradient-button); color: white; box-shadow: 0 4px 15px var(--accent-glow); }
.modal-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px var(--accent-glow); }
.modal-btn-secondary { background: rgba(124, 58, 237, 0.1); color: var(--accent-tertiary); border: 1px solid var(--border-glow); }
.modal-btn-secondary:hover { background: rgba(124, 58, 237, 0.2); }
.modal-btn-coming-soon { background: linear-gradient(135deg, #4338ca, #6366f1) !important; color: white !important; opacity: 0.7; cursor: not-allowed; }

/* ============================================
   FOOTER
   ============================================ */
.portal-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); margin-top: 60px; }
.footer-content { display: flex; justify-content: space-between; padding: 48px; max-width: 1200px; margin: 0 auto; }
.footer-brand { max-width: 300px; }
.footer-logo { font-size: 20px; font-weight: 800; margin-bottom: 12px; display: block; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); padding: 4px 0; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--accent-tertiary); }
.footer-bottom { text-align: center; padding: 20px 48px; border-top: 1px solid var(--border-color); font-size: 13px; color: var(--text-muted); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .portal-nav { padding: 0 20px; }
    .nav-links { display: none; }
    .hero-banner { height: 340px; }
    .hero-content { padding: 0 20px; }
    .hero-title { font-size: 30px; }
    .hero-description { font-size: 15px; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 28px; }
    .section-header, .systems-row, .systems-grid { padding-left: 20px; padding-right: 20px; }
    .system-card { width: 240px; }
    .systems-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .footer-content { flex-direction: column; gap: 32px; padding: 32px 20px; }
    .footer-links { gap: 32px; flex-wrap: wrap; }
    .auth-step { padding: 32px 24px; }
    .otp-input { width: 42px; height: 48px; font-size: 18px; }
    .feature-list { grid-template-columns: 1fr; }
}

/* Gradient Thumbnails */
.thumb-gradient-erp { background: linear-gradient(135deg, #4c1d95, #7c3aed, #a855f7); }
.thumb-gradient-crm { background: linear-gradient(135deg, #831843, #be185d, #ec4899); }
.thumb-gradient-pcp { background: linear-gradient(135deg, #78350f, #b45309, #f59e0b); }
.thumb-gradient-finance { background: linear-gradient(135deg, #064e3b, #059669, #34d399); }
.thumb-gradient-logistics { background: linear-gradient(135deg, #1e3a5f, #2563eb, #60a5fa); }
.thumb-gradient-rh { background: linear-gradient(135deg, #134e4a, #0d9488, #5eead4); }
.thumb-gradient-ecommerce { background: linear-gradient(135deg, #4a1d96, #7c3aed, #c084fc); }
.thumb-gradient-bi { background: linear-gradient(135deg, #1c1917, #78350f, #d97706); }
.thumb-gradient-helpdesk { background: linear-gradient(135deg, #1e1b4b, #4338ca, #818cf8); }
.thumb-gradient-nfe { background: linear-gradient(135deg, #14532d, #15803d, #4ade80); }
.thumb-gradient-marketing { background: linear-gradient(135deg, #7f1d1d, #dc2626, #f87171); }
.thumb-gradient-iot { background: linear-gradient(135deg, #0c4a6e, #0284c7, #38bdf8); }
