/* ============================================
   PASSDIALI - 1PASSWORD CLONE THEME
   ============================================ */

:root {
    --color-bg: #ffffff;
    --color-text: #1d1d1f;
    --color-text-light: #86868b;
    --color-primary: #0572ec;
    /* 1Password Blue */
    --color-primary-hover: #005bc5;
    --color-accent: #dbeafe;
    --color-border: #d2d2d7;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-surface: #ffffff;
    --color-footer-bg: #1d1d21;
    --color-footer-text: #d6d6d6;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    --radius-card: 18px;
    --radius-btn: 24px;
    /* Pill shapes */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: #fbfbfd;
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    /* Wider for better landscape layout */
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR - Modern Rounded Style */
.navbar {
    background: transparent;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 10px 0;
    background: transparent;
    /* Removed blue background to keep the "pill" look */
}

.navbar.hidden {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

.nav-wrapper {
    background: white;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-wrapper {
    border-radius: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.logo-text {
    color: #1a285f;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-menu-link {
    text-decoration: none;
    color: #1a285f;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-menu-link:hover {
    color: var(--color-primary);
}

.nav-menu-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(5, 114, 236, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 114, 236, 0.4);
}

/* Utilities for cleanup */
.summary-box {
    background: #ecfdf5;
    padding: 15px;
    border-radius: 8px;
    color: #065f46;
    font-weight: 600;
    margin-top: 15px;
}

.text-primary-margin {
    margin-top: 15px;
    color: var(--color-primary);
}

.text-margin-bottom {
    margin-bottom: 30px;
}


.nav-logo .material-symbols-rounded {
    color: var(--color-primary);
    font-size: 32px;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .nav-wrapper {
        padding: 10px 20px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .nav-wrapper {
        padding: 8px 16px;
        border-radius: 40px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-logo .material-symbols-rounded {
        font-size: 28px !important;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-wrapper {
        padding: 6px 12px;
        border-radius: 30px;
    }

    .nav-logo {
        font-size: 1rem;
        gap: 6px;
    }

    .nav-logo .material-symbols-rounded {
        font-size: 24px !important;
    }

    .logo-text {
        display: none;
    }

    .btn-primary {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}


.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a285f;
    /* Darker blue for logo text */
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-icon {
    font-size: 28px;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: #f2f2f7;
    padding: 3px;
    border-radius: 8px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-light);
    transition: all 0.2s;
}

.lang-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cta-button-small {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.cta-button-small:hover {
    background: var(--color-primary-hover);
}

/* HERO -- Dark Blue like 1Password */
.hero {
    background-color: #1a285f;
    /* The specific dark blue from 1Password */
    color: #fff;
    padding: 140px 0 120px;
    text-align: center;
    background-image: radial-gradient(circle at 50% 0%, #2a3b7d 0%, #1a285f 70%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* GENERATOR CARD -- Floating on Hero */
.generator-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 1000px;
    /* Negative margin to overlap */
    margin: 0 auto -60px;
    text-align: left;
    position: relative;
    z-index: 10;
    color: var(--color-text);
}

/* TABS */
.generator-tabs {
    margin-bottom: 24px;
}

.tabs-group-full {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: #f5f5f7;
    padding: 6px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .tabs-group-full {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .tabs-group-full {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gen-tab {
    background: transparent;
    border: none;
    padding: 12px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gen-tab .material-symbols-rounded {
    font-size: 20px;
}

.gen-tab.active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.gen-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
}

.divider {
    border: none;
    height: 1px;
    background: #e6e6e6;
    margin: 0 -40px 30px;
}

/* CONTROLS */
.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.length-control {
    flex: 1;
    margin-right: 48px;
}

.length-control label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 12px;
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) var(--range-progress, 50%), #e5e7eb var(--range-progress, 50%), #e5e7eb 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.6);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.6);
}

#lengthInput {
    width: 64px;
    padding: 8px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.options-control {
    display: flex;
    gap: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 1rem;
    -webkit-user-select: none;
    user-select: none;
    font-weight: 500;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 6px;
    transition: all 0.2s;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--color-primary);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* OPTIONS GRID - New Modern Layout */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.option-item:hover {
    border-color: var(--color-primary);
    background: #f0f4ff;
}

.option-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-checkmark {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.option-item input[type="checkbox"]:checked~.option-checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.option-checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-item input[type="checkbox"]:checked~.option-checkmark::after {
    display: block;
}

.option-label {
    flex: 1;
    font-size: 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.option-label strong {
    color: var(--color-primary);
    font-weight: 700;
    margin-right: 4px;
}

.option-label:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: #1f2937;
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* HISTORY SECTION */
.history-section {
    display: none;
    margin-top: 24px;
}

.history-section.active {
    display: block;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.history-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.history-actions {
    display: flex;
    gap: 8px;
}

.btn-clear-history,
.btn-export-excel {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-clear-history {
    background: #fee;
    color: #c00;
}

.btn-clear-history:hover {
    background: #fcc;
}

.btn-export-excel {
    background: #217346;
    color: white;
}

.btn-export-excel:hover {
    background: #1a5c37;
}

.history-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: #f9fafb;
    position: sticky;
    top: 0;
}

.history-table th {
    padding: 12px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.history-table td {
    padding: 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.history-table tr:hover {
    background: #f9fafb;
}

.history-password-cell {
    max-width: 400px;
}

.history-password {
    font-family: 'Courier New', monospace;
    color: #1f2937;
    font-size: 0.85rem;
    word-break: break-all;
    display: inline-block;
}

.history-password.masked {
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.history-actions-cell {
    white-space: nowrap;
}

.history-action-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.history-action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.history-action-btn .material-symbols-rounded {
    font-size: 18px;
    color: #6b7280;
}

.history-action-btn:hover .material-symbols-rounded {
    color: #1f2937;
}

.history-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.history-type.password {
    background: #dbeafe;
    color: #1e40af;
}

.history-type.passphrase {
    background: #fef3c7;
    color: #92400e;
}

.history-type.pin {
    background: #fce7f3;
    color: #9f1239;
}

.history-type.crypto,
.history-type.hash,
.history-type.base64_encode,
.history-type.url_encode {
    background: #d1fae5;
    color: #065f46;
}

.history-empty {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

/* CRYPTO SECTION */
.crypto-section {
    display: none;
    margin-top: 24px;
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #1a285f 0%, #2a3b7d 100%);
    border-radius: 12px;
    color: #fff;
}

.crypto-header .material-symbols-rounded {
    font-size: 32px;
}

.crypto-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.crypto-tool {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.crypto-tool h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crypto-tool textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.crypto-tool textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.crypto-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.crypto-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.crypto-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.crypto-btn .material-symbols-rounded {
    font-size: 18px;
}

.crypto-result {
    position: relative;
}

.crypto-result label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 8px;
}

.crypto-output {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #1f2937;
    word-break: break-all;
    min-height: 60px;
    margin-bottom: 12px;
}

.copy-result-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-result-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.copy-result-btn .material-symbols-rounded {
    font-size: 18px;
}

/* DISPLAY */
.display-section {
    background: #f7f9fc;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
}

.password-field {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 2.5rem;
    font-weight: 500;
    color: #111;
    word-break: break-all;
    line-height: 1.2;
    margin-bottom: 20px;
}

.strength-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.strength-bar {
    width: 100px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.strength-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    transition: width 0.3s;
}

.strength-bar.weak::after {
    width: 30%;
    background: var(--color-error);
}

.strength-bar.medium::after {
    width: 60%;
    background: var(--color-warning);
}

.strength-bar.strong::after {
    width: 100%;
    background: var(--color-success);
}

.strength-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ACTIONS */
.actions-section {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

/* SECURITY SCORE */
.security-score-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.security-score-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.security-score-content {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

.entropy-gauge {
    position: relative;
    width: 200px;
    height: 140px;
}

.gauge-svg {
    width: 100%;
    height: auto;
}

.gauge-bg {
    opacity: 0.3;
}

.gauge-progress {
    transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
}

.entropy-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.entropy-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.strength-indicator {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strength-indicator.weak {
    background: #fee2e2;
    color: #dc2626;
}

.strength-indicator.medium {
    background: #fef3c7;
    color: #d97706;
}

.strength-indicator.strong {
    background: #d1fae5;
    color: #059669;
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crack-time {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
}

.vulnerability-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.vulnerability-link:hover {
    color: var(--color-primary-hover);
    gap: 8px;
}

.vulnerability-link .material-symbols-rounded {
    font-size: 20px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-radius: 30px;
    /* Round buttons */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.copy-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
}

.copy-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.refresh-btn {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(5, 114, 236, 0.3);
}

.refresh-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.promo-text {
    margin-top: 80px;
    /* Push down below the overlapping card */
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* CONTENT SECTIONS Alternating */
.content-section {
    padding: 80px 0;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray {
    background-color: #f7f9fc;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-text {
    font-size: 1.2rem;
    color: #4b4b4b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-highlight {
    margin-top: 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a285f;
    background: #eef2ff;
    padding: 24px;
    border-radius: 12px;
    display: inline-block;
}

.text-center {
    text-align: center;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

details {
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
    padding-bottom: 16px;
}

summary {
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: #111;
    position: relative;
    padding-right: 24px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: 300;
    font-size: 1.5rem;
}

details[open] summary::after {
    content: '−';
}

details p {
    margin-top: 12px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* CTA FOOTER */
.cta-footer-section {
    background: #1a285f;
    color: #fff;
    padding: 100px 0;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.btn-primary-large {
    background: var(--color-primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.btn-primary-large:hover {
    background: var(--color-primary-hover);
}

.btn-secondary-large {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* MAIN FOOTER */
.main-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 30px 0;
    /* Reduced from 80px 0 40px */
    font-size: 0.95rem;
}

.footer-grid {
    display: none;
    /* No longer used */
}

/* ... existing grid styles hidden ... */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    /* Reduced from 40px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.1rem;
}

.footer-legal a {
    color: #777;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal .separator {
    color: #555;
    margin: 0 8px;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px 0;
    z-index: 9999;
    transform: translateY(100%);
    animation: slideUp 0.5s forwards 1s;
    /* Delay 1s */
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie-accept {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cookie-reject {
    background: #f2f2f2;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* CONFIRMATION MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    overflow: hidden;
    animation: modalSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-icon {
    font-size: 32px;
    color: #f59e0b;
    background: #fef3c7;
    padding: 8px;
    border-radius: 50%;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn .material-symbols-rounded {
    font-size: 20px;
}

.modal-btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.modal-btn-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modal-btn-confirm:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* TOAST NOTIFICATION */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 280px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: right center;
}

.toast.toast-hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.toast-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.toast-message {
    flex: 1;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

.hidden {
    display: none !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .nav-links,
    .desktop-only {
        display: none;
    }

    /* Hide heavy menu */
    .hero-title {
        font-size: 2rem;
    }

    .generator-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 45%;
    }

    .controls-section {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .length-control {
        margin-right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .actions-section {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* LEGAL PAGES */
.legal-page {
    max-width: 900px;
    margin: 100px auto 60px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #111;
}

.legal-updated {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #1a285f;
}

.legal-page h3 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #333;
}

.legal-page p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: #444;
}

.legal-page ul,
.legal-page ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-page li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* LANGUAGE SELECTOR DROPDOWN */
.lang-selector-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f7;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.lang-current:hover {
    background: #e8e8ea;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f5f5f7;
}

.lang-option.active {
    background: #e8f0fe;
    color: var(--color-primary);
    font-weight: 600;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #999;
}

/* ARTICLE PAGE STYLES */
.highlight-text {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-left: 4px solid var(--color-primary);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
    color: #1e40af;
}

.summary-box {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.btn-primary-large {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    cursor: pointer;
}

details summary {
    font-weight: 600;
    color: #1f2937;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: '';
    font-size: 0.8rem;
    transition: transform 0.2s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details p {
    margin-top: 12px;
    color: #4b5563;
    line-height: 1.6;
}

/* NAV LINK */
.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

/* FLOWCHART STYLES */
.flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.flow-step {
    background: #fff;
    border: 2px solid #e0e7ff;
    padding: 20px 30px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 2;
}

.flow-step:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15);
}

.flow-step::after {
    content: '';
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: #cbd5e1;
    z-index: 1;
}

.flow-step:last-child::after {
    display: none;
}

.flow-step::before {
    content: '';
    position: absolute;
    bottom: -52px;
    left: 50%;
    transform: translateX(-50%);
    color: #cbd5e1;
    font-size: 14px;
    z-index: 1;
}

.flow-step:last-child::before {
    display: none;
}

.flow-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: block;
}

.flow-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: block;
}

.flow-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.flow-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.back-btn-container {
    margin-top: 20px;
    margin-bottom: 30px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f9fafb;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(5, 114, 236, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: pulse 2s infinite;
}

.scroll-to-top:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 6px 20px rgba(5, 114, 236, 0.6);
    transform: translateY(-3px);
}

.scroll-to-top .material-symbols-rounded {
    font-size: 28px;
}

/* Animation de clignotement/pulsation */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(5, 114, 236, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(5, 114, 236, 0.8), 0 0 0 8px rgba(5, 114, 236, 0.2);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top .material-symbols-rounded {
        font-size: 24px;
    }

    /* Hero responsive */
    .hero {
        padding: 120px 0 100px;
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
        margin-bottom: 40px;
    }

    /* Generator responsive */
    .generator-card {
        padding: 25px;
        margin: 0 15px -60px;
    }

    .divider {
        margin: 0 -25px 25px;
    }

    /* Sections responsive */
    .section-title {
        font-size: 1.8rem;
    }

    .section-text {
        font-size: 0.95rem;
    }

    /* FAQ accordion */
    .faq-accordion summary {
        font-size: 0.95rem;
        padding: 14px 40px 14px 16px;
    }

    .faq-accordion details p,
    .faq-accordion details ul,
    .faq-accordion details ol {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Hero mobile */
    .hero {
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Generator mobile */
    .generator-card {
        padding: 20px;
        margin: 0 10px -60px;
        border-radius: 12px;
    }

    .generator-tabs {
        margin-bottom: 20px;
    }

    .gen-tab {
        padding: 10px 6px;
        font-size: 0.65rem;
    }

    .gen-tab .material-symbols-rounded {
        font-size: 18px;
    }

    .divider {
        margin: 0 -20px 20px;
    }

    .controls-section {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .length-control {
        margin-right: 0;
        width: 100%;
    }

    .password-field {
        font-size: 0.9rem;
        padding: 14px;
    }

    .actions-section {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    /* Sections mobile */
    .section-title {
        font-size: 1.5rem;
    }

    .section-text {
        font-size: 0.85rem;
    }

    /* FAQ mobile */
    .faq-accordion summary {
        font-size: 0.85rem;
        padding: 12px 35px 12px 14px;
    }

    .faq-accordion details p,
    .faq-accordion details ul,
    .faq-accordion details ol {
        font-size: 0.85rem;
    }

    /* Footer mobile */
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Utility Classes added for cleanup */
.icon-sm {
    font-size: 14px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.footer-logo .material-symbols-rounded {
    color: #374151;
}


/* Footer Social Icons */
.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-link {
    width: 24px;
    height: 24px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}

.social-link svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}