:root {
    --primary: #ea580c;
    --primary-2: #f97316;
    --primary-3: #fdba74;
    --primary-dark: #9a3412;

    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #ffedd5;

    --text: #1c1917;
    --muted: #57534e;
    --border: #fed7aa;

    --success: #16a34a;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none !important;
}

.container {
    max-width: 1180px !important;
}

.d-none {
    display: none !important;
}

/* Toast */
.toast-alert {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;
    width: min(360px, calc(100vw - 32px));
    padding: 13px 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
    color: var(--text);
    font-weight: 800;
    border: 1px solid var(--border);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: .22s ease;
}

.toast-alert.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-alert.success {
    border-left: 5px solid var(--success);
}

.toast-alert.error {
    border-left: 5px solid var(--danger);
}

.toast-alert.info {
    border-left: 5px solid var(--primary);
}

/* Landing Hero */
.page-shell {
    min-height: 100vh;
}

.ci-hero {
    position: relative;
    padding: 42px 0 30px;
    background:
        radial-gradient(circle at 10% 20%, rgba(6, 182, 212, .25), transparent 25%),
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, .20), transparent 30%),
        linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #ffffff 100%);
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(109, 40, 217, .11);
    animation: floatSoft 5s ease-in-out infinite alternate;
}

.orb-one {
    left: -120px;
    top: 110px;
}

.orb-two {
    right: -120px;
    bottom: 10px;
    animation-delay: .8s;
}

@keyframes floatSoft {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(16px) scale(1.04);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 28px;
    align-items: center;
}

.hero-copy {
    padding: 30px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(109, 40, 217, .08);
    border: 1px solid rgba(109, 40, 217, .12);
    font-weight: 900;
    font-size: 14px;
}

.eyebrow span:first-child {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(109, 40, 217, .12);
    flex: 0 0 auto;
}

.hero-copy h1 {
    margin: 22px 0 15px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: .98;
    font-weight: 950;
    letter-spacing: -2px;
}

.hero-copy h1 strong {
    display: block;
    color: var(--primary);
}

.hero-desc {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    font-weight: 650;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 900;
    transition: .2s ease;
}

.primary-action {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 12px 26px rgba(109, 40, 217, .25);
}

.secondary-action {
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--border);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
}

.hero-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
    max-width: 620px;
}

.hero-mini div {
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
}

.hero-mini b {
    display: block;
    font-size: 23px;
    color: var(--primary);
    line-height: 1;
}

.hero-mini span {
    display: block;
    color: var(--muted);
    font-weight: 750;
    font-size: 13px;
    margin-top: 6px;
}

/* OTP */
.otp-panel {
    background: rgba(255, 255, 255, .90);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-xl);
    padding: 24px;
    animation: slideSoft .45s ease both;
}

@keyframes slideSoft {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.panel-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(109, 40, 217, .09);
    color: var(--primary);
    font-weight: 900;
    font-size: 12px;
}

.panel-badge.dark {
    background: var(--primary-dark);
    color: #fff;
}

.panel-top h3 {
    margin: 10px 0 0;
    font-weight: 950;
    letter-spacing: -.4px;
}

.panel-icon {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    background: var(--surface-soft);
    display: grid;
    place-items: center;
    font-size: 23px;
    flex: 0 0 auto;
}

.soft-input {
    min-height: 50px;
    border-radius: 15px !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    box-shadow: none !important;
}

.soft-input:focus {
    border-color: var(--primary-2) !important;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, .10) !important;
}

.panel-btn,
.submit-main-btn {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 26px rgba(109, 40, 217, .22);
    transition: .2s ease;
}

.panel-btn:hover,
.submit-main-btn:hover {
    transform: translateY(-2px);
}

.panel-btn:disabled,
.submit-main-btn:disabled {
    opacity: .72;
    transform: none;
}

.panel-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.otp-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.otp-input {
    height: 60px;
    text-align: center;
    font-size: 27px !important;
    font-weight: 950 !important;
    border-radius: 17px !important;
    border: 1px solid var(--border) !important;
}

.otp-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
}

.link-btn {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 900;
    padding: 0;
}

/* Stats */
.quick-stats {
    padding: 22px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card span {
    font-size: 23px;
}

.stat-card b {
    display: block;
    font-size: 23px;
    margin-top: 8px;
    color: var(--primary);
}

.stat-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 750;
}

/* Sections */
.section-pad {
    padding: 46px 0;
}

