/* =============================================
   CodeHero License Manager - Custom Styles
   ============================================= */

/* CSS Variables */
:root {
    --app-sidebar-width: 260px;
    --app-topbar-height: 60px;
    --app-bg: #111827;
    --app-surface: #1f2937;
    --app-surface-hover: #374151;
    --app-border: #374151;
    --app-text: #f9fafb;
    --app-text-secondary: #9ca3af;
    --app-primary: #818cf8;
    --app-primary-hover: #6366f1;
    --app-success: #34d399;
    --app-warning: #fbbf24;
    --app-danger: #f87171;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    background-color: var(--app-bg);
    color: var(--app-text);
}

#app {
    height: 100%;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--app-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--app-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--app-text-secondary);
}

/* =============================================
   Admin Layout (Menubar + Content)
   ============================================= */

.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-content {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Admin Menubar Customization */
.admin-menubar {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

.menubar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    padding-right: 1.5rem;
    margin-right: 0.5rem;
    border-right: 1px solid var(--app-border);
    user-select: none;
}

.menubar-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--app-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.menubar-logo-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--app-text);
    white-space: nowrap;
}

/* Menubar end section (user area) */
.menubar-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menubar-username {
    font-size: 0.85rem;
    color: var(--app-text-secondary);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Active menu item highlight */
.active-menu-item {
    color: var(--app-primary) !important;
    background: rgba(129, 140, 248, 0.1) !important;
    border-radius: 6px;
}

/* =============================================
   Portal / Legacy Layout (Sidebar + Topbar)
   ============================================= */

.app-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.app-sidebar {
    width: var(--app-sidebar-width);
    min-width: var(--app-sidebar-width);
    height: 100vh;
    background: var(--app-surface);
    border-right: 1px solid var(--app-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 100;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-topbar {
    height: var(--app-topbar-height);
    min-height: var(--app-topbar-height);
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Sidebar */
.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    background: var(--app-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--app-text);
}

.sidebar-subtitle {
    font-size: 0.7rem;
    color: var(--app-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--app-text-secondary);
    padding: 0.5rem 0.75rem 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--app-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    cursor: pointer;
}

.sidebar-link:hover {
    background: var(--app-surface-hover);
    color: var(--app-text);
}

.sidebar-link.active {
    background: rgba(129, 140, 248, 0.15);
    color: var(--app-primary);
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
}

/* Topbar */
.topbar-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.topbar-spacer {
    flex: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--app-text);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* =============================================
   Cards
   ============================================= */

.stat-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.15s ease;
}

.stat-card:hover {
    border-color: var(--app-primary);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--app-text-secondary);
}

/* =============================================
   Auth Pages
   ============================================= */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--app-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: white;
}

.auth-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

/* =============================================
   Page Header
   ============================================= */

.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--app-text-secondary);
    font-size: 0.875rem;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
    /* Portal sidebar mobile toggle */
    .menu-toggle {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .app-content {
        padding: 1rem;
    }

    /* Admin menubar responsive */
    .admin-content {
        padding: 1rem;
    }

    .menubar-logo-text {
        display: none;
    }

    .menubar-brand {
        padding-right: 0.75rem;
        margin-right: 0.25rem;
        border-right: none;
    }

    .menubar-username {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
}

/* =============================================
   Utility Classes
   ============================================= */

.text-primary { color: var(--app-primary); }
.text-success { color: var(--app-success); }
.text-warning { color: var(--app-warning); }
.text-danger { color: var(--app-danger); }
.text-secondary { color: var(--app-text-secondary); }

.bg-primary-subtle { background: rgba(129, 140, 248, 0.15); }
.bg-success-subtle { background: rgba(52, 211, 153, 0.15); }
.bg-warning-subtle { background: rgba(251, 191, 36, 0.15); }
.bg-danger-subtle { background: rgba(248, 113, 113, 0.15); }

/* =============================================
   Dashboard Charts Responsive
   ============================================= */

@media (max-width: 1100px) {
    .dashboard-charts-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .dashboard-charts-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================
   Customer Detail Styles
   ============================================= */

.detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--app-text-secondary);
    margin-bottom: 0.15rem;
}

.detail-value {
    display: block;
    font-size: 0.875rem;
    color: var(--app-text);
}

