/* =========================================================
   Telangana Pensioners Portal — Additional Quantum Software
   Modern, Premium Design System
   Font: Nunito (Google Fonts)
   ========================================================= */

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

:root {
    --bg: radial-gradient(circle at 50% 0%, #e0e7ff 0%, #f1f5f9 45%, #f8fafc 100%);
    --card-bg: #ffffff;
    --primary-dark: #0b1329;
    --primary-gradient: linear-gradient(135deg, #0b1329 0%, #1e3a8a 55%, #2563eb 100%);
    --teal: #2563eb;
    --teal-light: #3b82f6;
    --emerald: #059669;
    --emerald-light: #10b981;
    --amber: #d97706;
    --amber-light: #f59e0b;
    --purple: #7c3aed;
    --purple-light: #8b5cf6;
    --red: #dc2626;
    --red-light: #ef4444;
    --blue: #1d4ed8;
    --blue-light: #3b82f6;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --text: #0f172a;
    --muted: #64748b;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 9999px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.12);
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    min-height: 100vh;
    padding: 20px 12px 48px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
}

/* Accessibility Skip Link */
.skip {
    position: absolute;
    left: 12px;
    top: -50px;
    background: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 9999;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 800;
    transition: top 0.2s;
}
.skip:focus {
    top: 12px;
}

/* Main Container Wrapper */
.wrap {
    max-width: 760px;
    margin: 0 auto;
}

/* Suppress Auto Ads in Header */
.header-top-wrapper {
    width: 100%;
    display: block;
}
.header-top-wrapper .google-auto-placed,
.header-top-wrapper ins.adsbygoogle,
.header-top-wrapper iframe[id^="aswift_"],
.header-top-wrapper div[id^="aswift_"],
.logo-card + .google-auto-placed,
.logo-card + ins.adsbygoogle,
.btn-row .google-auto-placed,
.btn-row ins.adsbygoogle {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Clean AdSense Containers */
.ad-slot, .ad-wrap {
    min-height: 90px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
    max-width: 100%;
}
.ad-slot ins.adsbygoogle, .ad-wrap ins.adsbygoogle {
    margin: 0 auto;
    display: block;
}

/* Logo Card */
.logo-card {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}
.logo-card a {
    display: block;
}
.logo-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Community Buttons Row */
.btn-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.cbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cbtn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.cbtn:hover {
    transform: translateY(-2px);
}
.c-wa {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}
.c-wa:hover {
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.55);
}
.c-tg {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}
.c-tg:hover {
    box-shadow: 0 10px 26px rgba(14, 165, 233, 0.55);
}
.c-f16 {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}
.c-f16:hover {
    box-shadow: 0 10px 26px rgba(139, 92, 246, 0.55);
}

/* Notification Banners */
.banner {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid transparent;
}
.banner.bad {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fca5a5;
}
.banner.warn {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}
.banner.ok {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

/* Form Card */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1.5px solid var(--slate-200);
}
.form-head {
    background: var(--primary-gradient);
    color: #fff;
    text-align: center;
    padding: 22px 20px 20px;
    position: relative;
    overflow: hidden;
}
.form-head::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.form-head::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.form-head h2 {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.2px;
    margin-bottom: 6px;
}
.form-head p {
    font-size: 14px;
    color: #93c5fd;
    font-weight: 600;
    line-height: 1.4;
}
.form-head .go-badge {
    display: inline-block;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: #fef08a;
}
.form-body {
    padding: 24px 22px 22px;
}

/* Mode Switcher Tabs */
.tabs-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--slate-100);
    padding: 6px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
}
.tabs-wrap input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tab-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--slate-600);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
}
.tabs-wrap input:checked + .tab-label {
    background: #fff;
    color: var(--slate-900);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.tab-label svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Panel Switching */
.finder.mode-ifmis .panel-manual,
.finder.mode-manual .panel-ifmis,
.finder.mode-both .panel-manual {
    display: none;
}
.finder.mode-both:has(#entry_manual:checked) .panel-ifmis {
    display: none;
}
.finder.mode-both:has(#entry_manual:checked) .panel-manual {
    display: block;
}

/* Field Styles */
.f {
    margin-bottom: 18px;
}
.l {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    font-size: 14.5px;
    font-weight: 800;
    color: #1e293b;
}
.l svg {
    width: 16px;
    height: 16px;
    color: var(--teal);
}
.i {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: 15.5px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.i:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.i::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
.hint {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}
.hint a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}
.hint a:hover {
    text-decoration: underline;
}

/* Radio Button Group (Pension Type) */
.radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}
.radio-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: var(--slate-50);
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--slate-800);
    transition: all 0.2s;
}
.radio-card:hover {
    background: #fff;
    border-color: var(--slate-300);
}
.radio-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    cursor: pointer;
}
.radio-card:has(input:checked) {
    background: #eff6ff;
    border-color: var(--teal);
    color: #1e3a8a;
}

