:root{--ink:#17130f;--muted:#756c62;--cream:#fffaf1;--paper:#fff;--red:#a42121;--red-dark:#691414;--gold:#d8a84e;--line:#eadfce;--shadow:0 22px 70px rgba(35,23,12,.12)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Tajawal",sans-serif;background:#f4efe7;color:var(--ink)}a{text-decoration:none;color:inherit}.shell{width:min(1180px,calc(100% - 32px));margin-inline:auto}.menu-hero{position:relative;min-height:680px;color:#fff;background:linear-gradient(90deg,rgba(18,10,6,.88),rgba(18,10,6,.36)),url('/images/menu/restaurant-interior.jpeg') center/cover no-repeat;overflow:hidden}.menu-hero:after{content:"";position:absolute;inset:auto 0 0;height:120px;background:linear-gradient(transparent,#f4efe7)}.hero-overlay{position:absolute;inset:0;background:radial-gradient(circle at 20% 30%,rgba(216,168,78,.24),transparent 34%)}.menu-nav{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:24px 0}.brand{display:flex;gap:12px;align-items:center}.brand-fire{display:grid;place-items:center;width:52px;height:52px;border-radius:18px;background:rgba(255,255,255,.12);font-size:28px}.brand strong,.brand small{display:block}.brand strong{font-size:23px}.brand small{color:#ead3aa}.admin-link,.ghost-btn{border:1px solid rgba(255,255,255,.4);padding:11px 18px;border-radius:14px;backdrop-filter:blur(8px)}.hero-content{position:relative;z-index:2;padding:120px 0 170px;max-width:760px}.eyebrow,.section-heading span,.admin-kicker,.card-head span{color:var(--gold);font-weight:800;letter-spacing:.04em}.hero-content h1{font-size:clamp(52px,8vw,96px);line-height:.92;margin:18px 0 24px;font-weight:900}.hero-content h1 em{font-style:normal;color:#ffd98f}.hero-content p{font-size:21px;line-height:1.9;max-width:650px;color:#f5e9da}.primary-btn,.secondary-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:15px;padding:14px 24px;font:800 16px Tajawal;cursor:pointer}.primary-btn{background:linear-gradient(135deg,#c13a31,var(--red-dark));color:#fff;box-shadow:0 12px 28px rgba(164,33,33,.28)}.primary-btn.small{padding:11px 18px}.secondary-btn{background:#f1e9dd;color:#5c4a38}.menu-section{padding:72px 0 90px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}.section-heading h2{font-size:40px;margin:5px 0}.section-heading p{color:var(--muted);max-width:450px}.category-tabs{display:flex;gap:10px;overflow:auto;padding-bottom:10px;margin-bottom:28px}.category-tabs a{white-space:nowrap;padding:10px 18px;border:1px solid var(--line);background:#fff;border-radius:999px;font-weight:700}.category-tabs a.active{background:var(--ink);color:#fff;border-color:var(--ink)}.food-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.food-card{background:var(--paper);border-radius:24px;overflow:hidden;box-shadow:var(--shadow);transition:.25s}.food-card:hover{transform:translateY(-7px)}.food-image{height:250px;position:relative;overflow:hidden}.food-image img{width:100%;height:100%;object-fit:cover;transition:.4s}.food-card:hover img{transform:scale(1.05)}.featured-badge,.category-badge{position:absolute;top:14px;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800}.featured-badge{right:14px;background:#ffd98f;color:#4c2c08}.category-badge{left:14px;background:rgba(20,14,10,.78);color:#fff}.food-body{padding:22px}.food-title{display:flex;align-items:start;justify-content:space-between;gap:12px}.food-title h3{font-size:24px;margin:0}.food-title strong{color:var(--red);font-size:20px;white-space:nowrap}.food-title small{font-size:12px}.food-body p{color:var(--muted);line-height:1.8;min-height:58px}.food-body a{font-weight:900;color:var(--red)}.contact-strip{background:var(--ink);color:#fff;padding:32px 0}.contact-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.contact-inner span,.contact-inner strong{display:block}.contact-inner span{color:#bfb4a8}.contact-inner a{background:#25d366;padding:13px 22px;border-radius:14px;font-weight:900}.menu-footer{text-align:center;padding:24px;background:#100d0b;color:#a89d92}.empty-menu{padding:60px;text-align:center;background:#fff;border-radius:24px;color:var(--muted)}
.admin-page{min-height:100vh;padding:32px;width:min(1500px,calc(100% - 32px));margin:auto}.admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}.admin-topbar h1{font-size:38px;margin:4px 0}.admin-topbar p{margin:0;color:var(--muted)}.top-actions{display:flex;gap:10px}.top-actions .ghost-btn{border-color:#cfc2b2;background:#fff}.toast-success{background:#e8f8ed;color:#176b35;border:1px solid #bde7c9;padding:13px 16px;border-radius:14px;margin-bottom:16px}.admin-layout{display:grid;grid-template-columns:minmax(360px,.8fr) minmax(560px,1.35fr);gap:22px}.form-card,.table-card{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:22px}.card-head{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}.card-head h2{margin:4px 0 0}.record-id{background:#f3ece1!important;color:#70593e!important;padding:7px 10px;border-radius:10px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:7px}.field.full{grid-column:1/-1}.field>span{font-weight:800}.field input,.field textarea,.filters input,.filters select{width:100%;border:1px solid #d9cdbd;background:#fffdf9;border-radius:13px;padding:12px 13px;font:inherit;outline:none}.field input:focus,.field textarea:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgba(216,168,78,.13)}.field small,.validation{color:#a42121}.upload-field{border:1px dashed #cfbfa9;padding:14px;border-radius:14px}.preview-row{display:flex;align-items:center;gap:18px;margin:18px 0}.preview-row img{width:128px;height:94px;object-fit:cover;border-radius:16px;border:1px solid var(--line)}.switches{display:grid;gap:12px}.switch{display:flex;align-items:center;gap:10px;font-weight:700}.switch input{width:18px;height:18px}.form-actions{display:flex;gap:10px}.delete-form{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.delete-form button{border:0;background:transparent;color:#b12222;font:800 14px Tajawal;cursor:pointer}.filters{display:grid;grid-template-columns:1fr 180px 90px;gap:10px}.filters button{border:0;background:var(--ink);color:#fff;border-radius:13px;font:800 15px Tajawal}.table-meta{display:flex;align-items:baseline;gap:7px;margin:18px 0}.table-meta strong{font-size:28px}.table-meta small{margin-right:auto;color:var(--muted)}.table-scroll{overflow:auto;max-height:640px}.food-table{width:100%;border-collapse:separate;border-spacing:0 8px}.food-table th{text-align:right;padding:8px 12px;color:#7b6f62;font-size:13px}.food-table td{padding:11px 12px;background:#faf7f1}.food-table tr{cursor:pointer}.food-table tbody tr:hover td,.food-table tbody tr.selected td{background:#f3e6d4}.food-table td:first-child{border-radius:0 14px 14px 0}.food-table td:last-child{border-radius:14px 0 0 14px}.food-table img{width:54px;height:44px;border-radius:10px;object-fit:cover}.food-table td strong,.food-table td small{display:block}.food-table td small{color:var(--muted)}.status{display:inline-block;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:800}.status.on{background:#dff4e6;color:#176b35}.status.off{background:#f6dede;color:#8a2020}
@media(max-width:1000px){.food-grid{grid-template-columns:repeat(2,1fr)}.admin-layout{grid-template-columns:1fr}.table-scroll{max-height:none}}@media(max-width:680px){.menu-hero{min-height:600px}.menu-nav{padding-top:16px}.admin-link{display:none}.hero-content{padding-top:95px}.section-heading,.contact-inner,.admin-topbar{align-items:flex-start;flex-direction:column}.food-grid{grid-template-columns:1fr}.food-image{height:230px}.admin-page{padding:16px;width:100%}.admin-topbar h1{font-size:30px}.top-actions{width:100%}.top-actions a{flex:1}.field-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.filters{grid-template-columns:1fr}.filters button{padding:12px}.form-actions{flex-direction:column}.food-table{min-width:720px}}
/* =========================================================
   GLOBAL LAYOUT
========================================================= */

html,
body {
    min-height: 100%;
}

html {
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    direction: rtl;
    font-family: "Tajawal", sans-serif;
    background: radial-gradient( circle at 90% 0, rgba(216, 168, 78, 0.08), transparent 28% ), #f4efe7;
    color: var(--ink);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
}


/* =========================================================
   SITE HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: linear-gradient( 135deg, rgba(23, 19, 15, 0.98), rgba(60, 32, 20, 0.97) );
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 14px 40px rgba(25, 14, 7, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

    .site-header::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 2px;
        background: linear-gradient( 90deg, transparent, var(--gold), var(--red), transparent );
        opacity: 0.85;
    }

.site-navbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header .brand {
    flex: 0 0 auto;
    color: #ffffff;
}

.site-header .brand-fire {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06) );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 24px rgba(0, 0, 0, 0.18);
}

.site-header .brand strong {
    font-size: 20px;
    line-height: 1.3;
}

.site-header .brand small {
    margin-top: 2px;
    font-size: 12px;
    color: #dbc99f;
}

.site-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

    .site-nav-link::after {
        content: "";
        position: absolute;
        right: 14px;
        bottom: 5px;
        width: 0;
        height: 2px;
        border-radius: 999px;
        background: var(--gold);
        transition: width 0.2s ease;
    }

    .site-nav-link:hover,
    .site-nav-link.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-1px);
    }

        .site-nav-link:hover::after,
        .site-nav-link.active::after {
            width: calc(100% - 28px);
        }

.site-header .primary-btn {
    min-height: 44px;
    margin-right: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 26px rgba(164, 33, 33, 0.3);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.site-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

    .site-menu-toggle span {
        display: block;
        width: 21px;
        height: 2px;
        margin: 5px auto;
        border-radius: 999px;
        background: #ffffff;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .site-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .site-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


/* =========================================================
   SITE FOOTER
========================================================= */

.site-footer {
    flex: 0 0 auto;
    position: relative;
    margin-top: 42px;
    color: #ffffff;
    background: linear-gradient( 135deg, #17130f, #281912 );
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

    .site-footer::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 2px;
        background: linear-gradient( 90deg, transparent, var(--gold), var(--red), transparent );
    }

.site-footer-inner {
    min-height: 110px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    gap: 28px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 22px;
}

.footer-brand strong,
.footer-brand small {
    display: block;
}

.footer-brand strong {
    font-size: 16px;
}

.footer-brand small {
    margin-top: 3px;
    font-size: 12px;
    color: #bfb4a8;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

    .footer-links a {
        color: #d8cec4;
        font-size: 14px;
        font-weight: 700;
        transition: color 0.2s ease, transform 0.2s ease;
    }

        .footer-links a:hover {
            color: #ffd98f;
            transform: translateY(-1px);
        }

.footer-copy {
    text-align: left;
    color: #9f9489;
    font-size: 13px;
}


/* =========================================================
   BOOTSTRAP CORRECTIONS
========================================================= */

.container,
.container-fluid {
    direction: rtl;
}

.form-control,
.form-select {
    text-align: right;
}

.validation-summary-errors ul {
    margin: 0;
    padding-right: 20px;
}

.text-danger,
.field-validation-error {
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   TABLE SCROLLBAR
========================================================= */

.table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #c8a76a #f1e9dd;
}

    .table-scroll::-webkit-scrollbar {
        width: 9px;
        height: 9px;
    }

    .table-scroll::-webkit-scrollbar-track {
        border-radius: 999px;
        background: #f1e9dd;
    }

    .table-scroll::-webkit-scrollbar-thumb {
        border: 2px solid #f1e9dd;
        border-radius: 999px;
        background: linear-gradient( var(--gold), var(--red) );
    }


/* =========================================================
   TABLE MOBILE IMPROVEMENT
========================================================= */

.food-table tbody tr {
    outline: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

    .food-table tbody tr:hover {
        transform: translateY(-1px);
    }

    .food-table tbody tr.selected td {
        box-shadow: inset 0 0 0 1px rgba(164, 33, 33, 0.16);
    }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {

    body.navigation-open {
        overflow: hidden;
    }

    .site-navbar {
        min-height: 74px;
    }

    .site-header .brand-fire {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 22px;
    }

    .site-header .brand strong {
        font-size: 17px;
    }

    .site-header .brand small {
        font-size: 11px;
    }

    .site-menu-toggle {
        display: block;
    }

    .site-navigation {
        position: fixed;
        z-index: 1200;
        top: 74px;
        right: 16px;
        left: 16px;
        display: grid;
        gap: 8px;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        background: linear-gradient( 145deg, rgba(31, 23, 18, 0.99), rgba(54, 30, 20, 0.99) );
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(0.98);
        transform-origin: top center;
        transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    }

        .site-navigation.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

    .site-nav-link {
        justify-content: flex-start;
        min-height: 48px;
        padding-inline: 16px;
        background: rgba(255, 255, 255, 0.045);
    }

        .site-nav-link::after {
            display: none;
        }

    .site-header .primary-btn {
        width: 100%;
        margin: 4px 0 0;
    }

    .site-footer {
        margin-top: 28px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-copy {
        text-align: center;
    }
}


@media (max-width: 420px) {

    .shell {
        width: min( 100% - 22px, 1180px );
    }

    .site-header .brand {
        gap: 8px;
    }

    .site-header .brand-fire {
        width: 41px;
        height: 41px;
    }

    .site-header .brand strong {
        font-size: 15px;
    }

    .site-header .brand small {
        max-width: 150px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .site-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .site-navigation {
        top: 70px;
        right: 11px;
        left: 11px;
    }
}


/* =========================================================
   LARGE DESKTOP / 4K
========================================================= */

@media (min-width: 1800px) {

    .shell {
        width: min( 1500px, calc(100% - 80px) );
    }

    .site-navbar {
        min-height: 96px;
    }

    .site-header .brand strong {
        font-size: 23px;
    }

    .site-nav-link {
        font-size: 16px;
        padding-inline: 18px;
    }

    .site-footer-inner {
        min-height: 124px;
    }
}
.food-order-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    margin-top: 8px;
    padding: 11px 17px;
    border-radius: 13px;
    color: #ffffff !important;
    background: linear-gradient( 135deg, #25d366, #128c4a );
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.23);
    font-size: 14px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .food-order-link:hover {
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(37, 211, 102, 0.31);
        filter: brightness(1.04);
    }

    .food-order-link span {
        font-size: 18px;
        transition: transform 0.2s ease;
    }

    .food-order-link:hover span {
        transform: translateX(-3px);
    }
/* =========================================================
   ACCOUNT NAVIGATION
========================================================= */

.account-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.account-user-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.account-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--gold), #8c5b20);
    color: #fff;
    font-weight: 900;
}

.account-user-copy {
    min-width: 0;
}

    .account-user-copy small,
    .account-user-copy strong {
        display: block;
    }

    .account-user-copy small {
        color: #cbbda9;
        font-size: 10px;
    }

    .account-user-copy strong {
        max-width: 155px;
        overflow: hidden;
        color: #fff;
        font-size: 12px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.account-logout-form {
    margin: 0;
}

.account-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 14px;
    border: 0;
    border-radius: 12px;
    font: 800 13px "Tajawal", sans-serif;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

    .account-action-button svg {
        width: 17px;
        height: 17px;
        fill: currentColor;
    }

.login-button {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.register-button {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    box-shadow: 0 9px 22px rgba(164, 33, 33, .25);
}

.logout-button {
    background: rgba(255, 255, 255, .08);
    color: #f0ddd4;
}

.account-action-button:hover {
    color: #fff;
    transform: translateY(-1px);
}


/* =========================================================
   IDENTITY PAGES
========================================================= */

.identity-page {
    min-height: calc(100vh - 86px);
    padding: 42px 16px;
    background: radial-gradient( circle at 15% 15%, rgba(216, 168, 78, .14), transparent 27% ), radial-gradient( circle at 88% 80%, rgba(164, 33, 33, .09), transparent 28% ), #f4efe7;
}

.identity-shell {
    display: grid;
    grid-template-columns: minmax(350px, .9fr) minmax(400px, 1fr);
    width: min(1040px, 100%);
    min-height: 650px;
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(234, 223, 206, .8);
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow);
}

.identity-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient( 145deg, rgba(23, 19, 15, .98), rgba(78, 34, 21, .94) ), url("/images/menu/restaurant-interior.jpeg") center / cover no-repeat;
}

    .identity-showcase::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient( circle at 25% 24%, rgba(216, 168, 78, .28), transparent 34% );
    }

    .identity-showcase > * {
        position: relative;
        z-index: 1;
    }

.identity-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
}

.identity-brand-icon {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 15px;
    background: rgba(255, 255, 255, .1);
    font-size: 23px;
}

.identity-brand strong,
.identity-brand small {
    display: block;
}

.identity-brand strong {
    font-size: 18px;
}

.identity-brand small {
    color: #dfc99f;
    font-size: 11px;
}

.identity-kicker {
    color: #f1c77b;
    font-size: 13px;
    font-weight: 900;
}

.identity-showcase-content h1 {
    max-width: 500px;
    margin: 13px 0 20px;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.08;
}

    .identity-showcase-content h1 em {
        display: block;
        color: #f3c772;
        font-style: normal;
    }

.identity-showcase-content > p {
    max-width: 480px;
    color: #e3d8cd;
    font-size: 16px;
    line-height: 1.9;
}

.identity-features {
    display: grid;
    gap: 11px;
    margin-top: 25px;
}

    .identity-features > div {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #f6eee6;
        font-size: 13px;
        font-weight: 700;
    }

    .identity-features span {
        display: grid;
        place-items: center;
        width: 25px;
        height: 25px;
        border-radius: 8px;
        background: rgba(216, 168, 78, .18);
        color: #ffd98f;
    }

.identity-showcase-footer {
    color: rgba(255, 255, 255, .54);
    font-size: 11px;
}

.identity-security-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
}

    .identity-security-note > span {
        font-size: 26px;
    }

    .identity-security-note strong,
    .identity-security-note small {
        display: block;
    }

    .identity-security-note small {
        margin-top: 3px;
        color: #cfc1b5;
    }

.identity-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 58px);
}