.soft-bg {
    background: linear-gradient(135deg, #fff, #f5efff);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
}

.section-head.text-start {
    text-align: left;
    margin-left: 0;
}

.section-head span,
.pill-title {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(109, 40, 217, .08);
    font-weight: 950;
    font-size: 13px;
}

.section-head h2,
.left-panel h2 {
    margin: 12px 0 9px;
    font-weight: 950;
    letter-spacing: -.7px;
}

.section-head p,
.left-panel p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
    font-weight: 650;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.price-card {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-card.popular {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.popular-tag {
    position: absolute;
    right: 16px;
    top: 16px;
    background: #fff;
    color: var(--primary);
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 950;
    font-size: 12px;
}

.price-label {
    color: var(--primary);
    font-weight: 950;
    margin-bottom: 8px;
}

.popular .price-label {
    color: #ddd6fe;
}

.price-card h3 {
    font-weight: 950;
    margin-bottom: 16px;
    font-size: 21px;
    padding-right: 70px;
}

.price-card:not(.popular) h3 {
    padding-right: 0;
}

.price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price-row div {
    padding: 13px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.popular .price-row div {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .18);
}

.price-row small {
    display: block;
    font-weight: 850;
    color: var(--muted);
    font-size: 12px;
}

.popular .price-row small {
    color: #ddd6fe;
}

.price-row b {
    display: block;
    margin-top: 4px;
    font-size: 26px;
    color: var(--primary);
}

.popular .price-row b {
    color: #fff;
}

.ghost-pay,
.pay-ready-btn {
    width: 100%;
    min-height: 46px;
    margin-top: 16px;
    border-radius: 999px;
    font-weight: 950;
    transition: .2s ease;
}

.ghost-pay {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
}

.pay-ready-btn {
    border: 0;
    background: #fff;
    color: var(--primary);
}

/* Info cards */
.content-layout,
.feature-centre-grid {
    display: grid;
    gap: 20px;
    align-items: start;
}

.content-layout {
    grid-template-columns: .9fr 1.1fr;
}

.feature-centre-grid {
    grid-template-columns: 1.2fr .8fr;
}

.left-panel,
.info-card,
.analysis-card,
.centres-card,
.form-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.left-panel {
    padding: 24px;
}

.right-panel {
    display: grid;
    gap: 14px;
}

.info-card,
.analysis-card,
.centres-card {
    padding: 22px;
}

.info-card h4,
.analysis-card h3,
.centres-card h3 {
    margin-bottom: 15px;
    font-weight: 950;
}

.timeline {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.compact-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline div {
    padding: 12px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.timeline span {
    display: block;
    color: var(--primary);
    font-weight: 950;
    font-size: 14px;
}

.timeline b {
    display: block;
    margin-top: 3px;
    font-size: 13px;
}

.mini-table {
    display: grid;
    gap: 10px;
}

.mini-table div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border-radius: 15px;
    background: var(--surface-soft);
}

.mini-table span {
    color: var(--muted);
    font-weight: 850;
}

.mini-table b {
    text-align: right;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.pattern-grid div {
    padding: 14px 8px;
    border-radius: 16px;
    text-align: center;
    background: var(--surface-soft);
}

.pattern-grid b {
    display: block;
    color: var(--primary);
    font-size: 22px;
}

.pattern-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

/* Main Form - New Clean Responsive */
.registration-shell {
    min-height: 100vh;
    padding: 24px 0;
    background:
        radial-gradient(circle at 5% 15%, rgba(109, 40, 217, .10), transparent 20%),
        linear-gradient(135deg, #fff, #f5efff);
}

.form-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: 24px;
    padding: 20px 22px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
}

.form-topbar h2 {
    margin: 9px 0 4px;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 950;
    letter-spacing: -.5px;
}

.form-topbar p {
    margin: 0;
    color: #ede9fe;
    font-weight: 700;
}

.verified-badge {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-weight: 950;
    font-size: 13px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.language-control {
    display: grid;
    gap: 6px;
}

.language-label {
    color: #ddd6fe;
    font-size: 12px;
    font-weight: 900;
    padding-left: 6px;
}

.lang-switch-box {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    min-width: 210px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 5px;
    gap: 5px;
}

.lang-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 950;
    color: #fff;
    background: transparent;
    transition: .18s ease;
    line-height: 1.1;
}

.lang-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 900;
}

.compact-status-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(160px, .75fr) minmax(180px, .9fr);
    gap: 14px;
    margin-bottom: 15px;
}

.compact-status-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 15px 17px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.compact-status-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.compact-status-card b {
    display: block;
    margin-top: 5px;
    color: var(--primary);
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 950;
    word-break: break-word;
}

.compact-status-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 750;
}

.fee-card-mini.payable {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.fee-card-mini.payable span,
.fee-card-mini.payable small,
.fee-card-mini.payable b {
    color: #fff;
}

.full-form-card {
    border-radius: 24px;
    padding: 22px;
    width: 100%;
    overflow: hidden;
}

.full-form-card .row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 14px;
}

.full-form-card .form-label {
    font-size: 14px;
    margin-bottom: 7px;
    color: var(--text);
}

.full-form-card .soft-input {
    min-height: 48px;
}

.textarea-soft {
    min-height: 94px;
    resize: vertical;
}

.name-edit-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.edit-name-btn {
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 15px;
    padding: 0 18px;
    font-weight: 900;
    min-height: 48px;
}

.photo-note {
    padding: 14px 16px;
    border-radius: 17px;
    background: var(--surface-soft);
    border: 1px dashed var(--primary-3);
    color: var(--muted);
    font-weight: 700;
}

.compact-note {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.floating-apply {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 950;
    box-shadow: 0 16px 36px rgba(109, 40, 217, .30);
    z-index: 999;
    display: none;
}

.swal2-popup {
    border-radius: 24px !important;
}

.swal2-title {
    font-weight: 950 !important;
}

/* Tablet */
@media (max-width: 991px) {

    .hero-grid,
    .content-layout,
    .feature-centre-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 18px 0 4px;
    }

    .price-grid,
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .form-topbar {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .form-actions {
        width: 100%;
        justify-content: space-between;
    }

    .compact-status-grid {
        grid-template-columns: 1fr 1fr;
    }

    .compact-status-grid .compact-status-card:first-child {
        grid-column: 1 / -1;
    }

    .compact-timeline {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body {
        padding-bottom: 72px;
    }

    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ci-hero {
        padding: 22px 0 20px;
    }

    .hero-copy {
        text-align: left;
    }

    .eyebrow {
        font-size: 12px;
        padding: 8px 12px;
    }

    .hero-copy h1 {
        font-size: 38px;
        letter-spacing: -1.1px;
        line-height: 1.03;
        margin-top: 18px;
    }

    .hero-desc {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .primary-action,
    .secondary-action {
        min-height: 48px;
        padding: 0 12px;
        font-size: 14px;
    }

    .hero-mini {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-mini div {
        padding: 13px;
        border-radius: 16px;
    }

    .otp-panel,
    .left-panel,
    .info-card,
    .analysis-card,
    .centres-card,
    .price-card {
        border-radius: 18px;
        padding: 18px;
    }

    .panel-top {
        gap: 10px;
    }

    .panel-icon {
        width: 46px;
        height: 46px;
    }

    .otp-input {
        height: 56px;
        font-size: 24px !important;
    }

    .otp-bottom {
        font-size: 13px;
    }

    .section-pad {
        padding: 32px 0;
    }

    .section-head {
        margin-bottom: 22px;
    }

    .section-head h2 {
        font-size: 25px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .stat-card {
        padding: 16px;
        border-radius: 18px;
    }

    .price-row,
    .pattern-grid {
        grid-template-columns: 1fr 1fr;
    }

    .price-card h3 {
        font-size: 19px;
    }

    .price-row div {
        padding: 12px 10px;
    }

    .price-row b {
        font-size: 23px;
    }

    .mini-table div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .mini-table b {
        text-align: left;
    }

    /* Main form mobile */
    .registration-shell {
        padding: 12px 0 24px;
    }

    .form-topbar {
        border-radius: 18px;
        padding: 16px;
        gap: 14px;
        margin-bottom: 12px;
    }

    .form-topbar h2 {
        font-size: 23px;
        margin-top: 8px;
    }

    .form-topbar p {
        font-size: 13px;
        line-height: 1.5;
    }

    .form-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .language-control {
        width: 100%;
    }

    .language-label {
        padding-left: 2px;
    }

    .lang-switch-box {
        width: 100%;
        min-width: 0;
    }

    .lang-btn {
        min-height: 42px;
        padding: 9px 8px;
    }

    .logout-link {
        width: 100%;
    }

    .compact-status-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }

    .compact-status-grid .compact-status-card:first-child {
        grid-column: auto;
    }

    .compact-status-card {
        border-radius: 17px;
        padding: 13px 15px;
    }

    .compact-status-card b {
        font-size: 19px;
    }

    .full-form-card {
        padding: 16px;
        border-radius: 18px;
    }

    .full-form-card .row {
        --bs-gutter-y: 12px;
    }

    .full-form-card .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .soft-input,
    .full-form-card .soft-input {
        min-height: 46px;
        border-radius: 13px !important;
        font-size: 14px !important;
    }

    .name-edit-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .edit-name-btn {
        min-height: 44px;
        border-radius: 13px;
    }

    .textarea-soft {
        min-height: 84px;
    }

    .photo-note {
        padding: 12px 14px;
        border-radius: 15px;
        font-size: 13px;
    }

    .submit-main-btn {
        min-height: 50px;
        border-radius: 14px;
    }

    .floating-apply {
        display: none;
    }

    .floating-apply.show {
        display: block;
    }

    .toast-alert {
        top: 10px;
        left: 12px;
        right: 12px;
        width: auto;
    }
}

/* Very small mobile */
@media (max-width: 380px) {
    .hero-copy h1 {
        font-size: 33px;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .price-row,
    .pattern-grid {
        grid-template-columns: 1fr;
    }

    .otp-row {
        gap: 7px;
    }

    .otp-input {
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* ==========================================================
   FINAL HERO + DETAIL BANNER + FEE TABLE FIX
   Keep all design CSS in style.css only
========================================================== */

.ci-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 32px 0;
    background:
        radial-gradient(circle at 8% 16%, rgba(167, 139, 250, .30), transparent 26%),
        radial-gradient(circle at 92% 10%, rgba(109, 40, 217, .18), transparent 25%),
        linear-gradient(135deg, #ffffff 0%, var(--surface-soft) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 26px;
    align-items: stretch;
}

.hero-copy {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.otp-panel {
    align-self: center;
    position: sticky;
    top: 18px;
}

.ci-detail-banner {
    position: relative;
    max-width: 100%;
    margin: 18px 0 0;
    padding: 24px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, .16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8f5ff 52%, #efe7ff 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.ci-detail-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(109, 40, 217, .10) 0 1px, transparent 1px 100%),
        linear-gradient(0deg, rgba(109, 40, 217, .08) 0 1px, transparent 1px 100%);
    background-size: 34px 34px;
    opacity: .32;
    pointer-events: none;
}

.ci-detail-banner::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -85px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(109, 40, 217, .22), rgba(139, 92, 246, .08));
    pointer-events: none;
}

.ci-detail-banner>* {
    position: relative;
    z-index: 1;
}

.banner-topline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.25;
    box-shadow: 0 10px 24px rgba(59, 7, 100, .18);
}

.banner-topline::before {
    content: "●";
    color: #c4b5fd;
    font-size: 12px;
}

.ci-detail-banner h2 {
    margin: 14px 0;
    line-height: 1.05;
    color: var(--primary-dark);
    /* font-size: clamp(25px, 3.8vw, 64px); */
    font-weight: 950;
padding : 5px;
    letter-spacing: -1.4px;
}

.ci-detail-banner h2 span,
.ci-detail-banner h2 strong {
     display:block;
    color:#6d28d9;
    font-weight:900;
padding : 5px;
}

.ci-detail-banner h2 strong {
    color: var(--primary);
}

.ci-detail-banner {
    position: relative;
}

.hero-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.hero-logo img {
    width: 130px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .15));
}

@media (max-width:768px) {

    .hero-logo {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #000;
        padding: 6px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    }
.ci-detail-banner h2 .line-1{
    font-size: clamp(20px,3vw,36px);
}

.ci-detail-banner h2 .line-2{
    font-size: clamp(24px,3.5vw,42px);
}
    .hero-logo img {
        width: 70px;
    }

    .ci-detail-banner h2 {
        max-width: 65%;
    }
}

@media (max-width:768px) {

    .ci-detail-banner {
        position: relative;
        padding-top: 15px;
    }

    .hero-logo {
        position: absolute;
        top: 12px;
        right: 12px;
        margin: 0;
        text-align: right;
        z-index: 2;
    }

    .hero-logo img {
        width: 75px;
        height: auto;
        display: block;
    }

    .ci-detail-banner h2 {
        padding-right: 85px;
        /* logo ke liye space */
        margin-bottom: 10px;
    }
}

.banner-series {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: clamp(11px, 3.2vw, 22px);
    line-height: 1;
    font-weight: 950;
}

.banner-series span {
    color: var(--primary);
}

.banner-series b {
    color: var(--text);
}

.banner-date {
    display: inline-flex;
    margin-top: 14px;
    padding: 10px 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.15;
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(109, 40, 217, .22);
}

.banner-time {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    color: var(--text);
    font-size: 17px;
    font-weight: 850;
}

.banner-time b {
    color: var(--primary);
    white-space: nowrap;
}

.banner-time ul {
    margin: 0;
    padding-left: 18px;
}

.banner-time li {
    margin-bottom: 2px;
}

.banner-centres {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, .78);
    border-radius: 18px;
    border: 1px solid var(--border);
}

.banner-centres b {
    color: var(--primary);
    margin-right: 3px;
}

.banner-centres span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary-dark);
    border: 1px solid var(--border);
    font-weight: 900;
    font-size: 13px;
}

/* Fee table moved from inline style to style.css */
.fee-table-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    max-width: 860px;
    margin: 0 auto;
}

.fee-offer-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    color: var(--text);
    font-size: 17px;
}

