:root{
    --green:#1b8f3a;
    --pink:#e11d48;
    --black:#0b0f14;
    --white:#ffffff;
    --muted:#64748b;
    --border:rgba(15,23,42,0.10);
    --page:#f6f8fb;
    --panel:#ffffff;
    --soft:#f2f6fb;
}

.content-topbar .sidebar-toggle{
    border:1px solid rgba(15,23,42,0.10);
    background:var(--white);
    color:#334155;
}

*{box-sizing:border-box}
body{
    margin:0;
    font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color:#0f172a;
    background:var(--page);
}

.topbar-right{display:flex;align-items:center;gap:10px}
.topbar-right .btn{font-size:14px;padding:8px 12px}
.topbar-right .btn .btn-text{display:inline}
@media (max-width:767px){.topbar-right .btn .btn-text{display:none}.topbar-right .btn{padding:8px}}
.avatar{
    width:36px;height:36px;
    border-radius:12px;
    object-fit:cover;
    border:1px solid rgba(11,15,20,0.12);
    background:var(--white);
}
.avatar.avatar-fallback{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--muted);
}

.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.card-head.pill{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:var(--soft);padding:8px 10px;border-radius:999px;font-weight:700}
.btn-sm{padding:7px 10px;border-radius:999px;font-size:13px;font-weight:500}

.actions-cell .btn-sm{
    padding:7px 10px;
    border-radius:999px;
    font-size:13px;
}

.actions-cell .btn-sm i{font-size:12px}

.pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:14px;
}

.pagination .page-link{
    min-width:40px;
    height:38px;
    padding:0 12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    border:1px solid rgba(15,23,42,0.10);
    background:#ffffff;
    color:#334155;
    font-weight:500;
    text-decoration:none;
    box-shadow:0 6px 14px rgba(15,23,42,0.04);
}

.pagination .page-link:hover{
    border-color:rgba(15,23,42,0.16);
    box-shadow:0 10px 18px rgba(15,23,42,0.06);
}

.pagination .page-link.is-active{
    background:#7c3aed;
    border-color:transparent;
    color:#ffffff;
}

.pagination .page-link.is-disabled{
    opacity:0.55;
    pointer-events:none;
}

.pagination .page-ellipsis{
    color:var(--muted);
    padding:0 2px;
}
.btn-block{width:100%}

.actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
}

.actions .btn{padding:7px 9px}

.actions.actions-compact .btn{
    padding:7px 9px;
    border-radius:999px;
    font-size:13px;
    font-weight:500;
}

.actions.actions-compact .btn i{font-size:12px}

a{color:inherit;text-decoration:none}

.app{min-height:100vh}

.container{max-width:1200px;margin:0 auto;padding:22px}

.layout{min-height:100vh;display:flex;background:var(--page)}

.overlay{
    position:fixed;inset:0;
    background:rgba(0,0,0,0.45);
    display:none;
    z-index:30;
}
.overlay.active{display:block}

.sidebar{
    width:260px;
    border-right:1px solid rgba(255,255,255,0.08);
    background:#0b0f14;
    display:flex;
    flex-direction:column;
    position:sticky;
    top:0;
    height:100vh;
    z-index:40;
    overflow:hidden;
}

.sidebar::before{
    content:'';
    position:absolute;
    inset:0;
    background:url('../../images/side.jpeg') center/cover no-repeat;
    opacity:0.7;
    pointer-events:none;
    z-index:0;
}

.sidebar > * {
    position:relative;
    z-index:1;
}

.sidebar-close{
    margin-left:auto;
    width:34px;height:34px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.14);
    background:rgba(255,255,255,0.06);
    color:#ffffff;
    cursor:pointer;
    display:none;
    align-items:center;
    justify-content:center;
}

.mobile-toggle{
    width:40px;height:40px;
    border-radius:12px;
    border:1px solid rgba(27,143,58,0.35);
    background:var(--green);
    color:var(--white);
    display:none;
    align-items:center;
    justify-content:center;
}

