@import url('style.css');

:root {
    --surface-base: #101010;
    --surface-card: #1c1c1c;
    --surface-muted: #171717;
    --surface-highlight: linear-gradient(135deg, rgba(255, 77, 77, 0.2), rgba(255, 77, 77, 0));
    --border-subtle: rgba(255, 255, 255, 0.06);
    --text-muted: rgba(255, 255, 255, 0.6);
    --success: #2ecc71;
    --alert: #ff6b6b;
    --warning: #f39c12;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--surface-base);
    color: #fff;
    margin: 0;
    min-height: 100vh;
}

main.account-page {
    width: min(1080px, 92%);
    margin: 120px auto 80px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.card {
    background: var(--surface-card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
}

.account-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: radial-gradient(circle at top right, rgba(255, 77, 77, 0.25), transparent 60%), var(--surface-card);
    border: 1px solid rgba(255, 77, 77, 0.12);
}

.hero-main {
    display: flex;
    gap: 24px;
    align-items: center;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 77, 77, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
}

.hero-copy h1 {
    font-size: 2.2rem;
    margin: 6px 0 10px;
    letter-spacing: 0.5px;
}

.overline {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.subtext {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.meta-item {
    padding: 18px;
    border-radius: 12px;
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.span-2 {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-row dt {
    font-weight: 500;
    color: var(--text-muted);
}

.info-row dd {
    margin: 0;
    font-weight: 600;
}

.email-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.email-edit-wrap {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.email-edit-wrap input {
    width: min(320px, 100%);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-muted);
    color: #fff;
}

.email-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.card-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 15px 30px rgba(255, 77, 77, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.button-small {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(255, 77, 77, 0.32);
}

.button:active {
    transform: translateY(0);
}

.button-secondary {
    background: rgba(255, 77, 77, 0.1);
    color: #ff8080;
    box-shadow: none;
    border: 1px solid rgba(255, 77, 77, 0.35);
}

.button-secondary:hover {
    background: rgba(255, 77, 77, 0.18);
}

.button-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.button-ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.status-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-success {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.35);
    color: #7ee0a4;
}

.status-alert {
    background: rgba(255, 107, 107, 0.18);
    border-color: rgba(255, 107, 107, 0.45);
    color: #ff9c9c;
}

.pass-list {
    display: grid;
    gap: 16px;
}

.pass-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--surface-muted);
}

.pass-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.pass-table th,
.pass-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
    vertical-align: middle;
}

.pass-table th {
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.pass-table tr:last-child td {
    border-bottom: none;
}

.pass-card {
    padding: 22px;
    border-radius: 14px;
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.pass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--surface-highlight);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pass-card:hover::before {
    opacity: 1;
}

.pass-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.pass-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.badge-live {
    background: rgba(255, 77, 77, 0.2);
    color: #ff7373;
    border: 1px solid rgba(255, 77, 77, 0.45);
}

.badge-upcoming {
    background: rgba(243, 156, 18, 0.18);
    color: #f9c87a;
    border: 1px solid rgba(243, 156, 18, 0.35);
}

.badge-expired {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pass-meta {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pass-actions {
    margin-top: 16px;
}

.link-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 77, 77, 0.18);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.15s ease;
}

.link-live::before {
    content: '●';
    font-size: 0.8rem;
    color: #ff4d4d;
}

.link-live:hover {
    background: rgba(255, 77, 77, 0.28);
    transform: translateY(-1px);
}

.empty-state {
    color: var(--text-muted);
    margin: 0;
    padding: 24px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.account-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.actions-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    main.account-page {
        margin-top: 100px;
    }

    .hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 22px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-row dd {
        font-size: 1rem;
    }

    .card-actions {
        width: 100%;
    }

    .card-actions .button {
        flex: 1;
        justify-content: center;
    }

    .account-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .actions-group {
        width: 100%;
    }

    .actions-group .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    main.account-page {
        margin-top: 80px;
        width: 94%;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }
}