.fee-offer-table th,
.fee-offer-table td {
    border: 1.5px solid #1f2937;
    padding: 12px 14px;
    vertical-align: middle;
}

.fee-offer-table th {
    font-weight: 950;
    text-align: center;
    background: var(--surface-soft);
    font-size: 18px;
}

.fee-offer-table td:first-child {
    font-weight: 750;
}

.fee-offer-table td:nth-child(2),
.fee-offer-table td:nth-child(3) {
    font-weight: 900;
      text-align: center;
    white-space: nowrap;
}

.fee-table-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px dashed var(--primary-3);
}

.fee-table-note span {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.5;
}

.fee-table-note button {
    border: 0;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 950;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .ci-hero {
        min-height: auto;
        padding: 26px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .otp-panel {
        position: static;
    }

    .hero-copy {
        order: initial;
    }
}

@media (max-width: 767px) {
    .ci-hero {
        min-height: 100svh;
        align-items: flex-start;
        padding: 14px 0 24px;
    }

    .hero-grid {
        gap: 14px;
    }

    .otp-panel {
        border-radius: 20px;
        padding: 18px;
        margin-top: 0;
    }

    .hero-copy {
        padding: 0;
    }

    .eyebrow {
        display: none;
    }

    .ci-detail-banner {
        margin: 0;
        padding: 16px;
        border-radius: 20px;
    }

    .banner-topline {
       font-size: 15px;
        padding: 12px 20px;
    }

    .ci-detail-banner h2 {
        margin-top: 16px;
        font-size: 34px;
        letter-spacing: -.8px;
    }

    .banner-series {
        width: 100%;
        font-size: 25px;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .banner-date {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 19px;
        border-radius: 14px;
    }

    .banner-time {
        flex-direction: column;
        gap: 5px;
        font-size: 14px;
        margin-top: 12px;
    }

    .banner-centres {
        gap: 6px;
        padding: 10px;
        border-radius: 15px;
    }

    .banner-centres b {
        width: 100%;
    }

    .banner-centres span {
        font-size: 12px;
        padding: 5px 8px;
    }

    .fee-table-card {
        padding: 12px;
        border-radius: 18px;
    }

    .fee-offer-table {
        font-size: 14px;
        min-width: 520px;
    }

    .fee-offer-table th,
    .fee-offer-table td {
        padding: 10px 9px;
    }

    .fee-offer-table th {
        font-size: 14px;
    }

    .fee-table-note {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .fee-table-note button {
        width: 100%;
    }
}


/* ==========================================================
   Additional Content Sections - Same Purple Theme
========================================================== */
.info-grid-2,
.analysis-grid,
.planner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.theme-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.theme-card h3,
.theme-card h4 {
    font-weight: 950;
    margin-bottom: 14px;
    color: var(--primary-dark);
}

.theme-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.theme-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 13px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    font-weight: 750;
    color: var(--text);
}

.theme-list li::before {
    content: "✓";
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 950;
    font-size: 13px;
}

.theme-table-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.theme-table-title {
    padding: 17px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-weight: 950;
    font-size: 18px;
}

.theme-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.theme-table th,
.theme-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-weight: 750;
}

.theme-table th {
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-weight: 950;
}

.theme-table tr:last-child td {
    border-bottom: 0;
}

.theme-table td:last-child,
.theme-table th:last-child {
    text-align: right;
}

.centre-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.centre-chip-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-weight: 900;
}