/* DR Info Alert Box */
.dr-alert-box {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #166534;
    font-weight: 600;
}
.dr-alert-box svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #15803d;
    margin-top: 2px;
}

/* Submit Button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    margin-top: 8px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.55);
}
.btn-submit:active {
    transform: translateY(0);
}

/* General Button Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.btn-ghost {
    background: #fff;
    color: var(--slate-800);
    border: 1.5px solid var(--slate-200);
}

/* Spinner */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Trust Badge */
.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}
.trust-badge svg {
    width: 15px;
    height: 15px;
    color: var(--emerald);
}

/* =========================================================
   OUTPUT / RESULT PAGE STYLES
   ========================================================= */

/* Slip Header Banner */
.slip-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 22px 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}
.slip-header::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.slip-header h2 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}
.slip-header p {
    font-size: 14px;
    color: #93c5fd;
    font-weight: 600;
}
.slip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fef08a;
}

/* Summary Metric Cards */
.summary-section {
    margin-bottom: 16px;
}
.summary-title {
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    padding-left: 4px;
}
.summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.summary-cards.three-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.s-card {
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.s-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}
.s-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}
.s-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.s-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}
.s-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    opacity: 0.92;
    color: #fff;
    line-height: 1.2;
}
.s-val {
    font-size: 21px;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.s-sub {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}
.s-gross {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.s-amber {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}
.s-net {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.s-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* =========================================================
   KEY ADDITIONAL QUANTUM HIGHLIGHT CARDS (SIMPLE 1-PER-ROW)
   ========================================================= */
.simple-highlight-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.s-row-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.s-row-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}
.s-row-card.s-row-green {
    border-left: 4px solid #059669;
}
.s-row-card.s-row-amber {
    border-left: 4px solid #d97706;
}
.s-row-card.s-row-purple {
    border-left: 4px solid #7c3aed;
}
.s-row-card.s-row-blue {
    border-left: 4px solid #2563eb;
}

.s-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.s-row-green .s-row-icon {
    background: #ecfdf5;
}
.s-row-amber .s-row-icon {
    background: #fffbeb;
}
.s-row-purple .s-row-icon {
    background: #f5f3ff;
}
.s-row-blue .s-row-icon {
    background: #eff6ff;
}

.s-row-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.s-row-label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    line-height: 1.2;
}
.s-row-main {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.2px;
}
.s-row-green .s-row-main {
    color: #047857;
}
.s-row-amber .s-row-main {
    color: #b45309;
}
.s-row-purple .s-row-main {
    color: #6d28d9;
}
.s-row-blue .s-row-main {
    color: #1d4ed8;
}

.s-row-sub {
    font-size: 12.5px;
    color: #475569;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
}
.s-row-sub strong {
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 640px) {
    .s-row-card {
        padding: 12px 14px;
        gap: 12px;
    }
    .s-row-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 8px;
    }
    .s-row-main {
        font-size: 17px;
    }
    .s-row-sub {
        font-size: 12px;
    }
}

/* Card Structures */
.profile-card,
.tbl-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1.5px solid var(--slate-200);
}
.profile-head,
.tbl-head {
    background: var(--primary-gradient);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.profile-head span:first-child,
.tbl-head span:first-child {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-head .head-tag,
.tbl-head .head-tag {
    font-size: 12px;
    color: #bfdbfe;
    font-weight: 700;
}

/* Profile List */
.p-list {
    display: flex;
    flex-direction: column;
}
.p-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    border-bottom: 1.5px solid var(--slate-200);
    gap: 12px;
}
.p-item:last-child {
    border-bottom: none;
}
.p-item:nth-child(even) {
    background: var(--slate-50);
}
.p-label {
    font-size: 14px;
    color: var(--slate-700);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.p-label .lico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    flex-shrink: 0;
}
.p-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--slate-900);
    text-align: right;
    word-break: break-word;
}
.copy-ppo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 15px;
    font-weight: 800;
    color: #166534;
    cursor: pointer;
    transition: all 0.2s;
}
.copy-ppo:hover {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    transform: scale(1.02);
}
.copy-ppo svg {
    width: 14px;
    height: 14px;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 800;
}
.badge-service {
    background: #e0f2fe;
    color: #0369a1;
}
.badge-family {
    background: #fdf2f8;
    color: #be185d;
}
.badge-active {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.badge-wait {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}
thead th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 11px 20px;
    text-align: left;
}
thead th:last-child {
    text-align: right;
}
td, tbody th {
    padding: 12px 20px;
    font-size: 14.5px;
    border-bottom: 1.5px solid var(--slate-200);
}
tbody th {
    font-weight: 700;
    color: var(--slate-800);
    text-align: left;
    width: 58%;
}
td.amt {
    text-align: right;
    font-weight: 800;
    color: var(--slate-900);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}
