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

:root {
    --bg-color: #eef4f9;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-shadow: 0 14px 30px -14px rgba(15, 23, 42, 0.28), 0 10px 22px -16px rgba(14, 116, 144, 0.28);
    --primary-color: #0f766e;
    --primary-hover: #115e59;
    --secondary-color: #334155;
    --text-color: #0f172a;
    --text-muted: #475569;
    --danger-color: #e11d48;
    --success-color: #0f766e;
    --warning-color: #ea580c;
    --radius: 14px;
    --transition: all 0.2s ease-in-out;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 8% 10%, rgba(14, 116, 144, 0.18) 0px, transparent 40%),
        radial-gradient(circle at 90% 5%, rgba(234, 88, 12, 0.14) 0px, transparent 38%),
        linear-gradient(180deg, #f8fbff 0%, #eef4f9 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Top Navigation */
.top-nav {
    margin: 20px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.top-nav__brand {
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.top-nav__logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.top-nav__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lang-switch {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(229, 231, 235, 0.7);
}

.lang-switch a {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.lang-switch a.active {
    color: var(--primary-color);
}

.top-nav__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.top-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 10px;
    transition: var(--transition);
}

.top-nav__link:hover {
    background: rgba(255, 255, 255, 0.6);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -10px rgba(15, 118, 110, 0.45);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #dc2626; /* Red 600 */
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

.btn-secondary {
    background-color: white;
    color: var(--text-color);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-sizing: border-box;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: var(--transition);
    font-family: inherit;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

input::placeholder {
    color: #9ca3af;
}

/* Auth Page */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
    padding: 10px 0 30px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 34px;
    text-align: left;
    box-shadow: 0 24px 48px -22px rgba(15, 23, 42, 0.35);
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.auth-page {
    padding: 20px;
}

.landing-page {
    padding: 20px;
}

.landing-shell {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 20px;
    animation: riseIn 0.45s ease both;
}

.landing-brand {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.18rem;
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.45);
}

.landing-brand span {
    line-height: 1.1;
    white-space: nowrap;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-lang-switch {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.landing-lang-switch a {
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.1;
}

.landing-lang-switch a.active {
    background: rgba(15, 118, 110, 0.15);
    color: #0f766e;
}

.landing-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;
}

.landing-link:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
}

.landing-login-btn {
    border-radius: 12px;
    padding: 10px 18px;
    width: auto;
}

.landing-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    margin-bottom: 0;
    border-radius: 22px;
    overflow: hidden;
    animation: riseIn 0.55s ease both;
}

.landing-kicker {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.22);
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.08;
}

.landing-subtext {
    margin: 0;
    max-width: 640px;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.landing-trust-note {
    margin: 14px 0 0;
    color: #0f766e;
    font-size: 0.9rem;
    font-weight: 600;
}

.landing-audience {
    border-radius: 18px;
    margin-bottom: 0;
}

.landing-audience-intro h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}

.landing-audience-intro p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 880px;
}

.landing-audience-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "for who"
        "included who"
        "comfort comfort";
    gap: 14px;
    align-items: start;
}

.landing-audience-card {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.72);
    padding: 16px;
}

.landing-audience-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.landing-audience-card p {
    margin: 0 0 8px;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing-audience-list {
    margin: 0 0 12px 18px;
    padding: 0;
    color: var(--text-muted);
}

.landing-audience-list li {
    margin-bottom: 8px;
}

.landing-included-list {
    list-style: none;
    margin-left: 0;
}

.landing-included-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.landing-included-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.14);
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    margin-top: 2px;
}

.landing-included-icon svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.landing-audience-card--for {
    grid-area: for;
}

.landing-audience-card--who {
    grid-area: who;
}

.landing-audience-card--included {
    grid-area: included;
}

.landing-audience-card--comfort {
    grid-area: comfort;
}

.landing-audience-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 118, 110, 0.24);
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e !important;
    font-weight: 600;
    line-height: 1.45;
}

.landing-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.landing-actions .btn {
    width: auto;
    border-radius: 12px;
    padding: 11px 16px;
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.landing-metric {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.72);
}

.landing-metric strong {
    display: block;
    color: var(--text-color);
    font-size: 1.08rem;
    margin-bottom: 3px;
}