.special-note-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-md);
}

.special-note-card h3 {
    color: #fff;
    font-weight: 950;
    margin-bottom: 10px;
}

.special-note-card p {
    color: #ede9fe;
    font-weight: 750;
    line-height: 1.65;
    margin-bottom: 10px;
}

.final-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow-md);
}

.final-cta-card h2 {
    margin: 0 0 12px;
    font-weight: 950;
    color: var(--primary-dark);
}

.final-cta-card .theme-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.final-cta-btn {
    border: 0;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(109, 40, 217, .22);
    white-space: nowrap;
}

@media (max-width: 991px) {

    .info-grid-2,
    .analysis-grid,
    .planner-grid,
    .final-cta-card {
        grid-template-columns: 1fr;
    }

    .final-cta-card .theme-list {
        grid-template-columns: 1fr;
    }

    .final-cta-btn {
        width: 100%;
    }
}

@media (max-width: 767px) {

    .theme-card,
    .special-note-card,
    .final-cta-card {
        padding: 17px;
        border-radius: 20px;
    }

    .theme-table-title {
        padding: 14px 15px;
        font-size: 16px;
    }

    .theme-table th,
    .theme-table td {
        padding: 11px 12px;
        font-size: 14px;
    }

    .theme-table td:last-child,
    .theme-table th:last-child {
        text-align: left;
    }

    .theme-table-card {
        overflow: hidden;
    }

    .theme-table {
        min-width: 0 !important;
    }
}

/* ==========================================================
   FINAL RESPONSIVE FIXES - DO NOT CHANGE FUNCTIONALITY
   Mobile/tablet layout stable + same visual order
========================================================== */

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

.table-responsive,
.theme-table-card,
.fee-table-card {
    max-width: 100%;
}

@media (max-width: 1199px) {
    .container {
        max-width: 960px !important;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
        gap: 22px;
    }

    .ci-detail-banner h2 {
        font-size: clamp(40px, 5.2vw, 58px);
    }

    .banner-series {
        font-size: clamp(30px, 4.5vw, 48px);
    }
}