.mobile-toggle.hidden{display:none !important}

.sidebar-header{
    display:flex;
    align-items:center;
    gap:10px;
    padding:16px 16px;
    border-bottom:1px solid rgba(255,255,255,0.10);
}

.brand-mark{
    width:38px;height:38px;border-radius:10px;
    background:rgba(255,0,124,0.18);
    border:1px solid rgba(255,0,124,0.30);
}

.sidebar-avatar{
    width:38px;height:38px;
    border-radius:10px;
    object-fit:cover;
    border:1px solid rgba(11,15,20,0.12);
    background:var(--white);
    flex:0 0 auto;
}

.brand-title{font-weight:800;letter-spacing:0.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ffffff}
.brand-subtitle{font-size:12px;color:rgba(255,255,255,0.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.brand-title{font-size:16px;max-width:160px}
.brand-subtitle{max-width:160px}

.sidebar-toggle{
    margin-left:auto;
    width:34px;height:34px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.14);
    background:rgba(255,255,255,0.06);
    color:#ffffff;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.sidebar-nav{padding:10px;display:flex;flex-direction:column;gap:6px;flex:1;overflow:auto}
.nav-link{
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border-radius:12px;
    color:rgba(255,255,255,0.92);
    border:1px solid transparent;
    position:relative;
    transition:background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nav-link::before{
    content:"";
    position:absolute;
    left:0;
    top:10px;
    bottom:10px;
    width:3px;
    border-radius:99px;
    background:#ffffff;
    opacity:0;
}
.nav-link:hover{background:#600e36;border-color:rgba(255,0,124,0.25);color:#ffffff}
.nav-link:hover::before{opacity:0.55}
.nav-link.active{background:#f90c7f;border-color:rgba(255,0,124,0.35);color:#ffffff}
.nav-link.active::before{opacity:1}
.nav-link.danger{color:#ff3b3b}
.nav-link.danger:hover{background:rgba(255,59,59,0.12);border-color:rgba(255,59,59,0.22);color:#ffffff}

/* Logout button in topbar - red bg, white text, white border */
.topbar-right .btn-danger{
    background:#d11a2a;
    border-color:#ffffff;
    color:#ffffff;
}
.topbar-right .btn-danger:hover{
    background:#ffffff;
    border-color:#d11a2a;
    color:#d11a2a;
}

.nav-link .label{color:inherit}

.nav-icon{
    width:34px;height:34px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.10);
    transition:background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover .nav-icon{
    background:rgba(255,255,255,0.10);
    border-color:rgba(255,255,255,0.16);
}
.nav-link.active .nav-icon{
    background:rgba(255,255,255,0.14);
    border-color:rgba(255,255,255,0.18);
    color:#ffffff;
}

.icon-green{color:#ffffff;background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12)}
.icon-pink{color:#ffffff;background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12)}
.icon-blue{color:#ffffff;background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12)}
.icon-orange{color:#ffffff;background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12)}
.icon-red{color:#ffffff;background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12)}
.icon-yellow{color:#ffffff;background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12)}

.sidebar-footer{margin-top:auto;padding:12px 10px;border-top:1px solid rgba(255,255,255,0.10);padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px))}

.content{flex:1;min-width:0;background:var(--soft)}

.content-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 18px;
    border-bottom:1px solid rgba(255,255,255,0.10);
    background:#0b0f14;
    position:sticky;
    top:0;
    z-index:50;
}

.content-title{font-size:20px;font-weight:800;margin:0;color:#ffffff}
.content-meta{color:rgba(255,255,255,0.75);font-size:13px}

.content-inner{padding:18px}

body.sidebar-collapsed .sidebar{width:76px}
body.sidebar-collapsed .brand-text{display:none}
body.sidebar-collapsed .nav-link .label{display:none}
body.sidebar-collapsed .sidebar-nav{padding:10px 8px}
body.sidebar-collapsed .nav-link{justify-content:center}
body.sidebar-collapsed .sidebar-footer .nav-link{justify-content:center}
body.sidebar-collapsed .sidebar-footer .nav-link .label{display:none}

/* Tooltip like example */
.nav-link{position:relative}
body.sidebar-collapsed .nav-link::after{
    content:attr(data-title);
    position:fixed;
    left:86px;
    top:var(--tooltip-y);
    transform:translateY(-50%);
    background:#111827;
    color:#fff;
    font-size:12px;
    padding:6px 10px;
    border-radius:8px;
    opacity:0;
    pointer-events:none;
    white-space:nowrap;
    z-index:60;
}
body.sidebar-collapsed .nav-link:hover::after{opacity:1}

/* Mobile sidebar behavior */
@media (max-width: 767px){
    .layout{display:block}
    .sidebar{
        position:fixed;
        left:0;top:0;
        height:100dvh;
        transform:translateX(-100%);
        transition:transform .25s ease;
        width:260px;
    }
    .sidebar.open{transform:translateX(0)}
    .sidebar-close{display:inline-flex}
    .mobile-toggle{
        display:inline-flex;
        position:fixed;
        left:12px;
        top:12px;
        z-index:60;
        box-shadow:0 10px 18px rgba(0,0,0,0.10);
    }
    .sidebar-toggle{display:none}
    .content{min-height:100vh}
    .content-topbar{position:sticky;top:0;z-index:20;padding-left:60px}

    .sidebar-header{padding:14px 14px}
    .sidebar-nav{padding:10px 10px;padding-bottom:18px}
    .sidebar-footer{
        padding:10px 10px;
        padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px));
        position:sticky;
        bottom:0;
        background:#1f2937;
        z-index:2;
    }
    .nav-link{padding:9px 10px}
}

.card{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
    padding:18px;
    box-shadow:0 10px 26px rgba(0,0,0,0.08);
}

.grid{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width: 900px){.grid{grid-template-columns:1.2fr 0.8fr}}

.h1{font-size:26px;margin:0 0 8px 0}
.muted{color:var(--muted)}

.form-row{display:grid;gap:8px;margin-top:12px}
.label{font-size:13px;color:var(--muted)}

.input{
    width:100%;
    padding:12px 12px;
    border-radius:12px;
    border:1px solid var(--border);
    background:var(--white);
    color:var(--black);
    outline:none;
}
.input:focus{border-color:rgba(27,143,58,0.7);box-shadow:0 0 0 3px rgba(27,143,58,0.18)}

.input-icon{position:relative}
.input-icon .input{padding-left:42px}
.input-icon .icon{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    width:24px;
    height:24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--muted);
    border-radius:8px;
    border:1px solid rgba(11,15,20,0.10);
    background:var(--soft);
}

.input-icon .icon i{font-size:13px;line-height:1}

.input-icon .icon.icon-phone{color:var(--green);background:rgba(27,143,58,0.10);border-color:rgba(27,143,58,0.20)}
.input-icon .icon.icon-mail{color:#2563eb;background:rgba(37,99,235,0.10);border-color:rgba(37,99,235,0.20)}
.input-icon .icon.icon-clock{color:#7c3aed;background:rgba(124,58,237,0.10);border-color:rgba(124,58,237,0.20)}
.input-icon .icon.icon-cal{color:#0ea5e9;background:rgba(14,165,233,0.10);border-color:rgba(14,165,233,0.20)}
.input-icon .icon.icon-cal-x{color:#d11a2a;background:rgba(209,26,42,0.10);border-color:rgba(209,26,42,0.18)}

.input-icon .icon.icon-facebook{color:#1877f2;background:rgba(24,119,242,0.12);border-color:rgba(24,119,242,0.22)}
.input-icon .icon.icon-whatsapp{color:#25d366;background:rgba(37,211,102,0.12);border-color:rgba(37,211,102,0.22)}
.input-icon .icon.icon-instagram{color:#e1306c;background:rgba(225,48,108,0.12);border-color:rgba(225,48,108,0.22)}
.input-icon .icon.icon-youtube{color:#ff0000;background:rgba(255,0,0,0.10);border-color:rgba(255,0,0,0.20)}

.textarea{min-height:110px;resize:vertical;line-height:1.35}

.form-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width: 900px){.form-grid{grid-template-columns:1fr 1fr}}
.span-2{grid-column:1 / -1}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:8px 10px;
    border-radius:12px;
    border:1px solid rgba(15,23,42,0.08);
    background:var(--panel);
    color:#334155;
    font-weight:500;
    font-size:14px;
    line-height:1.15;
    cursor:pointer;
    transition:transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.btn i{font-size:13px;line-height:1}

.btn-outline{
    background: transparent;
    border: 1px solid #ff7a00;   /* orange border */
    color: #ff7a00;              /* orange text */
}

.btn-outline:hover{
    background: rgba(255, 122, 0, 0.10); /* light orange bg */
    border-color: #ff7a00;
    color: #ff7a00;
    box-shadow: 0 10px 18px rgba(255, 122, 0, 0.25);
}

/* ===== SWEETALERT2 (SAAS THEME) ===== */
.swal2-popup{
    border-radius:20px !important;
    padding:26px !important;
    font-family: Poppins, Inter, system-ui, sans-serif;
    box-shadow:0 24px 60px rgba(15,23,42,.14) !important;
}

.swal2-title{
    font-size:18px !important;
    font-weight:600 !important;
    color:#0f172a !important;
}

.swal2-html-container{
    font-size:14px !important;
    color:#64748b !important;
    margin-top:6px !important;
}

.swal2-icon{
    transform:scale(.9);
    margin:18px auto 10px !important;
}

.swal-btn{
    width:auto;
    min-width:140px;
    padding:15px 18px;
    font-size:15px;
    font-weight:500;
    border-radius:14px;
    border:none;
    transition:background-color .15s ease, transform .12s ease, box-shadow .12s ease;
}

.swal2-styled{
    box-shadow:none !important;
}

.swal2-styled:focus,
.swal2-styled:focus-visible,
.swal-btn:focus,
.swal-btn:focus-visible{
    outline:none !important;
    box-shadow:none !important;
}

.swal2-actions{
    gap:12px !important;
    flex-wrap:wrap;
}

.swal-btn:active{transform:translateY(1px)}

.swal-btn.btn-primary{background:#5b5ff5;color:#fff}
.swal-btn.btn-danger{background:#e54848;color:#fff}
.swal-btn.btn-success{background:#16a34a;color:#fff}
.swal-btn.btn-warning{background:#f59e0b;color:#fff}
.swal-btn.btn-dark{background:#0f172a;color:#fff}
.swal-btn.btn-light{background:#e5e7eb;color:#374151}

.swal-btn.btn-primary:hover{background:#4f46e5}
.swal-btn.btn-danger:hover{background:#dc2626}
.swal-btn.btn-success:hover{background:#15803d}
.swal-btn.btn-warning:hover{background:#d97706}
.swal-btn.btn-dark:hover{background:#020617}
.swal-btn.btn-light:hover{background:#d1d5db}

/* Alert Notifications */
.alert-container{
    position:fixed;
    top:20px;
    right:20px;
    z-index:9999;
    display:flex;
    flex-direction:column;
    gap:10px;
    max-width:360px;
}

.alert-toast{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 16px;
    border-radius:12px;
    background:#ffffff;
    border:1px solid rgba(0,0,0,0.08);
    box-shadow:0 10px 26px rgba(0,0,0,0.12);
    transform:translateX(120%);
    opacity:0;
    transition:transform 0.3s ease, opacity 0.3s ease;
}

.alert-toast.show{
    transform:translateX(0);
    opacity:1;
}

.alert-toast.alert-success{
    background:#dcfce7;
    border-color:#22c55e;
    color:#166534;
}

.alert-toast.alert-error{
    background:#fee2e2;
    border-color:#ef4444;
    color:#991b1b;
}

.alert-toast.alert-warning{
    background:#fef3c7;
    border-color:#f59e0b;
    color:#92400e;
}

.alert-toast.alert-info{
    background:#dbeafe;
    border-color:#3b82f6;
    color:#1e40af;
}

.alert-msg{
    font-size:14px;
    font-weight:500;
    line-height:1.4;
}

.alert-close{
    background:none;
    border:none;
    font-size:18px;
    cursor:pointer;
    padding:0;
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:inherit;
    opacity:0.6;
    transition:opacity 0.2s ease;
}

.alert-close:hover{
    opacity:1;
}

@media (max-width:640px){
    .alert-container{
        left:16px;
        right:16px;
        top:16px;
        max-width:none;
    }
    .alert-toast{
        transform:translateY(-100%);
    }
    .alert-toast.show{
        transform:translateY(0);
    }
}

@media (max-width:640px){
    .swal-btn{min-width:120px;padding:14px 16px}
}

.btn:hover{filter:brightness(1.02);box-shadow:0 8px 16px rgba(15,23,42,0.06)}
.btn:active{transform:translateY(0);box-shadow:0 4px 10px rgba(15,23,42,0.05)}
.btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(27,143,58,0.16), 0 10px 18px rgba(15,23,42,0.06)}

.btn.is-disabled{
    opacity:0.55;
    pointer-events:none;
}

.btn-blue{background:#2563eb;border-color:transparent}
.btn-blue{color:#ffffff}
.btn-blue:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(37,99,235,0.18), 0 10px 18px rgba(0,0,0,0.08)}

.btn-orange{background:#f59e0b;border-color:transparent}
.btn-orange{color:#ffffff}
.btn-orange:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(245,158,11,0.22), 0 10px 18px rgba(0,0,0,0.08)}

.btn-pink{background:var(--pink);border-color:transparent}
.btn-pink{color:#ffffff}
.btn-pink:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(225,29,72,0.18), 0 10px 18px rgba(0,0,0,0.08)}

.btn-gray{background:#ffffff;border-color:rgba(15,23,42,0.10);color:#334155}
.btn-gray:hover{border-color:rgba(15,23,42,0.16);background:#ffffff}
.btn-gray:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(15,23,42,0.14), 0 10px 18px rgba(0,0,0,0.08)}

.btn-black{background:var(--black);border-color:transparent;color:var(--white)}
.btn-black:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(11,15,20,0.22), 0 10px 18px rgba(0,0,0,0.08)}

.btn-secondary{
    border-color:rgba(15,23,42,0.10);
    background:var(--white);
    color:#334155;
}

.btn-secondary:hover{border-color:rgba(15,23,42,0.16);background:#ffffff}
.btn-secondary:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(37,99,235,0.14), 0 10px 18px rgba(15,23,42,0.06)}

.btn-danger{
    border-color:transparent;
    background:#d11a2a;
    color:var(--white);
}

.btn-danger:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(209,26,42,0.18), 0 10px 18px rgba(0,0,0,0.08)}

.alert{
    margin-top:12px;
    padding:12px;
    border-radius:12px;
    border:1px solid rgba(217,72,106,0.45);
    background:rgba(217,72,106,0.10);
}

.pill{
    display:inline-flex;gap:8px;align-items:center;
    padding:7px 10px;
    border-radius:999px;
    border:1px solid var(--border);
    background:rgba(255,255,255,0.75);
    color:var(--muted);
    font-size:13px;
}

.product-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width: 900px){.product-grid{grid-template-columns:1fr 1fr}}
.product-item{display:flex;gap:12px;border:1px solid var(--border);background:var(--white);border-radius:16px;padding:12px}
.product-thumb{width:84px;height:84px;border-radius:14px;overflow:hidden;border:1px solid rgba(11,15,20,0.10);background:var(--soft);flex:0 0 auto}
.product-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.product-body{flex:1;min-width:0}
.product-title{font-weight:800;font-size:15px;line-height:1.2}

.table-wrap{width:100%;overflow:auto;border:1px solid var(--border);border-radius:16px;background:var(--white)}
.table{width:100%;border-collapse:separate;border-spacing:0;min-width:860px}
.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;line-height:1.25}
.table th{font-size:12px;color:var(--muted);font-weight:800;background:rgba(244,246,248,0.75)}
.table tr:last-child td{border-bottom:none}

.actions-cell{white-space:nowrap}
.actions-cell .btn{margin-right:6px;padding:7px 10px;border-radius:999px}

.table .pill{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.table .pill i{opacity:0.9}

.table .btn-sm{
    padding:7px 10px;
    border-radius:999px;
    font-size:13px;
    font-weight:500;
}

.table .btn-sm i{font-size:12px}

.empty-state{
    padding:26px 14px;
    text-align:center;
}

.empty-state-img{
    width:92px;
    height:92px;
    display:block;
    margin:0 auto 10px auto;
}

.empty-state-title{
    font-weight:600;
    color:#0f172a;
    font-size:15px;
}

.empty-state-sub{
    margin-top:4px;
    color:var(--muted);
    font-size:13px;
}

.table td.empty-cell{background:var(--white)}

@media (max-width:640px){
    .table td.empty-cell{
        position:sticky;
        left:0;
        transform:none;
        display:flex;
        justify-content:center;
    }
    .table td.empty-cell .empty-state{
        width:calc(100vw - 48px);
        max-width:360px;
        margin:0 auto;
    }
}

.thumb-btn{
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
}

.thumb-btn:focus-visible{
    outline:none;
    box-shadow:0 0 0 3px rgba(124,58,237,0.18);
    border-radius:14px;
}

.exp-red{color:#d11a2a}

/* Homepage */
.home-hero{
    padding:80px 20px;
    text-align:center;
    background:linear-gradient(135deg, #f6f8fb 0%, #e0e7ff 100%);
}
.home-hero-content{
    max-width:640px;
    margin:0 auto;
}
.home-hero-title{
    font-size:clamp(28px, 5vw, 48px);
    font-weight:800;
    line-height:1.2;
    margin-bottom:16px;
    color:#0f172a;
}
.home-hero-sub{
    font-size:18px;
    color:#64748b;
    margin-bottom:32px;
}
.home-hero-actions{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
}

.home-section{
    padding:60px 20px;
}
.section-title{
    font-size:32px;
    font-weight:800;
    text-align:center;
    margin-bottom:40px;
    color:#0f172a;
}
.info-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
    gap:24px;
}
.info-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:16px;
    padding:24px;
    text-align:center;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover{
    transform:translateY(-4px);
    box-shadow:0 20px 40px rgba(0,0,0,0.08);
}
.info-icon{
    width:64px;height:64px;
    margin:0 auto 16px auto;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, #7c3aed, #a78bfa);
    color:var(--white);
    border-radius:16px;
    font-size:28px;
}
.info-title{
    font-size:20px;
    font-weight:700;
    margin-bottom:8px;
    color:#0f172a;
}
.info-desc{
    font-size:15px;
    color:#64748b;
}

.medicines-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
    gap:24px;
}
.medicine-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.medicine-card:hover{
    transform:translateY(-4px);
    box-shadow:0 20px 40px rgba(0,0,0,0.08);
}
.medicine-thumb{
    width:100%;
    height:200px;
    position:relative;
    overflow:hidden;
}
.medicine-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.medicine-thumb .avatar{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:48px;
    color:var(--muted);
}
.medicine-body{
    padding:20px;
}
.medicine-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:12px;
    color:#0f172a;
}
.medicine-price{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
}
.price-current{
    font-size:20px;
    font-weight:800;
    color:#1b8f3a;
}
.price-discount{
    font-size:14px;
    color:#ea580c;
    font-weight:600;
}
.btn-block{
    width:100%;
    justify-content:center;
}

@media (max-width:640px){
    .home-hero{padding:60px 16px;}
    .home-hero-actions{flex-direction:column;}
    .home-section{padding:40px 16px;}
    .section-title{font-size:28px;}
    .info-cards{grid-template-columns:1fr;gap:16px;}
    .medicines-grid{grid-template-columns:1fr;gap:16px;}
}

.thumb-sm{width:64px;height:64px;border-radius:14px;overflow:hidden;border:1px solid rgba(11,15,20,0.10);background:var(--soft)}
.thumb-sm img{width:100%;height:100%;object-fit:cover;display:block}

body.modal-open{overflow:hidden}
.modal{position:fixed;inset:0;display:none;z-index:90}
.modal.open{display:block}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.45)}
.modal-dialog{position:relative;max-width:720px;width:calc(100% - 26px);margin:9vh auto 0 auto;background:var(--white);border-radius:18px;border:1px solid rgba(11,15,20,0.12);box-shadow:0 30px 70px rgba(0,0,0,0.25);overflow:hidden}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border);background:rgba(244,246,248,0.75)}
.modal-title{font-weight:900}
.modal-close{width:38px;height:38px;border-radius:12px;border:1px solid var(--border);background:var(--white);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.modal-body{padding:16px;max-height:55vh;overflow:auto;line-height:1.5}
.modal-foot{padding:14px 16px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;background:rgba(244,246,248,0.55)}

.split{display:flex;gap:10px;flex-wrap:wrap}

.password-wrap{position:relative}
.password-toggle{
    position:absolute;right:10px;top:50%;transform:translateY(-50%);
    border:1px solid var(--border);
    background:var(--white);
    color:var(--black);
    border-radius:10px;
    width:40px;height:40px;
    padding:0;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.password-toggle:hover{border-color:rgba(11,15,20,0.22)}

.password-toggle .eye{display:inline-flex}
.password-toggle .fa-eye-slash{display:none}
.password-toggle.is-on .fa-eye{display:none}
.password-toggle.is-on .fa-eye-slash{display:inline-block}

.center-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px;
    background:var(--page);
}

.login-card{width:100%;max-width:440px}

 .site-footer{
     margin-top:40px;
     border-top:1px solid rgba(11,15,20,0.10);
     background:linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(244,246,248,1) 100%);
     color:var(--black);
 }
 .site-footer .footer-inner{
     max-width:1200px;
     margin:0 auto;
     padding:18px 20px;
     display:flex;
     align-items:center;
     justify-content:space-between;
     gap:16px;
     font-size:14px;
 }
 .site-footer .footer-left{
     display:flex;
     flex-direction:column;
     gap:4px;
 }
 .site-footer .footer-title{
     font-weight:800;
     color:#111827;
 }
 .site-footer .footer-subtitle{
     color:#64748b;
     font-size:13px;
 }
 .site-footer .footer-right{
     display:flex;
     flex-direction:column;
     align-items:flex-end;
     gap:4px;
 }
 .site-footer .footer-credit{
     color:#475569;
 }
 .site-footer .footer-name{
     font-weight:700;
 }
 .site-footer .footer-contact{
     color:var(--primary);
     font-weight:600;
     text-decoration:none;
 }
 .site-footer .footer-contact:hover{
     text-decoration:underline;
 }
 @media (max-width:640px){
     .site-footer .footer-inner{
         flex-direction:column;
         align-items:flex-start;
         padding:16px;
         gap:10px;
         font-size:13px;
     }
     .site-footer .footer-right{
         align-items:flex-start;
     }
 }
