/* RebuildKita PH Revamp — Full-width modern UI */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-deep: #0f766e;
    --primary-muted: rgba(13, 148, 136, 0.14);
    --primary-foreground: #ffffff;
    --bg-base: #f1f5f9;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --success: #059669;
    --success-bg: #ecfdf5;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 180ms;
    --duration-normal: 280ms;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --container-max: 1440px;
    --header-height: 108px;
    --touch-target: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg-base);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
/* Faster tap response on touch devices */
@media (hover: none) and (pointer: coarse) {
    a, button {
        touch-action: manipulation;
    }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    outline: 2px solid var(--primary-foreground);
    outline-offset: 2px;
}

/* Keyboard focus for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Language choice modal (first-visit popup) */
.lang-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 1;
    visibility: visible;
    transition: opacity var(--duration-normal) var(--ease-out), visibility var(--duration-normal);
}
.lang-modal-overlay.lang-modal-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.lang-modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 32px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
@media (max-width: 480px) {
    .lang-modal-overlay { padding: 16px; align-items: flex-start; padding-top: max(20px, env(safe-area-inset-top)); }
    .lang-modal { padding: 24px 20px; max-width: 100%; }
    .lang-modal-btn { min-height: var(--touch-target); }
}
.lang-modal-logo {
    display: block;
    margin: 0 auto 20px;
    max-height: 48px;
    width: auto;
}
.lang-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px;
    line-height: 1.4;
}
.lang-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.lang-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
    cursor: pointer;
}
.lang-modal-btn-yes {
    background: var(--bg-dark);
    color: #fff;
    border: 2px solid var(--bg-dark);
}
.lang-modal-btn-yes:hover {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
}
.lang-modal-btn-no {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text);
}
.lang-modal-btn-no:hover {
    background: var(--gray-100);
    color: var(--text);
    border-color: var(--border-strong);
}

/* Full-width container: content centered, max-width for readability */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: clamp(20px, 5vw, 48px);
    padding-right: clamp(20px, 5vw, 48px);
}

/* ----- Header: full width ----- */
.app-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.app-header .header-inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.lang-link {
    text-decoration: none;
    color: var(--text-muted);
    padding: 2px 4px;
    border-radius: var(--radius-sm);
}
.lang-link.is-active {
    background: var(--primary-muted);
    color: var(--primary);
    font-weight: 600;
}
.lang-separator {
    opacity: 0.6;
}
.app-header .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--duration-fast) var(--ease-out);
}
.app-header .logo:hover { opacity: 0.9; }
.app-header .logo-img {
    height: 96px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    display: block;
}
.app-header .logo-mark {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.app-header .tagline {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}
@media (max-width: 900px) { .app-header .tagline { display: none; } }
.app-header nav { display: flex; align-items: center; gap: 8px; }
.app-header .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}
.app-header .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 16px;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-md);
    transition: color var(--duration-fast), background var(--duration-fast);
}
.app-header .nav-links a:hover {
    color: var(--primary);
    background: var(--primary-muted);
}
.app-header .nav-actions { display: flex; align-items: center; gap: 12px; }
.header-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}
.header-social a {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
    font-size: 0.9rem;
}
.header-social a i {
    font-size: 0.9rem;
}
.header-social a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-muted);
    transform: translateY(-1px);
}

.nav-cta-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.app-header .user-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-header .nav-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
    display: inline-block;
    border: 2px solid rgba(148, 163, 184, 0.6);
    background: linear-gradient(135deg, #0d9488, #0f766e);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.user-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e5f9f6;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ----- Buttons ----- */
a.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-height: var(--touch-target);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--duration-fast), box-shadow var(--duration-normal), background var(--duration-fast);
}
a.button.primary, button.primary, button[type="submit"] {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}
a.button.primary:hover, button.primary:hover, button[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}
a.button.secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}
a.button.secondary:hover {
    background: var(--gray-100);
    border-color: var(--border-strong);
}
a.button.outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
a.button.outline:hover {
    background: var(--primary-muted);
    border-color: var(--primary);
}

