:root{
    --bg:#FAF4ED;
    --primary:#E87722;
    --secondary:#F4B63D;
    --card:#FFFFFF;
    --text:#1F2937;
    --muted:#6B7280;
    --border:#F1DFC7;
    --shadow:0 12px 35px rgba(232,119,34,.12);
    --shadow-soft:0 18px 40px rgba(31,41,55,.08);
    --radius:24px;
    --danger:#DC2626;
    --success:#16A34A;
    --info:#2563EB;
}

*{
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html,body{
    margin:0;
    padding:0;
    font-family:Inter, Arial, Helvetica, sans-serif;
    background:var(--bg);
    color:var(--text);
}

body.patient-app-bg{
    min-height:100vh;
    background:
        radial-gradient(circle at top right, rgba(244,182,61,.22), transparent 28%),
        radial-gradient(circle at 10% 20%, rgba(232,119,34,.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(232,119,34,.10), transparent 30%),
        linear-gradient(180deg, #fffaf5 0%, #FAF4ED 100%);
}

.patient-mobile-shell{
    width:100%;
    max-width:430px;
    min-height:100vh;
    margin:0 auto;
    padding:22px 18px 28px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:relative;
}

.patient-app-mobile{
    width:100%;
    max-width:430px;
    min-height:100vh;
    margin:0 auto;
    position:relative;
}

.patient-app-content{
    padding:20px 18px 110px;
}

.patient-status-bar-space{
    height:8px;
}

/* splash */
.patient-splash-screen{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:
        radial-gradient(circle at top right, rgba(244,182,61,.22), transparent 28%),
        radial-gradient(circle at bottom left, rgba(232,119,34,.16), transparent 30%),
        linear-gradient(180deg, #fffaf5 0%, #FAF4ED 100%);
    transition:opacity .35s ease, visibility .35s ease;
}

.patient-splash-screen.hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.patient-splash-card{
    width:100%;
    max-width:320px;
    background:rgba(255,255,255,.92);
    border:1px solid var(--border);
    border-radius:30px;
    padding:28px 22px;
    text-align:center;
    box-shadow:0 24px 55px rgba(232,119,34,.10), 0 12px 24px rgba(17,24,39,.04);
    backdrop-filter:blur(14px);
}

.patient-splash-logo-wrap{
    width:96px;
    height:96px;
    margin:0 auto 16px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.8);
    border:1px solid rgba(241,223,199,.95);
}

.patient-splash-logo{
    width:78%;
    height:78%;
    object-fit:contain;
}

.patient-splash-loader{
    width:54px;
    height:54px;
    margin:0 auto 16px;
    border-radius:50%;
    border:4px solid rgba(232,119,34,.12);
    border-top-color:#E87722;
    animation:patientSpin 1s linear infinite;
}

.patient-splash-card h2{
    margin:0 0 8px;
    font-size:24px;
    font-weight:900;
    letter-spacing:-.02em;
}

.patient-splash-card p{
    margin:0;
    color:var(--muted);
    font-size:14px;
    line-height:1.7;
}

/* auth */
.patient-login-top{
    text-align:center;
    margin-bottom:22px;
    animation:patientFadeUp .45s ease;
}

.patient-brand-logo-wrap{
    width:116px;
    height:116px;
    margin:0 auto 16px;
    border-radius:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px;
    background:rgba(255,255,255,.55);
    backdrop-filter:blur(8px);
    border:1px solid rgba(241,223,199,.9);
    box-shadow:var(--shadow-soft);
}

.patient-brand-logo{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:18px;
}

.patient-top-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(232,119,34,.09);
    color:var(--primary);
    border:1px solid rgba(232,119,34,.14);
    padding:10px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    margin-bottom:14px;
}

.patient-login-top h1{
    margin:0 0 8px;
    font-size:30px;
    font-weight:900;
    letter-spacing:-.03em;
}

.patient-login-top p{
    margin:0 auto;
    color:var(--muted);
    font-size:14px;
    line-height:1.7;
    max-width:320px;
}

.patient-login-card{
    position:relative;
    background:rgba(255,255,255,.92);
    border:1px solid var(--border);
    border-radius:30px;
    padding:22px 18px 18px;
    box-shadow:0 24px 55px rgba(232,119,34,.10), 0 12px 24px rgba(17,24,39,.04);
    overflow:hidden;
    animation:patientFadeUp .55s ease;
    backdrop-filter:blur(14px);
}

.patient-card-glow{
    position:absolute;
    top:-60px;
    right:-50px;
    width:170px;
    height:170px;
    background:radial-gradient(circle, rgba(244,182,61,.24), transparent 65%);
    pointer-events:none;
}

.patient-card-head{
    margin-bottom:14px;
    position:relative;
    z-index:1;
}

.patient-card-head h2{
    margin:0 0 6px;
    font-size:24px;
    font-weight:900;
    letter-spacing:-.02em;
}

.patient-card-head span{
    color:var(--muted);
    font-size:13px;
    line-height:1.6;
    display:block;
}

.patient-security-strip{
    display:flex;
    align-items:center;
    gap:10px;
    background:linear-gradient(135deg,#fff8f1 0%, #fffdf9 100%);
    border:1px solid #f5ddc3;
    color:#9a5a18;
    padding:12px 14px;
    border-radius:18px;
    font-size:12px;
    font-weight:700;
    margin-bottom:16px;
    position:relative;
    z-index:1;
}

.patient-field{
    margin-bottom:16px;
    position:relative;
    z-index:1;
}

.patient-field label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:800;
    color:#374151;
}

.patient-field-hint{
    display:block;
    margin-top:8px;
    font-size:11px;
    color:#8b6f5a;
    line-height:1.5;
}

.patient-input-wrap{
    position:relative;
    display:flex;
    align-items:center;
    background:#fff;
    border:1px solid #E9D7C0;
    border-radius:20px;
    min-height:60px;
    padding:0 14px;
    transition:.25s ease;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

.patient-input-wrap:hover{
    border-color:#e7c9a4;
}

.patient-input-wrap:focus-within{
    border-color:var(--primary);
    box-shadow:0 0 0 5px rgba(232,119,34,.10), 0 10px 24px rgba(232,119,34,.08);
    transform:translateY(-1px);
}

.patient-input-wrap.has-error{
    border-color:#fca5a5;
    box-shadow:0 0 0 4px rgba(239,68,68,.10);
}

.patient-input-wrap i{
    color:#9CA3AF;
    font-size:16px;
    margin-right:10px;
}

.patient-input-wrap input{
    flex:1;
    border:0;
    outline:none;
    background:transparent;
    font-size:15px;
    color:var(--text);
}

.patient-input-wrap input::placeholder{
    color:#a1a1aa;
}

.patient-toggle-pass{
    border:0;
    background:transparent;
    color:#9CA3AF;
    font-size:16px;
    cursor:pointer;
    padding:6px;
}

.patient-primary-btn{
    width:100%;
    min-height:58px;
    border:0;
    border-radius:20px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    font-size:16px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 14px 28px rgba(232,119,34,.24);
    transition:.22s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:4px;
    position:relative;
    overflow:hidden;
}

.patient-primary-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 18px 32px rgba(232,119,34,.28);
}

.patient-primary-btn:active{
    transform:scale(.992);
}

.patient-primary-btn:disabled{
    opacity:.78;
    cursor:not-allowed;
    transform:none;
}

.patient-primary-btn.is-loading .btn-icon{
    display:none;
}

.patient-primary-btn.is-loading::after{
    content:"";
    width:18px;
    height:18px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.45);
    border-top-color:#fff;
    animation:patientSpin .8s linear infinite;
}

.patient-login-help{
    margin-top:16px;
    text-align:center;
    position:relative;
    z-index:1;
}

.patient-login-help p{
    margin:0;
    color:var(--muted);
    font-size:12px;
    line-height:1.6;
}

.patient-login-footer{
    text-align:center;
    margin-top:18px;
    animation:patientFadeUp .65s ease;
}

.patient-login-footer p{
    margin:0 0 4px;
    font-size:13px;
}

.patient-login-footer small{
    color:var(--muted);
    font-size:12px;
}

/* swal patient */
.patient-swal-popup{
    width:calc(100% - 28px) !important;
    max-width:365px !important;
    border-radius:30px !important;
    padding:22px 18px 18px !important;
    box-shadow:0 30px 60px rgba(17,24,39,.18) !important;
    background:
        radial-gradient(circle at top right, rgba(244,182,61,.16), transparent 26%),
        linear-gradient(180deg,#fffefd 0%, #ffffff 100%) !important;
    border:1px solid rgba(241,223,199,.95) !important;
}

.patient-swal-title{
    font-size:23px !important;
    font-weight:900 !important;
    color:#1F2937 !important;
    padding:0 !important;
    margin-top:6px !important;
    letter-spacing:-.02em;
}

.patient-swal-text{
    font-size:14px !important;
    line-height:1.7 !important;
    color:#6B7280 !important;
    margin-top:8px !important;
}

.patient-swal-confirm,
.patient-swal-cancel{
    min-height:52px !important;
    border-radius:18px !important;
    font-size:15px !important;
    font-weight:800 !important;
    padding:0 18px !important;
    margin:0 !important;
}

.patient-swal-confirm{
    background:linear-gradient(135deg,#E87722,#F4B63D) !important;
    color:#fff !important;
    box-shadow:0 10px 24px rgba(232,119,34,.18) !important;
}

.patient-swal-cancel{
    background:#fff7ed !important;
    color:#9a3412 !important;
    border:1px solid #fed7aa !important;
}

.patient-swal-actions{
    width:100%;
    gap:10px !important;
    margin-top:18px !important;
}

.patient-swal-icon{
    border:0 !important;
    margin:4px auto 6px !important;
}

.patient-swal-html{
    margin-top:8px;
}

.patient-swal-loader-box{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:6px 0 4px;
}

.patient-swal-loader-ring{
    width:58px;
    height:58px;
    border-radius:50%;
    border:4px solid rgba(232,119,34,.12);
    border-top-color:#E87722;
    animation:patientSpin 1s linear infinite;
}

.patient-swal-loader-text{
    font-size:14px;
    color:#6B7280;
    line-height:1.7;
    text-align:center;
    max-width:240px;
}

/* top dashboard */
.patient-home-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 14px;
    border-radius:22px;
    background:linear-gradient(135deg,#ffffff 0%, #fff8f1 100%);
    border:1px solid rgba(232,119,34,.12);
    box-shadow:0 10px 30px rgba(232,119,34,.10);
    margin-bottom:14px;
}

.patient-home-user{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
    flex:1;
}

.patient-home-avatar{
    width:52px;
    height:52px;
    border-radius:16px;
    object-fit:cover;
    border:2px solid rgba(232,119,34,.14);
    background:#fff;
}

.patient-home-user-text{
    min-width:0;
    flex:1;
}

.patient-home-user-text span{
    display:block;
    font-size:11px;
    color:#7f8a9a;
    margin-bottom:4px;
}

.patient-home-user-text h1{
    margin:2px 0 4px;
    font-size:18px;
    line-height:1.15;
}

.patient-home-user-text p{
    margin:0;
    font-size:12px;
    color:#566173;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:180px;
}

.patient-hero-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex-shrink:0;
}

.patient-icon-btn{
    position:relative;
    width:42px;
    height:42px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid rgba(232,119,34,.10);
    color:var(--primary);
    text-decoration:none;
    box-shadow:0 6px 18px rgba(232,119,34,.08);
}

.patient-badge{
    position:absolute;
    top:-4px;
    right:-4px;
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    font-size:10px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
}

/* cards */
.patient-highlight-card{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    border-radius:26px;
    padding:20px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    box-shadow:0 16px 32px rgba(232,119,34,.20);
    margin-bottom:18px;
}

.patient-highlight-text small{
    display:block;
    font-size:12px;
    opacity:.9;
    margin-bottom:6px;
}

.patient-highlight-text h2{
    margin:0 0 8px;
    font-size:22px;
    line-height:1.2;
    font-weight:800;
}

.patient-highlight-text p{
    margin:0;
    font-size:13px;
    line-height:1.6;
    color:#fff7ed;
}

.patient-highlight-icon{
    width:64px;
    height:64px;
    border-radius:20px;
    background:rgba(255,255,255,.16);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    flex-shrink:0;
}

.patient-stats-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    margin-bottom:20px;
}

.patient-stat-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:16px;
    box-shadow:var(--shadow);
}

