/* ═══════════════════════════════════════════════════════════════
   SERENITYVAULT TACTICAL THEME v7.4
   Military Style + SerenityVault Colors (Blue/Black)
═══════════════════════════════════════════════════════════════ */

:root {
    /* SERENITYVAULT COLORS (from www.serenityvault.com) */
    --sv-blue: #3B82F6;
    --sv-blue-light: #60A5FA;
    --sv-blue-dark: #2563EB;
    --sv-black: #000000;
    --sv-dark: #050510;
    --sv-card: #0a0a15;

    /* TACTICAL ACCENTS */
    --tactical-gold: #fbbf24;
    --alert-red: #ef4444;
    --status-green: #10b981;
    --cyber-purple: #8b5cf6;

    /* TEXT */
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;

    /* EFFECTS */
    --glow-blue: rgba(59, 130, 246, 0.5);
    --border-tactical: rgba(59, 130, 246, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
    background: var(--sv-dark);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* TACTICAL GRID BACKGROUND */
.bg-pattern {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px),
        linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
        radial-gradient(circle at 20% 80%, rgba(59,130,246,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(251,191,36,0.05) 0%, transparent 40%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
}

/* SCANLINE EFFECT */
.bg-pattern::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.05) 3px,
        rgba(0,0,0,0.05) 6px
    );
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(6px); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
    padding: 70px 20px 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TACTICAL HEADER */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, rgba(10,10,21,0.98), rgba(59,130,246,0.1), rgba(10,10,21,0.98));
    border-bottom: 2px solid var(--sv-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.top-nav::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sv-blue), transparent);
    box-shadow: 0 0 20px var(--glow-blue);
}

.nav-brand {
    color: var(--sv-blue-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 8px 14px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    border-color: var(--sv-blue);
    background: rgba(59,130,246,0.2);
    color: var(--sv-blue-light);
}

/* PROGRESS BAR - TACTICAL HUD */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 15px;
    background: rgba(10,10,21,0.9);
    border: 1px solid var(--border-tactical);
    border-radius: 8px;
    position: relative;
}

.progress-bar::before {
    content: '◆ OPERATION STATUS';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--sv-dark);
    padding: 0 12px;
    font-size: 0.65rem;
    color: var(--sv-blue);
    letter-spacing: 2px;
    font-weight: 600;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: rgba(255,255,255,0.1);
}

.progress-step.active:not(:last-child)::after,
.progress-step.completed:not(:last-child)::after {
    background: var(--sv-blue);
    box-shadow: 0 0 10px var(--glow-blue);
}

.step-circle {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 1;
    transition: all 0.3s;
    transform: rotate(45deg);
}

.step-circle span {
    transform: rotate(-45deg);
}

.progress-step.active .step-circle {
    background: var(--sv-blue);
    border-color: var(--sv-blue-light);
    color: white;
    box-shadow: 0 0 25px var(--glow-blue);
}

.progress-step.completed .step-circle {
    background: var(--status-green);
    border-color: #34d399;
    color: white;
}

.step-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-step.active .step-label { color: var(--sv-blue-light); }
.progress-step.completed .step-label { color: var(--status-green); }

/* CARDS - TACTICAL PANELS */
.card {
    background: rgba(10,10,21,0.95);
    border: 1px solid var(--border-tactical);
    border-left: 3px solid var(--sv-blue);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, transparent 50%, rgba(59,130,246,0.1) 50%);
    border-radius: 0 8px 0 0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--sv-blue), var(--sv-blue-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.card-icon.alfred { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.card-icon.aladin { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.card-icon.adele { background: linear-gradient(135deg, #ec4899, #f472b6); }
.card-icon.token { background: linear-gradient(135deg, #fbbf24, #fcd34d); }

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-body {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.hero::before {
    content: '[ SECURE ZONE ]';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--status-green);
    letter-spacing: 3px;
    padding: 4px 12px;
    border: 1px solid var(--status-green);
    border-radius: 4px;
}

.hero-logo {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px var(--glow-blue));
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--sv-blue-light), #ffffff, var(--tactical-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FEATURES */
.features {
    display: grid;
    gap: 12px;
    margin: 25px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--sv-blue);
    border-radius: 8px;
    transition: all 0.3s;
}

.feature:hover {
    border-left-color: var(--tactical-gold);
    background: rgba(59,130,246,0.08);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.6rem;
    width: 45px;
    text-align: center;
}

.feature-text strong {
    color: var(--text-primary);
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.feature-text span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sv-blue), var(--sv-blue-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(59,130,246,0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--sv-blue);
}

.btn-success {
    background: linear-gradient(135deg, var(--status-green), #34d399);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--tactical-gold), #fcd34d);
    color: #1a1a2e;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-block { width: 100%; }

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.btn-group .btn { flex: 1; }

/* FORM INPUTS */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--sv-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

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

/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 20px;
}

.badge-secure {
    background: rgba(16,185,129,0.15);
    color: #10b981;
}

.badge-tactical {
    background: rgba(139,92,246,0.15);
    color: #a78bfa;
}

/* TOKEN STATUS */
.token-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 12px;
    margin: 20px 0;
}

.token-status.created {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.3);
}

.token-icon {
    font-size: 2.5rem;
}

.token-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.token-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* WIZARD STEPS */
.wizard-step {
    display: none;
    flex: 1;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--sv-card);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

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

.toast.success { border-color: var(--status-green); color: var(--status-green); }
.toast.error { border-color: var(--alert-red); color: var(--alert-red); }

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(59,130,246,0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59,130,246,0.5);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .container { padding: 60px 15px 15px; }
    .hero-title { font-size: 1.6rem; }
    .btn { padding: 12px 20px; }
    .top-nav { padding: 0 15px; }
}
