:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-light: #14b8a6;
    --yellow: #fbbf24;
    --yellow-dark: #f59e0b;
    --dark: #134e4a;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --error: #dc2626;
    --success: #16a34a;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(13, 148, 136, 0.12);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.urdu { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 640px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--teal);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-icon { font-size: 1.75rem; }

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

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active { color: var(--teal); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-yellow { background: var(--yellow); color: var(--dark); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--error); color: white; border-color: var(--error); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-light) 100%);
    color: var(--white);
    padding: 60px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 16px 0;
}

.hero-urdu { font-size: 1.25rem; opacity: 0.95; margin-bottom: 16px; }
.hero-desc { opacity: 0.9; margin-bottom: 24px; max-width: 520px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-badges { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; opacity: 0.9; }

.hero-image img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: var(--radius);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-yellow { background: var(--yellow); color: var(--dark); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-teal { background: var(--dark); color: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--dark); }
.section-header p { color: var(--text-muted); margin-top: 8px; }
.highlight { color: var(--teal); }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 2px solid var(--teal);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card .urdu { font-size: 0.95rem; color: var(--text-muted); }

/* Shifts */
.shifts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.shift-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    position: relative;
    border-top: 4px solid var(--teal);
}

.shift-card.shift-full { border-top-color: var(--yellow); }
.shift-card.shift-home { border-top-color: var(--teal-light); }

.shift-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--yellow);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

.shift-card h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 12px; }
.shift-time { color: var(--text-muted); margin-bottom: 8px; }
.shift-salary { font-weight: 700; color: var(--teal); font-size: 1.05rem; }
.shift-card hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.shift-alt { color: var(--text-muted); font-size: 0.85rem; }
.salary-note { margin-top: 32px; color: var(--text-muted); font-weight: 500; }

/* Eligibility */
.eligibility-box {
    background: var(--white);
    border: 2px solid var(--teal);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.eligibility-box h2 { color: var(--dark); margin-bottom: 32px; }

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

.elig-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
}

