/*ncluding desktop, tablet, and mobile layouts.*/

/* ==========================================================================
   onmove - Responsive CSS
   Supports:
   - e_cart.php
   - login.php
   ========================================================================== */


/* ==========================================================================
   1. RESET / BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #f6f7f9;
    color: #1f2937;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.5;
   
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
     width:80%;
    wwidth: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}


/* ==========================================================================
   2. ACCESSIBILITY
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
   
}


/* ==========================================================================
   3. HEADER
   ========================================================================== */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.main-nav a {
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2563eb;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-danger-outline {
    background: #ffffff;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-danger-outline:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.btn-checkout {
    width: 100%;
    min-height: 52px;
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    font-size: 1rem;
}

.btn-checkout:hover {
    background: #15803d;
    border-color: #15803d;
}

.btn-full {
    width: 100%;
}


/* ==========================================================================
   5. FORM ELEMENTS
   ========================================================================== */

.form-group {
     
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #111827;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:hover {
    border-color: #9ca3af;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group input::placeholder {
    color: #9ca3af;
}


/* ==========================================================================
   6. ALERTS
   ========================================================================== */

.alert {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.alert-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}


/* ==========================================================================
   7. CART PAGE
   ========================================================================== */

.cart-page {
    padding: 45px 0 70px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.page-heading h1 {
    margin: 0 0 5px;
    color: #111827;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-heading p {
    margin: 0;
    color: #6b7280;
}


/* ==========================================================================
   8. CART LAYOUT
   ========================================================================== */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 30px;
}

.cart-card,
.summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}


/* ==========================================================================
   9. CART HEADER
   ========================================================================== */

.cart-header {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 100px 170px 110px;
    gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   10. CART ITEM
   ========================================================================== */

.cart-item {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 100px 170px 110px;
    gap: 15px;
    align-items: center;
    padding: 22px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child {
    border-bottom: 0;
}

.product-info {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 15px;
}

.product-image {
    flex: 0 0 86px;
    width: 86px;
    height: 86px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    min-width: 0;
}

.product-details h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    line-height: 1.35;
}

.product-details h3 a {
    color: #111827;
}

.product-details h3 a:hover {
    color: #2563eb;
}

.stock {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 0.78rem;
    font-weight: 600;
}

.stock.available {
    color: #15803d;
}

.stock.unavailable {
    color: #dc2626;
}

.remove-form {
    margin: 0;
}

.remove-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
}

.remove-btn:hover {
    text-decoration: underline;
}


/* ==========================================================================
   11. CART PRICE / QUANTITY / TOTAL
   ========================================================================== */

.item-price,
.item-total {
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
}