@media (max-width: 991px) {
    .container {
        max-width: 720px !important;
    }

    .ci-hero {
        padding: 28px 0 24px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
    }

    /* Order same rakha hai: details/banner first, OTP second */
    .hero-copy {
        order: 1;
        padding: 0;
    }

    .otp-panel {
        order: 2;
        width: 100%;
        max-width: 100%;
    }

    .ci-detail-banner {
        max-width: 100%;
    }

    .stats-grid,
    .price-grid,
    .content-layout,
    .feature-centre-grid,
    .compact-status-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-layout,
    .feature-centre-grid {
        grid-template-columns: 1fr;
    }

    .form-topbar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
        padding-bottom: 78px;
    }

    .container {
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .ci-hero {
        padding: 16px 0 20px;
        border-radius: 0 0 22px 22px;
    }

    .hero-orb {
        width: 150px;
        height: 150px;
        opacity: .65;
    }

    .orb-one {
        left: -86px;
        top: 70px;
    }

    .orb-two {
        right: -80px;
        bottom: 0;
    }

    .hero-grid {
        gap: 14px;
    }

    .eyebrow {
        font-size: 12px;
        padding: 7px 11px;
        margin-bottom: 8px;
    }

    .ci-detail-banner {
        margin: 8px 0 0;
        padding: 15px;
        border-radius: 22px;
        box-shadow: 0 12px 32px rgba(63, 15, 132, .10);
    }
.banner-time b{
    display:block;
    font-size:clamp(28px,4vw,42px);
    font-weight:700;
 
}

.time-list{
    list-style:disc;
    padding-left:40px;
    margin:0;
}

.time-list li{
    font-size:clamp(24px,3vw,40px);
    line-height:1.2;
    color:#000000;
    margin-bottom:25px;
    padding-bottom:25px;
    border-bottom:2px solid rgba(255,255,255,.5);
}
.cet-title{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    text-align:center;
    margin:0;
}

.cet-badge{
    font-size:clamp(2.5rem,7vw,5rem);
    font-weight:800;
    color:#ffeb00;
    line-height:1;
}

.cet-level{
  
    font-weight:700;
    line-height:1.25;
    color:#fff;
}

.cet-level span{
    color:#ffeb00;
    font-weight:800;
}
.cet-and {
    display: block;
    text-align: center;
}
.cet-level small{
    display:inline-block;
    font-size:1.4em;
    color:#000000;
    font-weight:700;
}
.time-list li:last-child{
    border-bottom:none;
    margin-bottom:0;
    padding-bottom:0;
}

.highlight{
    color:red;
    font-weight:700;
}
    .ci-detail-banner::after {
        width: 140px;
        height: 140px;
        right: -58px;
        top: -58px;
    }

    .banner-topline {
      font-size: 15px;
        padding: 12px 20px;
        border-radius: 999px;
        max-width: 100%;
    }

    .ci-detail-banner h2 {
        /* margin: 15px 0 8px; */
        font-size: clamp(34px, 11vw, 44px);
        line-height: 1.5;
        letter-spacing: -1px;
    }

    .banner-series {
        gap: 7px;
        font-size: clamp(25px, 8vw, 34px);
        line-height: 1.05;
    }

    .banner-date {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
        font-size: 17px;
        padding: 9px 12px;
        border-radius: 12px;
        margin-top: 12px;
    }

    .banner-time {
        display: grid;
        gap: 6px;
        font-size: 14px;
        margin-top: 12px;
    }
.table-scroll-wrap {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: auto;
}

.table-scroll-wrap thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
    .banner-time ul {
        padding-left: 18px;
        margin: 0;
    }

    .banner-time li {
        margin-bottom: 3px;
    }

    .banner-centres {
        gap: 6px;
        padding: 10px;
        border-radius: 14px;
    }

    .banner-centres b {
        width: 100%;
        font-size: 13px;
    }

    .banner-centres span {
        font-size: 12px;
        padding: 5px 8px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid var(--border);
    }

    .hero-inside-stats,
    .hero-mini,
    .stats-grid,
    .price-grid,
    .compact-status-grid,
    .info-grid-2,
    .analysis-grid,
    .planner-grid,
    .final-cta-card,
    .final-cta-card .theme-list,
    .compact-timeline,
    .pattern-grid {
        grid-template-columns: 1fr;
    }

    .hero-inside-stats {
        gap: 8px;
    }

    .otp-panel {
        padding: 16px;
        border-radius: 22px;
        box-shadow: 0 12px 32px rgba(63, 15, 132, .12);
    }

    .panel-top {
        gap: 10px;
        margin-bottom: 14px;
    }

    .panel-badge {
        font-size: 12px;
        padding: 7px 11px;
    }

    .otp-subtitle,
    .panel-note {
        font-size: 13px;
        line-height: 1.45;
    }

    .panel-icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
        font-size: 21px;
    }

    .soft-input {
        min-height: 48px;
        font-size: 15px !important;
    }

    .panel-btn,
    .submit-main-btn {
        min-height: 50px;
        border-radius: 15px;
        font-size: 15px;
    }

    .otp-row {
        gap: 8px;
    }

    .otp-input {
        height: 54px;
        font-size: 24px !important;
        border-radius: 15px !important;
    }

    .otp-bottom {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .quick-stats,
    .section-pad {
        padding: 22px 0;
    }

    .section-head {
        margin-bottom: 18px;
    }

    .section-head h2,
    .left-panel h2,
    .final-cta-card h2 {
        font-size: 24px;
        line-height: 1.25;
    }

    .section-head p,
    .left-panel p {
        font-size: 14px;
    }

    .stat-card,
    .theme-card,
    .left-panel,
    .info-card,
    .analysis-card,
    .centres-card,
    .special-note-card,
    .final-cta-card,
    .fee-table-card {
        border-radius: 18px;
        padding: 15px;
    }

    .stat-card b {
        font-size: 20px;
    }

    .fee-offer-table {
        min-width: 560px;
        font-size: 13px;
    }

    .fee-offer-table th,
    .fee-offer-table td {
        padding: 10px 9px;
        white-space: nowrap;
    }

    .theme-table {
        width: 100%;
        min-width: 0 !important;
        font-size: 13px;
        table-layout: fixed;
    }

    .theme-table th,
    .theme-table td {
        padding: 8px 9px;
        white-space: normal !important;
        word-break: normal;
        overflow-wrap: anywhere;
        line-height: 1.35;
    }

    .fee-table-note {
        display: grid;
        gap: 10px;
        align-items: stretch;
        padding: 12px;
    }

    .fee-table-note button,
    .final-cta-btn {
        width: 100%;
        min-height: 48px;
    }

    .theme-list {
        gap: 8px;
    }

    .theme-list li {
        padding: 10px 11px;
        font-size: 14px;
        border-radius: 14px;
    }

    .theme-list li::before {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .centre-chip-grid span {
        font-size: 13px;
        padding: 8px 11px;
    }

    .registration-shell {
        padding: 14px 0 82px;
    }

    .form-topbar {
        padding: 15px;
        border-radius: 20px;
        text-align: left;
    }

    .form-topbar h2 {
        font-size: 22px;
    }

    .form-topbar p {
        font-size: 13px;
        line-height: 1.45;
    }

    .form-actions {
        width: 100%;
        align-items: stretch;
        justify-content: stretch;
    }

    .language-control,
    .lang-switch-box,
    .logout-link {
        width: 100%;
    }

    .logout-link {
        min-height: 42px;
    }

    .compact-status-card {
        padding: 13px;
        border-radius: 17px;
    }

    .full-form-card {
        padding: 14px;
        border-radius: 20px;
    }

    .full-form-card .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 12px;
    }

    .name-edit-group {
        grid-template-columns: 1fr;
    }

    .edit-name-btn {
        min-height: 44px;
        width: 100%;
    }

    .textarea-soft {
        min-height: 88px;
    }

    .photo-note {
        font-size: 13px;
        border-radius: 15px;
    }

    .floating-apply {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 12px;
        width: auto;
        z-index: 9999;
        min-height: 52px;
        border-radius: 16px;
        box-shadow: 0 14px 30px rgba(63, 15, 132, .24);
    }
}

@media (max-width: 420px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ci-detail-banner h2 {
        font-size: 31px;
    }

    .banner-series {
        font-size: 24px;
    }

    .banner-date {
        font-size: 15px;
    }

    .banner-time {
        font-size: 13px;
    }

    .panel-top {
        align-items: flex-start;
    }

    .panel-icon {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .otp-input {
        height: 50px;
        font-size: 22px !important;
    }

    .section-head h2,
    .left-panel h2,
    .final-cta-card h2 {
        font-size: 21px;
    }

    .theme-table-title {
        font-size: 15px;
    }
}

/* ==========================================================
   TEST PLANNER RESPONSIVE FIX - SAME PURPLE THEME
   Note: Yellow duplicate planner CSS removed.
========================================================== */

.planner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.table-responsive-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive-wrap::-webkit-scrollbar {
    height: 6px;
}

.table-responsive-wrap::-webkit-scrollbar-track {
    background: var(--surface-soft);
    border-radius: 999px;
}

.table-responsive-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-radius: 999px;
}
.planner-table{
    width:100%;
    min-width:100%;
    table-layout:fixed;
}
.planner-table th,
.planner-table td {
    text-align: center;
    white-space: nowrap;
}
@media(max-width:767px){

    .planner-table{
        width:100%;
        min-width:100% !important;
        table-layout:auto;
    }

    .planner-table th,
    .planner-table td{
        white-space:normal;
        word-break:break-word;
        padding:8px 6px;
        font-size:12px;
    }

    .planner-table th:nth-child(1),
    .planner-table td:nth-child(1){
        width:40px;
        text-align:center;
    }

    .planner-table th:nth-child(2),
    .planner-table td:nth-child(2){
        width:120px;
    }

    .table-responsive-wrap{
        overflow-x:hidden;
    }
}
.planner-table th:first-child,
.planner-table td:first-child {
    width: 58px;
}