.patient-stat-card span{
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:6px;
}

.patient-stat-card strong{
    display:block;
    font-size:22px;
    font-weight:800;
    margin-bottom:4px;
}

.patient-stat-card small{
    color:var(--muted);
    font-size:12px;
}

.patient-section{
    margin-bottom:20px;
}

.patient-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}

.patient-section-head h3{
    margin:0;
    font-size:18px;
    font-weight:800;
}

.patient-section-head a{
    text-decoration:none;
    color:var(--primary);
    font-size:13px;
    font-weight:700;
}

.patient-shortcut-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.patient-shortcut-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:16px;
    text-decoration:none;
    color:var(--text);
    box-shadow:var(--shadow);
}

.patient-shortcut-icon{
    width:48px;
    height:48px;
    border-radius:16px;
    background:rgba(232,119,34,.10);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    margin-bottom:12px;
}

.patient-shortcut-card h4{
    margin:0 0 6px;
    font-size:15px;
    font-weight:800;
}

.patient-shortcut-card p{
    margin:0;
    font-size:12px;
    color:var(--muted);
    line-height:1.5;
}

.patient-list-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

.patient-list-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    border-bottom:1px solid #f3e7d8;
}

.patient-list-item:last-child{
    border-bottom:0;
}

.patient-list-time{
    min-width:54px;
    font-size:13px;
    font-weight:800;
    color:var(--primary);
}