.item-total {
    color: #111827;
    font-weight: 800;
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.quantity-form input {
    width: 65px;
    height: 40px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #ffffff;
    color: #111827;
    text-align: center;
}

.quantity-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.update-btn {
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #ffffff;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 700;
}

.update-btn:hover {
    background: #f3f4f6;
}


/* ==========================================================================
   12. CONTINUE SHOPPING
   ========================================================================== */

.continue-shopping {
    margin-top: 20px;
}


/* ==========================================================================
   13. ORDER SUMMARY
   ========================================================================== */

.order-summary {
    position: sticky;
    top: 95px;
}

.summary-card {
    padding: 25px;
}

.summary-card h2 {
    margin: 0 0 22px;
    color: #111827;
    font-size: 1.25rem;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.summary-row strong {
    color: #374151;
}

.free-shipping-message {
    margin: 14px 0;
    padding: 12px;
    border-radius: 7px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.82rem;
    line-height: 1.45;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.summary-total span {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.summary-total strong {
    color: #111827;
    font-size: 1.45rem;
}

.secure-checkout {
    margin-top: 15px;
    color: #6b7280;
    font-size: 0.78rem;
    text-align: center;
}


/* ==========================================================================
   14. EMPTY CART
   ========================================================================== */

.empty-cart {
    max-width: 600px;
    margin: 50px auto;
    padding: 55px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.empty-cart-icon {
    margin-bottom: 15px;
    font-size: 3.5rem;
}

.empty-cart h2 {
    margin: 0 0 8px;
    color: #111827;
}

.empty-cart p {
    margin: 0 0 25px;
    color: #6b7280;
}


/* ==========================================================================
   15. LOGIN / AUTH PAGE
   ========================================================================== */

.auth-page {
    min-height: calc(100vh - 145px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 0;
}

.auth-container {
    width: min(100%, 450px);
    margin: 0 auto;
    padding: 0 16px;
}

.auth-card {
    padding: 35px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.07);
}

.auth-header {
    margin-bottom: 25px;
    text-align: center;
}

.auth-header h1 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.auth-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.auth-form {
    width: 100%;
}

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.password-label label {
    margin-bottom: 7px;
}

.password-label a {
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 600;
}

.password-label a:hover {
    text-decoration: underline;
}

.auth-divider {
    position: relative;
    margin: 27px 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.auth-divider span {
    position: relative;
    top: -11px;
    padding: 0 12px;
    background: #ffffff;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 700;
}

.register-prompt {
    text-align: center;
}

.register-prompt p {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 0.88rem;
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.site-footer {
    padding: 25px 0;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.site-footer p {
    margin: 0;
    color: #6b7280;
    font-size: 0.82rem;
    text-align: center;
}


/* ==========================================================================
   17. TABLET
   ========================================================================== */

@media (max-width: 1000px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .summary-card {
        max-width: 600px;
    }

    .cart-header,
    .cart-item {
        grid-template-columns:
            minmax(220px, 1fr)
            90px
            150px
            100px;
    }
}


/* ==========================================================================
   18. MOBILE CART
   ========================================================================== */

@media (max-width: 760px) {

    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 64px;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        padding: 10px 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 17px;
    }

    .main-nav a {
        font-size: 0.8rem;
    }


    .cart-page {
        padding: 30px 0 50px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .page-heading .btn {
        width: 100%;
    }


    /*
    |--------------------------------------------------------------------------
    | Turn each cart item into a mobile card
    |--------------------------------------------------------------------------
    */

    .cart-header {
        display: none;
    }

    .cart-item {
        display: block;
        padding: 18px;
    }

    .product-info {
        margin-bottom: 16px;
    }

    .product-image {
        flex-basis: 75px;
        width: 75px;
        height: 75px;
    }

    .item-price,
    .quantity-control,
    .item-total {
        margin-top: 12px;
    }

    .item-price::before {
        content: "Price: ";
        color: #6b7280;
        font-weight: 400;
    }

    .item-total::before {
        content: "Total: ";
        color: #6b7280;
        font-weight: 400;
    }

    .quantity-control {
        display: flex;
        align-items: center;
    }

    .quantity-form {
        width: 100%;
    }

    .quantity-form input {
        width: 80px;
    }

    .update-btn {
        padding-left: 15px;
        padding-right: 15px;
    }

    .continue-shopping .btn {
        width: 100%;
    }

    .summary-card {
        padding: 20px;
    }
}


/* ==========================================================================
   19. SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 20px);
    }

    .main-nav {
        gap: 11px;
    }

    .main-nav a {
        font-size: 0.74rem;
    }

    .cart-page {
        padding-top: 22px;
    }

    .page-heading h1 {
        font-size: 1.65rem;
    }

    .cart-card,
    .summary-card,
    .empty-cart,
    .auth-card {
        border-radius: 10px;
    }

    .product-info {
        gap: 11px;
    }

    .product-image {
        flex-basis: 65px;
        width: 65px;
        height: 65px;
    }

    .product-details h3 {
        font-size: 0.9rem;
    }


    /* Login */

    .auth-page {
        min-height: auto;
        padding: 30px 0 45px;
    }

    .auth-container {
        padding: 0 10px;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .auth-header h1 {
        font-size: 1.55rem;
    }

    .form-group {
        margin-bottom: 17px;
    }

    .password-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .password-label label,
    .password-label a {
        margin-bottom: 6px;
    }


    /* Empty cart */

    .empty-cart {
        margin: 30px auto;
        padding: 40px 20px;
    }

    .empty-cart-icon {
        font-size: 2.8rem;
    }
}


/* ==========================================================================
   20. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ==========================================================================
   21. DARKER FOCUS INDICATOR
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}
/* ==========================================================================
   PASSWORD SHOW / HIDE
   ========================================================================== */

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    min-width: 50px;
    padding: 5px 7px;

    border: 0;
    border-radius: 5px;

    background: transparent;
    color: #2563eb;

    font-size: 0.8rem;
    font-weight: 700;

    cursor: pointer;
}

.password-toggle:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.password-toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}


/* ==========================================================================
   REGISTER PAGE
   ========================================================================== */

.register-container {
    width: min(100%, 650px);
}

.register-card {
    padding: 35px;
}

.form-section {
    margin-bottom: 28px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.form-section h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 750;
}

.form-section label span {
    color: #dc2626;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-title {
    max-width: 130px;
}

.form-group select {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    min-width: 50px;
    padding: 5px 7px;

    border: 0;
    border-radius: 5px;

    background: transparent;
    color: #2563eb;

    font-size: 0.8rem;
    font-weight: 700;

    cursor: pointer;
}

.password-toggle:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.78rem;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 400 !important;
    cursor: pointer;
}

.checkbox-label input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: #2563eb;
}

.terms-text {
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 0.76rem;
    line-height: 1.5;
    text-align: center;
}

.terms-text a {
    color: #2563eb;
    font-weight: 600;
}

.terms-text a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   REGISTER - MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .register-card {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-title {
        max-width: none;
    }

}

/* ==========================================================================
   LOGOUT PAGE
   ========================================================================== */

.logout-page {
    min-height: calc(100vh - 145px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 0;
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.08),
            transparent 35%
        ),
        #f6f7f9;
}

.logout-container {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 0 16px;
}

.logout-card {
    overflow: hidden;
    padding: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.09);
}


/* ==========================================================================
   LOGOUT ICON
   ========================================================================== */

.logout-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logout-check {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #16a34a
        );

    color: #ffffff;

    font-size: 2.2rem;
    font-weight: 800;

    box-shadow:
        0 10px 25px rgba(22, 163, 74, 0.25);

    animation: logout-check-in 0.45s ease-out;
}

@keyframes logout-check-in {

    0% {
        opacity: 0;
        transform: scale(0.65);
    }

    70% {
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* ==========================================================================
   LOGOUT HEADER
   ========================================================================== */

.logout-header {
    margin-bottom: 30px;
    text-align: center;
}

.logout-header h1 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.logout-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}


/* ==========================================================================
   LOGOUT OPTIONS
   ========================================================================== */

.logout-options h2 {
    margin: 0 0 13px;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logout-option {
    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;
    min-height: 76px;

    margin-bottom: 11px;
    padding: 13px 15px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;
    color: #111827;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.logout-option:hover {
    border-color: #93c5fd;
    background: #f8fbff;

    box-shadow:
        0 5px 15px rgba(37, 99, 235, 0.08);

    transform: translateY(-2px);
}

.logout-option-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 1.15rem;
}

.logout-option-content {
    min-width: 0;
    flex: 1;
}

.logout-option-content strong {
    display: block;
    margin-bottom: 2px;
    color: #111827;
    font-size: 0.92rem;
}

.logout-option-content small {
    display: block;
    color: #6b7280;
    font-size: 0.76rem;
    line-height: 1.4;
}

.logout-arrow {
    color: #9ca3af;
    font-size: 1.25rem;
    font-weight: 600;
}

.logout-option:hover .logout-arrow {
    color: #2563eb;
}


/* ==========================================================================
   SPECIAL OPTION COLOURS
   ========================================================================== */

.logout-home .logout-option-icon {
    background: #ecfdf5;
    color: #16a34a;
}

.logout-login {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.logout-login:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}


/* ==========================================================================
   SECURITY MESSAGE
   ========================================================================== */

.logout-security {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 22px;
    padding: 13px;

    border-radius: 8px;

    background: #f9fafb;
}

.logout-security > span {
    flex: 0 0 auto;
    font-size: 0.9rem;
}

.logout-security p {
    margin: 0;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.5;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .logout-page {
        min-height: auto;
        padding: 30px 0 45px;
    }

    .logout-container {
        padding: 0 10px;
    }

    .logout-card {
        padding: 30px 20px;
        border-radius: 14px;
    }

    .logout-check {
        width: 65px;
        height: 65px;
        font-size: 1.9rem;
    }

    .logout-header h1 {
        font-size: 1.65rem;
    }

    .logout-header p {
        font-size: 0.88rem;
    }

    .logout-option {
        min-height: 70px;
        padding: 11px;
    }

    .logout-option-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .logout-option-content strong {
        font-size: 0.86rem;
    }

    .logout-option-content small {
        font-size: 0.72rem;
    }

}
/* ==========================================================================
   ACCOUNT LOGIN TOGGLE / DROPDOWN
   ========================================================================== */

.account-menu {
    position: relative;
    margin-left: 5px;
}


/* ==========================================================================
   TOGGLE BUTTON
   ========================================================================== */

.account-toggle {
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 48px;
    padding: 5px 10px 5px 6px;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    background: #ffffff;
    color: #374151;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.account-toggle:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.account-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}


/* ==========================================================================
   AVATAR
   ========================================================================== */

.account-avatar {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 35px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 800;
}


.account-toggle.is-logged-out .account-avatar {
    background: #f3f4f6;
    color: #6b7280;
}


/* ==========================================================================
   TOGGLE TEXT
   ========================================================================== */

.account-toggle-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 65px;

    line-height: 1.15;
}

.account-toggle-text small {
    color: #9ca3af;
    font-size: 0.65rem;
}

.account-toggle-text strong {
    max-width: 100px;

    overflow: hidden;

    color: #111827;

    font-size: 0.78rem;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================================
   ONLINE / OFFLINE STATUS
   ========================================================================== */

.account-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #9ca3af;
}


.account-toggle.is-logged-in .account-status-dot {
    background: #22c55e;

    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.12);
}


/* ==========================================================================
   CHEVRON
   ========================================================================== */

.account-chevron {
    color: #9ca3af;
    font-size: 0.8rem;

    transition:
        transform 0.2s ease;
}

.account-toggle[aria-expanded="true"] .account-chevron {
    transform: rotate(180deg);
}


/* ==========================================================================
   DROPDOWN
   ========================================================================== */

.account-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    z-index: 1000;

    width: 310px;

    padding: 10px;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.14);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-7px)
        scale(0.98);

    transform-origin: top right;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.account-dropdown.open {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* ==========================================================================
   DROPDOWN HEADER
   ========================================================================== */

.account-dropdown-header {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px;
}

.account-large-avatar {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 800;
}

.account-large-avatar.logged-out {
    background: #f3f4f6;
    color: #6b7280;
}

.account-dropdown-header strong {
    display: block;

    margin-bottom: 2px;

    color: #111827;

    font-size: 0.86rem;
}

.account-dropdown-header span {
    display: block;

    color: #6b7280;

    font-size: 0.72rem;
    line-height: 1.35;
}


/* ==========================================================================
   DIVIDER
   ========================================================================== */

.account-dropdown-divider {
    height: 1px;

    margin: 6px 4px;

    background: #e5e7eb;
}


/* ==========================================================================
   DROPDOWN ITEM
   ========================================================================== */

.account-dropdown-item {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px;

    border-radius: 8px;

    transition:
        background 0.15s ease;
}

.account-dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    border-radius: 7px;

    background: #eff6ff;

    font-size: 0.9rem;
}

