/* قرية ودالهبيل - Full Web Layout */
:root {
    --primary: #2D5A27;
    --primary-dark: #1E3D1A;
    --primary-light: #4A7C43;
    --accent: #8B7355;
    --bg: #F5F7F4;
    --card: #FFFFFF;
    --text: #1A1A1A;
    --muted: #6B7280;
    --border: #E5E7EB;
    --container: 1280px;
    --header-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main { flex: 1; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.brand strong { display: block; font-size: 18px; }
.brand span { display: block; font-size: 11px; opacity: 0.85; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.18);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-btn {
    color: white;
    text-decoration: none;
    font-size: 20px;
    position: relative;
    padding: 6px;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px !important;
    font-weight: 600;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.badge-dot {
    position: absolute;
    top: 0;
    left: 0;
    background: #EF4444;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    margin-right: auto;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--primary-dark);
    padding: 12px 24px 20px;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
}

.mobile-nav.open { display: flex; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-sm { padding: 8px 16px; font-size: 14px; }

.header-actions .btn-outline { color: white; border-color: rgba(255,255,255,0.6); }
.header-actions .btn-primary { background: white; color: var(--primary); }
.header-actions .btn-primary:hover { background: #f0f0f0; color: var(--primary-dark); }

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.hero-slider { position: relative; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-logo {
    display: none;
}

.hero-title {
    animation: fadeUp 0.6s ease;
}

.hero-subtitle {
    animation: fadeUp 0.6s ease 0.15s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-cta-wrap {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
}

/* CTA bar — منفصل عن البanner لتجنب التداخل */
.home-cta-bar {
    padding: 0 24px 8px;
    margin-top: -28px;
    position: relative;
    z-index: 12;
}

.home-cta-bar .container {
    display: flex;
    justify-content: center;
}

.btn-submit-case {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    padding: 16px 32px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 28px rgba(30, 61, 26, 0.25);
    animation: pulseCta 2s ease-in-out infinite;
}

.home-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 520px;
}

.home-cta-buttons .btn-submit-case { flex: 1; min-width: 180px; animation: none; }
.home-cta-buttons .btn-login {
    flex: 1;
    min-width: 140px;
    padding: 16px 24px;
    border-radius: 999px;
    text-align: center;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(30, 61, 26, 0.12);
}

.home-cta-buttons .btn-login:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

.home-cta-bar--no-hero {
    margin-top: 24px;
    padding-top: 8px;
}

@keyframes pulseCta {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 28px rgba(30, 61, 26, 0.25); }
    50% { transform: scale(1.02); box-shadow: 0 14px 32px rgba(30, 61, 26, 0.32); }
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dots span.active {
    background: var(--primary-light);
    width: 28px;
    border-radius: 5px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(30,61,26,0.75));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: white;
}

.hero-overlay p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
}

.hero-overlay h2.hero-title,
.hero-overlay .hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta .btn-primary {
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    font-size: 16px;
}

.hero-cta .btn-outline {
    border-color: white;
    color: white;
    padding: 14px 32px;
    font-size: 16px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 48px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--muted);
    font-size: 16px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(45,90,39,0.15);
    border-color: rgba(45,90,39,0.2);
}

.feature-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.feature-card .arrow {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}

/* ===== FACILITIES ===== */
.facilities-section {
    background: white;
    padding: 48px 0;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.facility-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s;
}

.facility-card:hover { transform: translateY(-2px); }

.facility-card .thumb {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(45,90,39,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px;
}

.facility-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.facility-card p { font-size: 13px; color: var(--muted); }

.facilities-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s;
}

.facilities-banner:hover { transform: translateY(-2px); }

.facilities-banner .icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.facilities-banner h3 { font-size: 22px; margin-bottom: 4px; }
.facilities-banner p { opacity: 0.9; font-size: 15px; }

/* ===== PAGE LAYOUT ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 40px 0;
    margin-bottom: 32px;
}

.page-header h1 { font-size: 32px; margin-bottom: 8px; }
.page-header p { opacity: 0.9; font-size: 16px; }

.page-content { padding: 0 0 48px; }

.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* ===== CARDS ===== */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.app-card {
    background: var(--card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.app-card a { color: inherit; text-decoration: none; }

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.sidebar-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 16px;
}

/* ===== CASES TYPE FILTER (mobile) ===== */
.cases-type-filter {
    display: none;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.cases-type-filter::-webkit-scrollbar { display: none; }

.filter-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 10px 16px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== POST ===== */
.post-card .post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(45,90,39,0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.post-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.post-card .content { color: var(--muted); line-height: 1.7; font-size: 15px; }

.post-actions {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.post-actions form { display: inline; }
.post-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.post-actions button.liked { color: #EF4444; }

/* ===== BADGES & PROGRESS ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-approved { background: #DCFCE7; color: #166534; }
.badge-rejected { background: #FEE2E2; color: #991B1B; }
.badge-announcement { background: rgba(45,90,39,0.15); color: var(--primary); }

.progress-bar {
    height: 10px;
    background: rgba(45,90,39,0.15);
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar .fill {
    height: 100%;
    background: var(--primary);
    border-radius: 8px;
    transition: width 0.3s;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.tabs a {
    flex: 1;
    text-align: center;
    padding: 16px 24px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tabs a:hover { color: var(--primary); background: rgba(45,90,39,0.04); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); background: white; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,90,39,0.15);
}

textarea.form-control { min-height: 120px; resize: vertical; }

.form-card {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin: 16px auto;
    font-size: 14px;
    max-width: var(--container);
}

.alert-success { background: #DCFCE7; color: #166534; }
.alert-error { background: #FEE2E2; color: #991B1B; }

/* ===== AUTH ===== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-box {
    width: 100%;
    max-width: 460px;
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.auth-box .auth-logo { font-size: 64px; margin-bottom: 16px; }
.auth-box h1 { color: var(--primary); font-size: 28px; margin-bottom: 4px; }
.auth-box .subtitle { color: var(--muted); margin-bottom: 32px; }
.auth-form { text-align: right; }
.auth-link { margin-top: 20px; }
.auth-link a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ===== PROFILE ===== */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.profile-sidebar {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(45,90,39,0.15);
    color: var(--primary);
    font-size: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.settings-list { display: flex; flex-direction: column; gap: 8px; }

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.settings-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(45,90,39,0.1);
}

.settings-item .icon { font-size: 22px; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-brand strong { font-size: 22px; display: block; margin-bottom: 8px; }
.footer-brand p { opacity: 0.8; margin-bottom: 24px; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    opacity: 0.85;
    font-size: 14px;
}

.footer-copy {
    opacity: 0.6;
    font-size: 13px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 32px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
    font-size: 14px;
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--muted);
}

.empty-state .icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 16px; margin-bottom: 20px; }

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px auto 0;
    position: relative;
    z-index: 10;
    padding: 0 24px;
    max-width: var(--container);
}

.stat-item {
    background: white;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.stat-item .icon { font-size: 28px; margin-bottom: 8px; }
.stat-item strong { display: block; font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.stat-item span { font-size: 13px; color: var(--muted); }

/* ===== HOME CASES SCROLL ===== */
.section-cases-home .section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.section-sub {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.cases-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.cases-scroll::-webkit-scrollbar { height: 6px; }
.cases-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.case-card-mini {
    flex: 0 0 min(300px, 85vw);
    scroll-snap-align: start;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.case-card-mini h4 {
    margin: 10px 0 8px;
    font-size: 16px;
    line-height: 1.4;
}

.case-card-mini p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.progress-message {
    margin-top: 10px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
}

.progress-amount {
    margin-top: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .page-layout { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
    .cards-grid { grid-template-columns: 1fr; }
    .cases-filter-desktop { display: none; }
    .cases-type-filter { display: flex; }
}

@media (max-width: 768px) {
    .main-nav, .header-actions { display: none; }
    .menu-toggle { display: block; }
    .header-inner { gap: 16px; }
    .hero { height: 280px; }
    .home-cta-bar { margin-top: 16px; padding: 0 16px; }
    .hero-overlay h2 { font-size: 28px; }
    .hero-overlay p { font-size: 15px; }
    .feature-grid { grid-template-columns: 1fr; }
    .facilities-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 32px 0; }
    .footer-links, .footer-features { gap: 16px; }
    .stats-bar { padding: 0 16px; gap: 12px; }
    .stat-item { padding: 16px 12px; }
}

@media (max-width: 480px) {
    .facilities-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
}

/* ===== BANK PAYMENT ===== */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bank-card { cursor: pointer; }
.bank-card input { position: absolute; opacity: 0; pointer-events: none; }

.bank-card-inner {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.bank-card input:checked + .bank-card-inner {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.15);
}

.bank-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.account-number {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 8px;
}

.btn-copy {
    padding: 6px 14px;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-copy:hover, .btn-copy.copied {
    background: var(--primary);
    color: white;
}

.info-box {
    background: #FEF3C7;
    color: #92400E;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.form-error {
    display: block;
    color: #DC2626;
    font-size: 13px;
    margin-top: 6px;
}

.badge-rejected { background: #FEE2E2; color: #991B1B; }

@media (max-width: 600px) {
    .bank-grid { grid-template-columns: 1fr; }
}

/* ===== PAYMENT CATEGORIES (Subscriptions & Fees) ===== */
.payment-hub-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #1e3d1a) 100%);
}

.payment-hub-hero {
    display: flex;
    align-items: center;
    gap: 20px;
}

.payment-hub-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
}

.payment-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.payment-category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 28px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.payment-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(45, 90, 39, 0.12);
}

.payment-category-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.payment-category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}

.payment-category-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.payment-category-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.payment-category-cta {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.payment-history-card { margin-bottom: 16px; }

.payment-history-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.payment-history-icon { font-size: 28px; }

.payment-history-top > div { flex: 1; }

.payment-history-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 12px;
}

@media (max-width: 600px) {
    .payment-hub-hero { flex-direction: column; text-align: center; }
    .payment-category-grid { grid-template-columns: 1fr; }
}


/* ===== LIVE CHAT ===== */
.chat-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 280px);
    min-height: 420px;
    max-height: 680px;
    padding: 0;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
}

.chat-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.chat-bubble.mine {
    align-self: flex-start;
    background: #DCFCE7;
    border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
    align-self: flex-end;
    border-bottom-left-radius: 4px;
}

.chat-bubble.staff {
    border: 1px solid rgba(45, 90, 39, 0.25);
}

.chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--muted);
}

.chat-meta strong {
    color: var(--primary);
    font-size: 13px;
}

.chat-bubble p {
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

.chat-input-row {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--border);
    background: white;
}

.chat-input-row .form-control {
    flex: 1;
}

.chat-input-row .btn-primary {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .chat-layout {
        height: calc(100vh - 220px);
    }
}