/* ----- Main: full width, no max-width on wrapper ----- */
main {
    width: 100%;
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* ----- Hero: full viewport width, edge-to-edge ----- */
.hero-modern {
    width: 100%;
    min-height: min(85vh, 640px);
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #0d9488 0%, #0f766e 35%, #134e4a 70%, #0f172a 100%);
    color: white;
    padding: clamp(72px, 14vw, 140px) clamp(24px, 6vw, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255,255,255,0.14), transparent 50%),
                radial-gradient(ellipse 70% 50% at 80% 90%, rgba(255,255,255,0.06), transparent),
                radial-gradient(ellipse 50% 40% at 10% 70%, rgba(255,255,255,0.04), transparent);
    pointer-events: none;
}
.hero-modern .hero-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}
.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.hero-title,
.hero-modern h1.hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.15);
}
.hero-lead,
.hero-modern p.hero-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    opacity: 0.95;
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-modern .hero-actions .button {
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal), background var(--duration-fast), border-color var(--duration-fast);
}
.hero-cta-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}
.hero-modern .hero-actions .hero-cta-primary:hover {
    background: #0d9488;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
/* Override global .button.outline in hero: transparent fill, white border & text */
.hero-modern .hero-actions .button.outline,
.hero-modern .hero-actions .hero-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.hero-modern .hero-actions .button.outline:hover,
.hero-modern .hero-actions .hero-cta-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Hero with background image */
.hero-modern.hero-with-bg {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.92) 0%, rgba(15, 118, 110, 0.9) 40%, rgba(19, 78, 74, 0.88) 100%);
}
.hero-modern .hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
}
.hero-modern.hero-with-bg .hero-inner { position: relative; z-index: 1; }

/* Hero with background video overlay */
.hero-modern .hero-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-modern .hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-modern .hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.88) 0%, rgba(15, 118, 110, 0.85) 40%, rgba(19, 78, 74, 0.9) 100%);
    pointer-events: none;
}
.hero-modern.hero-with-video .hero-inner { position: relative; z-index: 1; }

/* ----- Sections: full width block, content in container ----- */
.section-modern {
    width: 100%;
    padding: clamp(48px, 8vw, 80px) clamp(24px, 5vw, 48px);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}
.section-modern:nth-of-type(even) {
    background: var(--bg-base);
}
.section-modern .section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}
/* Section label (overline) for homepage */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-label-light {
    color: rgba(255,255,255,0.9);
}
.section-modern h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}
.section-modern.section-stats h2,
.section-modern.section-cta h2 { color: inherit; }
.section-lead {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 56ch;
}
.section-modern.section-stats .section-lead,
.section-modern.section-cta .section-lead { color: inherit; opacity: 0.95; }
.section-modern.section-cta .section-lead { color: var(--text); }

/* Anchor offset for sticky header */
#main-content [id] { scroll-margin-top: calc(var(--header-height, 108px) + 16px); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 28px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal), border-color var(--duration-fast);
    box-shadow: var(--shadow-xs);
}
.section-modern:nth-of-type(even) .card {
    background: white;
    box-shadow: var(--shadow-sm);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--border-strong);
}
.section-how .card:hover,
.section-why .card:hover { border-color: var(--primary); }
.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Cards with images */
.cards-with-images .card {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
}
.card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-normal) var(--ease-out);
}
.card:hover .card-image {
    transform: scale(1.04);
}
.cards-with-images .card h3,
.cards-with-images .card p,
.cards-with-images .card .card-link {
    padding-left: 24px;
    padding-right: 24px;
}
.cards-with-images .card h3 { padding-top: 20px; }
.cards-with-images .card p { padding-bottom: 12px; }
.card-link {
    display: inline-block;
    padding: 0 24px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color var(--duration-fast), gap var(--duration-fast);
}
.card-link:hover { color: var(--primary-hover); text-decoration: underline; }

