/* ============================================================
   RASSS Members Portal – Style Sheet
   Primary: #7811e9  |  Matches Admin Panel Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Root Variables ─────────────────────────────────────────── */
:root {
  --primary:          #7811e9;
  --primary-light:    #f3e8ff;
  --primary-soft:     #faf5ff;
  --primary-dark:     #5a0db3;
  --primary-gradient: linear-gradient(135deg,#7811e9,#a855f7);
  --bg:               #f0f2f6;
  --bg-soft:          #f8f9fb;
  --white:            #ffffff;
  --text:             #1a1a2e;
  --text-muted:       #6b7280;
  --text-soft:        #9ca3af;
  --border:           #e5e7eb;
  --border-soft:      #f1f2f6;
  --success:          #10b981;
  --warning:          #f59e0b;
  --danger:           #ef4444;
  --info:             #3b82f6;
  --teal:             #0ea5e9;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.04),0 1px 2px rgba(0,0,0,.02);
  --shadow-md:        0 4px 12px rgba(0,0,0,.07);
  --shadow-lg:        0 10px 30px rgba(120,17,233,.12);
  --shadow-xl:        0 20px 50px rgba(17,12,46,.12);
  --radius:           12px;
  --radius-sm:        8px;
  --radius-lg:        16px;
  --sidebar-width:    252px;
  --topbar-height:    62px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:'Inter',sans-serif;background:var(--bg);
  color:var(--text);min-height:100vh;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
a{text-decoration:none}

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.admin-sidebar{
  position:fixed;top:0;left:0;
  width:var(--sidebar-width);height:100vh;
  background:#1b1f3b;
  color:#c8cbe8;
  z-index:1040;
  display:flex;flex-direction:column;
  overflow:hidden;
  transition:transform .3s ease;
}

/* Brand */
.admin-sidebar .sidebar-brand{
  height:var(--topbar-height);
  display:flex;align-items:center;gap:11px;
  padding:0 20px;
  border-bottom:1px solid rgba(255,255,255,.07);
  flex-shrink:0;
}
.sidebar-brand .brand-icon{
  width:34px;height:34px;border-radius:9px;
  background:var(--primary-gradient);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:14px;color:#fff;
  flex-shrink:0;overflow:hidden;
}
.sidebar-brand .brand-icon img{width:34px;height:34px;object-fit:contain;border-radius:9px}
.sidebar-brand .brand-text h6{color:#fff;font-size:14px;font-weight:700;margin:0;letter-spacing:.01em}
.sidebar-brand .brand-text small{color:rgba(255,255,255,.4);font-size:10px}

/* Nav */
.sidebar-nav{flex:1;overflow-y:auto;padding:14px 10px 10px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.08) transparent}
.sidebar-nav::-webkit-scrollbar{width:3px}
.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:4px}
.nav-group-label{
  font-size:9.5px;text-transform:uppercase;letter-spacing:.1em;
  color:rgba(255,255,255,.28);padding:14px 12px 5px;font-weight:700;
}
.nav-item{margin-bottom:1px}
.nav-link{
  display:flex;align-items:center;gap:10px;
  padding:9px 12px;border-radius:9px;
  color:rgba(200,203,232,.75);text-decoration:none;
  font-size:13px;font-weight:500;
  transition:all .18s;cursor:pointer;
  border:none;background:none;width:100%;text-align:left;
}
.nav-link i{width:18px;text-align:center;font-size:14px;flex-shrink:0}
.nav-link:hover{background:rgba(255,255,255,.06);color:#e5e8ff}
.nav-link.active{
  background:rgba(120,17,233,.22);
  color:#c4b5fd;font-weight:600;
}
.nav-link.active i{color:#a78bfa}

/* Sidebar user footer */
.sidebar-user{
  padding:14px 12px;
  border-top:1px solid rgba(255,255,255,.07);
  flex-shrink:0;
}
.sidebar-user-inner{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:10px;
  background:rgba(255,255,255,.06);
  transition:background .15s;
}
.sidebar-user-inner:hover{background:rgba(255,255,255,.1)}
.sidebar-user-avatar{
  width:32px;height:32px;border-radius:50%;
  background:var(--primary-gradient);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:13px;color:#fff;
  flex-shrink:0;
}
.sidebar-user-info{min-width:0;flex:1}
.sidebar-user-name{font-size:12.5px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user-id{font-size:10.5px;color:rgba(255,255,255,.42)}
.sidebar-user-logout{
  color:rgba(255,255,255,.38);font-size:15px;flex-shrink:0;
  text-decoration:none;transition:color .15s;
  width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  border-radius:6px;
}
.sidebar-user-logout:hover{color:var(--danger);background:rgba(239,68,68,.12)}

/* Sidebar overlay */
.sidebar-overlay{
  display:none;position:fixed;inset:0;
  background:rgba(0,0,0,.45);z-index:1035;
}

/* ════════════════════════════════════════════
   MAIN WRAPPER
════════════════════════════════════════════ */
.admin-main{margin-left:var(--sidebar-width);min-height:100vh;transition:margin-left .3s ease}

/* ════════════════════════════════════════════
   TOPBAR
════════════════════════════════════════════ */
.admin-topbar{
  height:var(--topbar-height);
  background:var(--white);
  border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 22px;
  position:sticky;top:0;z-index:1020;
  gap:14px;
}
.topbar-left{display:flex;align-items:center;gap:12px}
.sidebar-toggle-btn{
  display:none;background:none;border:none;
  font-size:18px;cursor:pointer;color:var(--text-muted);
  width:36px;height:36px;border-radius:8px;
  align-items:center;justify-content:center;
  transition:background .15s;
}
.sidebar-toggle-btn:hover{background:var(--bg)}
.topbar-breadcrumb{
  display:flex;align-items:center;gap:6px;
  font-size:13px;color:var(--text-muted);
}
.topbar-breadcrumb a{color:var(--text-muted);text-decoration:none;transition:color .15s}
.topbar-breadcrumb a:hover{color:var(--primary)}
.topbar-breadcrumb .sep{color:var(--border)}
.topbar-breadcrumb .current{color:var(--text);font-weight:600}

/* Right side */
.topbar-right{display:flex;align-items:center;gap:8px}
.topbar-member-id{
  background:var(--primary-soft);border:1px solid var(--primary-light);
  border-radius:20px;padding:5px 14px;
  font-size:12px;font-weight:600;color:var(--primary);
  display:flex;align-items:center;gap:6px;white-space:nowrap;
}
.topbar-avatar{
  width:36px;height:36px;border-radius:50%;
  background:var(--primary-gradient);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:700;font-size:14px;cursor:pointer;
}
.topbar-profile{
  display:flex;align-items:center;gap:9px;
  margin-left:4px;padding-left:14px;
  border-left:1px solid var(--border);
}
.topbar-profile-info p{margin:0}
.topbar-profile-info .name{font-size:13px;font-weight:600;color:var(--text)}
.topbar-profile-info .role{font-size:10.5px;color:var(--text-muted)}
.topbar-logout-btn{
  color:var(--text-muted);font-size:15px;
  width:34px;height:34px;display:flex;align-items:center;justify-content:center;
  border-radius:8px;transition:all .2s;border:1px solid transparent;
  text-decoration:none;
}
.topbar-logout-btn:hover{background:rgba(239,68,68,.08);color:var(--danger);border-color:rgba(239,68,68,.2)}

/* ════════════════════════════════════════════
   PAGE CONTENT
════════════════════════════════════════════ */
.page-content{padding:26px 26px 40px}
.page-header{margin-bottom:22px}
.page-header h1{font-size:21px;font-weight:700;color:var(--text);margin-bottom:4px;letter-spacing:-.01em}
.page-header p{font-size:13px;color:var(--text-muted);margin:0}

/* ── Notice bar ── */
.notice-bar{
  background:#ecfdf5;color:#065f46;
  border:1px solid #a7f3d0;border-radius:var(--radius-sm);
  padding:11px 18px;font-size:13px;
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:18px;
}
.notice-bar.warning{background:#fffbeb;color:#92400e;border-color:#fde68a}
.notice-bar.danger{background:#fef2f2;color:#991b1b;border-color:#fecaca}

/* ════════════════════════════════════════════
   DASHBOARD WELCOME
════════════════════════════════════════════ */
.member-welcome{
  background:linear-gradient(135deg,#1b1f3b 0%,#2d1b69 60%,#7811e9 100%);
  border-radius:var(--radius-lg);padding:28px 32px;
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:20px;margin-bottom:24px;
  position:relative;overflow:hidden;
}
.member-welcome::before{
  content:'';position:absolute;top:-40px;right:-40px;
  width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,.04);pointer-events:none;
}
.member-welcome::after{
  content:'';position:absolute;bottom:-60px;right:120px;
  width:160px;height:160px;border-radius:50%;
  background:rgba(120,17,233,.2);pointer-events:none;
}
.welcome-left{position:relative;z-index:1}
.welcome-greeting{font-size:22px;font-weight:800;color:#fff;margin-bottom:6px}
.welcome-greeting span{color:#c4b5fd}
.welcome-sub{font-size:13px;color:rgba(255,255,255,.65);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.welcome-sub .dot{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.3)}
.welcome-right{position:relative;z-index:1;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.welcome-status-badge{
  padding:8px 18px;border-radius:20px;
  font-size:12.5px;font-weight:700;
  display:flex;align-items:center;gap:7px;
}
.welcome-status-badge.active{background:rgba(16,185,129,.2);color:#6ee7b7;border:1px solid rgba(16,185,129,.3)}
.welcome-status-badge.pending{background:rgba(245,158,11,.2);color:#fcd34d;border:1px solid rgba(245,158,11,.3)}
.welcome-status-badge.inactive{background:rgba(255,255,255,.1);color:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.15)}
.welcome-status-badge .dot-blink{
  width:7px;height:7px;border-radius:50%;
  animation:blink 1.8s ease-in-out infinite;
}
.welcome-status-badge.active .dot-blink{background:#10b981}
.welcome-status-badge.pending .dot-blink{background:#f59e0b}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}
.welcome-action-btn{
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);
  color:#fff;border-radius:9px;padding:9px 18px;
  font-size:13px;font-weight:600;cursor:pointer;
  display:inline-flex;align-items:center;gap:8px;
  text-decoration:none;transition:all .2s;font-family:inherit;
}
.welcome-action-btn:hover{background:rgba(255,255,255,.2);color:#fff}

/* ════════════════════════════════════════════
   MEMBERSHIP INFO STAT CARDS
════════════════════════════════════════════ */
.mem-stat-card{
  background:var(--white);border-radius:var(--radius);
  border:1px solid var(--border);padding:20px;
  box-shadow:var(--shadow-sm);transition:all .22s;
}
.mem-stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.mem-stat-label{font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);font-weight:700;margin-bottom:8px}
.mem-stat-icon-row{display:flex;align-items:center;justify-content:space-between}
.mem-stat-value{font-size:20px;font-weight:800;color:var(--text);letter-spacing:-.01em}
.mem-stat-sub{font-size:12px;color:var(--text-muted);margin-top:5px}
.mem-stat-icon{
  width:42px;height:42px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;font-size:18px;
}
.mem-stat-icon.purple{background:var(--primary-light);color:var(--primary)}
.mem-stat-icon.green{background:rgba(16,185,129,.1);color:var(--success)}
.mem-stat-icon.orange{background:rgba(249,115,22,.1);color:#f97316}
.mem-stat-icon.blue{background:rgba(59,130,246,.1);color:var(--info)}
.mem-stat-icon.red{background:rgba(239,68,68,.1);color:var(--danger)}

/* ════════════════════════════════════════════
   QUICK ACCESS LINK CARDS
════════════════════════════════════════════ */
.dash-link-card{
  background:var(--white);border-radius:var(--radius);
  border:1px solid var(--border);box-shadow:var(--shadow-sm);
  padding:18px 20px;display:flex;align-items:center;gap:14px;
  text-decoration:none;color:var(--text);
  transition:all .22s;
}
.dash-link-card:hover{
  transform:translateY(-2px);box-shadow:var(--shadow-md);
  border-color:var(--primary);color:var(--text);
}
.dash-link-card:hover .dash-link-arrow{color:var(--primary);transform:translateX(4px)}
.dash-link-icon{
  width:44px;height:44px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;flex-shrink:0;transition:transform .2s;
}
.dash-link-card:hover .dash-link-icon{transform:scale(1.08)}
.dash-link-icon.purple{background:var(--primary-light);color:var(--primary)}
.dash-link-icon.green{background:rgba(16,185,129,.1);color:var(--success)}
.dash-link-icon.blue{background:rgba(59,130,246,.1);color:var(--info)}
.dash-link-icon.orange{background:rgba(249,115,22,.1);color:#f97316}
.dash-link-icon.teal{background:rgba(14,165,233,.1);color:var(--teal)}
.dash-link-icon.red{background:rgba(239,68,68,.1);color:var(--danger)}
.dash-link-body{flex:1;min-width:0}
.dash-link-title{font-size:13.5px;font-weight:700;color:var(--text);margin-bottom:3px}
.dash-link-sub{font-size:11.5px;color:var(--text-muted)}
.dash-link-arrow{color:var(--text-soft);font-size:12px;transition:all .2s;flex-shrink:0}

/* ════════════════════════════════════════════
   INFO CARDS (Member info / Payment)
════════════════════════════════════════════ */
.info-card{
  background:var(--white);border-radius:var(--radius);
  border:1px solid var(--border);box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.info-card-header{
  padding:16px 20px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;
}
.info-card-header h6{
  font-size:14px;font-weight:700;color:var(--text);margin:0;
  display:flex;align-items:center;gap:9px;
}
.info-card-header h6 i{
  width:28px;height:28px;border-radius:7px;
  background:var(--primary-light);color:var(--primary);
  display:inline-flex;align-items:center;justify-content:center;font-size:12px;
}
.info-card-body{padding:16px 20px}
.info-row{display:flex;padding:10px 0;border-bottom:1px solid var(--border-soft);font-size:13px}
.info-row:last-child{border-bottom:none}
.info-row .lbl{width:160px;flex-shrink:0;color:var(--text-muted);font-weight:500}
.info-row .val{color:var(--text);font-weight:600;flex:1}

/* ════════════════════════════════════════════
   ADMIN-CARD (generic white card)
════════════════════════════════════════════ */
.admin-card{
  background:var(--white);border-radius:var(--radius);
  border:1px solid var(--border);box-shadow:var(--shadow-sm);
  transition:box-shadow .25s;overflow:hidden;
}
.admin-card:hover{box-shadow:var(--shadow-md)}
.card-body-custom{padding:22px}
.section-header{
  background:var(--white);color:var(--text);
  padding:16px 20px;font-weight:700;font-size:14.5px;
  display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid var(--border);
}
.section-header .section-sub{font-size:12px;color:var(--text-muted);font-weight:400;margin-top:2px}

/* ════════════════════════════════════════════
   TABLE
════════════════════════════════════════════ */
.table-wrapper{padding:0 20px 20px}
.table-modern{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.table-modern thead th{
  background:var(--bg-soft);font-size:10.5px;
  text-transform:uppercase;letter-spacing:.08em;
  color:var(--text-muted);font-weight:700;
  padding:11px 14px;text-align:left;
  border-bottom:1px solid var(--border);white-space:nowrap;
}
.table-modern tbody td{
  padding:13px 14px;
  border-bottom:1px solid var(--border-soft);
  vertical-align:middle;color:var(--text);
}
.table-modern tbody tr{transition:background .12s}
.table-modern tbody tr:hover{background:#fafbff}
.table-modern tbody tr:last-child td{border-bottom:none}
.table-modern .row-empty td{text-align:center;padding:40px 16px;color:var(--text-muted);font-style:italic}
.table-modern .row-empty td i{display:block;font-size:26px;margin-bottom:8px;opacity:.35}

/* ════════════════════════════════════════════
   BADGES
════════════════════════════════════════════ */
.badge-status{
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 11px;border-radius:20px;
  font-size:11px;font-weight:600;white-space:nowrap;
}
.badge-status.active{background:rgba(16,185,129,.1);color:var(--success)}
.badge-status.inactive{background:var(--bg);color:var(--text-muted)}
.badge-status.pending{background:rgba(245,158,11,.12);color:var(--warning)}
.badge-status.info{background:rgba(59,130,246,.1);color:var(--info)}
.badge-status.primary{background:var(--primary-light);color:var(--primary)}
.badge-status.danger,.badge-status.rejected{background:rgba(239,68,68,.1);color:var(--danger)}
.badge-status.success{background:rgba(16,185,129,.1);color:var(--success)}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn-primary-custom,.btn-m-primary{
  background:var(--primary-gradient);color:#fff;
  border:none;border-radius:9px;
  padding:9px 20px;font-size:13px;font-weight:600;
  cursor:pointer;transition:all .2s;
  display:inline-flex;align-items:center;gap:8px;
  font-family:inherit;text-decoration:none;white-space:nowrap;
}
.btn-primary-custom:hover,.btn-m-primary:hover{
  box-shadow:0 6px 18px rgba(120,17,233,.32);color:#fff;transform:translateY(-1px);
}
.btn-ghost-custom,.btn-m-secondary{
  background:var(--bg);color:var(--text);
  border:1px solid var(--border);border-radius:9px;
  padding:8px 18px;font-size:13px;font-weight:600;
  cursor:pointer;transition:all .2s;font-family:inherit;
  display:inline-flex;align-items:center;gap:8px;
  text-decoration:none;white-space:nowrap;
}
.btn-ghost-custom:hover,.btn-m-secondary:hover{
  background:var(--white);border-color:var(--text-soft);color:var(--text);
}
.btn-outline-custom{
  background:transparent;color:var(--primary);
  border:1.5px solid var(--primary);border-radius:9px;
  padding:8px 18px;font-size:13px;font-weight:600;
  cursor:pointer;transition:all .2s;
  display:inline-flex;align-items:center;gap:8px;
  font-family:inherit;text-decoration:none;
}
.btn-outline-custom:hover{background:var(--primary-light);color:var(--primary)}
.btn-icon{
  width:32px;height:32px;border-radius:8px;
  border:1px solid var(--border-soft);
  background:var(--white);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:12.5px;transition:all .18s;
  color:var(--text-muted);margin-left:3px;
}
.btn-icon:hover{transform:translateY(-1px)}
.btn-icon.edit:hover{background:var(--primary-light);color:var(--primary);border-color:rgba(120,17,233,.25)}
.btn-icon.delete:hover{background:rgba(239,68,68,.08);color:var(--danger);border-color:rgba(239,68,68,.25)}
.btn-icon.view:hover{background:rgba(59,130,246,.08);color:var(--info);border-color:rgba(59,130,246,.25)}

/* ════════════════════════════════════════════
   FORMS
════════════════════════════════════════════ */
.form-control-custom,.m-input,.m-select{
  border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:10px 14px;font-size:13.5px;width:100%;
  transition:all .2s;font-family:inherit;
  background:var(--white);color:var(--text);outline:none;
}
.form-control-custom:focus,.m-input:focus,.m-select:focus{
  border-color:var(--primary);box-shadow:0 0 0 3px rgba(120,17,233,.1);
}
.form-control-custom:disabled{background:var(--bg);color:var(--text-muted)}
.form-label-custom,.m-label{font-size:13px;font-weight:500;color:var(--text);margin-bottom:6px;display:block}
.form-label-custom .req{color:var(--danger);margin-left:2px}
.m-textarea,.form-control-custom textarea{
  border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:9px 13px;font-size:13.5px;width:100%;
  transition:all .2s;font-family:inherit;
  background:var(--white);color:var(--text);outline:none;
  resize:vertical;min-height:80px;
}
.m-textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(120,17,233,.1)}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 16px}
.form-grid .full{grid-column:1/-1}
textarea.form-control-custom{min-height:90px;resize:vertical}

/* ════════════════════════════════════════════
   ALERTS
════════════════════════════════════════════ */
.alert-banner,.m-alert{
  padding:12px 18px;border-radius:var(--radius-sm);
  margin-bottom:18px;font-size:13px;font-weight:500;
  display:flex;align-items:center;gap:10px;
}
.alert-banner.success,.m-alert-success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.alert-banner.danger,.m-alert-danger{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.alert-banner.warning{background:#fffbeb;color:#92400e;border:1px solid #fde68a}
.alert-banner.info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}

/* ════════════════════════════════════════════
   MODAL
════════════════════════════════════════════ */
.modal-content{border-radius:var(--radius-lg);border:none;box-shadow:var(--shadow-xl);overflow:hidden}
.modal-header{border-bottom:1px solid var(--border);padding:17px 22px;background:var(--white);position:relative}
.modal-header::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--primary-gradient)}
.modal-header .modal-title{font-size:15px;font-weight:700;color:var(--text);display:flex;align-items:center;gap:10px}
.modal-body{padding:22px}
.modal-body .form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 16px}
.modal-footer{border-top:1px solid var(--border);padding:14px 22px;background:var(--bg-soft)}

/* ════════════════════════════════════════════
   TAG CHIPS
════════════════════════════════════════════ */
.tag-toggle{
  display:inline-flex;align-items:center;
  background:var(--bg);color:var(--text-muted);
  border:1.5px solid var(--border);border-radius:20px;
  padding:5px 14px;font-size:12.5px;font-weight:500;
  cursor:pointer;transition:all .18s;
}
.tag-toggle:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}
.tag-toggle.selected{background:var(--primary);color:#fff;border-color:var(--primary)}

/* ════════════════════════════════════════════
   LOGIN PAGE (split layout)
════════════════════════════════════════════ */
.login-wrapper{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#1a1a2e 0%,#2d1b69 50%,#7811e9 100%);padding:20px;
}
.login-card{
  background:var(--white);border-radius:16px;
  padding:40px;width:100%;max-width:420px;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
}
.login-card .login-brand{text-align:center;margin-bottom:32px}
.login-card .login-brand .brand-icon{
  width:64px;height:64px;border-radius:16px;
  background:var(--primary-gradient);display:inline-flex;
  align-items:center;justify-content:center;
  margin-bottom:16px;overflow:hidden;
}
.login-card .login-brand .brand-icon img{width:48px;height:48px;object-fit:contain;border-radius:10px}
.login-card .login-brand h4{font-size:20px;font-weight:700;margin-bottom:4px}
.login-card .login-brand p{font-size:13px;color:var(--text-muted)}
.login-card .btn-login{
  width:100%;padding:12px;font-size:14px;font-weight:600;
  background:var(--primary-gradient);color:#fff;border:none;
  border-radius:var(--radius-sm);cursor:pointer;transition:all .2s;font-family:inherit;
}
.login-card .btn-login:hover{box-shadow:0 4px 16px rgba(120,17,233,.4);transform:translateY(-1px)}
.login-split{min-height:100vh;display:flex;align-items:stretch}
.login-split-left{
  flex:0 0 420px;background:var(--primary-gradient);
  color:#fff;padding:60px 48px;
  display:flex;flex-direction:column;justify-content:center;
  position:relative;overflow:hidden;
}
.login-split-left::before{content:'';position:absolute;bottom:-80px;right:-80px;width:320px;height:320px;border-radius:50%;background:rgba(255,255,255,.05)}
.login-split-left::after{content:'';position:absolute;top:-60px;left:-60px;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.04)}
.login-split-logo{
  width:64px;height:64px;border-radius:14px;
  background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;margin-bottom:32px;flex-shrink:0;
}
.login-split-logo img{width:48px;height:48px;object-fit:contain;border-radius:8px}
.login-split-logo span{font-size:22px;font-weight:800;color:#fff}
.login-split-left h2{font-size:26px;font-weight:700;margin-bottom:12px;line-height:1.3;position:relative;z-index:1}
.login-split-left > p{font-size:14px;opacity:.8;line-height:1.7;margin-bottom:36px;position:relative;z-index:1}
.login-features{list-style:none;display:flex;flex-direction:column;gap:14px;position:relative;z-index:1}
.login-features li{display:flex;align-items:center;gap:12px;font-size:13.5px;opacity:.9}
.login-feat-icon{
  width:32px;height:32px;border-radius:8px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0;
}
.login-split-right{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 24px;background:var(--bg)}
.login-split-right .login-card{box-shadow:var(--shadow-md)}
.login-split-right .login-card .login-brand{text-align:left;margin-bottom:28px}
.login-split-right .login-card .login-brand .brand-icon{display:none}
.login-split-right .login-card .login-brand h4{font-size:22px;margin-bottom:4px}
@media(max-width:768px){.login-split-left{display:none}}

/* ════════════════════════════════════════════
   MISC COMPAT
════════════════════════════════════════════ */
.m-card{background:var(--white);border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow-sm);overflow:hidden}
.m-card-header{background:var(--white);color:var(--text);padding:13px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}
.m-card-header h6{margin:0;font-size:14px;font-weight:700;color:var(--text)}
.m-card-body{padding:18px}
.close-btn{background:rgba(255,255,255,.25);border:none;color:#fff;width:22px;height:22px;border-radius:50%;cursor:pointer;font-size:15px;line-height:1;display:flex;align-items:center;justify-content:center;transition:background .2s;font-family:inherit}
.close-btn:hover{background:rgba(255,255,255,.4)}
.photo-placeholder{width:100px;height:100px;border-radius:50%;background:var(--primary-light);display:flex;align-items:center;justify-content:center;margin:0 auto;color:var(--primary)}
.photo-label{font-size:12px;color:var(--text-muted);margin-top:6px}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media(max-width:991.98px){
  .admin-sidebar{transform:translateX(-100%)}
  .admin-sidebar.show{transform:translateX(0)}
  .sidebar-overlay.show{display:block}
  .admin-main{margin-left:0!important}
  .sidebar-toggle-btn{display:flex}
}
@media(max-width:767.98px){
  .topbar-breadcrumb{display:none}
  .topbar-profile-info{display:none}
  .member-welcome{padding:22px 20px}
  .welcome-greeting{font-size:19px}
}
@media(max-width:575.98px){
  .page-content{padding:14px 14px 30px}
  .admin-topbar{padding:0 14px}
  .form-grid{grid-template-columns:1fr}
  .topbar-member-id{display:none}
}