.identity-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
}

.identity-card-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #f6ead8;
    font-size: 22px;
}

.identity-card-header span:not(.identity-card-icon) {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.identity-card-header h2 {
    margin: 3px 0 5px;
    font-size: 30px;
    font-weight: 900;
}

.identity-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.identity-form,
.manage-form {
    display: grid;
    gap: 18px;
}

.identity-field {
    display: grid;
    gap: 7px;
}

    .identity-field > label {
        color: #3b3026;
        font-size: 13px;
        font-weight: 900;
    }

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

    .identity-input-wrap input {
        width: 100%;
        min-height: 52px;
        padding: 13px 45px 13px 70px;
        border: 1px solid #ded3c4;
        border-radius: 14px;
        outline: none;
        background: #fffdf9;
        color: var(--ink);
        font: 500 14px "Tajawal", sans-serif;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .identity-input-wrap input:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 4px rgba(216, 168, 78, .13);
        }

        .identity-input-wrap.readonly input,
        .identity-input-wrap input:disabled {
            background: #f2ece4;
            color: #756c62;
        }

.identity-input-icon {
    position: absolute;
    right: 16px;
    z-index: 2;
    color: #8b7761;
    font-size: 15px;
    font-weight: 900;
}

.password-toggle {
    position: absolute;
    left: 10px;
    z-index: 2;
    padding: 7px 9px;
    border: 0;
    border-radius: 9px;
    background: #f0e8dc;
    color: #6d5b48;
    font: 800 11px "Tajawal", sans-serif;
    cursor: pointer;
}

.identity-field-error {
    color: #a42121;
    font-size: 12px;
    font-weight: 700;
}

.identity-validation-summary {
    padding: 11px 13px;
    border: 1px solid #efc1c1;
    border-radius: 13px;
    background: #fce7e7;
    color: #8a2020;
    font-size: 12px;
}

    .identity-validation-summary:empty,
    .identity-validation-summary.validation-summary-valid {
        display: none;
    }

    .identity-validation-summary ul {
        margin: 0;
        padding-right: 18px;
    }

.identity-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
}