.elig-item span:first-child { font-size: 2rem; }
.elig-item.highlight-item { background: #fef3c7; border: 2px solid var(--yellow); }
.eligibility-note { color: var(--text-muted); font-weight: 500; }

/* Requirements */
.req-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.req-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.req-card span { font-size: 2.5rem; display: block; margin-bottom: 12px; }

/* Offices */
.office-hero {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.office-hero img { width: 100%; height: 300px; object-fit: cover; }

.offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.office-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.office-card img { width: 100%; height: 200px; object-fit: cover; }
.office-card h3 {
    padding: 16px;
    text-align: center;
    color: var(--dark);
    background: var(--yellow);
    font-weight: 700;
}

/* CTA */
.cta h2 { font-size: 2rem; margin-bottom: 12px; }
.cta p { margin-bottom: 24px; opacity: 0.9; }

/* Contact */
.contact-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.contact-box a { color: var(--teal); }

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-brand h3 { margin-bottom: 12px; }
.footer-brand p { opacity: 0.85; font-size: 0.9rem; margin-bottom: 8px; }

.site-footer h4 { margin-bottom: 16px; color: var(--yellow); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }

.social-links { display: flex; gap: 12px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Forms */
.form-page { min-height: 60vh; }

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-card h1 { color: var(--dark); margin-bottom: 8px; }
.form-subtitle { color: var(--text-muted); margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.form-group small { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.radio-group { display: flex; gap: 20px; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.radio-label.disabled { opacity: 0.5; cursor: not-allowed; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--error); }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.step {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-muted);
}

.step.active { background: var(--teal); color: white; }
.step.done { background: #d1fae5; color: var(--teal-dark); }

.amount-box {
    background: #ecfdf5;
    border: 2px solid var(--teal);
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
}

.amount-box.free { background: #fef3c7; border-color: var(--yellow); }

.payment-methods { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.payment-method-card {
    display: block;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.payment-method-card:has(input:checked) {
    border-color: var(--teal);
    box-shadow: var(--shadow);
    background: #f0fdfa;
}

.payment-method-card input { margin-right: 12px; }
.pm-content h3 { color: var(--teal); margin-bottom: 8px; }
.account-num { font-family: monospace; font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.pm-instructions { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

.success-card { padding: 60px 40px; }
.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}

.success-card p { margin-bottom: 12px; color: var(--text-muted); }
.success-card .btn { margin-top: 24px; }

/* Install */
.install-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.install-box {
    background: white;
    padding: 48px;
    border-radius: var(--radius);
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow);
}

.install-box h1 { color: var(--success); margin-bottom: 16px; }
.install-box ul { list-style: none; margin: 24px 0; text-align: left; }
.install-box li { margin-bottom: 12px; }
.install-box a { color: var(--teal); font-weight: 600; }

/* Admin */
.admin-body { background: #f1f5f9; min-height: 100vh; }

.admin-header {
    background: var(--dark);
    color: white;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header a { color: white; text-decoration: none; }
.admin-brand { font-weight: 800; font-size: 1.1rem; }

.admin-nav {
    display: flex;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    overflow-x: auto;
}

.admin-nav a {
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.admin-nav a:hover, .admin-nav a.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.admin-content { padding: 32px 24px; max-width: 1400px; margin: 0 auto; }

.admin-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.admin-card h2 { font-size: 1.25rem; color: var(--dark); margin-bottom: 20px; }

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

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 4px solid var(--teal);
}

.stat-card h3 { font-size: 2rem; color: var(--teal); }
.stat-card p { color: var(--text-muted); font-size: 0.9rem; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th { background: var(--bg); font-weight: 600; color: var(--dark); }
.admin-table tr:hover { background: #f8fafc; }

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-submitted { background: #dbeafe; color: #1e40af; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.settings-grid .form-group.full { grid-column: 1 / -1; }

.receipt-thumb {
    max-width: 120px;
    max-height: 80px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark), var(--teal));
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.login-box h1 { text-align: center; color: var(--dark); margin-bottom: 24px; }

.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .form-group { flex: 1; min-width: 140px; margin-bottom: 0; }

/* Responsive */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-image { order: -1; max-width: 320px; margin: 0 auto; }
    .hero-image img { max-height: 360px; }
    .features-grid, .shifts-grid, .offices-grid { grid-template-columns: repeat(2, 1fr); }
    .eligibility-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { -webkit-text-size-adjust: 100%; }
    body { overflow-x: hidden; }

    .container { padding: 0 16px; }

    .nav-toggle { display: flex; z-index: 102; }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 101;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    body.nav-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    body.nav-open::after {
        content: '';
        position: fixed;
        inset: 0;
        top: 70px;
        background: rgba(15, 23, 42, 0.45);
        z-index: 100;
    }

    .main-nav a {
        padding: 12px 14px;
        border-radius: 8px;
    }

    .main-nav a:hover { background: var(--bg); }
    .main-nav .btn { width: 100%; margin-top: 8px; }

    .hero { padding: 36px 0 48px; }
    .hero h1 { font-size: 1.65rem; line-height: 1.2; }
    .hero-urdu { font-size: 1.1rem; }
    .hero-desc { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
    .hero-actions .btn { width: 100%; }
    .hero-badges { font-size: 0.8rem; text-align: center; align-items: center; }
    .hero-image { max-width: 280px; }

    .section { padding: 44px 0; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 1.45rem; }

    .badge { font-size: 0.72rem; padding: 6px 12px; line-height: 1.4; }

    .features-grid, .shifts-grid, .offices-grid, .req-grid, .eligibility-grid { grid-template-columns: 1fr; }
    .feature-card, .shift-card, .req-card { padding: 24px 18px; }

    .eligibility-box { padding: 28px 18px; }
    .eligibility-box h2 { font-size: 1.25rem; margin-bottom: 24px; }

    .office-hero img { height: 200px; }
    .office-card img { height: 180px; }

    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-card { padding: 22px 18px; }
    .form-page .container-sm { padding: 0 12px; }

    .steps { justify-content: center; }
    .step { font-size: 0.72rem; padding: 5px 10px; }

    .payment-methods { gap: 12px; }
    .payment-method-card { padding: 16px; }
    .payment-method-card input[type="radio"] { display: block; margin: 0 0 10px; }

    .btn { min-height: 44px; }
    .btn-lg { padding: 14px 20px; font-size: 1rem; }

    .contact-box { padding: 28px 18px; }
    .cta h2 { font-size: 1.5rem; }

    .admin-header {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        padding: 12px 16px;
        gap: 8px;
    }

    .admin-content { padding: 20px 16px; }
    .admin-card { padding: 18px 14px; overflow-x: auto; }
    .admin-table { font-size: 0.82rem; min-width: 600px; }
    .admin-table th, .admin-table td { padding: 10px 8px; }

    .login-box { margin: 16px; padding: 28px 22px; }
    .install-box { margin: 16px; padding: 32px 22px; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1rem; max-width: 160px; line-height: 1.2; }
    .header-inner { height: 64px; }
    .main-nav { top: 64px; max-height: calc(100vh - 64px); }
    body.nav-open::after { top: 64px; }

    .hero h1 { font-size: 1.45rem; }
    .shift-badge { position: static; display: inline-block; margin-bottom: 10px; }
    .salary-note { font-size: 0.88rem; padding: 0 8px; }
    .success-card { padding: 40px 20px; }
    .success-icon { width: 64px; height: 64px; font-size: 2rem; }
}