/* Card with icon (no photo) */
.card-icon .card-icon-wrap {
    width: 100%;
    padding: 28px 24px 0;
    display: flex;
    justify-content: flex-start;
}
.card-icon-emoji {
    font-size: 2.5rem;
    line-height: 1;
    opacity: 0.9;
}
.card-icon-svg {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--primary-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-icon-img {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
}
.card-icon .card h3 { padding-top: 16px; }

/* ----- Our Story: problem & solution (interactive) ----- */
.section-story {
    background: var(--bg-base);
    border-top: 1px solid var(--border);
}
.section-story-inner { max-width: 820px; }
.section-story-lead { margin-bottom: 32px; }
.story-interactive {
    position: relative;
}
.story-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.story-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}
.story-tab {
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color var(--duration-fast), border-color var(--duration-fast);
    -webkit-tap-highlight-color: transparent;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}
.story-tab:hover { color: var(--text); }
#story-tab-1:checked ~ .story-tabs .story-tab:nth-child(1),
#story-tab-2:checked ~ .story-tabs .story-tab:nth-child(2),
#story-tab-3:checked ~ .story-tabs .story-tab:nth-child(3) {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.story-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.story-panels {
    position: relative;
    min-height: 280px;
}
.story-panel {
    display: none;
    animation: storyFadeIn var(--duration-normal) var(--ease-out);
}
@keyframes storyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#story-tab-1:checked ~ .story-panels .story-panel-1,
#story-tab-2:checked ~ .story-panels .story-panel-2,
#story-tab-3:checked ~ .story-panels .story-panel-3 {
    display: block;
}
.story-panel-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 36px 36px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
}
.story-panel-number {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.story-panel-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.story-panel-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 14px;
}
.story-panel-content p:last-of-type { margin-bottom: 0; }
.story-panel-content .story-cta {
    margin-top: 24px;
}

/* ----- Impact numbers / stats section ----- */
.section-modern.section-stats {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 45%, #134e4a 85%, #0f172a 100%);
    color: white;
    border-top: none;
    position: relative;
    overflow: hidden;
}
.section-modern.section-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}
.section-modern.section-stats .section-inner { position: relative; z-index: 1; }
.section-modern.section-stats h2 { color: white; }
.section-modern.section-stats .section-lead { color: rgba(255,255,255,0.9); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 24px;
    margin-top: 16px;
}
.stat-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: transform var(--duration-normal) var(--ease-out), background var(--duration-fast), border-color var(--duration-fast);
}
.stat-card:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-4px);
}
.stat-number {
    display: block;
    font-size: clamp(2.25rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.stat-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.95;
}
.stat-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.85;
    margin: 0;
}

/* ----- Top Applicants section: infinite carousel ----- */
.section-top-applicants .section-inner { max-width: 100%; }
.top-applicants-carousel-wrap {
    overflow: hidden;
    margin-top: 24px;
    margin-left: calc(-1 * clamp(24px, 5vw, 48px));
    margin-right: calc(-1 * clamp(24px, 5vw, 48px));
    padding: 8px 0 24px;
}
.top-applicants-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: top-applicants-carousel 60s linear infinite;
}
.top-applicants-track:hover {
    animation-play-state: paused;
}
@keyframes top-applicants-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.top-applicant-card {
    flex: 0 0 var(--top-applicant-card-width, 240px);
    width: var(--top-applicant-card-width, 240px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px 16px;
    text-align: center;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal), border-color var(--duration-fast);
    box-shadow: var(--shadow-sm);
}
.top-applicant-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.top-applicant-avatar-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-muted);
    background: var(--gray-100);
}
.top-applicant-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.top-applicant-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.3;
}
.top-applicant-position {
    font-size: 0.85rem;
    color: var(--primary-deep);
    font-weight: 600;
    margin: 0 0 10px;
}
.top-applicant-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}
.top-applicant-badges .status-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
}
.top-applicant-job-success {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    width: 100%;
}
.top-applicant-contact {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    padding: 10px 14px;
    min-height: auto;
}
.top-applicant-contact:hover {
    transform: none;
}