.identity-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #65594d;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

    .identity-checkbox input {
        width: 17px;
        height: 17px;
        accent-color: var(--red);
    }

.identity-options a,
.identity-account-link a {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
}

.identity-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 52px;
    padding: 13px 20px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient( 135deg, #bd332c, var(--red-dark) );
    color: #fff;
    box-shadow: 0 13px 28px rgba(164, 33, 33, .27);
    font: 900 15px "Tajawal", sans-serif;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .identity-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 17px 34px rgba(164, 33, 33, .33);
    }

    .identity-submit:disabled {
        cursor: wait;
        opacity: .7;
        transform: none;
    }

.identity-divider {
    position: relative;
    text-align: center;
}

    .identity-divider::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        height: 1px;
        background: var(--line);
    }

    .identity-divider span {
        position: relative;
        padding: 0 13px;
        background: #fff;
        color: #a39688;
        font-size: 11px;
    }

.identity-account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.identity-back-link {
    align-self: center;
    margin-top: 22px;
    color: #7c6c5c;
    font-size: 12px;
    font-weight: 800;
}

.external-login-section {
    margin-top: 20px;
    text-align: center;
}

.external-login-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.external-login-button {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    font: 800 12px "Tajawal", sans-serif;
}

.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: -7px;
}

    .password-requirements span {
        padding: 5px 8px;
        border-radius: 8px;
        background: #f4eee6;
        color: #796a5a;
        font-size: 10px;
    }


