:root {
    --primary-dark: #ffffff;
    --bg-color: #ffffff;
    --text-main: #000000;
    --text-muted: #888888;
    --border-color: rgba(0, 0, 0, 0.08);
    --hover-bg: rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- NOISE OVERLAY --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* --- DOTS PRELOADER --- */
.dots-loader {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dots-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

/* Staggered delays for wave effect - symmetric pattern */
.dots-row:nth-child(1) .dot:nth-child(1) { animation-delay: 0s; }
.dots-row:nth-child(1) .dot:nth-child(2) { animation-delay: 0.1s; }
.dots-row:nth-child(1) .dot:nth-child(3) { animation-delay: 0s; }

.dots-row:nth-child(2) .dot:nth-child(1) { animation-delay: 0.1s; }
.dots-row:nth-child(2) .dot:nth-child(2) { animation-delay: 0.2s; }
.dots-row:nth-child(2) .dot:nth-child(3) { animation-delay: 0.1s; }

.dots-row:nth-child(3) .dot:nth-child(1) { animation-delay: 0s; }
.dots-row:nth-child(3) .dot:nth-child(2) { animation-delay: 0.1s; }
.dots-row:nth-child(3) .dot:nth-child(3) { animation-delay: 0s; }

.center-dot {
    background: rgba(0, 0, 0, 0.4);
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        background: rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.15);
        background: rgba(0, 0, 0, 0.5);
    }
}

/* --- HERO MINIMAL --- */
.hero-minimal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-grid-minimal {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text-minimal .overline {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
}

.hero-text-minimal h1 {
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-text-minimal p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 400px;
}

.mail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mail-action-btn:hover {
    background: #222;
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.05);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
}

.store-action-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.minimal-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.minimal-btn:hover {
    gap: 18px;
    color: white;
}

/* Minimal Cards */
.hero-cards-minimal {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.minimal-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 25px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.minimal-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

.card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 1.2rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.card-main {
    flex: 1;
    padding: 0 20px;
}

.card-main .role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 2px;
}

.card-main .email {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
}

.card-footer {
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #666;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.card-footer:hover {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}

/* --- SECURITY LOGS SECTION --- */
.security-logs {
    padding: 50px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 10px;
}

.section-header h3 {
    font-weight: 400;
    font-size: 1rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-badge {
    background: rgba(0, 0, 0, 0.05);
    color: #888;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
}

.logs-container {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-item {
    display: grid;
    grid-template-columns: 80px 60px 1fr;
    gap: 15px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.log-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.log-item .time { color: #bbb; }
.log-item .type { font-weight: 500; color: #888; }
.log-item .type.success { color: #888; }
.log-item .type.info { color: #888; }
.log-item .type.warning { color: #888; }
.log-item .msg { color: #666; }

/* Responsive Minimal */
@media (max-width: 768px) {
    .hero-grid-minimal { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text-minimal h1 { font-size: 3rem; }
    .hero-text-minimal p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .minimal-card { flex-direction: column; text-align: center; gap: 15px; }
    .card-main { padding: 0; }
    .logs-container { font-size: 0.75rem; }
    .log-item { grid-template-columns: 60px 40px 1fr; gap: 10px; }
    .footer-content { flex-direction: column; gap: 15px; text-align: center; }
}

/* --- PASSWORD SCREEN --- */
#password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9990;
}

.login-container {
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 50px;
    border-radius: 16px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    animation: fadeUp 0.6s ease;
}

.icon-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.login-container:hover .icon-ring {
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.6);
}

.login-header h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: #000;
}

.login-header p {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    display: flex;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4px;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: rgba(0, 0, 0, 0.2);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: #000;
    padding: 12px 15px;
    font-size: 1rem;
    letter-spacing: 8px;
    text-align: center;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(0, 0, 0, 0.2);
    letter-spacing: 4px;
}

.input-group button {
    background: #000;
    color: #fff;
    border: none;
    width: 42px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.input-group button:hover {
    background: #333;
}

#error-msg {
    color: #cc0000;
    font-size: 0.75rem;
    margin-top: 15px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HEADER --- */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 25px;
    border-radius: 8px;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    background: #ffffff;
    color: #000000;
    font-weight: 900;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.9rem;
}

.logo-text {
    font-weight: 600;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* --- HERO --- */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid rgba(255, 0, 60, 0.3);
    color: var(--accent-glow);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-neon);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-neon);
    animation: pulse 1.5s infinite;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 450px;
}

.modern-btn {
    position: relative;
    display: inline-flex;
    text-decoration: none;
}

.btn-content {
    position: relative;
    z-index: 2;
    background: white;
    color: black;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    transition: transform 0.3s;
}

.btn-glow {
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background: linear-gradient(45deg, var(--accent-neon), #ff8a00);
    z-index: 1;
    border-radius: 35px;
    filter: blur(10px);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.modern-btn:hover .btn-content {
    transform: scale(1.05);
}

.modern-btn:hover .btn-glow {
    opacity: 1;
}

/* --- GLASS CARDS --- */
.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--accent-neon);
    transform: translateX(10px);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

.icon-glow {
    font-size: 1.5rem;
    color: white;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.email {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.pass-field {
    background: rgba(0,0,0,0.3);
    border: 1px dashed var(--glass-border);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.pass-field:hover {
    background: rgba(255, 0, 60, 0.1);
    border-color: var(--accent-neon);
}

.pass-field code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-glow);
}

.pass-field i {
    font-size: 0.9rem;
    opacity: 0.5;
}

/* --- ANIMATIONS --- */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.5; } }

.animate-fade-right { animation: fadeRight 1s ease forwards; opacity: 0; }
.animate-fade-left { animation: fadeLeft 1s ease forwards; opacity: 0; animation-delay: 0.3s; }

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Footer */
footer {
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #999;
    font-size: 0.8rem;
    margin: 0;
}

footer .lang-switch {
    display: flex;
    gap: 5px;
}

footer .lang-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #888;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

footer .lang-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-text .badge { margin: 0 auto 20px; }
    .hero-cards { max-width: 400px; margin: 0 auto; }
    .glass-card:hover { transform: translateY(-5px); }
}
