:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-glow: rgba(79, 70, 229, 0.25);
    --red-alert: #ef4444;
    --red-hover: #dc2626;
    --green-success: #10b981;
    --green-light: #d1fae5;
    --badge-bg: #f8fafc;
    --bg-color: #f8fafc;
    --card-bg: #FFFFFF;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0;
    min-height: 100vh;
}

.app-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #ecfdf5 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.8);
}

.nav-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    overflow: visible;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.08) rotate(-3deg);
}

.logo-icon svg {
    width: 16px;
    height: 16px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0;
    color: #ffffff;
}

.btn-lang {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 9px 20px;
    border-radius: 24px;
    color: #e0e7ff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.25);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
    color: white;
    padding: 130px 20px 130px;
    margin-top: -64px;
    text-align: center;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
}

/* Add a cool architectural overlay pattern */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(79, 70, 229, 0.4) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(1.2rem, 4.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    white-space: normal;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}


/* Portal Cards */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: -40px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .main-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.portal-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.03) 0%, transparent 50%);
    z-index: -1;
    transition: all 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}

.portal-card:hover {
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.15), 0 0 0 1px rgba(79, 70, 229, 0.3);
    transform: translateY(-8px);
}

.portal-card:hover::before {
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
}

.portal-card:nth-child(2):hover {
    box-shadow: 0 30px 60px -15px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.portal-card:nth-child(2):hover::before {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

.card-badge {
    position: absolute;
    top: 32px;
    right: 32px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(79, 70, 229, 0.2);
    display: inline-flex;
    align-items: center;
    box-shadow: none;
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-success);
    border-color: rgba(16, 185, 129, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.card-title {
    flex: 1 1 auto;
    min-width: 0;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blue-icon {
    background: #eff6ff;
    color: var(--accent);
}

.green-icon {
    background: #f0fdf4;
    color: var(--green-success);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.card-action {
    flex: 0 0 auto;
    margin-left: 0;
}

.card-action .btn-outline {
    white-space: nowrap;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}

.portal-card:hover .btn-outline {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transform: translateX(4px);
}

.portal-card:nth-child(2):hover .btn-outline {
    background: var(--green-success);
    border-color: var(--green-success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Help Banner */
.help-wrapper {
    margin-top: 30px;
    margin-bottom: 40px;
}

.help-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

@media (max-width: 639px) {
    .help-banner {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
}

.help-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.help-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.help-banner:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Form Elements */
.form-container {
    max-width: 600px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.form-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 24px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-back:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--accent);
    transform: translateX(-4px);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0;
    min-width: 0;
    background: linear-gradient(135deg, #1e1b4b, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-form {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 36px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 16px;
    align-items: start;
}

.full-width {
    grid-column: 1 / -1;
}

@media (min-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.input-group {
    margin-bottom: 12px;
}

/* Floating Label Styles */
.float-group {
    position: relative;
    margin-bottom: 12px;
}

.float-group input,
.float-group select {
    width: 100%;
    padding: 18px 14px 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(79, 70, 229, 0.1);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-appearance: none;
}

.float-group input:focus,
.float-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 4px 12px rgba(79, 70, 229, 0.1);
    background: #ffffff;
}

.float-group label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 4px;
    z-index: 1;
}

.float-group input:focus~label,
.float-group input:not(:placeholder-shown)~label,
.float-group select:focus~label,
.float-group.has-value label {
    top: 6px;
    transform: translateY(0);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0;
}

/* Radio group inside float-group */
.float-group .radio-group {
    margin-top: 0;
}

.float-group>.radio-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(79, 70, 229, 0.1);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 4px 12px rgba(79, 70, 229, 0.1);
    background: #ffffff;
}

.coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.coupon-field {
    margin-bottom: 0;
}

#couponCode {
    text-transform: uppercase;
}

.coupon-row .btn-outline {
    height: 58px;
    padding: 0 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.radio-btn {
    flex: 1;
    min-width: 90px;
    position: relative;
}

.radio-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-btn span {
    display: block;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    color: var(--text-main);
}

.radio-btn span:hover {
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(79, 70, 229, 0.04);
    transform: translateY(-2px);
}

.radio-btn input:checked+span {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.alert-content {
    flex: 1;
}

.alert-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.alert-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.alert.success {
    background: var(--green-light);
    color: var(--green-success);
    border: 1px solid #bbf7d0;
}

.alert.info {
    background: #eff6ff;
    color: var(--accent);
    border: 1px solid #bfdbfe;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
    letter-spacing: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.btn-danger {
    background: var(--card-bg);
    color: var(--red-alert);
    border: 1px solid var(--red-alert);
    padding: 0 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    margin-left: 0;
    min-height: 58px;
    white-space: nowrap;
}

.btn-danger:hover {
    background: var(--red-alert);
    color: white;
}

.form-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.form-actions .btn-primary {
    flex: 1 1 auto;
    width: auto;
}

/* Utils */
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-elevate:hover {
    transform: translateY(-2px);
}

/* Loader */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner-container {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    font-weight: 700;
    color: var(--primary);
}

/* Terms and Conditions Modal */
.terms-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    /* Slate-900 overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    /* HTML inline style hides this only after the current terms version is accepted. */
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.terms-overlay.is-visible {
    display: flex;
}

body.terms-blocked .navbar,
body.terms-blocked .app-wrapper {
    pointer-events: none;
    user-select: none;
    visibility: hidden;
}

.terms-content {
    background: var(--card-bg);
    max-width: 860px;
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.terms-content h2 {
    padding: 24px 32px 8px;
    font-size: 1.5rem;
    color: var(--primary);
    border-bottom: 1px solid transparent;
}

.terms-header {
    flex: 0 0 auto;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.tc-date {
    margin: 0 32px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tc-scroll-area {
    padding: 0 32px 24px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    color: var(--text-main);
    line-height: 1.6;
}

.tc-scroll-area h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--primary);
}

.tc-scroll-area h4 {
    font-size: 1rem;
    margin: 20px 0 8px;
    color: var(--primary);
}

.tc-scroll-area p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.tc-scroll-area ul {
    margin: 0 0 16px 24px;
    font-size: 0.95rem;
}

.tc-scroll-area li {
    margin-bottom: 8px;
}

.tc-scroll-area a {
    color: var(--accent);
    text-decoration: none;
}

.tc-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

.tc-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 32px 0;
}

.tc-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    cursor: not-allowed;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    text-transform: none;
}

.tc-checkbox-container input,
.tc-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
    cursor: not-allowed;
}

.tc-checkbox-container input:not(:disabled),
.tc-consent input:not(:disabled) {
    cursor: pointer;
}

.tc-checkbox-container label {
    color: var(--text-muted);
    cursor: not-allowed;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tc-checkbox-container label.is-enabled {
    color: var(--text-main);
    cursor: pointer;
}

.tc-consent.is-enabled {
    color: var(--text-main);
    cursor: pointer;
}

.tc-actions {
    padding: 20px 32px;
    background: var(--bg-color);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tc-actions button {
    align-self: flex-end;
    width: auto;
    padding: 14px 32px;
}

.tc-scroll-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}

.tc-scroll-status.ready {
    color: var(--green-success);
}

.tc-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
}

/* ============================
   MOBILE RESPONSIVE STYLES
   ============================ */

/* Tablets & Small Laptops */
@media (max-width: 768px) {
    .hero-banner {
        padding: 90px 16px 80px;
        clip-path: ellipse(180% 100% at 50% 0%);
    }

    .hero-content h1 {
        font-size: 1.3rem;
        white-space: normal;
    }

    .portal-card {
        padding: 24px;
        cursor: default;
    }

    .card-badge {
        top: 20px;
        right: 20px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .icon-wrapper {
        width: 46px;
        height: 46px;
    }

    .help-banner {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {

    /* Navbar compact */
    .nav-container {
        padding: 10px 16px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .btn-lang {
        padding: 6px 12px;
        font-size: 0.75rem;
        gap: 4px;
        right: 12px;
    }

    .btn-lang svg {
        width: 14px;
        height: 14px;
    }

    /* Hero compact */
    .hero-banner {
        padding: 6px 16px 32px;
        margin-top: 0;
        clip-path: ellipse(200% 100% at 50% 0%);
    }

    .hero-content>div:first-child {
        width: 112px !important;
        height: 112px !important;
        margin: 4px auto 10px auto !important;
        border-width: 3px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .hero-content h1 {
        font-size: 1.05rem;
        margin-bottom: 4px;
        white-space: normal;
    }

    .hero-content p {
        font-size: 0.82rem;
    }

    /* Cards compact */
    .main-grid {
        gap: 10px;
        margin-top: -24px;
        padding: 0 4px;
    }

    .portal-card {
        padding: 14px 16px;
        border-radius: 14px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 10px;
        row-gap: 8px;
    }

    .card-badge {
        position: static;
        grid-column: 1 / -1;
        margin-bottom: 0;
        align-self: flex-start;
        justify-self: start;
        width: fit-content;
    }

    .card-header {
        grid-column: 1 / 3;
        gap: 10px;
        margin-bottom: 0;
        min-width: 0;
    }

    .icon-wrapper {
        width: 38px;
        height: 38px;
    }

    .icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    .card-desc {
        grid-column: 1 / -1;
        font-size: 0.8rem;
        line-height: 1.35;
        margin-bottom: 0;
    }

    .card-action {
        grid-column: 3;
        grid-row: 2;
        margin-left: 0;
        align-self: center;
    }

    .btn-outline {
        padding: 8px 12px;
        font-size: 0.78rem;
        border-radius: 18px;
    }

    /* Help section compact */
    .help-wrapper {
        padding: 0 4px;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .help-banner {
        padding: 12px 14px;
        border-radius: 14px;
        flex-direction: row;
        text-align: left;
        gap: 10px;
    }

    .help-content h4 {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .btn-solid {
        padding: 9px 14px;
        border-radius: 8px;
        white-space: nowrap;
    }

    /* Form compact */
    .form-container {
        margin-top: 6px;
        margin-bottom: 10px;
    }

    .form-header {
        padding: 0 4px;
    }

    .form-heading-row {
        margin-bottom: 8px;
    }

    .form-title {
        font-size: 1.3rem;
        margin-bottom: 0;
    }

    .card-form {
        padding: 12px;
        border-radius: 12px;
    }

    .form-grid {
        gap: 0 12px;
    }

    .btn-back {
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    .card-form {
        padding: 20px;
        border-radius: 18px;
    }

    .radio-btn span {
        padding: 7px 6px;
        font-size: 0.8rem;
        border-radius: 10px;
        min-height: 38px;
    }

    .float-group {
        margin-bottom: 6px;
    }

    .float-group input,
    .float-group select {
        min-height: 44px;
        padding: 14px 12px 5px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .float-group label {
        font-size: 0.85rem;
    }

    .float-group input:focus~label,
    .float-group input:not(:placeholder-shown)~label,
    .float-group select:focus~label,
    .float-group.has-value label {
        font-size: 0.6rem;
    }

    .card-form {
        padding: 12px;
        border-radius: 12px;
    }

    .form-container {
        margin-top: 6px;
        margin-bottom: 10px;
    }

    .form-title {
        font-size: 1.15rem;
        margin-bottom: 0;
    }

    .form-grid {
        gap: 0 12px;
    }

    .input-group {
        margin-bottom: 6px;
    }

    .btn-back {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .btn-primary {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .coupon-row {
        grid-template-columns: 1fr auto;
    }

    .coupon-row .btn-outline {
        width: auto;
        height: 46px;
        border-radius: 12px;
    }

    /* Alert compact */
    .alert {
        padding: 12px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .alert-content h4 {
        font-size: 0.9rem;
    }

    .alert-content p {
        font-size: 0.8rem;
    }

    .btn-danger {
        font-size: 0.8rem;
        padding: 0 12px;
        text-align: center;
        min-height: 44px;
    }

    /* Terms modal compact */
    .terms-overlay {
        padding: 12px;
    }

    .terms-content h2 {
        padding: 16px 20px 6px;
        font-size: 1.25rem;
    }

    .tc-date {
        margin: 0 20px 12px;
        font-size: 0.8rem;
    }

    .tc-scroll-area {
        padding: 0 20px 16px;
    }

    .tc-scroll-area h3 {
        font-size: 1rem;
    }

    .tc-scroll-area p,
    .tc-scroll-area ul {
        font-size: 0.85rem;
    }

    .tc-checkbox-container {
        padding: 12px 20px 0;
    }

    .tc-actions {
        padding: 14px 20px;
    }

    .tc-actions button {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Loading compact */
    .spinner-container {
        width: 36px;
        height: 36px;
        border-width: 3px;
    }
}