/* ----- Testimonials section ----- */
.section-testimonials .section-inner { max-width: 1000px; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 28px;
    margin-top: 12px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 26px;
    margin: 0;
    position: relative;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal), border-color var(--duration-fast);
    box-shadow: var(--shadow-sm);
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 22px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
    margin: 0 0 20px;
}
.testimonial-quote::before,
.testimonial-quote::after { content: none; }
.testimonial-footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.testimonial-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}
.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ----- FAQ: interactive accordion ----- */
/* ----- Low-tech / SMS section ----- */
.section-sms .section-inner { max-width: 640px; }
.sms-card {
    background: var(--primary-muted);
    border: 1px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    margin-top: 16px;
    text-align: center;
}
.sms-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 20px;
}
.sms-body strong { color: var(--primary-deep); }
.sms-card .button { margin-bottom: 12px; }
.sms-cta-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.section-faq .section-faq-inner { max-width: 680px; }
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
}
.faq-item {
    border: 1px solid var(--border);
    border-bottom: none;
    background: var(--bg-card);
    border-radius: 0;
    transition: border-color var(--duration-fast), background var(--duration-fast);
}
.faq-item:first-of-type { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.faq-item:last-of-type { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.faq-item:only-of-type { border-radius: var(--radius-md); }
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] {
    border-color: var(--primary);
    background: var(--primary-muted);
}
.faq-item[open] .faq-question {
    color: var(--primary);
    font-weight: 600;
}
.faq-question {
    list-style: none;
    padding: 18px 20px 18px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--touch-target);
    transition: color var(--duration-fast);
    -webkit-tap-highlight-color: transparent;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-out), color var(--duration-fast);
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
    color: var(--primary);
}
.faq-answer {
    padding: 0 24px 20px;
}
.faq-answer p {
    margin: 0;
    padding: 0 0 4px 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* Impact section: split layout with image */
.section-impact .section-inner-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.impact-content h2 { margin-bottom: 12px; }
.impact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 28px;
}
.impact-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}
.impact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.impact-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--gray-100);
}
.impact-image {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA section */
.section-cta {
    text-align: center;
    background: linear-gradient(180deg, var(--primary-muted) 0%, rgba(255,255,255,0.5) 100%);
    border-top: 1px solid var(--border);
}
.section-cta .section-inner {
    padding-top: clamp(56px, 10vw, 80px);
    padding-bottom: clamp(56px, 10vw, 80px);
}
.section-cta .section-lead {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}
.section-cta .cta-actions .button {
    padding: 16px 32px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
}
.section-cta .cta-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ----- Dashboard stats & charts ----- */
.dashboard-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.dashboard-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: box-shadow var(--duration-fast), border-color var(--duration-fast);
}
.dashboard-stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.dashboard-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.dashboard-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 24px;
}
.dashboard-chart-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 360px;
}
.dashboard-chart-wrap h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}
.dashboard-chart-wrap canvas {
    max-height: 220px;
}

/* ----- Dashboard layout with sidebar ----- */
.layout-dashboard main {
    background: var(--bg-base);
}
.dashboard-shell {
    padding-top: 8px;
}
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}
.dashboard-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 20px 18px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--header-height) + 16px);
}
.dashboard-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.dashboard-sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.dashboard-sidebar-avatar img,
.dashboard-sidebar-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}
.dashboard-sidebar-avatar .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #ecfdf5;
    font-weight: 700;
    font-size: 1.1rem;
}
.dashboard-sidebar-meta {
    min-width: 0;
}
.dashboard-sidebar-name {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-sidebar-role {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}
.dashboard-sidebar-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--primary-muted);
    color: var(--primary-deep);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}