.customer-detail-grid > div {
    padding: 0.35rem 0;
}

/* DataTable row clickable cursor */
.p-datatable .p-datatable-tbody > tr {
    cursor: pointer;
}

/* DataTable hover effect on dark theme */
.p-datatable .p-datatable-tbody > tr:hover {
    background: var(--app-surface-hover) !important;
}

/* =============================================
   License View Styles
   ============================================= */

.license-detail-grid > div {
    padding: 0.35rem 0;
}

/* Bulk Actions Bar animation */
.bulk-actions-bar {
    border-color: var(--app-primary) !important;
    background: linear-gradient(135deg, var(--app-surface) 0%, rgba(129, 140, 248, 0.08) 100%);
}

/* Form labels */
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.35rem;
    color: var(--app-text);
}

/* Form error messages */
.form-error {
    color: var(--app-danger);
    font-size: 0.75rem;
}

/* Price Preview Box */
.price-preview-box {
    padding: 0.75rem 1rem;
    background: var(--app-bg);
    border-radius: 8px;
    border: 1px solid var(--app-border);
}

/* Selection checkbox column fix */
.p-datatable .p-selection-column {
    text-align: center;
}

/* Monospace license keys */
.license-key-mono {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

/* =============================================
   Pricing Preview Table
   ============================================= */

.pricing-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.pricing-preview-table th {
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--app-text-secondary);
    border-bottom: 1px solid var(--app-border);
    background: var(--app-bg);
}

.pricing-preview-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--app-border);
    color: var(--app-text);
}

.pricing-preview-table tbody tr:hover {
    background: var(--app-surface-hover);
}

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

/* Inline cell editing highlight */
.p-datatable .p-cell-editing {
    padding: 0.25rem 0.5rem !important;
}

.p-datatable .p-cell-editing .p-inputnumber {
    width: 100%;
}

/* =============================================
   Portal Topbar
   ============================================= */

.portal-topbar {
    height: var(--app-topbar-height);
    min-height: var(--app-topbar-height);
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.portal-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.portal-topbar-logo {
    width: 28px;
    height: 28px;
    background: var(--app-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

.portal-topbar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--app-text);
    white-space: nowrap;
}

.portal-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portal-topbar-email {
    font-size: 0.8rem;
    color: var(--app-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* =============================================
   Portal Dashboard
   ============================================= */

.portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

.portal-section {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.portal-empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

.portal-expiring-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-expiring-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--app-bg);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    transition: border-color 0.15s ease;
}

.portal-expiring-item:hover {
    border-color: var(--app-primary);
}

/* =============================================
   Portal Account Form
   ============================================= */

.portal-form-group {
    margin-bottom: 1rem;
}

/* =============================================
   OTP Boxes (Login)
   ============================================= */

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.otp-box {
    width: 48px;
    height: 56px;
    border: 2px solid var(--app-border);
    border-radius: 10px;
    background: var(--app-bg);
    color: var(--app-text);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.15s ease;
    font-family: 'Courier New', monospace;
}

.otp-box:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.otp-box.filled {
    border-color: var(--app-primary);
    background: rgba(129, 140, 248, 0.08);
}

.otp-box.error {
    border-color: var(--app-danger);
}

.otp-box::selection {
    background: rgba(129, 140, 248, 0.3);
}

/* =============================================
   Renew Dialog Styles
   ============================================= */

.renew-license-list {
    max-height: 150px;
    overflow-y: auto;
    background: var(--app-bg);
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.renew-license-item {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--app-border);
}

.renew-license-item:last-child {
    border-bottom: none;
}

/* Package selection cards */
.package-card {
    padding: 1rem 1.15rem;
    border: 2px solid var(--app-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.package-card:hover {
    border-color: var(--app-text-secondary);
    background: rgba(255,255,255,0.02);
}

.package-card.active {
    border-color: var(--app-primary);
    background: rgba(129, 140, 248, 0.08);
}

.package-card.trial-card {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
}

.package-card.trial-card:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.package-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.package-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.package-price-tag {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--app-primary);
}

.package-price-tag small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--app-text-secondary);
}

.package-price-tag.free-tag {
    color: #10b981;
    font-size: 0.85rem;
    padding: 0.15rem 0.6rem;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 20px;
}

.package-price-tag.custom-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--app-text-secondary);
}