.planner-table tbody tr:nth-child(even) {
    background: var(--surface-soft);
}

.planner-table tbody tr:hover {
    background: #f3ecff;
}

@media (max-width: 991px) {
    .planner-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .planner-table {
        min-width: 510px;
    }

    .planner-table th,
    .planner-table td {
        padding: 10px 9px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .planner-table {
        min-width: 490px;
    }
}

.hero-inside-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.hero-inside-stats div {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 15px 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.hero-inside-stats span {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(109, 40, 217, .10);
    color: var(--primary);
    font-size: 18px;
    font-weight: 900;
}

.hero-inside-stats b {
    display: block;
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 950;
    line-height: 1.1;
}

.hero-inside-stats small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 576px) {
    .hero-inside-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-inside-stats div {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 12px;
    }

    .hero-inside-stats span {
        margin: 0;
        flex: 0 0 34px;
    }

    .hero-inside-stats b {
        font-size: 19px;
    }

    .hero-inside-stats small {
        margin-top: 2px;
    }
}

.batch-details-card {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, .16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8f5ff 55%, #efe7ff 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.batch-details-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(109, 40, 217, .08) 0 1px, transparent 1px 100%),
        linear-gradient(0deg, rgba(109, 40, 217, .07) 0 1px, transparent 1px 100%);
    background-size: 34px 34px;
    opacity: .35;
    pointer-events: none;
}

.batch-details-card::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(109, 40, 217, .22), rgba(139, 92, 246, .08));
    pointer-events: none;
}

.batch-details-content,
.batch-timeline-grid {
    position: relative;
    z-index: 1;
}

.batch-details-content h2 {
    margin: 14px 0 10px;
    color: var(--primary-dark);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -1px;
}

.batch-details-content p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 700;
}

.batch-timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.batch-timeline-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    padding: 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: .22s ease;
}

.batch-timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.timeline-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(109, 40, 217, .10);
    color: var(--primary);
    font-size: 21px;
}

.batch-timeline-item span {
    display: block;
    color: var(--primary);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
}

.batch-timeline-item b {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.3;
}

.batch-timeline-item.highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: transparent;
}

.batch-timeline-item.highlight .timeline-icon {
    background: rgba(255, 255, 255, .16);
}

.batch-timeline-item.highlight span,
.batch-timeline-item.highlight b {
    color: #fff;
}

@media (max-width: 991px) {
    .batch-details-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .batch-details-card {
        padding: 18px;
        border-radius: 22px;
    }

    .batch-timeline-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .batch-timeline-item {
        min-height: auto;
        padding: 13px;
        border-radius: 17px;
    }

    .batch-details-content h2 {
        font-size: 25px;
    }

    .batch-details-content p {
        font-size: 14px;
    }

    .timeline-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 14px;
        font-size: 19px;
    }
}

/* ==========================================================
   FINAL HERO + LOGO RESPONSIVE FIX
   Purpose: logo/content overlap fix, better mobile landing layout
   Keep this block at the END of style.css
========================================================== */

.ci-hero {
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 28px;
    align-items: center;
}

.ci-detail-banner {
    position: relative;
    isolation: isolate;
    min-height: auto;
 
    border-radius: 30px;
    overflow: hidden;
}

.hero-logo {
    position: absolute;
    top: 5px;
    right: 24px;
    z-index: 5;
    width: 125px;
    min-height: 82px;
    display: grid;
    place-items: center;
    padding: 10px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(234, 220, 255, .95);
    box-shadow: 0 14px 32px rgba(63, 15, 132, .14);
    backdrop-filter: blur(10px);
}

.hero-logo img {
    width: 112px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .12));
}

.ci-detail-banner h2 {
    max-width: 100%;
    padding-right: 0;
    margin: 14px 0 12px;
    word-break: normal;
}

.banner-series,
.banner-date,
.banner-time,
.banner-centres {
    max-width: 100%;
}

.banner-time {
    align-items: flex-start;
}

.banner-time ul {
    list-style-position: outside;
}

@media (max-width: 991px) {
    .ci-hero {
        min-height: auto;
        padding: 24px 0 28px;
        align-items: flex-start;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .otp-panel {
        position: static;
        width: 100%;
    }
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ci-hero {
        min-height: auto;
        padding: 12px 0 20px;
    }

    .hero-grid {
        gap: 14px;
    }

    .ci-detail-banner {
        margin: 0;
        padding: 14px;
        border-radius: 22px;
        text-align: center;
    }

    .ci-detail-banner::after {
        width: 135px;
        height: 135px;
        top: -62px;
        right: -62px;
        opacity: .75;
    }

    .hero-logo {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 112px;
        min-height: 62px;
        margin: 0 auto 12px;
        padding: 8px 10px;
        border-radius: 16px;
        background: #fff !important;
        box-shadow: 0 10px 24px rgba(63, 15, 132, .13);
    }

    .hero-logo img {
        width: 92px !important;
        height: auto;
    }
@media (max-width: 767px) {
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
        text-align: center;
    }

    .stat-card b {
        font-size: 18px;
    }

    .stat-card p {
        font-size: 12px;
        margin-top: 4px;
    }
}
    .ci-detail-banner h2 {
        width: 100%;
        max-width: 100% !important;
        padding-right: 0 !important;
        margin: 4px 0 10px !important;
        /* font-size: clamp(11px, 10.5vw, 42px) !important; */
        line-height: 1.2;
        letter-spacing: -.9px;
        text-align: center;
    }

    .banner-series {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 8px;
        margin-top: 8px;
        padding: 10px 12px;
        border-radius: 16px;
        /* font-size: clamp(24px, 8vw, 32px) !important; */
        text-align: center;
    }

    .banner-date {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 17px !important;
        text-align: center;
    }

    .banner-time {
        display: grid !important;
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 6px;
        margin-top: 12px;
        padding: 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, .78);
        border: 1px solid var(--border);
        text-align: left;
        font-size: 14px !important;
    }

    .banner-time b {
        display: block;
        width: 100%;
        text-align: left;
    }

    .banner-time ul {
        padding-left: 18px !important;
        margin: 0;
    }

    .banner-time li {
        line-height: 1.45;
        margin-bottom: 3px;
    }