.dashboard-sidebar-nav {
    margin-top: 12px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}
.dashboard-sidebar-nav h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    margin-bottom: 8px;
}
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}
.sidebar-nav a:hover {
    background: var(--primary-muted);
    color: var(--primary);
    transform: translateX(1px);
}
.sidebar-nav a.is-active {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}
.sidebar-nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-nav-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.sidebar-nav-icon-with-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.sidebar-nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: #dc2626;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.sidebar-nav-badge-zero {
    background: #94a3b8;
    box-shadow: none;
}
.sidebar-nav-label {
    flex: 1 1 auto;
}
.sidebar-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}
.sidebar-pill-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
.dashboard-main {
    min-width: 0;
}
.layout-dashboard .section-modern {
    padding-top: 32px;
}

/* ----- Admin tables ----- */
.admin-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    font-weight: 600;
    color: var(--text);
    background: var(--bg-base);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-100); }
.admin-table small { font-size: 0.8rem; }
.report-table-wrap {
    max-width: 320px;
    margin: 12px 0;
}
.report-table-wrap .admin-table th,
.report-table-wrap .admin-table td { padding: 10px 14px; }

/* ----- Footer: full width ----- */
.app-footer {
    width: 100%;
    background: var(--bg-dark);
    color: rgba(255,255,255,0.85);
    padding: clamp(40px, 6vw, 56px) clamp(24px, 5vw, 48px);
    font-size: 0.9rem;
    margin-top: 0;
}
.app-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.app-footer p { margin: 0; }
.app-footer .footer-tagline {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
    font-size: 1rem;
}
.footer-social a i {
    font-size: 1rem;
}
.footer-social a:hover {
    color: #0f172a;
    background: #e2e8f0;
    border-color: #e2e8f0;
    transform: translateY(-1px);
}

/* ----- Utility: container for any page content ----- */
.page-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 48px);
}

/* ----- Forms (for future auth pages) ----- */
label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], textarea, select {
    padding: 12px 16px;
    min-height: var(--touch-target);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-card);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
    width: 100%;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-muted);
}
textarea { resize: vertical; min-height: 120px; }
@media (max-width: 768px) {
    input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], select {
        font-size: 16px; /* prevents iOS zoom on focus */
    }
}

/* ----- Auth pages ----- */
.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.auth-card .auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}
.auth-card .auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-card .auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.auth-card .auth-footer a:hover { text-decoration: underline; }
.auth-card form { margin-top: 24px; }
.auth-card label { margin-bottom: 0; }

/* Avatar upload drop zone on register/profile */
.avatar-upload-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.avatar-upload-label span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}
.avatar-drop-zone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
    cursor: pointer;
    transition: border-color var(--duration-fast), background var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast);
}
.avatar-drop-zone:hover {
    border-color: var(--primary);
    background: var(--primary-muted);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.avatar-drop-zone strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.avatar-drop-zone small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.avatar-drop-zone input[type="file"] {
    display: none;
}

/* ----- Mobile header: hamburger nav ----- */
.header-inner {
    position: relative;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text);
}
.header-inner .nav-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .app-header .header-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--header-height);
        padding: 12px 20px;
    }
    .header-inner .nav-wrapper {
        width: 100%;
        justify-content: flex-end;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
    .app-header nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .app-header .nav-links,
    .app-header .nav-actions {
        width: 100%;
    }
    .app-header .nav-links {
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 8px;
    }
    .app-header .nav-links a {
        width: 100%;
        justify-content: flex-start;
    }
    .app-header .nav-actions {
        justify-content: center;
        margin-top: 6px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    .app-header .nav-actions .header-social {
        justify-content: center;
    }
    .app-header .nav-actions .nav-cta-row {
        justify-content: center;
    }
    /* collapse behavior */
    .app-header nav.is-collapsed .nav-links,
    .app-header nav.is-collapsed .nav-actions {
        display: none;
    }
}

/* Password show/hide toggle */
.password-field .password-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.password-input-wrap input[type="password"],
.password-input-wrap input[type="text"] {
    flex: 1 1 auto;
}
.password-toggle-button {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.password-toggle-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-muted);
}

