/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ===== GLOBAL ===== */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;
  --accent: #06d6a0;
  --accent2: #f72585;
  --accent3: #7209b7;
  --accent4: #fb8500;
  --light: #f0f9ff;
  --light2: #f8fafc;
  --white: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15,23,42,0.10);
  --shadow-lg: 0 20px 60px rgba(15,23,42,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --grad-primary: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
  --grad-accent: linear-gradient(135deg, #06d6a0 0%, #0ea5e9 100%);
  --grad-warm: linear-gradient(135deg, #f72585 0%, #fb8500 100%);
  --grad-purple: linear-gradient(135deg, #7209b7 0%, #3a0ca3 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #06d6a0 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--light2); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light2); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-dark); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,23,42,0.96); backdrop-filter: blur(16px);
  padding: 0 5%; display: flex; align-items: center; justify-content: space-between;
  height: 72px; box-shadow: 0 2px 30px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(14,165,233,0.15);
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; }
.navbar-brand span { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.navbar-nav { display: flex; align-items: center; gap: 8px; list-style: none; }
.navbar-nav a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all .25s; }
.navbar-nav a:hover { color: #fff; background: rgba(14,165,233,0.15); }
.btn-nav {
  background: linear-gradient(135deg, #06d6a0, #0ea5e9) !important;
  color: #0f172a !important; padding: 10px 22px !important; border-radius: 50px !important;
  font-weight: 700 !important; box-shadow: 0 4px 15px rgba(6,214,160,0.35);
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6,214,160,0.45) !important; background: rgba(0,0,0,0) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #0c2461 40%, #0ea5e9 80%, #06d6a0 100%);
  display: flex; align-items: center; padding: 100px 5% 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(6,214,160,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; animation: pulse 6s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(247,37,133,0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; animation: pulse 8s ease-in-out infinite reverse;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.1);opacity:0.7} }
.hero-content { max-width: 600px; z-index: 1; }
.hero-badge {
  background: rgba(6,214,160,0.15); border: 1px solid rgba(6,214,160,0.4);
  color: #06d6a0; padding: 7px 20px; border-radius: 50px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero h1 { color: #fff; font-size: clamp(36px,5vw,66px); font-weight: 900; line-height: 1.1; margin-bottom: 22px; letter-spacing: -1px; }
.hero h1 span { background: linear-gradient(135deg, #06d6a0, #0ea5e9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: rgba(255,255,255,0.78); font-size: 18px; line-height: 1.75; margin-bottom: 38px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, #06d6a0, #0ea5e9); color: #0f172a;
  padding: 15px 36px; border-radius: 50px; font-weight: 800; font-size: 15px;
  transition: all .3s; box-shadow: 0 8px 30px rgba(6,214,160,0.4);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(6,214,160,0.55); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4); color: #fff;
  padding: 15px 36px; border-radius: 50px; font-weight: 600; font-size: 15px;
  transition: all .3s; backdrop-filter: blur(5px);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { color: #06d6a0; font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.stat-label { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 4px; font-weight: 500; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; align-items: center; padding-left: 60px; }
.hero-image img {
  width: 100%; max-width: 520px; border-radius: 28px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(6,214,160,0.2);
  object-fit: cover; height: 500px;
}

/* ===== SECTIONS ===== */
section { padding: 96px 5%; }
.section-tag {
  color: var(--secondary); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--secondary); border-radius: 2px; }
.section-title { font-size: clamp(28px,4vw,46px); font-weight: 900; color: var(--primary); margin-bottom: 16px; letter-spacing: -0.5px; line-height: 1.15; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 600px; line-height: 1.75; }
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }
.section-header.center .section-tag { justify-content: center; }
.section-header.center .section-tag::before { display: none; }

/* ===== SERVICES ===== */
.services-bg { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 28px; }
.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  transition: all .35s cubic-bezier(.4,0,.2,1); border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 24px 60px rgba(14,165,233,0.18); border-color: rgba(14,165,233,0.3); }
.service-card img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s; }
.service-card:hover img { transform: scale(1.05); }
.service-card-body { padding: 26px; }
.service-card-body h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.service-card-body p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.service-card-body .service-tag {
  display: inline-block; background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(6,214,160,0.1));
  color: var(--secondary); font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 50px; margin-bottom: 12px; border: 1px solid rgba(14,165,233,0.2);
}

/* ===== PORTFOLIO ===== */
.portfolio-bg { background: var(--light2); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.portfolio-card {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,23,42,0.08); background: var(--white);
  transition: all .35s cubic-bezier(.4,0,.2,1); border: 1px solid var(--border);
}
.portfolio-card:hover { transform: scale(1.03); box-shadow: 0 20px 50px rgba(14,165,233,0.2); }
.portfolio-card img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform .4s; }
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-card-info { padding: 22px; }
.portfolio-card-info h4 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.portfolio-card-info p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ===== APPOINTMENT ===== */
.appt-bg {
  background: linear-gradient(135deg, #0f172a 0%, #0c2461 50%, #0ea5e9 100%);
  position: relative; overflow: hidden;
}
.appt-bg::before {
  content: ''; position: absolute; top: -40%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(6,214,160,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.appt-bg .section-title { color: #fff; }
.appt-bg .section-tag { color: var(--accent); }
.appt-bg .section-sub { color: rgba(255,255,255,0.72); }
.appt-form {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 24px; padding: 44px;
  max-width: 560px; box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 12px;
  color: #fff; font-size: 14px; outline: none; transition: all .3s;
  font-family: inherit;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.45); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 3px rgba(6,214,160,0.15); }
.btn-submit {
  background: linear-gradient(135deg, #06d6a0, #0ea5e9); color: #0f172a;
  padding: 15px 40px; border: none; border-radius: 50px; font-size: 15px; font-weight: 800;
  cursor: pointer; transition: all .3s; width: 100%; font-family: inherit;
  box-shadow: 0 8px 25px rgba(6,214,160,0.35);
}
.btn-submit:hover { opacity: .92; transform: translateY(-2px); box-shadow: 0 14px 35px rgba(6,214,160,0.5); }

/* ===== DOCTORS SECTION ===== */
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 24px; }
.doctor-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 22px;
  text-align: center; box-shadow: 0 4px 20px rgba(15,23,42,0.07);
  transition: all .35s cubic-bezier(.4,0,.2,1); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.doctor-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #06d6a0, #0ea5e9, #7209b7);
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(14,165,233,0.18); border-color: rgba(14,165,233,0.25); }
.doctor-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #06d6a0);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 18px; color: #fff;
  box-shadow: 0 8px 25px rgba(14,165,233,0.35);
}
.doctor-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.doctor-card .desig { font-size: 13px; color: var(--secondary); font-weight: 600; }
.doctor-card .cat { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #0f172a 0%, #0c2461 100%);
  color: rgba(255,255,255,0.75); padding: 70px 5% 32px;
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #06d6a0, #0ea5e9, #7209b7, #f72585);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand h3 { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.75; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; font-size: 14px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); transition: all .25s; display: inline-flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.footer-bottom span { color: rgba(255,255,255,0.5); }

/* ===== ADMIN LAYOUT ===== */
.admin-wrapper { display: flex; min-height: 100vh; }
.sidebar {
  width: 268px; background: linear-gradient(180deg, #0f172a 0%, #0c2461 100%);
  position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100;
  transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
  box-shadow: 4px 0 30px rgba(0,0,0,0.25);
}
.sidebar-brand {
  padding: 26px 22px; border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}
.sidebar-brand h2 { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }
.sidebar-brand p {
  background: linear-gradient(135deg, #06d6a0, #0ea5e9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-size: 11px; font-weight: 700; margin-top: 3px; text-transform: uppercase; letter-spacing: 1px;
}
.sidebar-nav { flex: 1; padding: 16px 0; }
.nav-section {
  padding: 10px 22px 6px; font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.28); text-transform: uppercase; letter-spacing: 2px; margin-top: 8px;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 22px;
  color: rgba(255,255,255,0.65); font-size: 13.5px; font-weight: 500;
  transition: all .2s; border-left: 3px solid transparent; margin: 1px 0;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.07); color: #fff; border-left-color: rgba(14,165,233,0.5); }
.sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(14,165,233,0.18), rgba(6,214,160,0.08));
  color: #fff; border-left-color: #06d6a0;
}
.sidebar-nav a .icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-footer { padding: 20px 22px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-footer a { color: rgba(255,255,255,0.55); font-size: 13px; display: flex; align-items: center; gap: 8px; transition: color .2s; }
.sidebar-footer a:hover { color: #ef4444; }

.main-content { margin-left: 268px; flex: 1; min-height: 100vh; background: #f0f4f8; }
.topbar {
  background: var(--white); padding: 0 30px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 16px rgba(15,23,42,0.07); position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -0.3px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.user-badge {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(6,214,160,0.08));
  padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(14,165,233,0.15);
}
.user-badge .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #06d6a0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800; overflow: hidden;
}
.user-badge .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-badge span { font-size: 14px; font-weight: 600; color: var(--primary); }
.page-body { padding: 30px; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(15,23,42,0.07); border: 1px solid var(--border);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(14,165,233,0.03), rgba(6,214,160,0.03));
}
.card-header h3 { font-size: 16px; font-weight: 700; color: var(--primary); }
.card-body { padding: 24px; }

/* ===== STAT CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 2px 16px rgba(15,23,42,0.07); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 18px;
  transition: all .3s; position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.stat-card:nth-child(1)::after { background: linear-gradient(90deg, #0ea5e9, #06d6a0); }
.stat-card:nth-child(2)::after { background: linear-gradient(90deg, #10b981, #06d6a0); }
.stat-card:nth-child(3)::after { background: linear-gradient(90deg, #f59e0b, #fb8500); }
.stat-card:nth-child(4)::after { background: linear-gradient(90deg, #7209b7, #3a0ca3); }
.stat-card:nth-child(5)::after { background: linear-gradient(90deg, #10b981, #0ea5e9); }
.stat-card:nth-child(6)::after { background: linear-gradient(90deg, #0ea5e9, #7209b7); }
.stat-card:nth-child(7)::after { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.stat-card:nth-child(8)::after { background: linear-gradient(90deg, #f72585, #7209b7); }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(15,23,42,0.12); }
.stat-icon { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.stat-icon.blue { background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(6,214,160,0.1)); }
.stat-icon.green { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,214,160,0.1)); }
.stat-icon.orange { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,133,0,0.1)); }
.stat-icon.red { background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(247,37,133,0.1)); }
.stat-icon.purple { background: linear-gradient(135deg, rgba(114,9,183,0.15), rgba(58,12,163,0.1)); }
.stat-info h4 { font-size: 26px; font-weight: 900; color: var(--primary); letter-spacing: -0.5px; }
.stat-info p { font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 500; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: linear-gradient(135deg, #f0f9ff, #f0fdf4);
  padding: 13px 16px; text-align: left; font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .8px;
  border-bottom: 2px solid var(--border);
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: linear-gradient(135deg, rgba(14,165,233,0.04), rgba(6,214,160,0.03)); }
tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge { padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; display: inline-block; letter-spacing: 0.3px; }
.badge-success { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(6,214,160,0.1)); color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.badge-danger { background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(247,37,133,0.08)); color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.badge-warning { background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(251,133,0,0.08)); color: #d97706; border: 1px solid rgba(245,158,11,0.2); }
.badge-info { background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(59,130,246,0.08)); color: #0284c7; border: 1px solid rgba(14,165,233,0.2); }
.badge-muted { background: var(--border); color: var(--muted); border: 1px solid transparent; }
.badge-purple { background: linear-gradient(135deg, rgba(114,9,183,0.12), rgba(58,12,163,0.08)); color: #7c3aed; border: 1px solid rgba(114,9,183,0.2); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px;
  border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; transition: all .2s; font-family: inherit;
}
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.btn-blue { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff; box-shadow: 0 4px 12px rgba(14,165,233,0.3); }
.btn-blue:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(14,165,233,0.4); }
.btn-green { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,185,129,0.4); }
.btn-red { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.btn-red:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(239,68,68,0.4); }
.btn-dark { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); }
.btn-accent { background: linear-gradient(135deg, #06d6a0, #0ea5e9); color: #0f172a; font-weight: 700; box-shadow: 0 4px 12px rgba(6,214,160,0.3); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(6,214,160,0.45); }
.btn-purple { background: linear-gradient(135deg, #7209b7, #3a0ca3); color: #fff; box-shadow: 0 4px 12px rgba(114,9,183,0.3); }
.btn-purple:hover { transform: translateY(-1px); }
.btn-outline-blue { border: 2px solid var(--secondary); color: var(--secondary); background: transparent; }
.btn-outline-blue:hover { background: var(--secondary); color: #fff; }

/* ===== FORMS (admin) ===== */
.admin-form .form-group { margin-bottom: 20px; }
.admin-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: 10px; font-size: 14px; outline: none; transition: all .3s;
  background: var(--white); color: var(--text); font-family: inherit;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
  border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 999; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal {
  background: var(--white); border-radius: 20px; width: 90%; max-width: 600px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 40px 100px rgba(0,0,0,0.35);
  animation: slideUp .25s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-header {
  padding: 22px 26px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(14,165,233,0.04), rgba(6,214,160,0.04));
}
.modal-header h3 { font-size: 17px; font-weight: 800; color: var(--primary); }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; transition: color .2s; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 26px; }
.modal-footer { padding: 18px 26px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

/* ===== ALERTS ===== */
.alert {
  padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px; font-weight: 500;
}
.alert-success { background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,214,160,0.08)); border: 1px solid rgba(16,185,129,0.3); color: #065f46; }
.alert-danger { background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(247,37,133,0.06)); border: 1px solid rgba(239,68,68,0.3); color: #991b1b; }
.alert-info { background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(59,130,246,0.06)); border: 1px solid rgba(14,165,233,0.3); color: #0c4a6e; }
.alert-warning { background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(251,133,0,0.06)); border: 1px solid rgba(245,158,11,0.3); color: #78350f; }

/* ===== CHART AREA ===== */
.chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 28px; }
.chart-box {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 2px 16px rgba(15,23,42,0.07); border: 1px solid var(--border);
}
.chart-box h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 22px; display: flex; align-items: center; gap: 8px; }