tbody tr:nth-child(even) td,
tbody tr:nth-child(even) th {
    background: #f8fafc;
}
tbody tr:hover td,
tbody tr:hover th {
    background: #f1f5f9;
}

/* Highlight Table Rows */
tr.row-sub th,
tr.row-sub td {
    background: linear-gradient(135deg, #fefce8, #fef9c3) !important;
    color: #92400e !important;
    font-weight: 800 !important;
    border-color: #fde68a !important;
}
tr.row-sub td.amt {
    font-size: 16px !important;
    color: #78350f !important;
}

tr.row-gross th,
tr.row-gross td {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
    border-color: #6ee7b7 !important;
}
tr.row-gross th {
    color: #065f46 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}
tr.row-gross td.amt {
    color: #047857 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

tr.row-net th,
tr.row-net td {
    background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
    border-color: #93c5fd !important;
}
tr.row-net th {
    color: #1e3a8a !important;
    font-size: 15.5px !important;
    font-weight: 900 !important;
}
tr.row-net td.amt {
    color: #1d4ed8 !important;
    font-size: 19px !important;
    font-weight: 900 !important;
}

/* Rule Callout inside Card */
.go-note {
    background: #f8fafc;
    border-top: 1.5px solid var(--slate-200);
    padding: 13px 20px;
    font-size: 13.5px;
    color: var(--slate-700);
    line-height: 1.45;
    font-weight: 600;
}
.go-note strong {
    color: var(--slate-900);
}

/* Next Milestone & Progress Card */
.milestone-body {
    padding: 20px;
}
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.milestone-item {
    background: var(--slate-50);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--slate-200);
}
.milestone-item .m-lbl {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.milestone-item .m-val {
    font-size: 16px;
    font-weight: 900;
    color: var(--slate-900);
}
.milestone-item.wide {
    grid-column: 1 / -1;
}

/* Animated Progress Bar */
.progress-wrap {
    margin: 16px 0 10px;
}
.progress-bar {
    height: 12px;
    background: var(--slate-200);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #10b981);
    border-radius: var(--radius-pill);
    transition: width 0.8s ease-in-out;
}
.progress-caption {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 700;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

/* Rise Callout Box */
.rise-callout {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #86efac;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rise-callout .r-head {
    font-size: 13px;
    font-weight: 800;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rise-callout .r-main {
    font-size: 18px;
    font-weight: 900;
    color: #15803d;
}
.rise-callout .r-sub {
    font-size: 13px;
    color: #14532d;
    font-weight: 600;
}

/* Roadmap Table */
.roadmap-wrap {
    overflow-x: auto;
}
.roadmap-wrap table th,
.roadmap-wrap table td {
    padding: 11px 14px;
    font-size: 13.5px;
    white-space: nowrap;
}
.roadmap-wrap tr.is-current {
    background: #ecfdf5 !important;
}
.roadmap-wrap tr.is-current td {
    font-weight: 800;
    color: #065f46;
}
.pill-status {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pill-status.passed {
    background: var(--slate-200);
    color: var(--slate-700);
}
.pill-status.current {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.pill-status.next {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
.pill-status.upcoming {
    background: #e0f2fe;
    color: #0369a1;
}

/* Treasury Verification Card */
.treasury-ok {
    border-color: #86efac;
}
.treasury-ok .tbl-head {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}
.treasury-wait {
    border-color: #fde68a;
}
.treasury-wait .tbl-head {
    background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
}
.check-message {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
}
.check-message.ok {
    background: #f0fdf4;
    color: #166534;
}
.check-message.wait {
    background: #fffbeb;
    color: #92400e;
}

/* Disclaimer & Advisory Card */
.disclaimer-card {
    background: #f8fafc;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: var(--slate-600);
    line-height: 1.5;
}
.disclaimer-card strong {
    color: var(--slate-900);
}
.disclaimer-card p {
    margin-bottom: 6px;
}
.disclaimer-card p:last-child {
    margin-bottom: 0;
}

/* Action Buttons Grid */
.action-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.abtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.abtn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.abtn:hover {
    transform: translateY(-2px);
}
.abtn-print {
    background: linear-gradient(135deg, #0b1329 0%, #1e3a8a 55%, #2563eb 100%);
    font-size: 16.5px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}
.abtn-print:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}
.abtn-doc {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}
.abtn-doc:hover {
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.5);
}
.abtn-back {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    box-shadow: 0 6px 18px rgba(30, 41, 59, 0.25);
}
.abtn-back:hover {
    box-shadow: 0 10px 24px rgba(30, 41, 59, 0.4);
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 14.5px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 99999;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.toast-msg.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Site Footer */
.site-foot {
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
    padding: 24px 0 12px;
    line-height: 1.5;
}
.site-foot p {
    margin-bottom: 4px;
}

/* Printable Memo & Application Sheet */
.sheet {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    margin: 20px 0;
    border: 1.5px solid var(--slate-200);
}
.sheet-kicker {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--teal);
    margin-bottom: 6px;
}
.sheet h1 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 6px;
    color: var(--slate-900);
}
.sheet-lead {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px;
}
.sheet.letter p {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.7;
}
.sheet .signoff {
    margin-top: 28px;
    font-weight: 700;
    line-height: 1.8;
}

/* =========================================================
   OFFICIAL GOVERNMENT REPRESENTATION LETTER (1-PAGE A4)
   ========================================================= */
.letter-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 16px 0 14px;
}
.letter-toolbar-card {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1.5px solid var(--slate-200);
    padding: 14px 18px;
    margin: 16px auto 16px;
    max-width: 820px;
}
.toolbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.toolbar-left .tb-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--slate-900);
}
.toolbar-left .tb-desc {
    display: block;
    font-size: 12px;
    color: var(--slate-500);
    font-weight: 600;
}
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mode-toggle-bar {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1.5px dashed var(--slate-200);
}
.mt-label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-600);
    margin-bottom: 6px;
}
.mt-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.mt-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--slate-50);
    border: 2px solid var(--slate-200);
    border-radius: 9px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.mt-btn:hover {
    background: #f0fdf4;
    border-color: #86efac;
}
.mt-btn.active {
    background: #eff6ff;
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.12);
}
.mt-btn .mt-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.mt-btn .mt-text {
    display: flex;
    flex-direction: column;
}
.mt-btn .mt-text strong {
    font-size: 12.5px;
    color: var(--slate-900);
    font-weight: 800;
    line-height: 1.3;
}
.mt-btn.active .mt-text strong {
    color: var(--primary);
}
.mt-btn .mt-text small {
    font-size: 11px;
    color: var(--slate-600);
    font-weight: 600;
    line-height: 1.25;
}