/* ----- Profile pages ----- */
.profile-form-wrap { max-width: 560px; }
.profile-email {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.profile-form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.profile-form-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 8px;
    padding-bottom: 8px;
}
.profile-form-heading:first-of-type { margin-top: 0; }
.profile-form label { margin-bottom: 0; }
.profile-field-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 400;
}

/* ----- Filter form ----- */
.filter-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.filter-form label {
    flex: 1;
    min-width: 180px;
}

/* ----- Job list ----- */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform var(--duration-normal), box-shadow var(--duration-normal), border-color var(--duration-fast);
}
.job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.job-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    margin-top: 0;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-actions { display: flex; gap: 12px; margin-top: 16px; }
.job-desc { color: var(--text-muted); margin: 12px 0; font-size: 0.9rem; }
.card-empty {
    text-align: center;
    padding: 48px 24px;
}
.card-empty p { margin-bottom: 16px; }
.job-card-manage { padding: 24px; }
.applications-details { margin-top: 16px; }
.applications-details summary { cursor: pointer; font-weight: 600; }
.application-block {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 12px 0;
    background: var(--bg-base);
}
.verified-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.verified-filter input[type="checkbox"] {
    width: 14px;
    height: 14px;
}
.inline-form { display: inline-block; margin-right: 8px; margin-top: 8px; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}
.status-pending { background: #fef3c7; color: #b45309; }
.status-accepted { background: var(--success-bg); color: var(--success); }
.status-rejected { background: var(--error-bg); color: var(--error); }
.status-active { background: var(--success-bg); color: var(--success); }
.status-inactive { background: var(--gray-200); color: var(--text-muted); }
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-read { background: var(--gray-200); color: var(--text-muted); }
.status-resolved { background: var(--success-bg); color: var(--success); }


/* ----- Alerts ----- */
.error {
    background: var(--error-bg);
    color: var(--error);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid #fecaca;
    font-size: 0.9rem;
}
.success {
    background: var(--success-bg);
    color: var(--success);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid #a7f3d0;
    font-size: 0.9rem;
}

/* ----- Messaging (conversations) ----- */
.messages-thread {
    margin: 24px 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 20px;
    max-height: 420px;
    overflow-y: auto;
}
.messages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.message-bubble .message-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 0.75rem;
}
.message-bubble .message-sender {
    font-weight: 600;
    color: var(--text-muted);
}
.message-bubble .message-time {
    color: var(--text-subtle);
}
.message-bubble .message-body {
    margin: 0;
}
.message-bubble.from-applicant {
    align-self: flex-start;
    background: var(--gray-100);
}
.message-bubble.from-company {
    align-self: flex-end;
    background: var(--primary);
    color: #ecfdf5;
}
.messages-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.messages-form textarea {
    resize: vertical;
}