.landing-metric span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.landing-spotlight {
    border-radius: 18px;
    padding: 22px;
    background: linear-gradient(145deg, #0f172a, #1e293b 48%, #0f766e);
    color: #e2e8f0;
}

.landing-spotlight h2,
.landing-spotlight h3 {
    margin: 0 0 14px;
    color: #f8fafc;
    font-size: 1.35rem;
}

.landing-step {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 11px;
}

.landing-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 700;
}

.landing-step p {
    margin: 3px 0 0;
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.45;
}

.landing-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-benefit-card {
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(203, 213, 225, 0.45);
    background: rgba(255, 255, 255, 0.7);
    animation: riseIn 0.6s ease both;
}

.landing-benefit-card h2 {
    margin: 0 0 9px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.landing-benefit-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing-cta-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e 0%, #155e75 56%, #1e293b 100%);
    color: #e2e8f0;
}

.landing-cta-band h2 {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 1.3rem;
}

.landing-cta-band p {
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
}

.landing-cta-band .landing-actions {
    margin-top: 0;
}

.landing-footer {
    margin-top: 16px;
    padding: 6px 0 2px;
    color: #64748b;
    font-size: 0.85rem;
}

.landing-address {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 16px;
    border-radius: 18px;
    margin-bottom: 0;
}

.landing-address-content h2,
.landing-address-content h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.landing-address-content p {
    margin: 0 0 8px;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing-coords {
    font-size: 0.86rem;
    color: #0f766e !important;
}

.landing-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    min-height: 280px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    background: #f8fafc;
}

.landing-map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}

.landing-faq {
    border-radius: 18px;
    margin-bottom: 0;
}

.landing-faq h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.landing-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.landing-faq-item {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.landing-faq-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.4;
}

.landing-faq-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.landing-footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.landing-social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
    color: #0f172a;
}

.landing-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.landing-social-link:hover {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
    transform: translateY(-2px);
}

.landing-social-link--whatsapp {
    color: #128c7e;
}

.landing-social-link--whatsapp:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.landing-footer-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.landing-footer-meta-left,
.landing-footer-meta-right {
    display: grid;
    gap: 4px;
}

.landing-footer-meta-right {
    margin-left: auto;
    text-align: right;
}

.landing-footer-meta p {
    margin: 0;
}

.landing-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0f766e;
    font-weight: 700;
}

.landing-whatsapp-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.landing-whatsapp-link:hover {
    color: #115e59;
}

.landing-footer-meta a {
    color: var(--primary-color);
    font-weight: 600;
}

.landing-footer-meta a:hover {
    color: var(--primary-hover);
}

.landing-footer-meta .landing-whatsapp-link {
    color: #0f766e;
}

.landing-footer-meta .landing-whatsapp-link:hover {
    color: #115e59;
}

.policy-main {
    max-width: 980px;
    margin: 0 auto;
}

.policy-card {
    border-radius: 20px;
    padding: 28px;
}

.policy-card h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.policy-card h2 {
    margin: 22px 0 10px;
    font-size: 1.14rem;
}

.policy-card p {
    margin: 0 0 10px;
    color: var(--text-muted);
    line-height: 1.65;
}

.policy-meta {
    font-size: 0.86rem;
    color: #64748b !important;
}

.policy-list {
    margin: 0 0 10px 18px;
    padding: 0;
    color: var(--text-muted);
}

.policy-list li {
    margin-bottom: 8px;
}

.auth-layout {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 18px;
    align-items: stretch;
}