.govt-letter-sheet.page-single {
    background: #ffffff;
    border: 1.5px solid #0f172a;
    border-radius: 6px;
    padding: 18px 24px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
    margin: 0 auto 25px;
    color: #000;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, serif;
    font-size: 13px;
    line-height: 1.45;
    max-width: 840px;
}
.letter-head-block {
    text-align: center;
    border-bottom: 1.5px solid #000;
    padding-bottom: 6px;
    margin-bottom: 8px;
}
.letter-head-block h3 {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 2px;
}
.letter-head-block h4 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #1e293b;
    margin-bottom: 2px;
}
.statutory-note {
    font-size: 10.5px;
    color: #334155;
    font-weight: 600;
    line-height: 1.3;
}
.header-split-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.45;
}
.header-split-grid .to-col {
    flex: 1;
}
.header-split-grid .from-col {
    text-align: right;
    flex: 1;
}
.official-subj-block {
    background: #f8fafc;
    border-left: 3.5px solid #0f172a;
    padding: 6px 10px;
    margin: 8px 0 6px;
    font-size: 13px;
    line-height: 1.45;
}
.official-ref-block {
    margin: 6px 0 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #1e293b;
}
.letter-body-content p {
    margin-bottom: 8px;
    text-align: justify;
    font-size: 13px;
    line-height: 1.5;
}
.official-table.compact-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 10px;
    border: 1.5px solid #000;
}
.official-table.compact-table th,
.official-table.compact-table td {
    border: 1px solid #334155;
    padding: 5px 8px;
    font-size: 12.5px;
    vertical-align: middle;
}
.official-table.compact-table thead th {
    background: #e2e8f0;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.3px;
}
.official-table.compact-table td:first-child {
    font-weight: 700;
    color: #1e293b;
}
.official-table.compact-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.prayer-section {
    margin: 8px 0 10px;
    line-height: 1.5;
    font-size: 13px;
}
.prayer-section p {
    margin-bottom: 4px;
    text-align: justify;
}
.compact-signoff {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
    margin: 8px 0 6px;
    border-top: 1px solid #475569;
    padding-top: 6px;
    font-size: 11px;
    line-height: 1.35;
}
.enclosures-box {
    line-height: 1.35;
}
.enclosures-box ol {
    margin: 2px 0 0 14px;
    padding: 0;
}
.enclosures-box li {
    margin-bottom: 1.5px;
}
.signature-box {
    text-align: right;
    line-height: 1.35;
}
.signature-box p {
    margin-bottom: 1.5px;
}
.sig-space {
    height: 24px;
}
.compact-office {
    margin-top: 8px;
    border: 1.5px dashed #475569;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10.5px;
    line-height: 1.3;
}
.compact-office .office-title {
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
    color: #0f172a;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 2px;
    font-size: 10px;
}
.compact-office .office-sign-row {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10.5px;
}