.account-dropdown-item strong {
    display: block;

    color: #374151;

    font-size: 0.8rem;
}

.account-dropdown-item small {
    display: block;

    margin-top: 2px;

    color: #9ca3af;

    font-size: 0.68rem;
}

.account-dropdown-item.logout-item {
    color: #dc2626;
}

.account-dropdown-item.logout-item .dropdown-icon {
    background: #fef2f2;
}

.account-dropdown-item.logout-item strong {
    color: #dc2626;
}


/* ==========================================================================
   LOGGED OUT ACTIONS
   ========================================================================== */

.account-primary-action,
.account-secondary-action {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 43px;

    margin: 5px;

    border-radius: 8px;

    font-size: 0.82rem;
    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.account-primary-action {
    background: #2563eb;
    color: #ffffff;
}

.account-primary-action:hover {
    background: #1d4ed8;
}

.account-secondary-action {
    border: 1px solid #d1d5db;

    background: #ffffff;
    color: #374151;
}

.account-secondary-action:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}


/* ==========================================================================
   BENEFITS
   ========================================================================== */

.account-benefits {
    padding: 8px 12px 10px;

    color: #6b7280;

    font-size: 0.72rem;
    line-height: 1.8;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .account-menu {
        margin-left: 0;
    }

    .account-toggle {
        min-height: 42px;
        padding-right: 8px;
    }

    .account-avatar {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .account-toggle-text {
        min-width: 55px;
    }

    .account-toggle-text small {
        font-size: 0.58rem;
    }

    .account-toggle-text strong {
        max-width: 75px;
        font-size: 0.7rem;
    }

    .account-status-dot {
        width: 7px;
        height: 7px;
    }

    .account-dropdown {
        position: fixed;

        top: 68px;
        left: 10px;
        right: 10px;

        width: auto;

        transform-origin: top center;
    }

}



/* ==========================================================================
   ACCOUNT LOGIN TOGGLE / DROPDOWN
   ========================================================================== */

.account-menu {
    position: relative;
    margin-left: 5px;
}


/* ==========================================================================
   TOGGLE BUTTON
   ========================================================================== */

.account-toggle {
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 48px;
    padding: 5px 10px 5px 6px;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    background: #ffffff;
    color: #374151;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.account-toggle:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.account-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}


/* ==========================================================================
   AVATAR
   ========================================================================== */

.account-avatar {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 35px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 800;
}


.account-toggle.is-logged-out .account-avatar {
    background: #f3f4f6;
    color: #6b7280;
}


/* ==========================================================================
   TOGGLE TEXT
   ========================================================================== */

.account-toggle-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 65px;

    line-height: 1.15;
}

.account-toggle-text small {
    color: #9ca3af;
    font-size: 0.65rem;
}

.account-toggle-text strong {
    max-width: 100px;

    overflow: hidden;

    color: #111827;

    font-size: 0.78rem;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================================
   ONLINE / OFFLINE STATUS
   ========================================================================== */

.account-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #9ca3af;
}


.account-toggle.is-logged-in .account-status-dot {
    background: #22c55e;

    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.12);
}