.patient-list-main{
    flex:1;
}

.patient-list-main h4{
    margin:0 0 4px;
    font-size:14px;
    font-weight:800;
}

.patient-list-main p{
    margin:0;
    font-size:12px;
    color:var(--muted);
}

.patient-pill{
    font-size:11px;
    font-weight:800;
    padding:7px 10px;
    border-radius:999px;
    white-space:nowrap;
}

.patient-pill.pending{
    background:#fff3cd;
    color:#a16207;
}

.patient-pill.success{
    background:#dcfce7;
    color:#166534;
}

.patient-pill.info{
    background:#dbeafe;
    color:#1d4ed8;
}

.patient-pill.danger{
    background:#fee2e2;
    color:#b91c1c;
}

.patient-empty-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:26px;
    padding:28px 20px;
    text-align:center;
    box-shadow:var(--shadow);
}

.patient-empty-card i{
    font-size:32px;
    color:var(--primary);
    margin-bottom:12px;
}

.patient-empty-card h3{
    margin:0 0 8px;
    font-size:18px;
    font-weight:800;
}

.patient-empty-card p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.7;
}

/* nav */
.patient-bottom-nav{
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    bottom:0;
    width:100%;
    max-width:430px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(14px);
    border-top:1px solid #ead8c5;
    display:flex;
    justify-content:space-around;
    padding:10px 8px calc(10px + env(safe-area-inset-bottom));
    z-index:40;
}