/* =========================================================
   MANAGE ACCOUNT
========================================================= */

.manage-page {
    min-height: calc(100vh - 86px);
    padding: 40px 16px 60px;
}

.manage-shell {
    width: min(1120px, 100%);
    margin: auto;
}

.manage-heading {
    margin-bottom: 23px;
}

    .manage-heading h1 {
        margin: 5px 0;
        font-size: 36px;
        font-weight: 900;
    }

    .manage-heading p {
        margin: 0;
        color: var(--muted);
    }

.manage-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.manage-sidebar,
.manage-card {
    border: 1px solid var(--line);
    border-radius: 23px;
    background: #fff;
    box-shadow: var(--shadow);
}

.manage-sidebar {
    position: sticky;
    top: 108px;
    padding: 17px;
}

.manage-sidebar-title {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 8px 18px;
    border-bottom: 1px solid var(--line);
}

.manage-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f5e9d8;
    font-size: 21px;
}

.manage-sidebar-title strong,
.manage-sidebar-title small {
    display: block;
}

.manage-sidebar-title strong {
    max-width: 165px;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.manage-sidebar-title small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.manage-navigation {
    display: grid;
    gap: 6px;
    margin: 15px 0;
}

.manage-nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #695d51;
    font-size: 12px;
    font-weight: 800;
}

    .manage-nav-link:hover,
    .manage-nav-link.active {
        background: #f5e9d8;
        color: var(--red);
    }