/* ==========================================================================
   CHEVRON
   ========================================================================== */

.account-chevron {
    color: #9ca3af;
    font-size: 0.8rem;

    transition:
        transform 0.2s ease;
}

.account-toggle[aria-expanded="true"] .account-chevron {
    transform: rotate(180deg);
}


/* ==========================================================================
   DROPDOWN
   ========================================================================== */

.account-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    z-index: 1000;

    width: 310px;

    padding: 10px;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.14);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-7px)
        scale(0.98);

    transform-origin: top right;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.account-dropdown.open {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* ==========================================================================
   DROPDOWN HEADER
   ========================================================================== */

.account-dropdown-header {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px;
}

.account-large-avatar {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 800;
}

.account-large-avatar.logged-out {
    background: #f3f4f6;
    color: #6b7280;
}

.account-dropdown-header strong {
    display: block;

    margin-bottom: 2px;

    color: #111827;

    font-size: 0.86rem;
}

.account-dropdown-header span {
    display: block;

    color: #6b7280;

    font-size: 0.72rem;
    line-height: 1.35;
}


/* ==========================================================================
   DIVIDER
   ========================================================================== */

.account-dropdown-divider {
    height: 1px;

    margin: 6px 4px;

    background: #e5e7eb;
}


/* ==========================================================================
   DROPDOWN ITEM
   ========================================================================== */

.account-dropdown-item {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px;

    border-radius: 8px;

    transition:
        background 0.15s ease;
}

.account-dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    border-radius: 7px;

    background: #eff6ff;

    font-size: 0.9rem;
}

