@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --primary:       #C9A227;
  --primary-dark:  #8E6A16;
  --primary-light: #FBF6E8;
  --primary-mid:   #E6D8A8;
  --sidebar-bg:    #0A0A0A;
  --sidebar-hover: #171717;
  --sidebar-active:#C9A227;
  --sidebar-text:  #C8B57A;
  --sidebar-width: 260px;
  --header-h:      64px;
  --bg:            #F5F0E1;
  --surface:       #FFFDF7;
  --border:        #D8C78B;
  --border-light:  #FBF6E8;
  --text:          #0A0A0A;
  --text-sec:      #5F4E23;
  --text-muted:    #8B7640;
  --success:       #10B981;
  --success-light: #ECFDF5;
  --warning:       #F59E0B;
  --warning-light: #FFFBEB;
  --danger:        #EF4444;
  --danger-light:  #FEF2F2;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     6px;
  --shadow:        0 1px 3px rgba(201,162,39,.10),0 1px 2px rgba(201,162,39,.06);
  --shadow-md:     0 4px 12px rgba(201,162,39,.12);
  --shadow-lg:     0 10px 30px rgba(201,162,39,.14);
  --transition:    all .2s ease;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:'Manrope',system-ui,-apple-system,sans-serif;background:radial-gradient(circle at top right,#FBF6E8 0,#F5F0E1 38%,#ECE4CF 100%);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh;overflow-x:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button{cursor:pointer;font-family:inherit;border:none;outline:none}
input,select,textarea{font-family:inherit;font-size:inherit}
table{border-collapse:collapse;width:100%}

/* ── LAYOUT ── */
.layout{display:flex;min-height:100vh}

/* ── SIDEBAR ── */
.sidebar{
  width:var(--sidebar-width);min-height:100vh;
  background:var(--sidebar-bg);
  display:flex;flex-direction:column;
  position:fixed;left:0;top:0;bottom:0;z-index:1000;
  transition:transform .3s ease;overflow-y:auto;overflow-x:hidden
}
.sidebar::-webkit-scrollbar{width:4px}
.sidebar::-webkit-scrollbar-thumb{background:#6B5820;border-radius:2px}

.sidebar-brand{display:flex;align-items:center;gap:10px;padding:18px 16px;border-bottom:1px solid #171717}
.brand-logo{width:44px;height:44px;border-radius:10px;overflow:hidden;flex-shrink:0;background:white;padding:2px}
.brand-logo img{width:100%;height:100%;object-fit:contain}
.brand-name{font-family:'Cormorant Garamond',serif;font-size:19px;font-weight:700;color:#F7EBC8;line-height:1}
.brand-sub{font-size:10px;color:var(--sidebar-text);margin-top:3px;letter-spacing:.05em;text-transform:uppercase}

.sidebar-nav{flex:1;padding:10px 8px}
.nav-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:var(--radius-sm);
  color:var(--sidebar-text);font-size:13.5px;font-weight:500;
  transition:var(--transition);margin-bottom:2px;white-space:nowrap
}
.nav-item:hover{background:var(--sidebar-hover);color:#F5E8BB}
.nav-item.active{background:var(--primary);color:white}
.nav-item svg{width:18px;height:18px;flex-shrink:0}

.sidebar-footer{padding:12px;border-top:1px solid #171717}
.sidebar-user{display:flex;align-items:center;gap:10px;padding:8px;border-radius:var(--radius-sm);margin-bottom:6px}
.user-avatar{width:34px;height:34px;background:var(--primary);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:white;flex-shrink:0}
.user-name{font-size:13px;font-weight:600;color:#D8C78B}
.user-role-badge{font-size:10px;background:#171717;color:#E4C86C;padding:1px 7px;border-radius:20px;display:inline-block;margin-top:1px}
.btn-logout{display:flex;align-items:center;gap:8px;width:100%;padding:9px 12px;background:transparent;color:#BDA45F;font-size:13px;border-radius:var(--radius-sm);transition:var(--transition);text-decoration:none}
.btn-logout:hover{background:#222;color:#F7EBC8}
.btn-logout svg{width:16px;height:16px}

.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:999}
.sidebar-overlay.active{display:block}

/* ── MAIN ── */
.main-content{flex:1;margin-left:var(--sidebar-width);min-height:100vh;display:flex;flex-direction:column;transition:margin-left .3s ease}

/* ── HEADER ── */
.page-header{
  height:var(--header-h);background:var(--surface);
  border-bottom:1px solid var(--border);
  display:flex;align-items:center;gap:12px;padding:0 24px;
  position:sticky;top:0;z-index:100;
  box-shadow:0 1px 4px rgba(201,162,39,.08)
}
.menu-toggle{display:none;align-items:center;justify-content:center;width:36px;height:36px;background:transparent;border-radius:var(--radius-xs);color:var(--text-sec);transition:var(--transition)}
.menu-toggle:hover{background:var(--bg)}
.menu-toggle svg{width:20px;height:20px}
.page-title{font-family:'Cormorant Garamond',serif;font-size:28px;font-weight:700;flex:1;color:var(--text)}
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}

/* ── PAGE BODY ── */
.page-body{flex:1;padding:24px}

/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:var(--radius-sm);font-size:13.5px;font-weight:500;transition:var(--transition);white-space:nowrap;cursor:pointer;border:none}
.btn svg{width:15px;height:15px}
.btn-primary{background:var(--primary);color:white}
.btn-primary:hover{background:var(--primary-dark)}
.btn-success{background:var(--success);color:white}
.btn-success:hover{background:#059669}
.btn-danger{background:var(--danger);color:white}
.btn-danger:hover{background:#DC2626}
.btn-outline{background:transparent;color:var(--primary);border:1.5px solid var(--primary)}
.btn-outline:hover{background:var(--primary-light)}
.btn-ghost{background:transparent;color:var(--text-sec);border:1.5px solid var(--border)}
.btn-ghost:hover{background:var(--bg)}
.btn-sm{padding:6px 12px;font-size:12.5px}
.btn-icon{width:32px;height:32px;padding:0;justify-content:center;border-radius:var(--radius-xs)}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn + .btn{margin-left:0}

/* ── STAT CARDS ── */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px}
.stat-card{background:var(--surface);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);display:flex;align-items:center;gap:16px;cursor:pointer;transition:var(--transition);border:1px solid var(--border)}
.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.stat-icon{width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.stat-icon svg{width:24px;height:24px}
.stat-icon.pink{background:var(--primary-light);color:var(--primary)}
.stat-icon.green{background:var(--success-light);color:var(--success)}
.stat-icon.amber{background:var(--warning-light);color:var(--warning)}
.stat-count{font-size:28px;font-weight:700;line-height:1;color:var(--text)}
.stat-label{font-size:13px;color:var(--text-sec);margin-top:2px}

/* ── CARD ── */
.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--border);overflow:hidden}
.card-header{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;background:#FFFCF4}
.card-title{font-size:14px;font-weight:600;color:var(--text)}
.card-body{padding:20px}

/* ── TABLE ── */
.table-toolbar{padding:12px 16px;background:#FFFCF4;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* Search wrap - FIXED: icon sized correctly */
.search-wrap{position:relative;flex:1;min-width:160px;max-width:320px}
.search-wrap svg{
  position:absolute;left:10px;top:50%;transform:translateY(-50%);
  width:15px !important;height:15px !important;
  color:var(--text-muted);pointer-events:none;flex-shrink:0
}
.search-input{width:100%;padding:8px 10px 8px 34px;border:1.5px solid var(--border);border-radius:var(--radius-xs);font-size:13px;outline:none;transition:var(--transition);background:white;color:var(--text)}
.search-input:focus{border-color:var(--primary)}

.date-input{padding:8px 10px;border:1.5px solid var(--border);border-radius:var(--radius-xs);font-size:13px;outline:none;transition:var(--transition);background:white;color:var(--text)}
.date-input:focus{border-color:var(--primary)}
.date-label{font-size:12px;color:var(--text-muted);white-space:nowrap}

.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-wrap table{min-width:640px}
thead th{padding:10px 16px;text-align:left;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-sec);background:#FFFCF4;border-bottom:1px solid var(--border);white-space:nowrap}
tbody td{padding:13px 16px;border-bottom:1px solid var(--border-light);color:var(--text);vertical-align:middle;font-size:13.5px}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover{background:var(--primary-light)}
.table-empty{text-align:center;padding:40px;color:var(--text-muted);font-size:14px}

.pagination{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);flex-wrap:wrap;gap:8px}
.pagination-info{font-size:13px;color:var(--text-sec)}
.pagination-btns{display:flex;gap:4px;flex-wrap:wrap}
.page-btn{padding:5px 10px;border:1.5px solid var(--border);border-radius:6px;font-size:13px;color:var(--text-sec);background:white;cursor:pointer;transition:var(--transition)}
.page-btn:hover{border-color:var(--primary);color:var(--primary)}
.page-btn.active{background:var(--primary);border-color:var(--primary);color:white}

/* ── BADGE ── */
.badge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:600}
.badge-pink{background:var(--primary-light);color:var(--primary)}
.badge-green{background:var(--success-light);color:var(--success)}
.badge-amber{background:var(--warning-light);color:var(--warning)}
.badge-red{background:var(--danger-light);color:var(--danger)}

/* ── FORMS ── */
.form-group{margin-bottom:16px}
.form-label{display:block;font-size:13px;font-weight:500;color:var(--text);margin-bottom:6px}
.req{color:var(--danger);margin-left:2px}
.form-control{width:100%;padding:10px 12px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:14px;outline:none;transition:var(--transition);background:white;color:var(--text)}
.form-control:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(201,162,39,.12)}
.form-control.error{border-color:var(--danger)}
.form-error{font-size:12px;color:var(--danger);margin-top:4px;display:none}
.form-error.show{display:block}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-full{grid-column:1/-1}

/* Password wrap */
.pwd-wrap{position:relative}
.pwd-wrap input{width:100%;padding:10px 44px 10px 12px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:14px;outline:none;transition:var(--transition);background:white;color:var(--text)}
.pwd-wrap input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(201,162,39,.12)}
.pwd-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;font-size:18px;padding:4px;line-height:1;color:var(--text-muted)}
.pwd-toggle:hover{color:var(--primary)}

/* Autocomplete */
.autocomplete-wrap{position:relative}
.autocomplete-dropdown{position:absolute;top:100%;left:0;right:0;background:white;border:1.5px solid var(--primary);border-top:none;border-radius:0 0 var(--radius-sm) var(--radius-sm);max-height:200px;overflow-y:auto;z-index:500;box-shadow:var(--shadow-md);display:none}
.autocomplete-item{padding:10px 12px;cursor:pointer;font-size:13.5px;transition:var(--transition)}
.autocomplete-item:hover{background:var(--primary-light)}
.autocomplete-item strong{display:block;color:var(--text);font-weight:600}
.autocomplete-item span{font-size:12px;color:var(--text-muted)}

/* ── IMAGE SLOTS ── */
.image-slots-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.image-slot{aspect-ratio:1;border:2px dashed var(--border);border-radius:var(--radius-sm);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:var(--transition);position:relative;overflow:hidden;background:var(--bg);min-height:80px}
.image-slot:hover{border-color:var(--primary);background:var(--primary-light)}
.image-slot.filled{border-style:solid;border-color:var(--primary)}
.slot-placeholder{display:flex;flex-direction:column;align-items:center;gap:5px;pointer-events:none}
.slot-placeholder svg{width:22px;height:22px;color:var(--text-muted)}
.slot-placeholder span{font-size:10px;color:var(--text-muted);font-weight:500}
.slot-preview-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.slot-remove{position:absolute;top:4px;right:4px;width:20px;height:20px;background:rgba(0,0,0,.6);color:white;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;z-index:10;border:none;cursor:pointer}
.slot-remove:hover{background:var(--danger)}

/* ── MODAL ── */
.modal-backdrop{display:none;position:fixed;inset:0;background:rgba(26,8,16,.6);z-index:2000;align-items:flex-start;justify-content:center;padding:20px;overflow-y:auto;backdrop-filter:blur(4px)}
.modal-backdrop.active{display:flex}
.modal{background:white;border-radius:var(--radius);width:100%;max-width:560px;box-shadow:var(--shadow-lg);margin:auto;animation:modalIn .25s ease}
.modal-lg{max-width:760px}
@keyframes modalIn{from{opacity:0;transform:scale(.95) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}
.modal-header{padding:18px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.modal-title{font-family:'Cormorant Garamond',serif;font-size:24px;font-weight:700;color:var(--primary)}
.modal-close{width:30px;height:30px;background:var(--bg);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--text-sec);font-size:18px;transition:var(--transition);cursor:pointer;border:none;line-height:1;flex-shrink:0}
.modal-close:hover{background:var(--danger-light);color:var(--danger)}
.modal-body{padding:24px}
.modal-footer{padding:16px 24px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}
.confirm-modal{max-width:480px}
.confirm-message{font-size:14px;line-height:1.7;color:var(--text-sec)}

/* ── PATIENT PROFILE ── */
.profile-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--border);padding:24px;display:flex;align-items:center;gap:20px;margin-bottom:24px;flex-wrap:wrap}
.profile-avatar{width:72px;height:72px;background:linear-gradient(135deg,var(--primary),#F2E2AE);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700;color:white;flex-shrink:0}
.profile-name{font-family:'Cormorant Garamond',serif;font-size:34px;font-weight:700;color:var(--text)}
.profile-meta{display:flex;gap:20px;margin-top:8px;flex-wrap:wrap}
.profile-meta-item{display:flex;align-items:center;gap:6px;font-size:13.5px;color:var(--text-sec)}
.profile-meta-item svg{width:15px;height:15px;color:var(--primary)}

.treatment-group{margin-bottom:28px}
.treatment-group-header{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.treatment-badge{background:var(--primary-light);color:var(--primary);font-size:13px;font-weight:600;padding:4px 14px;border-radius:20px;border:1px solid var(--primary-mid)}
.session-card{background:white;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;box-shadow:var(--shadow);margin-bottom:14px}
.session-header{padding:11px 16px;background:#FDFCFE;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.session-title{font-size:13.5px;font-weight:600;color:var(--primary)}
.session-date{font-size:12px;color:var(--text-muted)}
.session-images{padding:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.session-img-wrap{position:relative;aspect-ratio:1;border-radius:var(--radius-xs);overflow:hidden;background:var(--bg)}
.session-img-wrap img{width:100%;height:100%;object-fit:cover;cursor:zoom-in;transition:transform .2s}
.session-img-wrap img:hover{transform:scale(1.04)}
.session-img-delete{position:absolute;top:4px;right:4px;background:rgba(239,68,68,.9);color:white;border:none;border-radius:4px;padding:3px 7px;font-size:11px;cursor:pointer;display:none}
.session-img-wrap:hover .session-img-delete{display:block}
.session-empty{padding:20px;text-align:center;color:var(--text-muted);font-size:13px}

/* ── LIGHTBOX ── */
.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.94);z-index:9000;align-items:center;justify-content:center}
.lightbox.active{display:flex}
.lightbox-img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px}
.lightbox-close{position:absolute;top:20px;right:24px;color:white;font-size:34px;cursor:pointer;z-index:9001;line-height:1;background:none;border:none;padding:0 4px}

/* ── LOGIN PAGE ── */
.login-page{min-height:100vh;background:
radial-gradient(circle at top,#1D1A10 0,#111 38%,#050505 100%),
linear-gradient(180deg,#FFFFFF 0%,#E7D59B 100%);
display:flex;align-items:center;justify-content:center;padding:20px}
.login-card{background:rgba(255,253,247,.98);border-radius:24px;padding:40px;width:100%;max-width:440px;box-shadow:0 24px 70px rgba(0,0,0,.35), 0 8px 30px rgba(201,162,39,.18);border:1px solid rgba(201,162,39,.25)}
.login-logo{display:flex;align-items:center;gap:12px;margin-bottom:28px}
.login-logo-img{width:56px;height:56px;border-radius:12px;overflow:hidden;background:white;padding:3px;box-shadow:0 2px 8px rgba(201,162,39,.16)}
.login-logo-img img{width:100%;height:100%;object-fit:contain}
.login-brand-name{font-family:'Cormorant Garamond',serif;font-size:26px;font-weight:700;color:var(--primary);letter-spacing:.02em}
.login-brand-sub{font-size:11px;color:var(--text-muted);margin-top:1px}
.login-heading{font-family:'Cormorant Garamond',serif;font-size:36px;font-weight:700;color:var(--text);margin-bottom:6px}
.login-desc{font-size:13.5px;color:var(--text-sec);margin-bottom:24px}

/* ── TOAST ── */
.toast-container{position:fixed;bottom:24px;right:24px;z-index:9999;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.toast{display:flex;align-items:center;gap:10px;padding:12px 18px;background:white;border-radius:10px;box-shadow:var(--shadow-lg);font-size:13.5px;font-weight:500;min-width:240px;max-width:340px;transform:translateX(120%);transition:transform .3s ease;border-left:4px solid var(--primary);pointer-events:all}
.toast.show{transform:translateX(0)}
.toast.success{border-color:var(--success)}
.toast.error{border-color:var(--danger)}
.toast.info{border-color:#0EA5E9}

/* ── NEW ENTRY ── */
.entry-card{background:white;border-radius:var(--radius);border:1px solid var(--border);padding:28px;box-shadow:var(--shadow)}
.entry-card-header{margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.entry-card-title{font-size:18px;font-weight:700;color:var(--primary)}
.entry-card-sub{font-size:13px;color:var(--text-sec);margin-top:3px}
.existing-patient-note{padding:10px 14px;background:var(--success-light);border:1px solid #6EE7B7;border-radius:8px;font-size:13px;color:#065F46;margin-bottom:12px}

/* Dashboard hero */
.dashboard-hero{overflow:hidden}
.dashboard-hero-cta{max-width:100%;white-space:normal}

/* ── RESPONSIVE ── */
@media (max-width:1024px){
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:768px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
  .main-content{margin-left:0}
  .menu-toggle{display:flex}
  .page-header{height:auto;min-height:var(--header-h);padding:10px 14px;flex-wrap:wrap}
  .page-title{width:calc(100% - 48px);min-width:0}
  .header-actions{width:100%;justify-content:flex-start}
  .page-body{padding:16px}
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .form-grid{grid-template-columns:1fr}
  .image-slots-grid{grid-template-columns:repeat(3,1fr)}
  .profile-card{flex-direction:column;text-align:center}
  .profile-meta{justify-content:center}
  .table-toolbar{flex-direction:column;align-items:stretch}
  .table-toolbar > *{max-width:100%}
  .table-toolbar .btn,
  .table-toolbar .date-input{width:100%}
  .table-toolbar .date-label{display:block;width:100%}
  .search-wrap{max-width:100%;min-width:0;width:100%}
  .search-wrap svg{left:10px;width:14px !important;height:14px !important}
  .search-input{min-height:40px;padding-left:32px;padding-right:10px}
  .table-wrap table{min-width:600px}
  .modal-backdrop{padding:10px}
  .modal{max-width:100%}
  .modal-header,
  .modal-footer{padding-left:16px;padding-right:16px;flex-wrap:wrap}
  .modal-body{padding:16px}
  .modal-footer .btn{width:100%;justify-content:center}
  .session-images{grid-template-columns:repeat(2,1fr)}
  .card-header{flex-direction:column;align-items:flex-start}
  .card-header > div{display:flex;flex-wrap:wrap;width:100%}
  .card-header > a,
  .card-header > button{width:100%;justify-content:center}
  .card-header[style*="justify-content:space-between"]{flex-wrap:wrap !important;gap:10px !important}
  .card-header[style*="justify-content:space-between"] > a,
  .card-header[style*="justify-content:space-between"] > button,
  .card-header[style*="justify-content:space-between"] > span{width:100%}
  .card-header[style*="justify-content:space-between"] > a,
  .card-header[style*="justify-content:space-between"] > button{justify-content:center}
  td > div[style*="display:flex"][style*="gap:6px"]{display:flex !important;flex-wrap:wrap;align-items:stretch}
  td > div[style*="display:flex"][style*="gap:6px"] > .btn{flex:1 1 100%;justify-content:center}
  .pagination{flex-direction:column;align-items:flex-start}
  thead th{font-size:11px;padding:8px 12px}
  tbody td{padding:10px 12px;font-size:13px}
  .lightbox-close{top:12px;right:16px}
  .dashboard-hero{padding:18px 16px !important}
  .dashboard-hero-cta{width:100%;justify-content:center;padding:10px 16px !important}
  .entry-card > div[style*="justify-content:flex-end"]{flex-direction:column}
  .entry-card > div[style*="justify-content:flex-end"] > .btn{width:100%;justify-content:center}
}

@media (max-width:480px){
  .stats-grid{grid-template-columns:1fr}
  .image-slots-grid{grid-template-columns:repeat(2,1fr)}
  .session-images{grid-template-columns:repeat(2,1fr)}
  .login-card{padding:24px 18px}
  .page-body{padding:12px}
  .btn-sm span{display:none}
  .header-actions .btn{width:100%}
  .header-actions .btn span{display:none}
  .entry-card{padding:16px}
  .profile-card .btn{width:100%;margin-left:0 !important;justify-content:center}
  .profile-meta-item{width:100%;justify-content:center;text-align:center}
  .profile-meta{gap:10px}
  .lightbox-img{max-width:94vw;max-height:82vh}
  .dashboard-hero-cta{font-size:13px !important}
  .page-title{font-size:16px}
  .menu-toggle{width:34px;height:34px}
  .profile-card{padding:18px}
  .table-wrap table{min-width:560px}
  .toast-container{left:12px;right:12px;bottom:12px}
  .toast{min-width:0;max-width:none;width:100%}
}