/* ===== BILL / PRINT ===== */
@media print {
  body * { visibility: hidden; }
  #printArea, #printArea * { visibility: visible; }
  #printArea { position: fixed; top: 0; left: 0; width: 100%; }
  .no-print { display: none !important; }
  .print-page { box-shadow: none; margin: 0; }
  @page { size: A4 portrait; margin: 0; }
}

/* ── A4 PAGE SHELL ── */
.print-page {
  width: 210mm;
  min-height: 297mm;
  height: 297mm;
  background: #fff;
  margin: 0 auto;
  padding: 7mm 12mm 26mm 12mm;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  color: #1a1a2e;
  box-shadow: 0 0 24px rgba(0,0,0,0.13);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  page-break-after: always;
}
.print-page-content { flex: 1; overflow: hidden; }

/* ── HEADER TOP STRIP: logo | name | QR ── */
.bill-header { margin-bottom: 0; }
.bill-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 3px solid #0a2342;
  margin-bottom: 0;
}
/* Logo */
.bill-logo { flex-shrink: 0; }
.bill-logo img {
  width: 68px; height: 68px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}
.bill-logo-placeholder {
  width: 68px; height: 68px;
  background: #0a2342;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px;
  flex-shrink: 0;
}
/* Hospital name + address */
.bill-hospital-info { flex: 1; padding-left: 4px; }
.bill-hospital-info h3 {
  font-size: 17px; font-weight: 900;
  color: #0a2342; margin: 0 0 3px 0;
  letter-spacing: -0.2px; line-height: 1.2;
}
.bill-hospital-info p {
  font-size: 10.5px; color: #555;
  line-height: 1.6; margin: 0;
}
/* QR */
.bill-header-qr { flex-shrink: 0; }
.bill-header-qr img { display: block; }

