/* --- GLOBAL --- */
:root {
    --bg-color: #0b0e14;
    --card-bg: #151a23;
    --primary: #06b6d4; 
    --primary-hover: #22d3ee;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border: #334155;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --orange: #f97316;
}
* { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; }
body { background-color: var(--bg-color); color: var(--text-main); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* --- PASSWORD SCREEN --- */
#login-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-color); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.login-box { background-color: var(--card-bg); padding: 40px; border-radius: 12px; border: 1px solid var(--border); text-align: center; width: 350px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.login-box input { width: 100%; padding: 12px; margin: 15px 0; background: #0b0e14; border: 1px solid var(--border); color: white; border-radius: 6px; }
.login-box button { width: 100%; padding: 12px; background: var(--primary); border: none; border-radius: 6px; font-weight: bold; cursor: pointer; }
#error-msg { color: #ec4899; margin-top: 10px; font-size: 0.9rem; }

/* --- NAVBAR --- */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background-color: rgba(11, 14, 20, 0.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); }
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--blue); }
.logo-box { background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; width: 35px; height: 35px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: 0.3s; display: flex; align-items: center; gap: 5px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn-nav { background-color: var(--primary); color: #000; padding: 8px 20px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }

/* --- HERO --- */
.hero { display: flex; align-items: center; justify-content: space-between; padding: 80px 5%; max-width: 1400px; margin: 0 auto; min-height: 80vh; }
.hero-content { flex: 1; max-width: 600px; z-index: 2; }
.badge { background: rgba(6, 182, 212, 0.1); color: var(--primary); padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 25px; border: 1px solid rgba(6, 182, 212, 0.2); }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; font-weight: 800; }
.gradient-text { background: linear-gradient(to right, #3b82f6, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.6; margin-bottom: 40px; }
.cta-buttons { display: flex; gap: 15px; }
.btn { padding: 14px 32px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.2s; }
.btn-primary { background-color: var(--primary); color: #0b0e14; border: none; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3); }

/* --- HERO VISUAL --- */
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.floating-card { width: 400px; height: 240px; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)); backdrop-filter: blur(20px); border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); position: relative; transform: perspective(1000px) rotateY(-15deg) rotateX(5deg); box-shadow: -20px 20px 60px rgba(0,0,0,0.5); padding: 30px; animation: float 6s ease-in-out infinite; }
.card-chip { width: 50px; height: 35px; background: linear-gradient(to right, #fbbf24, #d97706); border-radius: 6px; margin-bottom: 30px; }
.card-number { font-family: 'Roboto Mono', monospace; font-size: 1.5rem; letter-spacing: 2px; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.5); margin-bottom: 30px; }
.card-details { display: flex; justify-content: space-between; }
.card-label { font-size: 0.7rem; color: #cbd5e1; text-transform: uppercase; }
.card-value { font-size: 0.9rem; font-weight: bold; }
.glow-orb { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; }
@keyframes float { 0%, 100% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0); } 50% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(-20px); } }

/* --- GENERATOR GENERAL --- */
.generator-wrapper { max-width: 900px; margin: 0 auto 100px; padding: 0 20px; }
.generator-box { background-color: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.section-title { text-align: center; margin-bottom: 20px; font-size: 2rem; font-weight: 700; }
.icon-header-box { width: 60px; height: 60px; background: var(--orange); border-radius: 15px; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; margin: 0 auto 20px; color: #fff; }

/* Grid Inputs */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.full-width { grid-column: span 2; }
label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
input, select { width: 100%; background-color: #0b0e14; border: 1px solid var(--border); color: white; padding: 12px; border-radius: 6px; font-family: 'Roboto Mono', monospace; font-size: 1rem; box-sizing: border-box; transition: 0.2s; }
input:focus, select:focus { outline: none; border-color: var(--primary); }
button.btn-gen { width: 100%; padding: 14px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 1rem; background-color: var(--primary); color: #0b0e14; transition: 0.2s; }
button.btn-gen:hover { background-color: var(--primary-hover); }

/* --- ADDRESS GENERATOR STYLES --- */
.search-container { position: relative; margin-bottom: 15px; }
.search-container input { padding-left: 45px; font-family: 'Inter', sans-serif; background-color: #0b0e14; border-color: var(--border); height: 50px; }
.search-container i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.2rem; }

/* Country Grid Scrollable */
.country-grid-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #0b0e14;
    padding: 10px;
    margin-bottom: 20px;
}
.country-grid-container::-webkit-scrollbar { width: 6px; }
.country-grid-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.country-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.country-card:hover { border-color: var(--text-muted); transform: translateY(-2px); }
.country-card.selected {
    border-color: var(--primary);
    background-color: rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.country-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: 5px; font-weight: 700; }
.country-card p { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Result List View (Video Style) */
.address-list {
    display: flex; flex-direction: column; gap: 15px;
}
.address-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 15px;
    background-color: #0b0e14;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.addr-info { display: flex; flex-direction: column; gap: 4px; }
.addr-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.addr-value { font-size: 0.95rem; color: #fff; font-family: 'Roboto Mono', monospace; }

.copy-icon-btn {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-muted); width: 35px; height: 35px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s;
}
.copy-icon-btn:hover { background: #334155; color: white; }

/* Extras */
.output-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.btn-copy-small { background-color: #334155; color: white; border: 1px solid var(--border); padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; transition: 0.2s; }
textarea { width: 100%; height: 250px; background-color: #0b0e14; border: 1px solid var(--border); color: #e2e8f0; padding: 15px; border-radius: 8px; font-family: 'Roboto Mono', monospace; font-size: 0.9rem; resize: none; }

.stats { display: flex; justify-content: space-around; width: 90%; max-width: 1000px; margin: 0 auto 80px; padding: 40px; background: linear-gradient(rgba(21, 26, 35, 0.6), rgba(21, 26, 35, 0.6)); border-radius: 20px; border: 1px solid var(--border); }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--blue); display: block; margin-bottom: 5px; animation: jump 2s infinite ease-in-out; }
@keyframes jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.faq-section { max-width: 800px; margin: 0 auto 100px; padding: 0 20px; }
.faq-item { background-color: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 15px; }
.faq-question { width: 100%; padding: 20px; background: none; border: none; color: white; font-size: 1.1rem; text-align: left; cursor: pointer; display: flex; justify-content: space-between; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.4s; background: rgba(11,14,20,0.5); }
.faq-item.active .faq-answer { max-height: 200px; }
footer { border-top: 1px solid var(--border); padding: 40px; text-align: center; color: var(--text-muted); }

@media (max-width: 900px) {
    .hero { flex-direction: column-reverse; padding-top: 40px; text-align: center; }
    .hero-content { margin-top: 50px; }
    .hero h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    .country-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}