.manage-back-button {
    display: flex;
    justify-content: center;
    padding: 10px;
    border-top: 1px solid var(--line);
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
}

.manage-content {
    min-width: 0;
}

.manage-card {
    padding: clamp(22px, 4vw, 38px);
}

.manage-card-header {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.manage-card-icon {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border-radius: 15px;
    background: #f5e9d8;
    font-size: 21px;
}

.manage-card-header > div > span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
}

.manage-card-header h2 {
    margin: 3px 0 4px;
    font-size: 25px;
}

.manage-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.manage-field-note {
    color: var(--muted);
    font-size: 10px;
}

.email-state {
    position: absolute;
    left: 11px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
}

    .email-state.confirmed {
        background: #dff4e6;
        color: #176b35;
    }

    .email-state.pending {
        background: #f8e2cf;
        color: #975517;
    }

.email-verification-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border: 1px solid #eed09a;
    border-radius: 14px;
    background: #fff6df;
}

    .email-verification-box strong,
    .email-verification-box small {
        display: block;
    }

    .email-verification-box strong {
        font-size: 12px;
    }

    .email-verification-box small {
        margin-top: 3px;
        color: #856f4d;
        font-size: 10px;
    }

.email-verification-button {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 0;
    border-radius: 9px;
    background: #8a5c19;
    color: #fff;
    font: 800 11px "Tajawal", sans-serif;
}