/* Right corner: doctor block + QR stacked */
.bill-header-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.bill-header-doctor {
  text-align: right;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 5px 9px 6px;
  background: #f5f7fa;
  min-width: 110px;
}
.bill-header-doctor-label {
  font-size: 7.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 3px;
}
.bill-header-doctor-desig {
  font-size: 9px;
  color: #555;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.bill-header-doctor-name {
  font-size: 12px;
  font-weight: 900;
  color: #0a2342;
  line-height: 1.2;
}

/* Footer doctor line */
.footer-doctor {
  display: block;
  font-size: 9px;
  color: #555;
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ── PATIENT + DOCTOR INFO BOX ── */
.bill-info-row {
  display: flex;
  border: 1px solid #d0d5dd;
  margin-top: 7px;
  margin-bottom: 0;
  font-size: 11.5px;
  background: #fff;
}
.bill-info-col {
  flex: 1;
  padding: 0;
}
.bill-info-col:first-child {
  border-right: 1px solid #d0d5dd;
}
.bill-info-col-title {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #888;
  background: #f5f7fa;
  padding: 5px 11px 4px;
  border-bottom: 1px solid #e4e7ec;
  display: block;
}
.bill-info-col-body { padding: 7px 11px 8px; }
.bill-info-col-body p {
  margin: 0 0 3px 0;
  line-height: 1.55;
  font-size: 11.5px;
  color: #1a1a2e;
}
.bill-info-col-body p strong { color: #0a2342; font-weight: 700; }
/* Doctor name large style (matches image) */
.bill-doctor-desig {
  font-size: 10px; color: #666;
  font-style: normal; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 3px !important;
}
.bill-doctor-name {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #0a2342 !important;
  line-height: 1.25 !important;
  margin-bottom: 0 !important;
}

.bill-divider {
  border: none;
  border-top: 2px solid #0a2342;
  margin: 7px 0 9px;
}

/* ── ITEMS TABLE ── */
.bill-table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-bottom: 8px; }
.bill-table th {
  background: #0a2342; color: #fff;
  padding: 6px 8px; text-align: left;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.3px;
}
.bill-table th:last-child, .bill-table td:last-child { text-align: right; }
.bill-table th:nth-child(3), .bill-table td:nth-child(3),
.bill-table th:nth-child(4), .bill-table td:nth-child(4) { text-align: center; }
.bill-table td { padding: 5px 8px; border-bottom: 1px solid #eee; vertical-align: middle; }
.bill-table tbody tr:nth-child(even) td { background: #f8fafc; }

/* ── TOTALS ── */
.bill-totals { text-align: right; font-size: 11.5px; margin-bottom: 8px; }
.bill-totals table { margin-left: auto; min-width: 200px; }
.bill-totals td { padding: 3px 8px; }
.bill-totals td:first-child { color: #555; }
.bill-totals td:last-child { font-weight: 600; color: #0a2342; }
.bill-totals .total-row td {
  font-weight: 800; font-size: 14px;
  border-top: 2px solid #0a2342;
  padding-top: 5px; color: #0a2342;
}
.gst-note {
  font-size: 10.5px; color: #666;
  border-top: 1px dashed #ccc;
  padding-top: 6px; margin-top: 4px;
}

/* ── FOOTER — pinned at bottom 2% ── */
.bill-footer {
  position: absolute;
  bottom: 2%;
  left: 12mm;
  right: 12mm;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1.5px solid #0a2342;
  padding-top: 4mm;
}
.bill-footer-left { text-align: left; }
.bill-footer-left .footer-label {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 3px;
}
.bill-footer-left .footer-name {
  font-size: 12px;
  font-weight: 900;
  color: #0a2342;
  display: block;
}
.bill-footer-right { text-align: right; }
.bill-footer-right .sign-line {
  border-top: 1px solid #333;
  width: 140px;
  margin-left: auto;
  margin-bottom: 4px;
}
.bill-footer-right .footer-label {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

/* ── SLIP TITLE BLOCK ── */
.slip-title-block {
  text-align: center;
  padding: 10px 0 8px;
}
.slip-title {
  font-size: 14px;
  font-weight: 900;
  color: #0a2342;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  display: block;
  margin-bottom: 4px;
}
.slip-number {
  font-size: 10.5px;
  color: #666;
  display: block;
}
.slip-number strong { color: #0a2342; }

/* ── SLIP SPECIFIC (old classes kept for compat) ── */
.slip-admit-badge {
  display: inline-block;
  padding: 2px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.slip-admit-general  { background: #dcfce7; color: #166534; }
.slip-admit-admitted { background: #fef3c7; color: #92400e; }
.slip-info-value {
  flex: 1; padding: 8px 12px;
  font-size: 11.5px; color: #1a1a2e;
}
.slip-admit-badge {
  display: inline-block;
  padding: 3px 12px; border-radius: 20px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.slip-admit-general { background: #dcfce7; color: #166534; }
.slip-admit-admitted { background: #fef3c7; color: #92400e; }
.slip-qr { margin-top: 10px; text-align: center; }
.slip-qr img { border: 1px solid #ddd; border-radius: 6px; }
.slip-qr p { font-size: 9px; color: #888; margin-top: 4px; }


/* ===== PANEL LAYOUTS (doctor/lab/medic/management) ===== */
.panel-wrapper { display: flex; min-height: 100vh; }
.panel-sidebar { width: 240px; background: linear-gradient(180deg, #0f172a 0%, #0c2461 100%); position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,0.2); }
.panel-main { margin-left: 240px; flex: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .chart-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(15,23,42,0.98); backdrop-filter: blur(16px); flex-direction: column; padding: 20px; gap: 5px; border-top: 1px solid rgba(255,255,255,0.08); }
  .navbar-nav.open { display: flex; }
  .hamburger { display: flex; }
  .hero { flex-direction: column; text-align: center; }
  .hero-image { padding-left: 0; margin-top: 40px; }
  .hero-stats { justify-content: center; }
  .hero-btns { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .admin-form .form-row, .admin-form .form-row-3 { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-body { padding: 16px; }
}

/* ===== UTILITY ===== */
.text-gradient {
  background: linear-gradient(135deg, #0ea5e9, #06d6a0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px}
.flex{display:flex} .items-center{align-items:center} .gap-2{gap:8px} .gap-3{gap:12px}
.fw-700{font-weight:700} .fw-800{font-weight:800}
.text-muted{color:var(--muted)} .text-success{color:var(--success)} .text-danger{color:var(--danger)}


/* ===== EDIT MODAL DESIGN ===== */
.edit-modal-header { padding: 0; border-bottom: none; background: none; }

/* Banner */
.edit-modal-banner {
  background: linear-gradient(135deg, #0f172a 0%, #0c2461 55%, #0ea5e9 100%);
  padding: 24px 26px 20px;
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
}
.edit-modal-banner::before {
  content: '';
  position: absolute; top: -50%; right: -8%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(6,214,160,0.22) 0%, transparent 65%);
  border-radius: 50%;
}
.edit-modal-banner::after {
  content: '';
  position: absolute; bottom: -40%; left: -5%;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(247,37,133,0.12) 0%, transparent 65%);
  border-radius: 50%;
}
/* Shimmer line at top */
.edit-modal-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6,214,160,0.6), rgba(14,165,233,0.6), transparent);
}

.edit-modal-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.edit-modal-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.edit-modal-title {
  color: #fff; font-size: 17px; font-weight: 800;
  letter-spacing: -0.3px; line-height: 1.2;
}
.edit-modal-subtitle {
  color: rgba(255,255,255,0.55); font-size: 12px;
  margin-top: 4px; font-weight: 500;
}
.edit-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
  width: 30px; height: 30px;
  border-radius: 8px; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 2; line-height: 1;
}
.edit-modal-close:hover {
  background: rgba(239,68,68,0.35); color: #fff;
  border-color: rgba(239,68,68,0.5);
  transform: scale(1.1);
}

/* Body */
.edit-modal-body { padding: 22px 26px 4px; }

/* Divider between sections */
.edit-modal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 16px 0;
}

/* Field groups */
.edit-field-group { margin-bottom: 16px; }
.edit-field-group label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  color: #64748b; text-transform: uppercase;
  letter-spacing: 0.7px; margin-bottom: 6px;
}
.edit-field-group label .field-icon {
  width: 20px; height: 20px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(6,214,160,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.edit-field-group input,
.edit-field-group select,
.edit-field-group textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px; font-size: 13.5px;
  font-family: inherit; color: #1e293b;
  background: #f8fafc; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.edit-field-group input:focus,
.edit-field-group select:focus,
.edit-field-group textarea:focus {
  border-color: #0ea5e9; background: #fff;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.edit-field-group input[disabled],
.edit-field-group select[disabled] {
  background: #f1f5f9; color: #94a3b8; cursor: not-allowed;
}
.edit-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .edit-field-row { grid-template-columns: 1fr; } }

/* Footer */
.edit-modal-footer {
  padding: 14px 26px 22px;
  display: flex; justify-content: flex-end; gap: 10px;
  border-top: 1px solid #f1f5f9; margin-top: 8px;
}
.btn-edit-cancel {
  padding: 9px 20px; border-radius: 10px;
  border: 1.5px solid #e2e8f0; background: #fff;
  color: #64748b; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.btn-edit-cancel:hover { border-color: #cbd5e1; background: #f8fafc; color: #1e293b; }
.btn-edit-save {
  padding: 9px 24px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #0ea5e9, #06d6a0);
  color: #0f172a; font-size: 13px; font-weight: 800;
  cursor: pointer; font-family: inherit; transition: all .2s;
  box-shadow: 0 4px 14px rgba(14,165,233,0.3);
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-edit-save:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,0.42); }

/* Banner color variants */
.edit-modal-banner.green  { background: linear-gradient(135deg, #052e16 0%, #065f46 55%, #10b981 100%); }
.edit-modal-banner.purple { background: linear-gradient(135deg, #2e1065 0%, #4c1d95 55%, #7c3aed 100%); }
.edit-modal-banner.orange { background: linear-gradient(135deg, #431407 0%, #7c2d12 55%, #ea580c 100%); }
.edit-modal-banner.teal   { background: linear-gradient(135deg, #042f2e 0%, #115e59 55%, #0d9488 100%); }
.edit-modal-banner.rose   { background: linear-gradient(135deg, #4c0519 0%, #881337 55%, #e11d48 100%); }

/* ===== EMPLOYEE PROFILE VIEW MODAL ===== */
.profile-modal-hero {
  background: linear-gradient(135deg, #0f172a 0%, #0c2461 50%, #0ea5e9 100%);
  padding: 28px 28px 0;
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.profile-modal-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #06d6a0, #0ea5e9, #7209b7);
}
.profile-modal-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(6,214,160,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(247,37,133,0.1) 0%, transparent 50%);
}
.profile-modal-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  position: relative; z-index: 1;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.profile-modal-avatar-placeholder {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 3px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 12px;
  position: relative; z-index: 1;
}
.profile-modal-name {
  color: #fff; font-size: 20px; font-weight: 900;
  letter-spacing: -0.3px; position: relative; z-index: 1;
  margin-bottom: 4px;
}
.profile-modal-role {
  color: rgba(255,255,255,0.6); font-size: 12px;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; position: relative; z-index: 1;
  margin-bottom: 16px;
}
.profile-modal-badges {
  display: flex; justify-content: center; gap: 8px;
  position: relative; z-index: 1; margin-bottom: 20px;
}
.profile-modal-badge {
  padding: 4px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  backdrop-filter: blur(8px);
}
.profile-modal-badge.duty-on  { background: rgba(16,185,129,0.25); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.profile-modal-badge.duty-off { background: rgba(100,116,139,0.25); color: #cbd5e1; border: 1px solid rgba(100,116,139,0.3); }
.profile-modal-badge.active   { background: rgba(6,214,160,0.2); color: #6ee7b7; border: 1px solid rgba(6,214,160,0.3); }
.profile-modal-badge.suspended{ background: rgba(239,68,68,0.2); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* Tab strip at bottom of hero */
.profile-modal-tabs {
  display: flex; border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 -28px; position: relative; z-index: 1;
}
.profile-modal-tab {
  flex: 1; padding: 11px 8px; text-align: center;
  font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,0.5);
  cursor: pointer; border: none; background: none;
  transition: all .2s; letter-spacing: 0.3px;
  border-bottom: 2px solid transparent;
}
.profile-modal-tab.active { color: #06d6a0; border-bottom-color: #06d6a0; }
.profile-modal-tab:hover:not(.active) { color: rgba(255,255,255,0.8); }

/* Profile info grid */
.profile-info-body { padding: 20px 26px; }
.profile-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.profile-info-item {
  background: #f8fafc; border-radius: 10px;
  padding: 12px 14px; border: 1px solid #f1f5f9;
  transition: border-color .2s;
}
.profile-info-item:hover { border-color: #bae6fd; }
.profile-info-item.full { grid-column: 1 / -1; }
.profile-info-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: #94a3b8; margin-bottom: 4px;
}
.profile-info-value {
  font-size: 13.5px; font-weight: 600; color: #1e293b;
  word-break: break-all;
}
.profile-info-value.empty { color: #cbd5e1; font-style: italic; font-weight: 400; }

/* Agreement link */
.profile-agreement-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(6,214,160,0.06));
  border: 1.5px solid rgba(14,165,233,0.2);
  color: #0284c7; font-size: 13px; font-weight: 600;
  transition: all .2s; text-decoration: none;
}
.profile-agreement-link:hover {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(6,214,160,0.1));
  border-color: rgba(14,165,233,0.4); transform: translateY(-1px);
}
.profile-modal-footer {
  padding: 14px 26px 20px;
  display: flex; justify-content: flex-end; gap: 10px;
  border-top: 1px solid #f1f5f9;
}
