/* =========================
   ACCOUNT PAGE (SCOPED) — VIONEX
   Uses: .account-topbar, .account-container, .account-card, etc.
   ========================= */

:root {
    --acc-white: #ffffff;
    --acc-yellow: #FACC15;
    --acc-yellow-soft: #FEF08A;
    --acc-black: #0f172a;
    --acc-muted: #6b7280;
    --acc-border: #e5e7eb;
    --acc-bg: #fafafa;
    --acc-radius: 18px;
    --acc-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

/* safe box-sizing for account only */
.account-topbar,
.account-container,
.account-container *,
.account-bottom-nav,
.account-bottom-nav * {
    box-sizing: border-box;
}

/* ================= TOP BAR ================= */
.account-topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    background: var(--acc-white);
    border-bottom: 1px solid var(--acc-border);

    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-topbar i {
    font-size: 18px;
    cursor: pointer;
    color: var(--acc-black);
}

.account-logo {
    font-weight: 900;
    font-size: 15px;
    letter-spacing: .04em;
    color: var(--acc-black);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70vw;
}

/* ================= CONTAINER ================= */
.account-container {
    width: min(1100px, calc(100% - 32px));
    /* ✅ desktop isiwe nyembamba */
    margin: 0 auto;
    padding: 18px 0 110px;
    /* nafasi ya bottom nav */
    color: var(--acc-black);
}

.account-container h3 {
    margin: 12px 0 18px;
    font-weight: 800;
}

/* Desktop: cards ziwe 2 columns (login/register) */
@media (min-width: 900px) {
    .account-container {
        padding-top: 26px;
    }

    .account-container .account-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        align-items: start;
    }
}

/* ================= CARD ================= */
.account-card {
    background: var(--acc-white);
    border: 1px solid var(--acc-border);
    box-shadow: var(--acc-shadow);
    border-radius: var(--acc-radius);

    padding: 18px;
    margin-bottom: 16px;
}

.account-card h4 {
    margin: 0 0 8px;
    font-weight: 800;
}

.account-muted {
    color: var(--acc-muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

/* ================= INPUTS (scoped) ================= */
.account-container input {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--acc-border);
    margin-top: 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: var(--acc-black);
}

.account-container input:focus {
    border-color: var(--acc-yellow);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, .22);
}

.account-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* mobile: row iwe 1 column */
@media (max-width: 520px) {
    .account-container {
        width: calc(100% - 16px);
        padding-bottom: 120px;
    }

    .account-row {
        grid-template-columns: 1fr;
    }
}

/* ================= BUTTONS ================= */
.account-container button {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    border: none;
    border-radius: 999px;

    background: linear-gradient(135deg, var(--acc-yellow), #FFC107);
    color: #111;

    font-weight: 900;
    font-size: 15px;
    cursor: pointer;

    box-shadow: 0 12px 26px rgba(250, 204, 21, .35);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.account-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(250, 204, 21, .45);
    filter: brightness(1.01);
}

.account-container button:active {
    transform: scale(.98);
}

/* link-buttons */
.account-btn {
    display: block;
    text-align: center;

    padding: 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;

    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--acc-border);
    color: var(--acc-black);

    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.account-btn:hover {
    background: #fffbea;
    border-color: var(--acc-yellow);
    transform: translateY(-1px);
}

.account-btn-danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.account-btn-danger:hover {
    background: #fff1f2;
    border-color: #fca5a5;
}

/* ================= BOTTOM NAV ================= */
.account-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    height: 70px;
    background: #fff;
    border-top: 1px solid var(--acc-border);
    z-index: 25;

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.account-bottom-nav a {
    flex: 1;
    text-decoration: none;
    color: var(--acc-muted);
    font-size: 11px;
    text-align: center;
    padding: 10px 0;
}

.account-bottom-nav i {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.account-bottom-nav a.active {
    color: var(--acc-black);
    font-weight: 900;
}

/* ================= OPTIONAL: nicer background strip ================= */
.account-container::before {
    content: "";
    display: block;
    height: 10px;
    margin-bottom: 8px;
}