/* Roadmap Table Custom & Mobile Styles */
.roadmap-table {
    width: 100%;
}
.roadmap-table th,
.roadmap-table td {
    padding: 10px 10px;
    font-size: 13.5px;
    white-space: nowrap;
}
.slab-badge {
    display: inline-block;
    padding: 2px 7px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12.5px;
}

/* Admin Styles */
.admin-page .topbar {
    background: var(--slate-900);
    color: #fff;
    padding: 16px 0;
    margin-bottom: 20px;
}
.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-bottom: 20px;
    border: 1.5px solid var(--slate-200);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.grid-3 .wide {
    grid-column: 1 / -1;
}
.login {
    max-width: 440px;
    margin: 40px auto;
}

/* =========================================================
   RESPONSIVE & MOBILE RULES
   ========================================================= */
@media (max-width: 600px) {
    body {
        padding: 12px 8px 36px;
    }
    .form-head h2 {
        font-size: 17px;
    }
    .form-body {
        padding: 18px 14px;
    }
    .cbtn {
        padding: 13px 14px;
        font-size: 14.5px;
    }
    .summary-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .s-card {
        padding: 14px 12px;
    }
    .s-val {
        font-size: 18px;
    }
    .p-item {
        padding: 11px 14px;
    }
    td, tbody th {
        padding: 10px 14px;
        font-size: 14px;
    }
    .milestone-grid {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .radio-cards {
        grid-template-columns: 1fr;
    }
    .roadmap-table th,
    .roadmap-table td {
        padding: 8px 4px !important;
        font-size: 12px !important;
    }
    .roadmap-table th.amt,
    .roadmap-table td.amt {
        font-size: 12px !important;
    }
    .pill-status {
        font-size: 10px !important;
        padding: 2px 5px !important;
    }
    .slab-badge {
        font-size: 11px !important;
        padding: 1px 4px !important;
    }
    .mt-buttons {
        grid-template-columns: 1fr;
    }

    .govt-letter-sheet.page-single {
        padding: 16px 14px;
        font-size: 12px;
    }
    .header-split-grid {
        flex-direction: column;
        gap: 6px;
    }
    .header-split-grid .from-col {
        text-align: left;
    }
    .compact-signoff {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .signature-box {
        text-align: left;
    }
}

/* =========================================================
   PRINT MEDIA RULES
   ========================================================= */
@page {
    size: A4 portrait;
    margin: 8mm 10mm;
}

@media print {
    body {
        background: #fff !important;
        padding: 0 !important;
        color: #000 !important;
    }
    .wrap {
        max-width: 100% !important;
    }
    .header-top-wrapper,
    .btn-row,
    .action-btns,
    .letter-toolbar,
    .letter-toolbar-card,
    .mode-toggle-bar,
    .no-print,
    .ad-slot,
    .ad-wrap,
    ins.adsbygoogle,
    .toast-msg,
    .st-sticky-share-buttons,
    .sharethis-inline-share-buttons,
    .site-foot,
    .skip,
    .pcm-card-main,
    #pensioners-comment-widget {
        display: none !important;
    }
    .slip-header {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
    }
    .slip-header p,
    .slip-badge {
        color: #000 !important;
        border: 1px solid #000 !important;
    }
    .profile-card,
    .tbl-card,
    .sheet {
        border: 1.5px solid #000 !important;
        background: #fff !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    .profile-head,
    .tbl-head,
    thead th {
        background: #e2e8f0 !important;
        color: #000 !important;
    }
    .s-card {
        background: #fff !important;
        border: 1px solid #000 !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    .s-val, .s-label, .s-sub {
        color: #000 !important;
    }

    /* Guaranteed 1-Page A4 Sheet with Default Browser Margins */
    .govt-letter-sheet.page-single {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 10.5pt !important;
        line-height: 1.34 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .letter-head-block {
        padding-bottom: 3px !important;
        margin-bottom: 5px !important;
    }
    .letter-head-block h3 {
        font-size: 13.5pt !important;
        margin-bottom: 1px !important;
    }
    .letter-head-block h4 {
        font-size: 10.5pt !important;
        margin-bottom: 1px !important;
    }
    .statutory-note {
        font-size: 9pt !important;
    }
    .header-split-grid {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-bottom: 4px !important;
        font-size: 10pt !important;
        line-height: 1.3 !important;
    }
    .header-split-grid .to-col {
        flex: 1 !important;
        text-align: left !important;
    }
    .header-split-grid .from-col {
        flex: 1 !important;
        text-align: right !important;
    }
    .official-subj-block {
        padding: 3px 6px !important;
        margin: 4px 0 !important;
        font-size: 10.5pt !important;
        line-height: 1.32 !important;
    }
    .official-ref-block {
        margin: 3px 0 4px !important;
        font-size: 10pt !important;
        line-height: 1.28 !important;
    }
    .letter-body-content p {
        margin-bottom: 4px !important;
        font-size: 10.5pt !important;
        line-height: 1.34 !important;
    }
    .official-table.compact-table {
        margin: 4px 0 5px !important;
    }
    .official-table.compact-table th,
    .official-table.compact-table td {
        padding: 3px 6px !important;
        font-size: 9.5pt !important;
        line-height: 1.25 !important;
    }
    .prayer-section {
        margin: 4px 0 5px !important;
        font-size: 10pt !important;
        line-height: 1.32 !important;
    }
    .prayer-section p {
        margin-bottom: 2px !important;
    }
    .compact-signoff {
        display: grid !important;
        grid-template-columns: 1.15fr 1fr !important;
        margin: 5px 0 4px !important;
        padding-top: 4px !important;
        font-size: 9.5pt !important;
        line-height: 1.28 !important;
    }
    .signature-box {
        text-align: right !important;
    }
    .sig-space {
        height: 16px !important;
    }
    .compact-office {
        margin-top: 5px !important;
        padding: 4px 8px !important;
        font-size: 9pt !important;
        line-height: 1.25 !important;
    }
    .compact-office .office-title {
        font-size: 8.5pt !important;
        margin-bottom: 2px !important;
    }
    .compact-office .office-sign-row {
        margin-top: 6px !important;
    }
}

/* =========================================================
   ADMIN PANEL STYLES
   ========================================================= */
.admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-gradient);
    color: #fff;
    padding: 16px 22px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(11, 19, 41, 0.18);
}
.admin-bar h1 {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: 0.2px;
}
.admin-bar div {
    display: flex;
    gap: 10px;
}
.admin-bar a {
    color: #bfdbfe;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 7px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s, color 0.2s;
}
.admin-bar a:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.panel {
    background: #ffffff;
    border: 1.5px solid var(--slate-200);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
.panel.login {
    max-width: 440px;
    margin: 40px auto;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.panel.login h1 {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.panel h2 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 22px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #f1f5f9;
}
.panel h2:first-of-type {
    margin-top: 0;
}

.admin-page .hint {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.5;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}
.field span {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}
.field.wide {
    grid-column: 1 / -1;
}

.choice {
    border: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.choice label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}

.banner {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}
.banner.ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.banner.bad {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Slabs Table */
.slabs {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
}
.slabs th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1.5px solid #cbd5e1;
}
.slabs td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
}
.slabs input {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
}
.slabs input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #172554, #1d4ed8);
    transform: translateY(-1px);
}
.btn-ghost {
    background: #f8fafc;
    color: #334155;
    border: 1.5px solid #cbd5e1;
}
.btn-ghost:hover {
    background: #e2e8f0;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.remove-slab {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.remove-slab:hover {
    background: #fee2e2;
}

