/* ══════════════════════════════════════════════════════
   WTH Design System — Win The House GOP
   Replaces AdminLTE with modern custom design
   ══════════════════════════════════════════════════════ */

/* ── Base / Reset ─── */
.wth-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F1F5F9;
    color: #1E293B;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar ─── */
.wth-navbar {
    background: #0F172A;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.wth-navbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.wth-navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.wth-navbar-brand .star {
    color: #EAB308;
    font-size: 1.1rem;
}

.wth-navbar-brand .gop {
    color: #DC2626;
}

.wth-navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 0 0 32px;
    padding: 0;
    gap: 4px;
}

.wth-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.wth-nav-link:hover {
    color: #E2E8F0;
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.wth-nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.wth-nav-link i {
    font-size: 0.82rem;
    width: 16px;
    text-align: center;
}

.wth-navbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wth-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.wth-user-btn:hover {
    color: #E2E8F0;
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.wth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #334155;
    color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.wth-navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 1.25rem;
    padding: 4px 8px;
    cursor: pointer;
    margin-left: 12px;
}

/* Dropdown inside navbar */
.wth-navbar .dropdown-menu {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    padding: 4px;
    margin-top: 8px;
    min-width: 200px;
}

.wth-navbar .dropdown-item {
    color: #CBD5E1;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: background 0.1s;
}

.wth-navbar .dropdown-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.wth-navbar .dropdown-item i {
    width: 18px;
    margin-right: 6px;
    opacity: 0.6;
}

.wth-navbar .dropdown-divider {
    border-color: #334155;
    margin: 4px 0;
}

/* ── Main Content ─── */
.wth-main {
    padding-top: 72px;
    min-height: 100vh;
}

.wth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* ── Page Header ─── */
.wth-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.wth-page-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wth-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.3;
}

.wth-page-subtitle {
    font-size: 0.85rem;
    color: #64748B;
    margin: 0;
}

.wth-breadcrumb {
    font-size: 0.82rem;
    color: #64748B;
    margin-bottom: 8px;
}

.wth-breadcrumb a {
    color: #64748B;
    text-decoration: none;
}

.wth-breadcrumb a:hover {
    color: #DC2626;
    text-decoration: none;
}

.wth-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Cards ─── */
.wth-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.wth-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wth-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wth-card-title i {
    color: #64748B;
    font-size: 0.88rem;
}

.wth-card-body {
    padding: 24px;
}

.wth-card-body-flush {
    padding: 0;
}

.wth-card-footer {
    padding: 12px 24px;
    border-top: 1px solid #F1F5F9;
    background: #FAFBFC;
}

/* ── Stat Cards ─── */
.wth-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.wth-stat {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
}

a.wth-stat:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #CBD5E1;
    text-decoration: none;
    color: inherit;
}