/* ----- Responsive: tablet and below ----- */
@media (max-width: 900px) {
    .app-header .logo-img { height: 72px; max-width: 280px; }
    .app-header .header-inner { height: auto; min-height: var(--header-height); }
}
@media (max-width: 768px) {
    .app-header .header-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: auto;
        padding: 16px 20px;
        gap: 12px;
    }
    .app-header .logo-img { height: 72px; max-width: 260px; }
    .app-header .nav-links {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-start;
    }
    .app-header .nav-links a {
        padding: 12px 16px;
        min-height: var(--touch-target);
        font-size: 0.9rem;
    }
    .app-header .nav-actions .button {
        min-height: var(--touch-target);
        padding: 12px 20px;
    }
    .lang-toggle .lang-link {
        min-height: var(--touch-target);
        padding: 10px 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .nav-toggle {
        min-width: var(--touch-target);
        min-height: var(--touch-target);
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .dashboard-sidebar {
        position: static;
        top: auto;
    }
    .dashboard-shell {
        padding-left: 0;
        padding-right: 0;
    }
    .admin-table-wrap {
        -webkit-overflow-scrolling: touch;
        margin-left: -4px;
        margin-right: -4px;
        border-radius: var(--radius-md);
    }
    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .application-block {
        padding: 14px;
    }
    .inline-form {
        display: block;
        margin-right: 0;
        margin-top: 10px;
        margin-bottom: 8px;
    }
    .inline-form .button {
        width: 100%;
        min-width: 0;
    }
    .hero-modern {
        padding: 48px 20px 64px;
    }
    .hero-title { font-size: 1.75rem; }
    .hero-modern p { font-size: 1rem; margin-bottom: 28px; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-modern .hero-actions .button {
        width: 100%;
        min-height: var(--touch-target);
        padding: 14px 24px;
        font-size: 1rem;
    }
    .section-modern {
        padding: 40px 20px;
    }
    .section-modern .section-inner {
        padding-left: 0;
        padding-right: 0;
    }
    .section-modern h2 { font-size: 1.5rem; }
    .section-lead { font-size: 0.95rem; margin-bottom: 20px; }
    .section-story-lead { margin-bottom: 24px; }
    .story-tabs { gap: 0; }
    .story-tab { padding: 14px 16px; font-size: 0.9rem; }
    .story-panels { min-height: 240px; }
    .story-panel-content { padding: 24px 20px 28px; margin-top: 20px; }
    .story-panel-title { font-size: 1.2rem; margin-bottom: 12px; }
    .story-panel-content p { font-size: 0.95rem; }
    .story-panel-content .story-cta { width: 100%; min-height: var(--touch-target); margin-top: 20px; }
    .cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .card { padding: 24px; }
    .cards-with-images .card h3,
    .cards-with-images .card p,
    .cards-with-images .card .card-link {
        padding-left: 20px;
        padding-right: 20px;
    }
    .cards-with-images .card h3 { padding-top: 16px; }
    .card-link {
        padding: 0 20px 20px;
        min-height: var(--touch-target);
        display: inline-flex;
        align-items: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stat-card { padding: 20px 16px; }
    .stat-number { font-size: 1.75rem; }
    .stat-label { font-size: 0.9rem; }
    .stat-desc { font-size: 0.8rem; }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .testimonial-card { padding: 24px 20px; }
    .testimonial-quote { font-size: 0.95rem; margin-bottom: 16px; }
    .faq-question { padding: 16px 16px 16px 20px; font-size: 0.95rem; }
    .faq-answer { padding: 0 20px 16px; }
    .faq-answer p { font-size: 0.9rem; }
    .section-impact .section-inner-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .impact-image-wrap { order: -1; max-width: 100%; }
    .impact-list li { padding-left: 20px; margin-bottom: 10px; }
    .impact-content .button { width: 100%; min-height: var(--touch-target); padding: 14px 24px; }
    .section-cta .cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 12px;
    }
    .section-cta .cta-actions .button {
        width: 100%;
        min-height: var(--touch-target);
        padding: 14px 24px;
    }
    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .filter-form label { min-width: 0; }
    .filter-form .button {
        width: 100%;
        min-height: var(--touch-target);
    }
    .job-list { gap: 16px; }
    .job-card { padding: 24px 20px; }
    .job-card h3 { font-size: 1.1rem; }
    .job-meta { flex-direction: column; gap: 8px; }
    .job-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    .job-actions .button {
        min-height: var(--touch-target);
        flex: 1 1 auto;
        min-width: 120px;
    }
    .page-container { padding: 24px 20px; }
    .auth-card {
        padding: 28px 20px;
        margin: 20px 16px;
    }
    .auth-card .button { width: 100%; min-height: var(--touch-target); }
    .profile-form-wrap { max-width: 100%; }
    .app-footer { padding: 32px 20px; font-size: 0.875rem; }
}

/* ----- Responsive: small phones ----- */
@media (max-width: 480px) {
    .app-header .header-inner { padding: 12px 16px; gap: 10px; }
    .app-header .logo-img { height: 64px; max-width: 220px; }
    .app-header .nav-links a { padding: 10px 14px; font-size: 0.875rem; min-height: var(--touch-target); }
    .hero-modern { padding: 40px 16px 56px; }
    .hero-title { font-size: 1.5rem; }
    .hero-actions { max-width: 100%; }
    .section-modern { padding: 32px 16px; }
    .section-modern h2 { font-size: 1.35rem; }
    .story-tab { padding: 12px 12px; font-size: 0.85rem; min-height: var(--touch-target); }
    .story-panel-content { padding: 20px 16px 24px; }
    .story-panel-title { font-size: 1.1rem; }
    .story-panel-content p { font-size: 0.9rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 12px; }
    .stat-card { padding: 20px 16px; }
    .stat-number { font-size: 1.5rem; }
    .card-image-wrap { aspect-ratio: 16 / 9; }
    .cards-with-images .card h3,
    .cards-with-images .card p,
    .cards-with-images .card .card-link { padding-left: 16px; padding-right: 16px; }
    .card-link { padding: 0 16px 16px; }
    .impact-content .button,
    .section-cta .cta-actions .button { max-width: 100%; }
    .job-card { padding: 20px 16px; }
    .job-actions .button { min-width: 100%; min-height: var(--touch-target); }
    .page-container { padding: 20px 16px; }
    .auth-card { margin: 16px 12px; padding: 24px 16px; }
    .app-footer { padding: 28px 16px; }
    .admin-table th,
    .admin-table td { padding: 8px 10px; font-size: 0.8rem; }
    .report-issue-bot {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
    }
    .report-issue-bot-toggle {
        min-height: var(--touch-target);
        padding: 14px 22px;
    }
    .report-success-banner {
        bottom: max(80px, calc(60px + env(safe-area-inset-bottom)));
        left: 16px;
        right: 16px;
        transform: none;
        max-width: none;
    }
}

/* ----- Report issue bot (home) ----- */
.report-success-banner {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90%;
    padding: 14px 20px;
    background: var(--success-bg, #d1fae5);
    color: var(--success, #059669);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.report-success-banner a { color: inherit; text-decoration: underline; }
.report-issue-bot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}
.report-issue-bot-toggle {
    padding: 12px 20px;
    background: var(--teal, #0d9488);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}
.report-issue-bot-toggle:hover { background: #0f766e; }
.report-issue-panel {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.report-issue-panel.report-issue-panel-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
.report-issue-panel-inner { padding: 20px; }
.report-issue-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.report-issue-panel h3 { margin: 0; font-size: 1.1rem; }
.report-issue-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: var(--gray-200);
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    border-radius: var(--radius);
    cursor: pointer;
}
.report-issue-close:hover { background: var(--gray-300); }
.report-issue-hint { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 14px; }
.report-issue-error { font-size: 0.85rem; color: var(--error); margin-bottom: 12px; }
.report-issue-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 12px;
    margin-bottom: 4px;
}
.report-issue-form label:first-of-type { margin-top: 0; }
.report-issue-form input,
.report-issue-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    box-sizing: border-box;
}
.report-issue-form textarea { resize: vertical; min-height: 80px; }
.report-issue-form button { margin-top: 16px; width: 100%; }

@media (max-width: 360px) {
    .app-header .logo-img { height: 56px; max-width: 180px; }
    .hero-title { font-size: 1.35rem; }
}

@media (min-width: 1600px) {
    .section-modern .section-inner,
    .hero-modern .hero-inner {
        padding-left: 0;
        padding-right: 0;
    }
}
