/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f4f4f4;
    --color-text: #333;
    --color-header: #2c3e50;
    --color-header-alt: #34495e;
    --color-surface: #ffffff;
    --color-border: #ddd;
    --color-muted: #666;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-table-row-hover: #f8f9fa;
    --landing-accent: #0d8fbe;
    --landing-accent-soft: #e7f6fc;
    --landing-strong: #15354d;
}

body.theme-dark {
    --color-bg: #12161c;
    --color-text: #e7edf4;
    --color-header: #0e1520;
    --color-header-alt: #1a2533;
    --color-surface: #1a232e;
    --color-border: #314456;
    --color-muted: #b6c2ce;
    --color-shadow: rgba(0, 0, 0, 0.45);
    --color-table-row-hover: #243243;
    --landing-accent: #58c3ff;
    --landing-accent-soft: rgba(88, 195, 255, 0.12);
    --landing-strong: #dbe8f4;
}

body {
    font-family: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 56px;
}

.container {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: var(--color-header);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 250px;
    margin-right: 2rem;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-grow: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--color-header-alt);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-header-alt);
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 4px;
    margin-top: 0;
    padding-top: 0.5rem;
    z-index: 1000;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--color-header);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

#userGreeting {
    color: white;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.2rem 0.35rem;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

#userGreeting:hover {
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 88px 0 2rem;
    min-height: 70vh;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.hero h2 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.content-section {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--color-shadow);
    margin-top: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
}

textarea::placeholder,
input::placeholder {
    color: color-mix(in srgb, var(--color-muted) 86%, transparent);
}

/* Authentication Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-box {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    text-align: center;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.auth-form {
    margin-top: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Messages */
.message {
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table thead {
    background-color: var(--color-header);
    color: white;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

table tbody tr:hover {
    background-color: var(--color-table-row-hover);
}

/* Table actions column */
table td:last-child {
    white-space: nowrap;
}

table td:last-child .btn {
    margin: 0.2rem;
}

/* 2FA column styling */
table td .btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Footer */
.main-footer {
    background-color: var(--color-header);
    color: white;
    text-align: center;
    padding: 0.4rem 0;
    margin-top: auto;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 360;
}

.main-footer p {
    margin: 0;
    font-size: 0.85rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--color-surface);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: slideDown 0.3s;
}

#userModal .modal-content {
    max-width: 550px;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: #95a5a6;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-text);
}

.modal-content h2 {
    text-align: center;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.modal-content .auth-form {
    margin-top: 0;
}

.modal-content .message {
    margin-top: 1rem;
}

.modal-content .message {
    margin-top: 1rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
}

.app-notify-layer {
    position: fixed;
    top: 5.25rem;
    right: 1rem;
    z-index: 2900;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    pointer-events: none;
}

.app-notify-card {
    min-width: 260px;
    max-width: min(420px, 90vw);
    border-radius: 8px;
    border: 1px solid #d7dde5;
    background: #ffffff;
    color: #1e2a37;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.7rem 0.7rem 0.7rem 0.85rem;
    pointer-events: auto;
    animation: notifyIn 0.2s ease-out;
}

.app-notify-body {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.35;
}

.app-notify-close {
    border: none;
    background: transparent;
    color: #607083;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.15rem;
}

.app-notify-success {
    border-left: 5px solid #2e8b57;
}

.app-notify-error {
    border-left: 5px solid #c0392b;
}

.app-notify-info {
    border-left: 5px solid #2f80ed;
}

.app-notify-hide {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes notifyIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Button sizes */
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.icon-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: 1px solid transparent;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

.icon-btn:hover {
    transform: translateY(-1px);
}

.icon-btn:focus-visible {
    outline: 2px solid #5ca9ff;
    outline-offset: 2px;
}

.icon-btn-primary {
    color: #2d74da;
    border-color: #bdd5ff;
    background: #eef5ff;
}

.icon-btn-primary:hover {
    background: #e3eeff;
}

.icon-btn-secondary,
.icon-btn-neutral {
    color: #4a5b6f;
    border-color: #cfd8e2;
    background: #f4f7fa;
}

.icon-btn-secondary:hover,
.icon-btn-neutral:hover {
    background: #eaf0f6;
}

.icon-btn-success {
    color: #1f7d48;
    border-color: #b9e3c8;
    background: #ecf8f0;
}

.icon-btn-success:hover {
    background: #def2e5;
}

.icon-btn-warning {
    color: #a86a00;
    border-color: #efd29b;
    background: #fff6e5;
}

.icon-btn-warning:hover {
    background: #ffefcc;
}

.icon-btn-danger {
    color: #b23a2f;
    border-color: #efc0bc;
    background: #feeceb;
}

.icon-btn-danger:hover {
    background: #fddfdd;
}

body.theme-dark .icon-btn-primary {
    color: #9ac1ff;
    border-color: #385d96;
    background: #223654;
}

body.theme-dark .icon-btn-secondary,
body.theme-dark .icon-btn-neutral {
    color: #d5dee8;
    border-color: #4d6074;
    background: #283646;
}

body.theme-dark .icon-btn-success {
    color: #93ddb3;
    border-color: #3f7d57;
    background: #243b2d;
}

body.theme-dark .icon-btn-warning {
    color: #ffcf87;
    border-color: #856235;
    background: #3e3221;
}

body.theme-dark .icon-btn-danger {
    color: #ffaca6;
    border-color: #814744;
    background: #412527;
}

/* Form elements in modals */
.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0;
        width: 100%;
    }

    .auth-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .auth-buttons .btn {
        flex: 1;
        min-width: 100px;
    }

    #userGreeting {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}

/* 2FA Styles */
.twofa-status {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 8px;
}

.theme-toggle-btn {
    min-width: 40px;
    width: 40px;
    height: 36px;
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    box-shadow: none;
}

.theme-toggle-btn:hover {
    opacity: 1;
    background: transparent;
}

body.theme-dark .theme-toggle-btn {
    background: transparent;
    border: none;
}

.theme-toggle-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.theme-toggle-icon .theme-icon-sun {
    color: #f4c542;
}

.theme-toggle-icon .theme-icon-moon {
    color: #b9ddff;
    filter: drop-shadow(0 0 3px rgba(185, 221, 255, 0.65));
}

.landing-hero {
    display: none;
}

/* ===== Modern Landing Page ===== */
.lp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.lp-hero .lp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.lp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(13, 143, 190, 0.18), transparent),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(109, 40, 217, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 60% 20%, rgba(244, 63, 94, 0.08), transparent);
}