.patient-bottom-nav a{
    flex:1;
    text-decoration:none;
    color:#8b8f97;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    font-size:11px;
    font-weight:700;
}

.patient-bottom-nav a i{
    font-size:18px;
}

.patient-bottom-nav a.active{
    color:var(--primary);
}

.patient-page-bottom-space{
    height:24px;
}

/* network badge */
.patient-net-badge{
    position:fixed;
    top:14px;
    left:50%;
    transform:translateX(-50%);
    z-index:9998;
    min-width:220px;
    max-width:calc(100% - 28px);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    color:#fff;
    box-shadow:0 16px 30px rgba(17,24,39,.18);
    animation:patientSlideDown .22s ease;
}

.patient-net-badge.online{
    background:linear-gradient(135deg,#16A34A,#22C55E);
}

.patient-net-badge.offline{
    background:linear-gradient(135deg,#DC2626,#FB7185);
}

/* animations */
@keyframes patientFadeUp{
    from{
        opacity:0;
        transform:translateY(14px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes patientSpin{
    to{
        transform:rotate(360deg);
    }
}

@keyframes patientSlideDown{
    from{
        opacity:0;
        transform:translate(-50%, -10px);
    }
    to{
        opacity:1;
        transform:translate(-50%, 0);
    }
}

@media (max-width:380px){
    .patient-mobile-shell{
        padding:18px 14px 24px;
    }

    .patient-login-top h1{
        font-size:26px;
    }

    .patient-login-card{
        border-radius:26px;
    }

    .patient-swal-popup{
        border-radius:26px !important;
    }

    .patient-splash-card{
        border-radius:26px;
    }

    .patient-home-hero{
        align-items:flex-start;
    }

    .patient-home-user{
        align-items:flex-start;
    }

    .patient-hero-actions{
        flex-direction:column;
    }
}
.patient-appointments-toolbar{
    display:flex;
    gap:10px;
    margin-bottom:14px;
}

.patient-search-box{
    flex:1;
    min-height:46px;
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    padding:0 14px;
    box-shadow:var(--shadow);
}

.patient-search-box i{
    color:var(--muted);
    font-size:14px;
}

.patient-search-box input{
    flex:1;
    border:0;
    outline:none;
    background:transparent;
    color:var(--text);
    font-size:14px;
}

.patient-toolbar-btn{
    min-width:88px;
    min-height:46px;
    border-radius:16px;
    border:1px solid #f1dfc7;
    background:#fff7ed;
    color:#9a3412;
    font-size:12px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    cursor:pointer;
}

.patient-filter-chips{
    display:flex;
    gap:8px;
    overflow:auto;
    padding-bottom:4px;
    margin-bottom:14px;
}

.patient-chip{
    border:1px solid #f0dcc3;
    background:#fff;
    color:#7b6a58;
    min-height:38px;
    padding:0 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
    cursor:pointer;
}

.patient-chip.active{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    border-color:transparent;
    box-shadow:0 10px 20px rgba(232,119,34,.16);
}
.patient-profile-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:26px;
    padding:22px 18px;
    text-align:center;
    box-shadow:var(--shadow);
}

.patient-profile-photo{
    width:88px;
    height:88px;
    border-radius:24px;
    object-fit:cover;
    border:2px solid rgba(232,119,34,.16);
    background:#fff;
    margin-bottom:14px;
}

.patient-profile-card h3{
    margin:0 0 6px;
    font-size:20px;
    font-weight:800;
}

.patient-profile-card p{
    margin:0;
    color:var(--muted);
    font-size:13px;
}

.patient-profile-badges{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin-top:14px;
}

.patient-profile-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 12px;
    border-radius:999px;
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#9a3412;
    font-size:12px;
    font-weight:800;
}

.patient-profile-info-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.patient-profile-info-item{
    background:#fff;
    border:1px solid var(--border);
    border-radius:20px;
    padding:14px;
    box-shadow:var(--shadow);
}

.patient-profile-info-item span{
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:6px;
}

.patient-profile-info-item strong{
    display:block;
    font-size:14px;
    line-height:1.5;
    word-break:break-word;
}

@media (max-width:380px){
    .patient-profile-info-grid{
        grid-template-columns:1fr;
    }
}
.patient-book-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:18px;
    box-shadow:var(--shadow);
}

.patient-book-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.patient-book-field{
    margin-bottom:14px;
}

.patient-book-field label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:800;
    color:#374151;
}

.patient-book-field select,
.patient-book-field input,
.patient-book-field textarea{
    width:100%;
    border:1px solid #E9D7C0;
    border-radius:18px;
    background:#fff;
    outline:none;
    font-size:14px;
    color:var(--text);
    padding:14px;
    font-family:inherit;
}

.patient-book-field textarea{
    resize:vertical;
}

.patient-slots-box{
    min-height:80px;
}

.patient-slots-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.patient-slot-btn{
    min-height:42px;
    border-radius:14px;
    border:1px solid #f1dfc7;
    background:#fff;
    color:#7b6a58;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

.patient-slot-btn.active{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    border-color:transparent;
}

@media (max-width:380px){
    .patient-book-grid{
        grid-template-columns:1fr;
    }

    .patient-slots-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

.patient-book-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:18px;
    box-shadow:var(--shadow);
}

.patient-book-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.patient-book-field{
    margin-bottom:14px;
}

.patient-book-field label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:800;
    color:#374151;
}

.patient-book-field select,
.patient-book-field input,
.patient-book-field textarea{
    width:100%;
    border:1px solid #E9D7C0;
    border-radius:18px;
    background:#fff;
    outline:none;
    font-size:14px;
    color:var(--text);
    padding:14px;
    font-family:inherit;
}

.patient-book-field textarea{
    resize:vertical;
}

.patient-slots-box{
    min-height:80px;
}

.patient-slots-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.patient-slot-btn{
    min-height:42px;
    border-radius:14px;
    border:1px solid #f1dfc7;
    background:#fff;
    color:#7b6a58;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

.patient-slot-btn.active{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    border-color:transparent;
}

@media (max-width:380px){
    .patient-book-grid{
        grid-template-columns:1fr;
    }

    .patient-slots-grid{
        grid-template-columns:repeat(2,1fr);
    }
}
.patient-notifications-stack{
    display:grid;
    gap:12px;
}

.patient-notification-card{
    display:flex;
    gap:12px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:14px;
    box-shadow:var(--shadow);
}

.patient-notification-card.unread{
    background:linear-gradient(180deg,#fffaf5 0%, #ffffff 100%);
    border-color:rgba(232,119,34,.18);
}

.patient-notification-icon{
    width:46px;
    height:46px;
    border-radius:16px;
    background:rgba(232,119,34,.10);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    flex-shrink:0;
}

.patient-notification-body{
    flex:1;
    min-width:0;
}

.patient-notification-top{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
}

.patient-notification-top h4{
    margin:0;
    font-size:15px;
    font-weight:800;
    line-height:1.3;
}

.patient-notification-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:var(--primary);
    flex-shrink:0;
}

.patient-notification-body p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.6;
}

.patient-notification-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:10px;
    flex-wrap:wrap;
}

.patient-notification-meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#7b6a58;
    font-size:11px;
    font-weight:700;
}

.patient-link-btn{
    border:0;
    background:transparent;
    color:var(--primary);
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    padding:0;
}