.auth-side {
    border-radius: 20px;
    padding: 28px;
    background: linear-gradient(150deg, #0f172a 0%, #155e75 58%, #0f766e 100%);
    color: #ecfeff;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.55);
    animation: riseIn 0.5s ease both;
}

.auth-side h1 {
    margin: 12px 0 10px;
    font-size: clamp(1.5rem, 2.7vw, 2.2rem);
    color: #f0fdfa;
    line-height: 1.15;
}

.auth-side p {
    margin: 0;
    color: rgba(240, 253, 250, 0.85);
    line-height: 1.58;
}

.auth-points {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.auth-point {
    border: 1px solid rgba(224, 242, 254, 0.26);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    padding: 10px 12px;
    font-size: 0.92rem;
}

.auth-card h2 {
    margin: 0;
    font-size: 1.55rem;
    color: var(--text-color);
}

.auth-subtitle {
    margin-top: 8px;
}

.auth-error {
    margin-bottom: 14px;
    border: 1px solid rgba(225, 29, 72, 0.3);
    background: rgba(225, 29, 72, 0.08);
    color: #9f1239;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.auth-submit {
    width: 100%;
    margin-top: 5px;
    padding: 11px 14px;
    border-radius: 10px;
}

.auth-help {
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 0 0 24px 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.dashboard-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

/* Tab Navigation */
.tab-nav {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(229, 231, 235, 0.5);
    flex-wrap: wrap;
    gap: 2px;
}

/* Utility Panels */
.panel-subtle {
    background: rgba(17, 24, 39, 0.03);
    border-color: rgba(229, 231, 235, 0.8);
}

.form-row {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.alert--success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

.alert--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    transition: transform 0.2s;
    border-left: 0 !important; /* Overriding partial borders for cleaner look */
    border-top: 0 !important;
}

.stat-card:hover {
    transform: translateY(-2px);
}

/* Add colored top border using pseudo-element */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.stat-card--blue::before { background: #3b82f6; }
.stat-card--green::before { background: #10b981; }
.stat-card--yellow::before { background: #f59e0b; }
.stat-card--red::before { background: #ef4444; }

/* Specific card colors based on implicit order or classes - 
   will handle via inline style override in PHP or specific classes if created */

.stat-card h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card .value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 12px 0 8px 0;
    letter-spacing: -0.025em;
}

.stat-card small {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #f3f4f6;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
    table-layout: auto;
}

th {
    background: #f9fafb;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f9fafb;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge--admin {
    background: var(--primary-color);
    color: white;
}

/* Modals/Dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

/* Timeline Visualization */
.timeline-container {
    position: relative;
    height: 36px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-hour-marker {
    position: absolute;
    height: 100%;
    border-left: 1px dashed #d1d5db;
    font-size: 0.65rem;
    color: #9ca3af;
    padding-left: 4px;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4px;
}

.timeline-block {
    position: absolute;
    height: 60%;
    top: 20%;
    background-color: var(--danger-color);
    border-radius: 4px;
    opacity: 0.8;
    z-index: 2;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 4px;
    color: #fff;
    font-size: 0.65rem;
}

.timeline-block:hover {
    transform: scaleY(1.2);
    z-index: 10;
}

.timeline-block.mine {
    background-color: var(--success-color);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.25) 0,
        rgba(255, 255, 255, 0.25) 6px,
        rgba(255, 255, 255, 0) 6px,
        rgba(255, 255, 255, 0) 12px
    );
    z-index: 3;
    opacity: 1;
}

.timeline-block.with-bounds {
    background-image: linear-gradient(
        to right,
        #b91c1c 0,
        #b91c1c 2px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0) calc(100% - 2px),
        #b91c1c calc(100% - 2px),
        #b91c1c 100%
    );
}

.timeline-block.other-room {
    background-color: #f39c12;
    opacity: 0.95;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.25) 0,
        rgba(255, 255, 255, 0.25) 6px,
        rgba(255, 255, 255, 0) 6px,
        rgba(255, 255, 255, 0) 12px
    );
}

.timeline-block__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.timeline-labels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 5px;
    padding: 0 5px;
}

.timeline-labels span {
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.timeline-container--mini {
    height: 28px;
    margin: 6px 0 0;
}

.timeline-week {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-week-day {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.timeline-week-date {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    padding: 10px 6px;
    letter-spacing: 1px;
    min-height: 100%;
}

.timeline-week-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-week-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.timeline-week-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.timeline-week-room {
    min-width: 160px;
    font-weight: 600;
}

.timeline-week-scale {
    flex: 1;
}

.admin-timeline-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
}

.admin-timeline-inner {
    min-width: 1600px;
}
/* ============================================
   RESPONSIVE STYLES - Mobile & Large Screens
   ============================================ */

/* Large Screens - Remove horizontal scroll */
@media (min-width: 1281px) {
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        max-width: 1400px;
        padding: 32px 40px;
    }
    
    .table-wrapper {
        overflow-x: visible;
    }
    
    table {
        min-width: auto;
    }
}

/* Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 24px 16px;
    }
    
    .top-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .top-nav__actions {
        justify-content: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .dashboard-header h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 16px 12px;
    }
    
    .glass-panel {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 10px;
    }
    
    .top-nav {
        margin: 12px;
        padding: 10px 12px;
    }
    
    .top-nav__brand {
        font-size: 0.95rem;
    }

    .top-nav__logo {
        width: 30px;
        height: 30px;
        border-radius: 7px;
    }
    
    .top-nav__actions {
        width: 100%;
        gap: 8px;
    }
    
    .top-nav__link {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .site-logo {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    
    .dashboard-header h2 {
        font-size: 1.25rem;
    }
    
    /* Tab Navigation - Mobile Optimized */
    .tab-nav {
        width: 100%;
        flex-direction: column;
        gap: 4px;
        padding: 6px;
    }
    
    .tab-btn {
        width: 100%;
        padding: 10px 12px;
        text-align: center;
        font-size: 0.85rem;
    }
    
    /* Stats Cards - Stack on Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card h3 {
        font-size: 0.9rem;
    }
    
    .stat-card .value {
        font-size: 1.5rem;
    }
    
    /* Tables - Mobile Responsive */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    table th,
    table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    table th {
        font-size: 0.75rem;
    }
    
    /* Forms - Mobile Optimized */
    .form-group {
        margin-bottom: 1rem;
    }
    
    label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    input, select, textarea {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    /* Modal - Full Screen on Mobile */
    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 95vh;
        padding: 20px;
        border-radius: 12px;
    }
    
    .modal-content h2 {
        font-size: 1.1rem;
    }
    
    /* Auth Card */
    .auth-card {
        padding: 24px;
        margin: 12px;
    }
    
    .auth-card h1 {
        font-size: 1.5rem;
    }
    
    /* Timeline - Simplified on Mobile */
    .timeline-container {
        height: 28px;
    }
    
    .timeline-hour-marker {
        font-size: 0.6rem;
    }
    
    .timeline-labels {
        font-size: 0.7rem;
        margin-top: 2px;
        position: relative;
        padding: 0 2px;
    }

    .timeline-labels span {
        position: relative;
        letter-spacing: -0.2px;
    }

    .timeline-labels span::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 100%;
        height: 32px;
        border-left: 1px dashed #d1d5db;
        pointer-events: none;
    }

    .timeline-labels--down span::before {
        display: none;
    }

    .timeline-labels--down span::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 100%;
        height: 32px;
        border-left: 1px dashed #d1d5db;
        pointer-events: none;
    }

    /* Grid adjustments */
    .form-row {
        gap: 10px;
    }
    
    /* Button groups - Stack on mobile */
    .dashboard-header .btn,
    .dashboard-header a {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .timeline-labels span:nth-child(odd) {
        color: transparent;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 12px 8px;
    }
    
    .glass-panel {
        padding: 12px;
        border-radius: 8px;
    }
    
    .top-nav {
        margin: 8px;
        padding: 8px;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    table {
        font-size: 0.75rem;
        min-width: 500px;
    }
    
    .stat-card h3 {
        font-size: 0.85rem;
    }
    
    .stat-card .value {
        font-size: 1.3rem;
    }
    
    .dashboard-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-content {
        padding: 16px;
    }
}

@media (max-width: 1080px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-audience-grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .landing-audience-card--for,
    .landing-audience-card--who,
    .landing-audience-card--included,
    .landing-audience-card--comfort {
        grid-area: auto;
    }

    .landing-cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-address {
        grid-template-columns: 1fr;
    }

    .landing-faq-list {
        grid-template-columns: 1fr;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-card {
        max-width: none;
    }
}

@media (max-width: 820px) {
    .landing-benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-audience-intro h2 {
        font-size: 1.3rem;
    }

    .landing-metrics {
        grid-template-columns: 1fr;
    }

    .landing-header .btn,
    .landing-actions .btn {
        width: auto;
    }
}

@media (max-width: 640px) {
    .landing-page,
    .auth-page {
        padding: 12px;
    }

    .landing-header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .landing-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .landing-benefits-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        border-radius: 16px;
    }

    .landing-spotlight {
        padding: 18px;
    }

    .landing-footer-socials {
        flex-wrap: wrap;
    }

    .landing-footer-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-footer-meta-right {
        text-align: right;
    }

    .landing-social-link {
        width: 38px;
        height: 38px;
    }

    .policy-card {
        padding: 18px;
        border-radius: 14px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .top-nav,
    .btn,
    .tab-nav {
        display: none;
    }
    
    .glass-panel {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