.package-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--app-text-secondary);
    margin-bottom: 0.35rem;
}

.package-desc {
    font-size: 0.78rem;
    color: var(--app-text-secondary);
    opacity: 0.7;
}

/* Selected package banner */
.selected-package-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

/* Duration choice cards */
.duration-card {
    padding: 1rem;
    border: 2px solid var(--app-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.duration-card:hover {
    border-color: var(--app-text-secondary);
}

.duration-card.active {
    border-color: var(--app-primary);
    background: rgba(129, 140, 248, 0.08);
}

.discount-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--app-success);
    color: #111;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
}

/* Payment method cards */
.payment-card {
    padding: 1rem;
    border: 2px solid var(--app-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.payment-card:hover {
    border-color: var(--app-text-secondary);
}

.payment-card.active {
    border-color: var(--app-primary);
    background: rgba(129, 140, 248, 0.08);
}

/* Price breakdown */
.price-breakdown-box {
    background: var(--app-bg);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.85rem;
}

.price-line.discount-line {
    color: var(--app-success);
}

.price-line.total-line {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--app-primary);
}

.price-divider {
    height: 1px;
    background: var(--app-border);
    margin: 0.5rem 0;
}

/* Bank transfer details */
.bank-details-box {
    background: var(--app-bg);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    padding: 1rem;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.85rem;
}

.bank-detail-label {
    color: var(--app-text-secondary);
    font-size: 0.8rem;
}

.bank-detail-value {
    color: var(--app-text);
    text-align: right;
}

/* Flex utility */
.flex-1 {
    flex: 1;
}

/* =============================================
   Promo & Special Pricing Styles
   ============================================= */

/* Crossed-out original price */
.original-price-strike {
    text-decoration: line-through;
    color: var(--app-text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    margin-right: 0.35rem;
}

/* Special pricing tag (gold) */
.special-price-tag {
    color: var(--app-warning) !important;
}

/* Promo pricing tag (green) */
.promo-price-tag {
    color: var(--app-success) !important;
}

/* Promo badge line (under card header) */
.promo-badge-line {
    margin-bottom: 0.35rem;
}

/* Promo badge (pill) */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    background: rgba(52, 211, 153, 0.15);
    color: var(--app-success);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

/* Special pricing badge (gold) */
.special-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    background: rgba(251, 191, 36, 0.15);
    color: var(--app-warning);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

/* Promo code success message */
.promo-success-msg {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.65rem;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--app-success);
}

/* Promo code error message */
.promo-error-msg {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.65rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--app-danger);
}

/* Form label consistent styling */
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--app-text-secondary);
    margin-bottom: 0.5rem;
}

/* Renew license list */
.renew-license-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 0.25rem;
}

.renew-license-item {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.renew-license-item:hover {
    background: rgba(255,255,255,0.02);
}

/* =============================================
   Upgrade Dialog Styles
   ============================================= */

/* Upgrade option card (select target step) */
.upgrade-option-card {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 2px solid var(--app-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.upgrade-option-card:hover {
    border-color: var(--app-text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.upgrade-option-card.active {
    border-color: var(--app-primary);
    background: rgba(129, 140, 248, 0.08);
}

/* Payment method card (payment step) */
.payment-method-card {
    padding: 1rem;
    border: 2px solid var(--app-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.payment-method-card:hover {
    border-color: var(--app-text-secondary);
}

.payment-method-card.active {
    border-color: var(--app-primary);
    background: rgba(129, 140, 248, 0.08);
}

/* Summary card (admin upgrade requests) */
.summary-card {
    padding: 0.85rem 1rem;
    background: var(--app-surface-card);
    border-radius: 8px;
    border: 1px solid var(--app-border);
}

/* =============================================
   Portal Responsive
   ============================================= */

@media (max-width: 768px) {
    .portal-topbar-title {
        display: none;
    }

    .portal-topbar-email {
        max-width: 120px;
    }

    .otp-box {
        width: 40px;
        height: 48px;
        font-size: 1.25rem;
    }

    .otp-boxes {
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .otp-box {
        width: 36px;
        height: 42px;
        font-size: 1.1rem;
    }

    .portal-topbar-email {
        display: none;
    }
}