@media (max-width: 767px) {

    .compact-form-topbar {
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        padding: 14px 12px;
        border-radius: 18px;
    }

    .form-title-wrap {
        flex: 1;
        min-width: 0;
    }

    .verified-badge {
        font-size: 10px;
        padding: 5px 9px;
    }

    .form-title-wrap h2 {
        font-size: 17px;
        line-height: 1.2;
        margin: 7px 0 0;
    }

    .compact-form-actions {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }

    .compact-lang-switch {
        /* display: flex !important; */
        width: auto !important;
        min-width: auto !important;
        padding: 3px;
        gap: 3px;
        border-radius: 999px;
    }

    .compact-lang-switch .lang-btn {
        min-height: 30px;
        padding: 5px 7px;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .compact-logout {
        width: auto !important;
        min-height: 30px;
        padding: 5px 8px;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }
}
    .banner-centres {
        justify-content: flex-start;
        text-align: left;
        gap: 6px;
        padding: 10px;
        border-radius: 16px;
    }

    .banner-centres b {
        width: 100%;
        font-size: 13px;
    }

    .banner-centres span {
        font-size: 12px;
        padding: 6px 9px;
        background: #fff;
    }

    .otp-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .panel-top {
        align-items: center;
    }

    .panel-badge {
        font-size: 12px;
    }

    .otp-subtitle,
    .panel-note {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 390px) {
    .ci-detail-banner {
        padding: 12px;
        border-radius: 20px;
    }

    .hero-logo {
        width: 104px;
        min-height: 58px;
        margin-bottom: 10px;
    }

    .hero-logo img {
        width: 84px !important;
    }

    .ci-detail-banner h2 {
        font-size: clamp(28px, 10vw, 36px) !important;
    }

    .banner-series {
        font-size: 23px !important;
    }

    .banner-date {
        font-size: 15px !important;
    }
}



/* ==========================================================
   GLOBAL THEME CONTROL
   Root colors yahin change karoge to complete theme change ho jayegi.
   ========================================================== */
:root {
    --theme-primary: #6d28d9;
    --theme-secondary: #8b5cf6;
    --theme-accent: #f59e0b;
    --theme-bg: #f8f7ff;
    --theme-soft: #faf7ff;

    --primary: var(--theme-primary);
    --primary-2: var(--theme-secondary);
    --primary-3: color-mix(in srgb, var(--theme-secondary), #ffffff 35%);
    --primary-dark: color-mix(in srgb, var(--theme-primary), #111827 42%);
    --bg: var(--theme-bg);
    --surface-soft: var(--theme-soft);
    --border: color-mix(in srgb, var(--theme-primary), #ffffff 82%);
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.28), transparent 28%),
        linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-2));
    transition: opacity .4s ease, visibility .4s ease;
}

.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-card {
    width: 132px;
    height: 132px;
    border-radius: 34px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.26);
    display: grid;
    place-items: center;
    box-shadow: 0 28px 60px rgba(0,0,0,.22);
    backdrop-filter: blur(14px);
}

.splash-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    animation: logoBlink 1s ease-in-out infinite;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

.splash-loader {
    width: 54px;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.28);
    margin-top: -8px;
    position: relative;
}

.splash-loader::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 42%;
    border-radius: inherit;
    background: #fff;
    animation: splashMove 1s ease-in-out infinite;
}

@keyframes logoBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.96); }
}

@keyframes splashMove {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(260%); }
}

/* Compact Form Header: language + logout right side */
.compact-form-topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 14px 16px !important;
    /* gap: 12px !important;
    align-items: center !important; */
}

/* .form-title-wrap h2 {
    margin: 7px 0 0 !important;
} */

.compact-form-actions {
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap !important;
}

.compact-lang-switch {
    min-width: auto !important;
    width: auto !important;
    padding: 4px !important;
    gap: 4px !important;
}

.compact-lang-switch .lang-btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
}

.compact-logout {
    min-height: 38px !important;
    padding: 8px 13px !important;
    white-space: nowrap;
}

/* SweetAlert submit success */
.submit-success-box {
    text-align: left;
    font-weight: 700;
    color: var(--text);
}

.submit-success-box p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.success-note {
    padding: 11px 12px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--muted);
}

.swal-pay-now-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 26px rgba(109, 40, 217, .22);
}