/* =========================================================
   RESPONSIVE IDENTITY
========================================================= */

@media (max-width: 900px) {

    .identity-shell {
        grid-template-columns: 1fr;
        width: min(600px, 100%);
    }

    .identity-showcase {
        min-height: 330px;
    }

    .identity-showcase-content h1 {
        font-size: 40px;
    }

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

    .manage-sidebar {
        position: static;
    }

    .manage-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .account-navigation {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 3px 0 0;
    }

    .account-user-link {
        grid-column: 1 / -1;
    }

    .account-logout-form,
    .account-action-button {
        width: 100%;
    }

    .site-navigation .account-navigation {
        width: 100%;
    }
}

@media (max-width: 560px) {

    .identity-page {
        padding: 14px 10px 30px;
    }

    .identity-shell {
        border-radius: 22px;
    }

    .identity-showcase {
        min-height: 280px;
        padding: 25px;
    }

    .identity-showcase-content h1 {
        font-size: 33px;
    }

    .identity-showcase-content > p {
        font-size: 14px;
    }

    .identity-features {
        display: none;
    }

    .identity-card {
        padding: 27px 20px;
    }

    .identity-card-header h2 {
        font-size: 25px;
    }

    .identity-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .identity-account-link {
        flex-wrap: wrap;
    }

    .manage-page {
        padding-inline: 10px;
    }

    .manage-heading h1 {
        font-size: 29px;
    }

    .manage-navigation {
        grid-template-columns: 1fr;
    }

    .manage-card {
        padding: 20px 16px;
    }

    .email-verification-box {
        align-items: stretch;
        flex-direction: column;
    }

    .email-verification-button {
        width: 100%;
    }
}
.home-icon-link {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 12px;
    font-size: 28px;
}

    .home-icon-link i {
        line-height: 1;
    }

    .home-icon-link:hover,
    .home-icon-link.active {
        background: rgba(255, 255, 255, .1);
    }

