:root {
    --bg: #f7f1e5;
    --bg-soft: #fcf8ef;
    --ink: #2f2419;
    --brown: #5b4636;
    --brown-dark: #3e3025;
    --gold: #b08d57;
    --cream: #fffdf8;
    --danger: #9f2d20;
    --success: #235c36;
    --border: #dbcdb7;
    --shadow: 0 12px 30px rgba(62, 48, 37, 0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Tahoma, Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.9; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.classic-hero { min-height: 100vh; position: relative; background: linear-gradient(rgba(34,24,17,.55), rgba(34,24,17,.45)), linear-gradient(135deg, #6f5742, #3e3025); color: #fffaf0; overflow: hidden; }
.overlay { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.02) 2px, transparent 2px, transparent 14px); }
.nav-wrap { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.brand { font-size: 1.6rem; font-weight: 700; color: #f9e4b7; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: #fff9ee; font-weight: 700; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px; align-items: center; min-height: calc(100vh - 90px); padding: 30px 0 60px; }
.hero-kicker, .section-title span { display: inline-block; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.hero-copy h1 { font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.35; margin-bottom: 18px; }
.hero-copy p { font-size: 1.08rem; max-width: 720px; color: #f6ead4; margin-bottom: 24px; }
.hero-panel, .classic-card, .form-shell, .login-box, .stat-box, .admin-filter-box, .admin-patient-card, .empty-box { background: var(--cream); border: 1px solid rgba(219,205,183,.9); box-shadow: var(--shadow); border-radius: 22px; }
.hero-panel { padding: 28px; color: var(--ink); }
.hero-panel h3 { margin-bottom: 15px; color: var(--brown-dark); }
.hero-panel ul { list-style: none; }
.hero-panel li { padding: 10px 0; border-bottom: 1px solid #eee1cb; }
.hero-panel li:last-child { border-bottom: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 12px; padding: 12px 20px; font-size: .98rem; font-weight: 700; cursor: pointer; transition: .25s ease; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #8f6f3f); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline-light { border: 1px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.section { padding: 80px 0; }
.ivory-section { background: var(--bg-soft); }
.soft-gold-section { background: linear-gradient(180deg, #f9f4ea, #f5ecdd); }
.center { text-align: center; }
.section-title h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); color: var(--brown-dark); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 34px; }
.classic-card { padding: 26px; }
.classic-card h3 { color: var(--brown-dark); margin-bottom: 10px; }
.form-shell { padding: 34px; }
.classic-form { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field-group { display: flex; flex-direction: column; }
.full-span { grid-column: 1 / -1; }
label { font-weight: 700; margin-bottom: 8px; color: var(--brown); }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; font-size: 1rem; background: #fffdf9; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176,141,87,.12); }
small { margin-top: 6px; color: #6d5b4a; }
.form-actions { margin-top: 22px; }
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; font-weight: 700; }
.alert-success { background: #e7f5eb; color: var(--success); border: 1px solid #b6dec0; }
.alert-error { background: #fde8e5; color: var(--danger); border: 1px solid #efc2bb; }
.site-footer { background: #2f2419; color: #f6ead4; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: linear-gradient(135deg, #f4ebdc, #eadcc7); }
.login-box { width: min(520px, 100%); padding: 34px; }
.full-width { width: 100%; }
.login-help { margin-top: 14px; color: #6b5a48; text-align: center; }
.admin-body { background: #f5efe4; }
.admin-topbar { background: linear-gradient(135deg, #3e3025, #5a4635); color: #fff6e8; padding: 24px 0; }
.admin-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-links { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-container { padding: 32px 0 60px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-box { padding: 24px; text-align: center; }
.stat-box span { display: block; color: #7b6854; margin-bottom: 8px; }
.stat-box strong { font-size: 2rem; color: var(--brown-dark); }
.admin-filter-box { padding: 18px; margin-bottom: 24px; }
.admin-filter-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 14px; }
.admin-list-section { display: grid; gap: 18px; }
.admin-patient-card { padding: 22px; }
.admin-patient-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.admin-patient-head h3 { color: var(--brown-dark); margin-bottom: 6px; }
.admin-patient-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin-bottom: 18px; }
.admin-patient-grid > div { background: #fbf7ef; border: 1px solid #eee2cf; padding: 12px 14px; border-radius: 14px; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.status-pill { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; }
.status-new { background: #efe6d6; color: #7d602d; }
.status-review { background: #f4ead2; color: #8f5f09; }
.status-done { background: #e3efe7; color: #2c6940; }
.empty-box { padding: 30px; text-align: center; }
@media (max-width: 992px) { .hero-inner, .service-grid, .stats-row { grid-template-columns: 1fr 1fr; } .admin-filter-form { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .nav-wrap, .footer-inner, .admin-topbar-inner, .admin-patient-head { flex-direction: column; align-items: stretch; } .hero-inner, .service-grid, .form-grid, .stats-row, .admin-patient-grid { grid-template-columns: 1fr; } }