@media (max-width: 767px) {
    .compact-form-topbar {
        grid-template-columns: 1fr !important;
        padding: 13px !important;
    }

    .compact-form-actions {
        width: 100%;
        display: flex !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    .compact-lang-switch {
        /* flex: 1 1 auto; */
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .compact-logout {
        flex: 0 0 auto;
    }
}


/* ==========================================================
   PREVIOUS PAPER ANALYSIS TABLE - FINAL MOBILE FIX
   Purpose: table content ke according fit ho, extra width/space na le
   Keep this block at the END of style.css
========================================================== */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.theme-table-card {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.theme-table {
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: collapse;
}

.theme-table th,
.theme-table td {
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.theme-table th:first-child,
.theme-table td:first-child {
    width: auto;
    text-align: left;
}

.theme-table th:last-child,
.theme-table td:last-child {
    width: 78px;
    text-align: center !important;
    white-space: nowrap !important;
}

.theme-table tbody tr:last-child th,
.theme-table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 991px) {
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .analysis-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .theme-table-card {
        border-radius: 16px !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .theme-table-title {
        padding: 11px 12px !important;
        font-size: 15px !important;
        line-height: 1.25;
    }

    .theme-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        font-size: 12px !important;
    }

    .theme-table th,
    .theme-table td {
        padding: 7px 8px !important;
        font-size: 12px !important;
        line-height: 1.28 !important;
        white-space: normal !important;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .theme-table th:first-child,
    .theme-table td:first-child {
        width: calc(100% - 52px) !important;
        text-align: left !important;
    }


}

@media (max-width: 380px) {
    .theme-table th,
    .theme-table td {
        padding: 6px 7px !important;
        font-size: 11.5px !important;
    }

    .theme-table th:last-child,
    .theme-table td:last-child {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
    }
}


/* ==========================================================
   FINAL TEST PLANNER TABLE FIX
   Purpose: Planner tables fit properly on desktop + mobile.
   This block must stay at the END of style.css.
========================================================== */

.planner-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: start !important;
}

.table-responsive-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: auto !important;
}

.planner-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.planner-table th,
.planner-table td {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 12px 10px !important;
    line-height: 1.35 !important;
}

.planner-table th:first-child,
.planner-table td:first-child {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    text-align: center !important;
}

.planner-table th:nth-child(2),
.planner-table td:nth-child(2) {
    width: 42% !important;
    text-align: center !important;
}

.planner-table th:nth-child(3),
.planner-table td:nth-child(3) {
    width: auto !important;
    text-align: center !important;
}

.planner-table tbody tr:nth-child(even) {
    background: var(--surface-soft) !important;
}

.planner-table tbody tr:hover {
    background: #f3ecff !important;
}

@media (min-width: 992px) {
    .planner-grid {

    }

    .planner-table th,
    .planner-table td {
        font-size: 15px !important;
        padding: 12px 10px !important;
    }

    .planner-table th:first-child,
    .planner-table td:first-child {
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
    }

    .planner-table th:nth-child(2),
    .planner-table td:nth-child(2) {
        width: 45% !important;
    }

    .planner-table th:nth-child(3),
    .planner-table td:nth-child(3) {
        width: 38% !important;
    }
}

@media (max-width: 991px) {
    .planner-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .planner-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .table-responsive-wrap {
        overflow-x: hidden !important;
    }

    .planner-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    .planner-table th,
    .planner-table td {
        padding: 8px 6px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .planner-table th:first-child,
    .planner-table td:first-child {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
    }

    .planner-table th:nth-child(2),
    .planner-table td:nth-child(2) {
        width: 44% !important;
    }

    .planner-table th:nth-child(3),
    .planner-table td:nth-child(3) {
        width: auto !important;
    }
}

@media (max-width: 380px) {
    .planner-table th,
    .planner-table td {
        padding: 7px 5px !important;
        font-size: 11.2px !important;
    }

    .planner-table th:first-child,
    .planner-table td:first-child {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
    }

    .planner-table th:nth-child(2),
    .planner-table td:nth-child(2) {
        width: 43% !important;
    }
}

/* Test Structure Section Fix */

.test-structure-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    align-items:start;
}

.compact-table-card,
.compact-centre-card{
    height:auto !important;
}

.compact-theme-table{
    width:100%;
    min-width:0 !important;
    table-layout:fixed;
}

.compact-theme-table th,
.compact-theme-table td{
    padding:11px 13px;
    white-space:normal !important;
    word-break:normal;
    overflow-wrap:break-word;
    line-height:1.4;
}

/* .compact-theme-table th:first-child,
.compact-theme-table td:first-child{
    width:48%;
} */

/* .compact-theme-table th:last-child,
.compact-theme-table td:last-child{
    width:52%;
    text-align:center;
} */

.compact-centre-card{
    min-height:auto;
}

.compact-centre-card h3{
    margin-bottom:10px;
}

.compact-centre-card p{
    color:var(--muted);
    font-weight:700;
}

@media(max-width:991px){
    .test-structure-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:767px){
    .test-structure-grid{
        gap:14px;
    }

    .compact-theme-table th,
    .compact-theme-table td{
        padding:9px 8px;
        font-size:13px;
    }

    .compact-theme-table th:first-child,
    .compact-theme-table td:first-child{
        width:45%;
    }

    .compact-theme-table th:last-child,
    .compact-theme-table td:last-child{
        width:55%;
    }

    .centre-chip-grid{
        gap:7px;
    }

    .centre-chip-grid span{
        font-size:12px;
        padding:7px 9px;
    }
}

/* ==========================================================
   FINAL UNIVERSAL TABLE FIX - CONTENT BASED + SCROLL SAFE
   Paste kept at END so old min-width/nowrap conflicts are overridden.
========================================================== */

.info-grid-2,
.test-structure-grid,
.analysis-grid,
.planner-grid{
    align-items:start !important;
}

/* Default table card */
.theme-table-card{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    overflow:hidden !important;
}

/* Optional wrapper for tables where content may become large */
.theme-table-scroll,
.table-responsive-wrap{
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
}

/* Thin premium scrollbar */
.theme-table-scroll::-webkit-scrollbar,
.table-responsive-wrap::-webkit-scrollbar{
    height:6px;
}

.theme-table-scroll::-webkit-scrollbar-track,
.table-responsive-wrap::-webkit-scrollbar-track{
    background:var(--surface-soft);
    border-radius:999px;
}

.theme-table-scroll::-webkit-scrollbar-thumb,
.table-responsive-wrap::-webkit-scrollbar-thumb{
    background:linear-gradient(135deg,var(--primary),var(--primary-2));
    border-radius:999px;
}

/* Normal theme tables: content based width */
.theme-table{
    width:100% !important;
    min-width:0 !important;
    table-layout:auto !important;
    border-collapse:collapse;
}

/* When table has more/long columns, add class auto-scroll-table */
.auto-scroll-table{
    min-width:max-content !important;
    width:max-content !important;
}

/* Table cells */
.theme-table th,
.theme-table td{
    padding:12px 14px !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
    line-height:1.4 !important;
    vertical-align:middle !important;
}

/* Short numeric/value columns should not waste width */
.theme-table th:last-child,
.theme-table td:last-child{
    width:auto !important;
    text-align:center !important;
}

/* Test structure specific */
.test-structure-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.test-structure-grid .theme-table th,
.test-structure-grid .theme-table td{
    width:auto !important;
}

.test-structure-grid .theme-table td:nth-child(2),
.test-structure-grid .theme-table th:nth-child(2){
    text-align:center !important;
    white-space:nowrap !important;
}

/* Planner tables: desktop two cards need safe scroll */
.planner-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.planner-table{
    width:max-content !important;
    min-width:100% !important;
    table-layout:auto !important;
}

.planner-table th,
.planner-table td{
    white-space:nowrap !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    padding:11px 14px !important;
    text-align:center !important;
}

.planner-table th:first-child,
.planner-table td:first-child{
    width:58px !important;
    min-width:58px !important;
}

/* Fee table can keep scroll because it has wider columns */
.fee-table-card{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
}

.fee-offer-table{
    width:max-content !important;
    min-width:100% !important;
}

/* Tablet */
@media(max-width:991px){
    .info-grid-2,
    .test-structure-grid,
    .analysis-grid,
    .planner-grid{
        grid-template-columns:1fr !important;
    }

    .planner-table{
        width:100% !important;
        min-width:0 !important;
    }

    .planner-table th,
    .planner-table td{
        white-space:normal !important;
        overflow-wrap:break-word !important;
    }
}

/* Mobile */
@media(max-width:767px){
    .theme-table-title{
        padding:13px 14px !important;
        font-size:15px !important;
        line-height:1.3 !important;
    }

    .theme-table th,
    .theme-table td{
        padding:9px 9px !important;
        font-size:13px !important;
        line-height:1.35 !important;
    }

    /* Test structure mobile: no unnecessary scroll */
    .test-structure-grid .theme-table{
        width:100% !important;
        min-width:0 !important;
        table-layout:auto !important;
    }

    .test-structure-grid .theme-table td:nth-child(2),
    .test-structure-grid .theme-table th:nth-child(2){
        white-space:normal !important;
    }

    /* Planner mobile: fit normally, still scroll if very long */
    .planner-table{
        width:100% !important;
        min-width:0 !important;
        table-layout:auto !important;
    }

    .planner-table th,
    .planner-table td{
        padding:8px 7px !important;
        font-size:12.5px !important;
        white-space:normal !important;
        overflow-wrap:break-word !important;
        line-height:1.35 !important;
    }

    .planner-table th:first-child,
    .planner-table td:first-child{
        width:38px !important;
        min-width:38px !important;
    }

    .centre-chip-grid{
        gap:7px !important;
    }

    .centre-chip-grid span{
        font-size:12px !important;
        padding:7px 9px !important;
    }
}

/* Very small mobile */
@media(max-width:380px){
    .theme-table th,
    .theme-table td,
    .planner-table th,
    .planner-table td{
        padding:7px 6px !important;
        font-size:11.5px !important;
    }
}