body.theme-dark .lp-hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(88, 195, 255, 0.1), transparent),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139, 92, 246, 0.08), transparent),
        radial-gradient(ellipse 50% 40% at 60% 20%, rgba(251, 113, 133, 0.06), transparent);
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--landing-accent);
    background: var(--landing-accent-soft);
    border: 1px solid color-mix(in srgb, var(--landing-accent) 30%, transparent);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
}

.lp-badge-muted {
    color: var(--color-muted);
    background: color-mix(in srgb, var(--color-border) 40%, transparent);
    border-color: var(--color-border);
}

.lp-hero-title {
    margin: 1.2rem 0 0;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--landing-strong);
}

.lp-gradient-text {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-dark .lp-gradient-text {
    background: linear-gradient(135deg, #38bdf8, #a78bfa, #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-desc {
    margin: 1.2rem 0 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-muted);
    max-width: 52ch;
}

.lp-hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.lp-btn:hover {
    transform: translateY(-2px);
}

.lp-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(14, 165, 233, 0.4);
}

.lp-btn-primary:hover {
    box-shadow: 0 8px 24px -6px rgba(14, 165, 233, 0.5);
}

.lp-btn-ghost {
    background: transparent;
    color: var(--landing-strong);
    border: 1.5px solid var(--color-border);
}

.lp-btn-ghost:hover {
    border-color: var(--landing-accent);
    color: var(--landing-accent);
}

.lp-btn-lg {
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
}

.lp-hero-proof {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.lp-proof-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.lp-proof-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Hero Visual / Mockup */
.lp-hero-visual {
    display: flex;
    justify-content: center;
}

.lp-mockup {
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-border) 60%, #a8d5e8 40%);
    box-shadow:
        0 20px 50px -20px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    background: var(--color-surface);
}

.lp-mockup-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--color-surface) 90%, var(--color-border) 10%);
    border-bottom: 1px solid var(--color-border);
}

.lp-mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.lp-mockup-bar span:nth-child(1) { background: #ef4444; }
.lp-mockup-bar span:nth-child(2) { background: #f59e0b; }
.lp-mockup-bar span:nth-child(3) { background: #22c55e; }

.lp-mockup-body {
    display: grid;
    grid-template-columns: 60px 1fr;
    min-height: 260px;
}

.lp-mockup-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
    border-right: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-surface) 95%, var(--color-border) 5%);
}

.lp-mock-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    background: color-mix(in srgb, var(--color-border) 60%, transparent);
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
}

.lp-mock-thumb.active {
    border-color: var(--landing-accent);
    background: var(--landing-accent-soft);
}

.lp-mockup-main {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-mock-slide {
    flex: 1;
    border-radius: 8px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--landing-accent-soft) 50%, transparent),
        color-mix(in srgb, var(--color-border) 30%, transparent));
    min-height: 140px;
}

.lp-mock-waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 36px;
    padding: 4px 0;
}

.lp-wave-bar {
    flex: 1;
    border-radius: 2px;
    background: linear-gradient(to top, var(--landing-accent), color-mix(in srgb, var(--landing-accent) 40%, transparent));
    animation: lp-wave 1.8s ease-in-out infinite alternate;
}