.account-dropdown-item strong {
    display: block;

    color: #374151;

    font-size: 0.8rem;
}

.account-dropdown-item small {
    display: block;

    margin-top: 2px;

    color: #9ca3af;

    font-size: 0.68rem;
}

.account-dropdown-item.logout-item {
    color: #dc2626;
}

.account-dropdown-item.logout-item .dropdown-icon {
    background: #fef2f2;
}

.account-dropdown-item.logout-item strong {
    color: #dc2626;
}


/* ==========================================================================
   LOGGED OUT ACTIONS
   ========================================================================== */

.account-primary-action,
.account-secondary-action {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 43px;

    margin: 5px;

    border-radius: 8px;

    font-size: 0.82rem;
    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.account-primary-action {
    background: #2563eb;
    color: #ffffff;
}

.account-primary-action:hover {
    background: #1d4ed8;
}

.account-secondary-action {
    border: 1px solid #d1d5db;

    background: #ffffff;
    color: #374151;
}

.account-secondary-action:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}


/* ==========================================================================
   BENEFITS
   ========================================================================== */

.account-benefits {
    padding: 8px 12px 10px;

    color: #6b7280;

    font-size: 0.72rem;
    line-height: 1.8;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .account-menu {
        margin-left: 0;
    }

    .account-toggle {
        min-height: 42px;
        padding-right: 8px;
    }

    .account-avatar {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .account-toggle-text {
        min-width: 55px;
    }

    .account-toggle-text small {
        font-size: 0.58rem;
    }

    .account-toggle-text strong {
        max-width: 75px;
        font-size: 0.7rem;
    }

    .account-status-dot {
        width: 7px;
        height: 7px;
    }

    .account-dropdown {
        position: fixed;

        top: 68px;
        left: 10px;
        right: 10px;

        width: auto;

        transform-origin: top center;
    }

}