.wth-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.wth-stat-icon.red { background: #FEF2F2; color: #DC2626; }
.wth-stat-icon.green { background: #ECFDF5; color: #059669; }
.wth-stat-icon.blue { background: #EFF6FF; color: #2563EB; }
.wth-stat-icon.amber { background: #FFFBEB; color: #D97706; }
.wth-stat-icon.purple { background: #F5F3FF; color: #7C3AED; }
.wth-stat-icon.slate { background: #F1F5F9; color: #64748B; }

.wth-stat-content {
    min-width: 0;
}

.wth-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0F172A;
}

.wth-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ── Tables ─── */
.wth-table {
    width: 100%;
    border-collapse: collapse;
}

.wth-table thead th {
    background: #F8FAFC;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-bottom: 1px solid #E2E8F0;
    text-align: left;
    white-space: nowrap;
}

.wth-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.88rem;
    color: #334155;
    vertical-align: middle;
}

.wth-table tbody tr:hover {
    background: #F8FAFC;
}

.wth-table tbody tr:last-child td {
    border-bottom: none;
}

.wth-table .text-right {
    text-align: right;
}

.wth-table-clickable tbody tr {
    cursor: pointer;
    transition: background 0.1s;
}

/* ── Badges ─── */
.wth-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    gap: 4px;
}

.wth-badge-draft { background: #F1F5F9; color: #64748B; }
.wth-badge-submitted { background: #FEF3C7; color: #92400E; }
.wth-badge-live { background: #D1FAE5; color: #065F46; }
.wth-badge-custom { background: #DBEAFE; color: #1E40AF; }
.wth-badge-archived { background: #F1F5F9; color: #94A3B8; }
.wth-badge-success { background: #D1FAE5; color: #065F46; }
.wth-badge-warning { background: #FEF3C7; color: #92400E; }
.wth-badge-danger { background: #FEE2E2; color: #991B1B; }
.wth-badge-info { background: #DBEAFE; color: #1E40AF; }
.wth-badge-purple { background: #F3E8FF; color: #6D28D9; }
.wth-badge-secondary { background: #F1F5F9; color: #64748B; }

/* ── Buttons (Bootstrap overrides) ─── */
.wth-app .btn {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    transition: all 0.15s;
    border: 1.5px solid transparent;
}

.wth-app .btn-sm {
    padding: 5px 12px;
    font-size: 0.78rem;
}

.wth-app .btn-lg {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.wth-app .btn-primary {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
}

.wth-app .btn-primary:hover,
.wth-app .btn-primary:focus {
    background: #B91C1C;
    border-color: #B91C1C;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}

.wth-app .btn-success {
    background: #059669;
    border-color: #059669;
}

.wth-app .btn-success:hover {
    background: #047857;
    border-color: #047857;
}

.wth-app .btn-info {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}

.wth-app .btn-info:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    color: #fff;
}

.wth-app .btn-warning {
    background: #D97706;
    border-color: #D97706;
    color: #fff;
}

.wth-app .btn-warning:hover {
    background: #B45309;
    border-color: #B45309;
    color: #fff;
}

.wth-app .btn-danger {
    background: #DC2626;
    border-color: #DC2626;
}

.wth-app .btn-danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
}

.wth-app .btn-outline-primary {
    color: #DC2626;
    border-color: #DC2626;
    background: transparent;
}

.wth-app .btn-outline-primary:hover {
    background: #DC2626;
    color: #fff;
}

.wth-app .btn-outline-secondary {
    color: #64748B;
    border-color: #CBD5E1;
    background: transparent;
}

.wth-app .btn-outline-secondary:hover {
    background: #F1F5F9;
    color: #334155;
    border-color: #94A3B8;
}

.wth-app .btn-outline-danger {
    color: #DC2626;
    border-color: #FCA5A5;
    background: transparent;
}

.wth-app .btn-outline-danger:hover {
    background: #FEF2F2;
    color: #B91C1C;
    border-color: #DC2626;
}

.wth-app .btn-outline-success {
    color: #059669;
    border-color: #6EE7B7;
    background: transparent;
}

.wth-app .btn-outline-success:hover {
    background: #ECFDF5;
    color: #047857;
}

.wth-app .btn-outline-info {
    color: #2563EB;
    border-color: #93C5FD;
    background: transparent;
}

.wth-app .btn-outline-info:hover {
    background: #EFF6FF;
    color: #1D4ED8;
}

.wth-app .btn-outline-warning {
    color: #D97706;
    border-color: #FCD34D;
    background: transparent;
}

.wth-app .btn-outline-warning:hover {
    background: #FFFBEB;
    color: #B45309;
}

.wth-app .btn-default,
.wth-app .btn-light {
    background: #fff;
    border-color: #CBD5E1;
    color: #334155;
}

.wth-app .btn-default:hover,
.wth-app .btn-light:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
}

.wth-btn-ghost {
    background: transparent;
    border: none;
    color: #64748B;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.wth-btn-ghost:hover {
    color: #1E293B;
    background: #F1F5F9;
}

/* ── Forms (Bootstrap overrides) ─── */
.wth-app .form-control {
    border-radius: 6px;
    border: 1.5px solid #E2E8F0;
    padding: 9px 14px;
    font-size: 0.88rem;
    color: #1E293B;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.wth-app .form-control:focus {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
    outline: none;
}

.wth-app .form-control-sm {
    padding: 6px 10px;
    font-size: 0.82rem;
}

.wth-app label:not(.template-chip):not(.btn) {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.wth-app .input-group-text {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #64748B;
}

.wth-app .custom-control-label::before {
    border-color: #CBD5E1;
}

.wth-app .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #DC2626;
    border-color: #DC2626;
}

/* ── Alerts (Bootstrap overrides) ─── */
.wth-app .alert {
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    border-left: 3px solid;
    padding: 14px 18px;
}

.wth-app .alert-success {
    background: #F0FDF4;
    color: #065F46;
    border-left-color: #059669;
}

.wth-app .alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border-left-color: #DC2626;
}

.wth-app .alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-left-color: #D97706;
}

.wth-app .alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-left-color: #2563EB;
}

/* ── Modals (Bootstrap overrides) ─── */
.wth-app .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.wth-app .modal-header {
    border-bottom: 1px solid #F1F5F9;
    padding: 18px 24px;
}

.wth-app .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.wth-app .modal-body {
    padding: 24px;
}

.wth-app .modal-footer {
    border-top: 1px solid #F1F5F9;
    padding: 14px 24px;
}

/* ── Empty State ─── */
.wth-empty {
    text-align: center;
    padding: 48px 24px;
    color: #94A3B8;
}

.wth-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #CBD5E1;
}

.wth-empty p {
    font-size: 0.88rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ── Search Bar ─── */
.wth-search {
    position: relative;
    max-width: 400px;
}

.wth-search input {
    padding-left: 38px;
}

.wth-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 0.85rem;
    pointer-events: none;
}

/* ── Status Filter Tabs ─── */
.wth-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wth-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #64748B;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    transition: all 0.15s;
    white-space: nowrap;
}

.wth-filter-tab:hover {
    border-color: #CBD5E1;
    color: #334155;
    text-decoration: none;
}

.wth-filter-tab.active {
    background: #1E293B;
    border-color: #1E293B;
    color: #fff;
}

.wth-filter-tab .count {
    background: rgba(0,0,0,0.06);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.72rem;
}

.wth-filter-tab.active .count {
    background: rgba(255,255,255,0.2);
}

/* ── Utility Classes ─── */
.text-success-dark { color: #059669 !important; }
.text-danger-dark { color: #DC2626 !important; }
.text-warning-dark { color: #D97706 !important; }
.text-muted-dark { color: #64748B !important; }
.fw-800 { font-weight: 800; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }


/* ══════════════════════════════════════════════════════
   EXISTING STYLES (preserved)
   ══════════════════════════════════════════════════════ */

/* Template selector grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.template-chip {
    display: block;
    padding: 6px 4px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.1s;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0;
}

.template-chip:hover {
    border-color: #adb5bd;
    color: #212529;
}

.template-chip input[type="radio"] { display: none; }

.template-chip.active,
.template-chip:has(input:checked) {
    background: #343a40;
    border-color: #343a40;
    color: #fff;
}

/* Live dot animation */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Quote styling for slogan */
.quote-secondary {
    border-left: 3px solid #DC2626;
    padding: 0 0 0 16px;
    margin: 0 0 16px;
}

.quote-secondary p {
    font-style: italic;
    color: #6c757d;
    margin: 0;
}


/* ── Public Pages (apply/login — NOT AdminLTE) ─── */

.apply-page {
    background: #f4f6f9;
    min-height: 100vh;
}

.apply-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    color: white;
    padding: 56px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.apply-hero::before {
    content: '\2605 \2605 \2605 \2605 \2605';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(234,179,8,0.08);
    font-size: 2rem;
    letter-spacing: 12px;
}

.apply-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #DC2626;
}

.apply-hero-inner { max-width: 680px; margin: 0 auto; }

.apply-hero-badge {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(234,179,8,0.08);
    border: 1px solid rgba(234,179,8,0.15);
    padding: 6px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #EAB308;
}

.apply-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.apply-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.apply-container {
    max-width: 1100px;
    margin: -32px auto 0;
    padding: 0 24px 48px;
    position: relative;
    z-index: 1;
}

.apply-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.apply-card {
    background: #fff;
    border-radius: 8px;
    padding: 36px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e5ea;
    border-top: 3px solid #DC2626;
}

.apply-card h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apply-card-sub {
    color: #6c757d;
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.apply-card .form-field { margin-bottom: 14px; }

.apply-card label {
    display: block;
    font-weight: 500;
    font-size: 0.78rem;
    color: #495057;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.apply-card label .optional {
    font-weight: 400;
    color: #adb5bd;
    font-size: 0.72rem;
    text-transform: none;
}

.apply-card input[type="text"],
.apply-card input[type="email"],
.apply-card input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

.apply-card input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.apply-btn {
    width: 100%;
    padding: 12px;
    background: #DC2626;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}

.apply-btn:hover { background: #B91C1C; }

.apply-login-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.88rem;
    color: #6c757d;
}

.apply-login-link a { color: #DC2626; font-weight: 500; text-decoration: none; }
.apply-login-link a:hover { text-decoration: underline; }

.apply-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e5ea;
    margin-bottom: 16px;
}

.apply-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 14px;
}

.apply-checklist { list-style: none; padding: 0; margin: 0; }

.apply-checklist li {
    padding: 6px 0;
    font-size: 0.88rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apply-checklist i { color: #DC2626; font-size: 0.72rem; flex-shrink: 0; }

.apply-steps { display: flex; flex-direction: column; gap: 14px; }
.apply-step { display: flex; align-items: flex-start; gap: 12px; }

.step-num {
    width: 28px;
    height: 28px;
    background: #1E293B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.apply-step strong { display: block; font-size: 0.88rem; }
.apply-step p { margin: 2px 0 0; font-size: 0.8rem; color: #6c757d; }

.apply-footer {
    text-align: center;
    padding: 32px 16px;
    color: #adb5bd;
    font-size: 0.78rem;
    border-top: 1px solid #e2e5ea;
}

.apply-footer p { margin: 0; line-height: 1.6; }

.flash-msg {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 14px;
    border-left: 3px solid;
}

.flash-danger { background: #fef2f2; color: #991b1b; border-left-color: #DC2626; }
.flash-warning { background: #fffbeb; color: #92400e; border-left-color: #D97706; }
.flash-success { background: #f0fdf4; color: #065F46; border-left-color: #059669; }
.flash-info { background: #eff6ff; color: #1e40af; border-left-color: #2563EB; }


/* ── Submission Form (Candidate Wizard) ─── */

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.submission-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.submission-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.autosave-indicator {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.autosave-indicator.saved { color: #065F46; background: #f0fdf4; }
.autosave-indicator.unsaved { color: #92400e; background: #fffbeb; }
.autosave-indicator.saving { color: #1e40af; background: #eff6ff; }
.autosave-indicator.failed { color: #991b1b; background: #fef2f2; }

.progress-bar-wrap {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 14px 20px;
}

.section-card .card-header.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
}

.section-number {
    width: 26px;
    height: 26px;
    background: #1E293B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.section-header h5 { font-size: 0.9rem; font-weight: 600; }
.section-header small { font-weight: 400; }

.empty-section {
    text-align: center;
    padding: 32px 16px;
    color: #adb5bd;
}

.empty-section i { color: #dee2e6; }
.empty-section p { font-size: 0.85rem; max-width: 400px; margin: 0 auto; }

.submission-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.ai-btn {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-color: #7C3AED;
    color: #7C3AED;
}

.ai-btn:hover { background: #7C3AED; border-color: #7C3AED; color: white; }
.ai-toolbar { display: flex; gap: 6px; }

.ai-panel {
    background: #F5F3FF;
    border: 1px solid #E9D5FF;
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
}

.ai-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #6D28D9;
}

.ai-panel-header .close { font-size: 1.2rem; color: #6D28D9; opacity: 0.6; }

.ai-result-text {
    background: white;
    border: 1px solid #E9D5FF;
    border-radius: 6px;
    padding: 14px;
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.slogan-pick { font-weight: 500; border-color: #7C3AED; color: #7C3AED; }
.slogan-pick:hover { background: #7C3AED; border-color: #7C3AED; color: white; }

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.upload-area:hover { border-color: #adb5bd; }
.upload-area i { color: #dee2e6; transition: color 0.15s; }
.upload-area:hover i { color: #6c757d; }

.disclaimer-preview { margin-top: 14px; }

.disclaimer-preview-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #495057;
    font-style: italic;
}

.color-swatches { display: flex; gap: 6px; align-items: center; }

.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s;
}

.color-swatch:hover { transform: scale(1.15); border-color: #6c757d; }
.color-swatch:focus { outline: none; border-color: #343a40; }

.brand-header {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-header i { color: #DC2626; }


/* ── Responsive ─── */
@media (max-width: 768px) {
    .apply-hero h1 { font-size: 2rem; }
    .apply-hero { padding: 36px 16px 48px; }
    .apply-grid { grid-template-columns: 1fr; }
    .apply-card { padding: 24px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .upload-area { min-height: 100px; padding: 16px; }
    .template-grid { grid-template-columns: 1fr 1fr; }

    .wth-navbar {
        padding: 0 12px;
    }

    .wth-navbar-toggle {
        display: block;
    }

    .wth-navbar-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #0F172A;
        border-top: 1px solid #1E293B;
        flex-direction: column;
        padding: 8px;
        margin: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }

    .wth-navbar-nav.show {
        display: flex;
    }

    .wth-nav-link {
        padding: 10px 14px;
    }

    .wth-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wth-stats {
        grid-template-columns: 1fr 1fr;
    }

    .wth-container {
        padding: 16px;
    }
}

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