.lp-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.lp-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.lp-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.lp-wave-bar:nth-child(5) { animation-delay: 0.4s; }
.lp-wave-bar:nth-child(6) { animation-delay: 0.5s; }
.lp-wave-bar:nth-child(7) { animation-delay: 0.6s; }
.lp-wave-bar:nth-child(8) { animation-delay: 0.7s; }
.lp-wave-bar:nth-child(9) { animation-delay: 0.8s; }
.lp-wave-bar:nth-child(10) { animation-delay: 0.9s; }

@keyframes lp-wave {
    0% { transform: scaleY(0.6); }
    100% { transform: scaleY(1); }
}

/* Sections */
.lp-section {
    padding: 5rem 0;
}

.lp-section-alt {
    background: color-mix(in srgb, var(--color-surface) 50%, var(--color-bg) 50%);
}

.lp-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lp-section-title {
    margin: 0.8rem 0 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--landing-strong);
}

.lp-section-desc {
    margin: 0.6rem auto 0;
    color: var(--color-muted);
    font-size: 1.05rem;
    max-width: 50ch;
}

/* Steps */
.lp-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.lp-step {
    flex: 0 1 280px;
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.lp-step-number {
    position: absolute;
    top: 0.8rem;
    right: 1.2rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--landing-accent) 15%, transparent);
    line-height: 1;
}

.lp-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--landing-accent-soft);
    color: var(--landing-accent);
    margin-bottom: 1rem;
}

.lp-step h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: var(--landing-strong);
}

.lp-step p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.lp-step-connector {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-border), var(--landing-accent), var(--color-border));
    margin-top: 3.8rem;
    flex-shrink: 0;
    border-radius: 2px;
}

/* Feature Cards */
.lp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.lp-feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.lp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.15);
    border-color: color-mix(in srgb, var(--landing-accent) 40%, var(--color-border) 60%);
}

.lp-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--landing-accent-soft);
    color: var(--landing-accent);
    margin-bottom: 0.9rem;
}

.lp-feature-card h4 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    color: var(--landing-strong);
}

.lp-feature-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* CTA Section */
.lp-cta-section {
    padding: 4rem 0 5rem;
}

.lp-cta-card {
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 20px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--landing-accent-soft) 60%, var(--color-surface)), var(--color-surface));
    border: 1px solid color-mix(in srgb, var(--landing-accent) 25%, var(--color-border));
    box-shadow: 0 20px 50px -24px rgba(14, 165, 233, 0.2);
}

.lp-cta-card h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--landing-strong);
}

.lp-cta-card p {
    margin: 0 auto 1.5rem;
    color: var(--color-muted);
    font-size: 1.05rem;
    max-width: 45ch;
}

.lp-cta-card .lp-hero-actions {
    justify-content: center;
}

/* Responsive */
@media (max-width: 980px) {
    .lp-hero .lp-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lp-hero-desc {
        max-width: none;
    }

    .lp-hero-actions {
        justify-content: center;
    }

    .lp-hero-proof {
        justify-content: center;
    }

    .lp-hero-visual {
        order: -1;
    }

    .lp-mockup {
        max-width: 380px;
    }

    .lp-steps {
        flex-direction: column;
        align-items: center;
    }

    .lp-step-connector {
        width: 2px;
        height: 32px;
        background: linear-gradient(180deg, var(--color-border), var(--landing-accent), var(--color-border));
        margin: 0;
    }

    .lp-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .lp-hero {
        padding: 4rem 0 2.5rem;
    }

    .lp-features {
        grid-template-columns: 1fr;
    }

    .lp-hero-proof {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .lp-btn {
        width: 100%;
        justify-content: center;
    }
}

.pp-side-toggle {
    position: fixed;
    right: 0;
    top: calc(var(--pp-header-offset, 76px) + 0.75rem);
    z-index: 1010;
    width: 32px;
    height: 36px;
    border-radius: 8px 0 0 8px;
    border: 1px solid var(--color-border);
    border-right: none;
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    font-size: 0.95rem;
}

.pp-side-menu {
    position: fixed;
    right: -302px;
    top: calc(var(--pp-header-offset, 76px) + 0.75rem);
    width: 302px;
    max-width: calc(100vw - 1rem);
    z-index: 1009;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transition: right 0.22s ease;
    max-height: calc(100vh - var(--pp-header-offset, 76px) - 2rem);
    overflow: auto;
}

.pp-side-menu.open {
    right: 0;
}

.pp-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    font-weight: 600;
}

.pp-side-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem;
}

.pp-side-status {
    margin-top: 0.3rem;
    color: var(--color-muted);
    font-size: 0.82rem;
    min-height: 1.2rem;
}

.qr-code-container img {
    display: block;
}
