@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-base: #f0f4f8;
    --bg-mesh-1: rgba(99, 102, 241, 0.15);
    --bg-mesh-2: rgba(236, 72, 153, 0.15);
    --bg-mesh-3: rgba(14, 165, 233, 0.15);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.82);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);

    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --secondary: #0ea5e9;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #ffffff;

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;

    --radius-huge: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --page-padding: clamp(16px, 4vw, 24px);
    --safe-bottom: max(24px, env(safe-area-inset-bottom));
    --safe-top: max(16px, env(safe-area-inset-top));
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    min-height: 100%;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

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

body {
    min-height: 100svh;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open,
body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;
}

img,
svg {
    max-width: 100%;
    display: block;
}

/* Mesh Gradient Background */
.mesh-bg {
    position: fixed;
    inset: 0;
    height: 100svh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-base);
}

@supports (height: 100dvh) {
    .mesh-bg {
        height: 100dvh;
    }
}

.mesh-bg::before,
.mesh-bg::after,
.mesh-blob {
    content: '';
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: drift 20s infinite alternate ease-in-out;
}

.mesh-bg::before {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--bg-mesh-1);
}

.mesh-bg::after {
    right: -10%;
    bottom: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--bg-mesh-2);
    animation-delay: -5s;
}

.mesh-blob {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--bg-mesh-3);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 15%) scale(1.08); }
    100% { transform: translate(-10%, -5%) scale(0.92); }
}

/* Layout */
.app-with-sidebar {
    width: 100%;
    margin: 0 auto;
}

.app-container {
    position: relative;
    width: 100%;
    min-height: 100svh;
    margin: 0;
    padding-bottom: calc(32px + var(--safe-bottom));
    background: rgba(255, 255, 255, 0.42);
    border-inline: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: clip;
}

.dashboard-layout {
    display: grid;
    gap: 24px;
    padding: 0 var(--page-padding) 24px;
}

.dashboard-layout-spaced {
    padding-top: 18px;
}

.dashboard-layout--single {
    grid-template-columns: 1fr;
}

.page-toolbar {
    padding: 24px var(--page-padding) 0;
}

.page-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 24px var(--page-padding);
}

.page-balance-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-balance-value {
    margin-top: 4px;
    font-size: clamp(2rem, 6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.page-section {
    margin-inline: var(--page-padding);
}

.service-page-section {
    margin-top: clamp(18px, 3vw, 34px);
}

.settings-stack {
    display: grid;
    gap: 24px;
}

.profile-card {
    margin: 0;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.manage-device-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--text-main);
}

.manage-device-count strong {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
}

.manage-device-count span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.device-session-list {
    display: grid;
    gap: 16px;
}

.device-session-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: rgba(255, 255, 255, 0.8);
}

.device-session-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.device-session-title {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.device-session-subtitle {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.device-session-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.device-session-item {
    display: grid;
    gap: 4px;
}

.device-session-item span {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.device-session-item strong {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    word-break: break-word;
}

.device-session-terminate {
    width: 100%;
    justify-content: center;
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 14px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.menu-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.09);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(31, 38, 135, 0.12);
}

/* Header */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(16px + env(safe-area-inset-top)) var(--page-padding) 18px;
    background: rgba(255, 255, 255, 0.58);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 2px solid white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.avatar svg {
    width: 52%;
    height: 52%;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
}

/* Typography */
h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 7vw, 2.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(1.55rem, 5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h3 {
    margin-bottom: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Dynamic Wallet Hero */
.wallet-hero {
    position: relative;
    margin: 24px var(--page-padding);
    padding: 32px 24px;
    overflow: hidden;
    border-radius: var(--radius-huge);
    color: white;
    background: linear-gradient(135deg, #1e1b4b, #4338ca 40%, #0ea5e9);
    box-shadow: 0 20px 40px rgba(67, 56, 202, 0.3);
}

.wallet-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

.wallet-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, transparent 60%);
}

.w-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.82;
}

.w-balance {
    margin: 12px 0 24px;
    font-size: clamp(2.4rem, 8vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.w-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 12px;
}

.w-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    color: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.w-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

/* Services Grid */
.services-container {
    margin: 0;
}

/* Full-width services section (no sidebar column) */
.services-section {
    padding: 0 var(--page-padding) 24px;
}

/* Auto-responsive grid: fills columns based on available width, no breakpoints needed */
.s-grid,
.s-grid--wide {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 14px;
}

.s-grid--preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
    align-items: start;
}

.s-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.s-item:hover {
    transform: translateY(-4px);
}

.s-icon-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 70, 229, 0.28);
    background: var(--glass-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.03);
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.s-item:hover .s-icon-box {
    border-color: var(--primary);
    box-shadow: 0 12px 24px var(--primary-glow);
}

.s-icon-box svg {
    z-index: 2;
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.s-item:hover .s-icon-box svg {
    transform: scale(1.08);
}

.s-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-main);
}

.tint-blue { color: #3b82f6; }
.tint-purple { color: #8b5cf6; }
.tint-pink { color: #ec4899; }
.tint-orange { color: #f97316; }
.tint-green { color: #10b981; }
.tint-cyan { color: #06b6d4; }

.service-card-btn {
    width: 100%;
    padding: 0;
    color: inherit;
    text-decoration: none;
    background: transparent;
}

.s-grid--preview .service-card-btn {
    max-width: none;
}

.service-icon-box iconify-icon {
    z-index: 2;
    font-size: 1.8rem;
    color: currentColor;
}

.service-icon-image,
.selected-icon-box img,
.admin-icon-preview img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.category-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.category-section-header h3 {
    font-size: 1.35rem;
}

.category-section-header p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
}

.empty-services-card {
    text-align: center;
}

.empty-services-card h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.empty-services-card p {
    color: var(--text-muted);
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 18px;
}

/* Recent Activity List */
.activity-box {
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
}

.a-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.a-head h3 {
    margin: 0;
}

.a-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.a-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.a-item:hover {
    background: rgba(255, 255, 255, 0.4);
}

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

.a-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.a-info {
    flex: 1;
    min-width: 0;
}

.a-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.a-sub {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.a-amt {
    min-width: max-content;
    margin-left: auto;
    text-align: right;
}

.a-val {
    font-size: 1.05rem;
    font-weight: 800;
}

.a-val.pos {
    color: var(--success);
}

.a-time {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sidebar Navigation */
.sidebar-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    height: 100svh;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

@supports (height: 100dvh) {
    .sidebar-overlay,
    .modal-overlay,
    .sidebar {
        height: 100dvh;
    }
}

.sidebar-overlay {
    z-index: 999;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sidebar-overlay.active,
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(82vw, 320px);
    height: 100svh;
    padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(-105%);
    transition: var(--transition);
}

.sidebar.active {
    transform: translateX(0);
}

.sb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 24px;
    padding-bottom: 12px;
    background: transparent;
}

.sb-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(240, 244, 248, 0.9);
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.sb-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.sb-item:hover,
.sb-item.active {
    color: var(--primary);
    background: var(--glass-bg);
}

.sb-section-label {
    margin: 20px 0 10px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sb-logout {
    margin-top: auto;
    color: var(--danger);
}

.sb-logout:hover {
    color: var(--danger) !important;
    background: rgba(239, 68, 68, 0.1);
}

/* Smart Action Buttons */
.smart-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 var(--page-padding) 24px;
}

.smart-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.smart-btn:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.smart-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--primary);
    background: var(--bg-base);
    transition: var(--transition);
}

.smart-btn:hover .smart-icon {
    color: white;
    background: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.smart-icon svg {
    width: 20px;
    height: 20px;
}

/* Authentication & Forms */
.auth-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding: 40px 20px calc(32px + var(--safe-bottom));
}

.auth-wrapper--shell {
    min-height: auto;
    padding-top: 24px;
}

.auth-logo {
    margin-bottom: 28px;
    text-align: center;
    font-size: clamp(2.25rem, 8vw, 2.75rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

.auth-card {
    width: min(100%, 440px);
    margin: 0 auto;
    padding: 32px 24px;
}

.auth-title-block {
    margin-bottom: 22px;
    text-align: center;
}

.auth-banner {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
}

.auth-banner--success {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.auth-banner--error {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.auth-banner--debug {
    color: var(--text-main);
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.16);
}

.auth-target,
.auth-inline-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.auth-inline-error {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.18);
    font-weight: 700;
}

.auth-target {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.75);
    text-align: center;
}

.auth-resend {
    margin-top: 14px;
    text-align: center;
}

.auth-resend-form {
    margin-bottom: 8px;
}

.auth-resend-btn {
    width: 100%;
    color: var(--primary);
}

.auth-resend-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-resend-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.phone-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.phone-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 98px;
    padding: 17px 14px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid rgba(148, 163, 184, 0.38);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.phone-entry:focus-within .phone-code {
    border-color: rgba(79, 70, 229, 0.42);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.phone-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.otp-field {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1.25rem;
    font-weight: 800;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.password-group {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    outline: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

.input-field--plain {
    flex: 1;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(148, 163, 184, 0.38);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.input-field--plain::placeholder {
    color: var(--text-muted);
}

.input-field--with-toggle {
    padding-right: 86px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    background: rgba(79, 70, 229, 0.08);
    transition: var(--transition);
}

.password-toggle:hover {
    background: rgba(79, 70, 229, 0.14);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 24px var(--primary-glow);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px var(--primary-glow);
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-weight: 500;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
}


.error-shell {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: calc(28px + var(--safe-top)) var(--page-padding) calc(28px + var(--safe-bottom));
}

.error-card {
    width: min(100%, 560px);
    text-align: center;
}

.error-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    margin-bottom: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.12);
}

.error-card p {
    margin: 0 auto;
    max-width: 42ch;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

/* Modal */
.modal-overlay {
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-card {
    width: min(100%, 420px);
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-cancel {
    color: var(--text-main);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-add-btn {
    width: auto;
    min-width: 200px;
    padding-inline: 22px;
    text-decoration: none;
}

.admin-plan-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-x: auto;
}

.admin-plan-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.admin-plan-tab-btn:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.12);
}

.admin-plan-tab-btn--active {
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    color: white;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.24);
}

.admin-plan-tab-panel {
    display: block;
}

.admin-plan-tab-panel[hidden] {
    display: none !important;
}

.admin-table-card,
.admin-form-card {
    padding: 24px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    vertical-align: middle;
}

.admin-table th {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.admin-empty-cell {
    color: var(--text-muted);
    text-align: center !important;
    font-weight: 600;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.status-pill--active {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
}

.status-pill--inactive {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

.admin-icon-preview,
.selected-icon-box,
.suggested-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.admin-icon-preview iconify-icon,
.selected-icon-box iconify-icon,
.suggested-icon-box iconify-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.admin-form-grid {
    display: grid;
    gap: 20px;
}

.admin-form-grid--services {
    gap: 22px;
}

.admin-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mobile-fetch-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mobile-fetch-alias-input {
    min-width: 320px;
}

.admin-sync-card {
    display: grid;
    gap: 22px;
    margin-bottom: 24px;
}

.admin-sync-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.admin-sync-field--full {
    grid-column: 1 / -1;
}

.admin-sync-toggle {
    display: grid;
    gap: 10px;
}

.admin-sync-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-main);
    font-weight: 600;
}

.admin-sync-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.admin-sync-actions {
    gap: 12px;
}

.admin-sync-stop-btn {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.admin-sync-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-sync-stat {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

.admin-sync-stat span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-sync-stat strong {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 800;
}

.admin-sync-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
}

.admin-sync-note--error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.admin-plan-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-plan-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-plan-search .input-field {
    flex: 1;
}

.admin-plan-search-btn {
    width: auto;
    min-width: 120px;
}

.admin-plan-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-user-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.admin-pagination__link--disabled {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
}

.admin-pagination__status {
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 700;
}

.admin-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-section-title {
    margin-top: 4px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-inline-form {
    display: inline-flex;
}

.admin-mobile-list {
    display: none;
}

.admin-mobile-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.admin-mobile-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-mobile-card__eyebrow {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-mobile-card__title {
    margin-top: 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
}

.admin-mobile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.95rem;
}

.admin-mobile-meta span {
    color: var(--text-muted);
    font-weight: 600;
}

.admin-mobile-meta strong {
    color: var(--text);
    text-align: right;
}

.admin-mobile-empty {
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
    padding: 18px 0 6px;
}

.admin-actions--mobile {
    padding-top: 4px;
    justify-content: flex-start;
}

.page-link-danger {
    color: var(--danger);
}

.bulk-entry-list {
    display: grid;
    gap: 16px;
}

.bulk-entry-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.bulk-entry-field {
    flex: 1;
    margin-bottom: 0;
}

.bulk-entry-add,
.bulk-entry-remove {
    width: auto;
}

.bulk-entry-remove:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.service-flow-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.service-flow-card--plans-active {
    margin-top: clamp(20px, 4vw, 44px);
    padding-top: 24px;
}

.service-flow-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.service-flow-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.service-flow-copy {
    margin: 0;
    color: var(--text-muted);
}

.service-tool-form {
    width: 100%;
    max-width: 1120px;
}

.service-tool-panel {
    width: 100%;
}

.service-tool-step {
    display: grid;
    gap: 20px;
    width: 100%;
}

.service-tool-form .input-group {
    max-width: 540px;
    margin-bottom: 10px;
}

.service-tool-form .admin-label {
    margin-bottom: 6px;
    font-size: 0.82rem;
}

.service-tool-form .input-field--plain {
    min-height: 50px;
    padding: 10px 14px;
    font-size: 0.94rem;
}

.service-tool-form .icon-search-meta {
    margin-top: 6px;
    font-size: 0.82rem;
}

.service-step-hidden {
    display: none !important;
}

.service-tool-step-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.service-tool-step-head--plans {
    margin-bottom: 6px;
}

.service-tool-step-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #3f63ff;
}

.service-tool-step-title {
    margin: 0;
    font-size: 1.24rem;
}

.service-tool-step-copy {
    max-width: 320px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 600;
}

.service-tool-cta {
    margin-top: 4px;
    max-width: 540px;
    padding: 12px 16px;
    font-size: 0.95rem;
}

#prepaidDetailsStep {
    max-width: 620px;
    gap: 8px;
}

#prepaidPlansStep {
    width: 100%;
    max-width: 1120px;
}

.service-selection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid rgba(63, 99, 255, 0.16);
    background: linear-gradient(135deg, rgba(77, 77, 247, 0.08), rgba(35, 168, 242, 0.08));
}

.service-selection-summary__content {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.service-selection-summary__kicker {
    color: #3f63ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.service-selection-summary__primary {
    color: #152040;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.service-selection-summary__secondary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #536483;
    font-size: 0.95rem;
    font-weight: 700;
}

.service-selection-summary__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(63, 99, 255, 0.42);
}

.service-summary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(63, 99, 255, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: #2544d6;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.service-summary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(77, 77, 247, 0.12);
}

.service-plan-shell {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(63, 99, 255, 0.12);
    background: rgba(255, 255, 255, 0.62);
}

.service-plan-status {
    min-height: 0;
    margin: 0;
    color: #607197;
    font-size: 0.92rem;
    font-weight: 700;
}

.picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.picker-trigger-action {
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.directory-picker-modal {
    width: min(100%, 720px);
    text-align: left;
}

.directory-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.directory-picker-head h3 {
    margin-top: 4px;
    font-size: 1.5rem;
}

.directory-picker-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.directory-picker-list {
    display: grid;
    gap: 12px;
    max-height: min(52vh, 480px);
    overflow-y: auto;
    margin-bottom: 18px;
}

.directory-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.directory-picker-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.admin-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.icon-search-meta {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.icon-selection-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.icon-preview-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.55);
}

.selected-icon-box,
.suggested-icon-box {
    width: 72px;
    height: 72px;
    margin-top: 10px;
}

.suggested-icon-box {
    cursor: pointer;
    transition: var(--transition);
}

.suggested-icon-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.16);
}

.selected-icon-text {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    word-break: break-word;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.icon-pagination {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.icon-page-btn {
    min-width: 120px;
    cursor: pointer;
}

.icon-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.icon-page-status {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.icon-choice {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--text-main);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.78);
    transition: var(--transition);
}

.icon-choice iconify-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

.icon-choice span {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.icon-choice:hover,
.icon-choice.active {
    border-color: rgba(79, 70, 229, 0.38);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.16);
    transform: translateY(-2px);
}

.icon-empty-state {
    grid-column: 1 / -1;
    padding: 18px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Animations */
.anim-enter {
    animation: floatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .error-actions {
        flex-direction: column;
    }

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

    .category-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .a-item {
        flex-wrap: wrap;
    }

    .a-amt {
        width: 100%;
        margin-left: 62px;
        text-align: left;
    }

    .modal-actions {
        flex-direction: column;
    }

    .services-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
    }

    .admin-table-card,
    .admin-form-card {
        padding: 18px;
    }

    .admin-add-btn {
        width: 100%;
        min-width: 0;
    }

    .admin-dual-grid {
        grid-template-columns: 1fr;
    }

    .mobile-fetch-settings-grid {
        grid-template-columns: 1fr;
    }

    .mobile-fetch-alias-input {
        min-width: 0;
    }

    .admin-sync-grid,
    .admin-sync-stats {
        grid-template-columns: 1fr;
    }

    .admin-plan-tabs {
        padding: 8px;
    }

    .admin-plan-tab-btn {
        min-width: 132px;
        padding: 11px 16px;
    }

    .admin-plan-search,
    .admin-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-user-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-pagination__status {
        text-align: center;
    }

    .admin-section-head,
    .bulk-entry-row {
        flex-direction: column;
        align-items: stretch;
    }

    .service-flow-header {
        align-items: flex-start;
    }

    .device-session-grid {
        grid-template-columns: 1fr;
    }

    .service-page-section {
        margin-top: 16px;
    }

    .service-tool-step-head,
    .service-selection-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .service-flow-card--plans-active {
        margin-top: 18px;
        padding-top: 18px;
    }

    .service-tool-form,
    #prepaidPlansStep {
        max-width: 100%;
    }

    .service-tool-form .input-group,
    .service-tool-cta {
        max-width: 100%;
    }

    .service-tool-step-copy {
        max-width: none;
    }

    .service-plan-shell {
        padding: 18px;
    }

    .service-selection-summary {
        padding: 18px;
    }

    .service-selection-summary__primary {
        font-size: 1.16rem;
    }

    .icon-selection-panel {
        grid-template-columns: 1fr;
    }

    .icon-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

.directory-picker-head,
.directory-picker-toolbar {
    flex-direction: column;
    align-items: stretch;
}

}

.postpaid-admin-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.10);
    color: var(--primary);
    overflow: hidden;
}

.postpaid-admin-logo iconify-icon {
    font-size: 1.65rem;
}

.postpaid-admin-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.postpaid-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.postpaid-status-pill--active {
    color: var(--success);
    background: var(--success-bg);
}

.postpaid-status-pill--inactive {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
}

.postpaid-operator-preview-box {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.10);
    color: var(--primary);
    overflow: hidden;
}

.postpaid-operator-preview-box iconify-icon {
    font-size: 2.5rem;
}

.postpaid-operator-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-page {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 8px 0 28px;
}

.pp-step[hidden] {
    display: none !important;
}

.pp-operator-shell,
.pp-mobile-shell {
    padding: 24px;
    border-radius: 32px;
}

.pp-empty-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    color: var(--text-muted);
}

.pp-empty-state h3 {
    margin: 0;
    color: var(--text);
}

.pp-empty-state p {
    margin: 0;
    max-width: 420px;
}

.pp-operator-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-operator-card {
    border: 1px solid rgba(108, 99, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    padding: 14px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    width: 100%;
    text-align: left;
}

.pp-operator-card:hover,
.pp-operator-card--active {
    transform: translateY(-2px);
    border-color: rgba(108, 99, 255, 0.38);
    box-shadow: 0 18px 30px rgba(17, 24, 39, 0.08);
}

.pp-operator-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    color: var(--primary);
}

.pp-operator-logo iconify-icon {
    font-size: 1.6rem;
}

.pp-operator-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-operator-name {
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.pp-back-link {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 18px;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.pp-selected-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(108, 99, 255, 0.08);
    margin-bottom: 22px;
}


.pp-selected-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    color: var(--primary);
    flex-shrink: 0;
}

.pp-selected-logo iconify-icon {
    font-size: 1.9rem;
}

.pp-selected-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-selected-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    align-self: center;
}

.pp-proceed-btn {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .pp-operator-shell,
    .pp-mobile-shell {
        padding: 20px;
        border-radius: 26px;
    }

}

@media (max-width: 520px) {
    .pp-selected-card {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .admin-table-wrap {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-inline: -18px;
        padding-inline: 18px;
    }

    .admin-table {
        min-width: 480px;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 10px;
        font-size: 0.83rem;
    }

    .mobile-fetch-alias-table {
        min-width: 0;
        width: 100%;
    }

    .mobile-fetch-alias-table thead {
        display: none;
    }

    .mobile-fetch-alias-table tbody tr {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .mobile-fetch-alias-table tbody tr td {
        padding: 0;
        border-bottom: none;
        font-size: 0.9rem;
    }

    .mobile-fetch-alias-table tbody tr td:first-child {
        font-weight: 600;
        color: var(--text);
        font-size: 0.85rem;
    }

    .mobile-fetch-alias-table .mobile-fetch-alias-input {
        width: 100%;
        min-width: 0;
    }

    .admin-table-wrap:has(.mobile-fetch-alias-table) {
        margin-inline: 0;
        padding-inline: 0;
        overflow-x: visible;
    }
}

@media (min-width: 640px) {
    .smart-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .s-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .app-with-sidebar {
        padding-inline: 0;
        padding-bottom: 0;
    }

    .app-container {
        min-height: 100svh;
        margin: 0;
        padding-bottom: calc(32px + var(--safe-bottom));
        border-radius: 0;
        box-shadow: none;
    }

    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
        gap: 32px;
    }

    .dashboard-layout--single {
        grid-template-columns: 1fr;
    }

    .dashboard-layout-spaced {
        padding-top: 24px;
    }

    .sidebar {
        top: 24px;
        left: 24px;
        height: calc(100svh - 48px);
        border-radius: 32px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
    }

    @supports (height: 100dvh) {
        .sidebar {
            height: calc(100dvh - 48px);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.input-field--textarea {
    min-height: 120px;
    resize: vertical;
}

.service-plan-results {
    display: grid;
    gap: 18px;
}

.service-plan-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.plan-category-chip {
    appearance: none;
    border: 1px solid rgba(63, 99, 255, 0.22);
    background: rgba(255, 255, 255, 0.82);
    color: #1a2340;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.plan-category-chip.active,
.plan-category-chip:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #4d4df7, #23a8f2);
    box-shadow: 0 14px 32px rgba(39, 110, 245, 0.2);
}

.service-plan-grid {
    display: block;
}

.service-plan-group {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.service-plan-group--active {
    display: grid;
}

.plan-card {
    border: 1px solid rgba(63, 99, 255, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    box-shadow: 0 16px 32px rgba(77, 77, 247, 0.08);
    display: grid;
    gap: 8px;
}

.plan-card__amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #19213f;
}

.plan-card__validity {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3f63ff;
}

.plan-card__data {
    font-size: 0.95rem;
    color: #2f3d63;
    font-weight: 600;
}

.plan-card__details {
    font-size: 0.9rem;
    color: #607197;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   SERVICE PAGE — Premium Redesign
   ═══════════════════════════════════════════════════════════ */
.sp-back-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border-radius: 14px; color: var(--text-main);
    background: rgba(255,255,255,0.7); border: 1px solid var(--glass-border);
    box-shadow: 0 6px 16px rgba(15,23,42,0.06); transition: var(--transition); text-decoration: none;
}
.sp-back-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15,23,42,0.09); }

.sp-page {
    display: flex; flex-direction: column; gap: 20px;
    padding: 24px var(--page-padding) calc(120px + var(--safe-bottom));
    max-width: 520px; margin: 0 auto; width: 100%;
}
.sp-page--simple { padding-top: 32px; }

.sp-view { opacity: 0; transform: translateY(24px); transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.16,1,0.3,1); }
.sp-view--in { opacity: 1; transform: translateY(0); }

.sp-title-block { padding: 0 4px; }
.sp-title { font-size: clamp(2.2rem,9vw,3rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1.05; margin-bottom: 8px; }
.sp-subtitle { color: var(--text-muted); font-size: 0.95rem; font-weight: 600; }

.sp-entry-card {
    background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.86);
    border-radius: 28px; padding: 24px 20px; box-shadow: 0 12px 36px rgba(31,38,135,0.07);
    backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 20px;
}
.sp-service-icon-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sp-expand-panel { display: flex; flex-direction: column; gap: 18px; animation: floatUp 0.38s cubic-bezier(0.16,1,0.3,1) both; }

.sp-field { display: flex; flex-direction: column; gap: 8px; }
.sp-label { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

.sp-input-row {
    position: relative; display: flex; align-items: center;
    background: rgba(249,250,251,0.85); border: 2px solid rgba(148,163,184,0.24);
    border-radius: 18px; transition: border-color 0.2s, box-shadow 0.2s; overflow: hidden;
}
.sp-input-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.14); }
.sp-field-icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 100%; color: var(--text-muted); transition: color 0.2s; }
.sp-input-row:focus-within .sp-field-icon { color: var(--primary); }
.sp-input { flex: 1; min-width: 0; padding: 16px 14px 16px 0; border: none; outline: none; background: transparent; color: var(--text-main); font-size: 1.05rem; font-weight: 700; }
.sp-input::placeholder { color: var(--text-muted); font-weight: 500; }
.sp-check-icon { display: grid; place-items: center; width: 44px; }
.sp-check-icon[hidden] { display: none !important; }

.sp-select { flex: 1; min-width: 0; padding: 16px 36px 16px 0; border: none; outline: none; background: transparent; color: var(--text-main); font-size: 0.98rem; font-weight: 700; appearance: none; -webkit-appearance: none; cursor: pointer; }
.sp-select--hidden { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; padding: 0; margin: 0; }
.sp-select-arrow { position: absolute; right: 14px; pointer-events: none; color: var(--text-muted); }
.sp-field-hint { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); padding: 0 4px; }
.sp-field-hint--warn { color: #f97316; }
.sp-field-hint--success { color: #0f766e; }
@keyframes spinAnim { to { transform: rotate(360deg); } }
.sp-view-plans-btn { padding: 16px; font-size: 0.98rem; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sp-view-plans-btn:disabled { opacity: 0.55; pointer-events: none; }
.sp-picker-trigger { cursor: pointer; }
.sp-picker-trigger--disabled { opacity: 0.58; cursor: not-allowed; }
.sp-picker-trigger--selected .sp-picker-text { color: var(--text-main); }
.sp-picker-wrap { position: relative; }
.sp-field-icon--logo { overflow: hidden; }
.sp-field-icon--logo iconify-icon { font-size: 1.2rem; }
.sp-field-icon--logo img { width: 100%; height: 100%; object-fit: cover; }
.sp-picker-copy { flex: 1; min-width: 0; padding: 16px 36px 16px 0; }
.sp-picker-text { color: var(--text-main); font-size: 0.98rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-picker-trigger:not(.sp-picker-trigger--selected) .sp-picker-text { color: var(--text-muted); font-weight: 600; }
.sp-picker-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    max-height: 280px;
    overflow-y: auto;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(148,163,184,0.2);
    box-shadow: 0 14px 30px rgba(15,23,42,0.08);
}
.sp-picker-menu[hidden] { display: none !important; }
.sp-picker-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--text-main);
    background: rgba(249,250,251,0.92);
    border: 1px solid rgba(148,163,184,0.16);
    cursor: pointer;
    transition: var(--transition);
}
.sp-picker-option:hover,
.sp-picker-option--active {
    border-color: rgba(79,70,229,0.24);
    background: rgba(234,240,255,0.88);
}
.sp-picker-option__logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--primary);
    background: #fff;
    flex-shrink: 0;
}
.sp-picker-option__logo iconify-icon { font-size: 1.25rem; }
.sp-picker-option__logo img { width: 100%; height: 100%; object-fit: cover; }
.sp-picker-option__text { font-size: 0.96rem; font-weight: 700; text-align: left; }

/* Summary bar */
.sp-summary-bar {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.86);
    border-radius: 22px; box-shadow: 0 8px 24px rgba(31,38,135,0.07); backdrop-filter: blur(12px);
}
.sp-summary-bar__icon { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg,#4f46e5,#0ea5e9); color: white; }
.sp-summary-bar__icon--operator { overflow: hidden; background: rgba(108,99,255,0.1); color: var(--primary); }
.sp-summary-bar__icon--operator iconify-icon { font-size: 1.35rem; }
.sp-summary-bar__icon--operator img { width: 100%; height: 100%; object-fit: cover; }
.sp-summary-bar__info { flex: 1; min-width: 0; }
.sp-summary-bar__number { font-size: 1.15rem; font-weight: 800; color: var(--text-main); }
.sp-summary-bar__meta { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; flex-wrap: wrap; }
.sp-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.sp-change-btn { flex-shrink: 0; padding: 9px 16px; border-radius: 12px; font-weight: 800; font-size: 0.85rem; color: var(--primary); background: rgba(79,70,229,0.08); cursor: pointer; transition: var(--transition); }
.sp-change-btn:hover { background: rgba(79,70,229,0.15); }

/* Plans shell */
.sp-plans-shell { display: flex; flex-direction: column; gap: 16px; }

/* Search */
.sp-search-wrap { position: relative; display: flex; align-items: center; }
.sp-search-icon { position: absolute; left: 14px; color: var(--text-muted); pointer-events: none; }
.sp-search-input { width: 100%; padding: 14px 42px 14px 44px; border: 2px solid rgba(148,163,184,0.24); border-radius: 16px; background: rgba(249,250,251,0.9); color: var(--text-main); font-size: 0.93rem; font-weight: 600; outline: none; transition: border-color 0.2s,box-shadow 0.2s; }
.sp-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); background: white; }
.sp-search-input::placeholder { color: var(--text-muted); font-weight: 400; }
.sp-search-input::-webkit-search-decoration,
.sp-search-input::-webkit-search-cancel-button,
.sp-search-input::-webkit-search-results-button,
.sp-search-input::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; display: none; }
.sp-search-clear { position: absolute; right: 12px; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); background: rgba(100,116,139,0.12); cursor: pointer; transition: var(--transition); }
.sp-search-clear[hidden] { display: none; }
.sp-search-clear:hover { background: rgba(100,116,139,0.2); color: var(--text-main); }
.sp-status-msg { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }

/* Category tabs */
.sp-tabs-nav { display: flex; align-items: center; gap: 8px; }
.sp-tabs-outer { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sp-tabs-outer::-webkit-scrollbar { display: none; }
.sp-tabs-nav .sp-tabs-outer { flex: 1; min-width: 0; }
.sp-tabs-inner { display: flex; gap: 7px; padding-bottom: 2px; white-space: nowrap; }
.sp-tabs-scroll-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 999px; background: rgba(255,255,255,0.82); border: 1px solid rgba(148,163,184,0.2); color: var(--text-main); box-shadow: 0 6px 14px rgba(15,23,42,0.05); cursor: pointer; transition: var(--transition); }
.sp-tabs-scroll-btn[hidden] { display: none !important; }
.sp-tabs-scroll-btn:hover:not(:disabled) { color: var(--primary); border-color: rgba(79,70,229,0.32); transform: translateY(-1px); }
.sp-tabs-scroll-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.sp-tab-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(148,163,184,0.24); background: rgba(255,255,255,0.82); color: var(--text-main); font-size: 0.78rem; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: var(--transition); appearance: none; -webkit-appearance: none; outline: none; -webkit-tap-highlight-color: transparent; }
.sp-tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.sp-tab-btn--active { border-color: transparent; background: linear-gradient(135deg,#4f46e5,#0ea5e9); color: white; box-shadow: 0 7px 16px rgba(79,70,229,0.22); }
.sp-tab-btn:focus,
.sp-tab-btn:active { outline: none; }
.sp-tab-btn:focus-visible { box-shadow: 0 0 0 3px rgba(79,70,229,0.14); }
.sp-tab-btn--active:hover,
.sp-tab-btn--active:focus,
.sp-tab-btn--active:focus-visible,
.sp-tab-btn--active:active { color: white; border-color: transparent; }

/* Plan cards (Compact Premium List) */
.sp-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

.spc {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 14px 15px;
    border-radius: 20px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.spc::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(79,70,229,0.42), rgba(14,165,233,0.42));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.spc:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.22);
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.08);
}

.spc--sel {
    border-color: rgba(79, 70, 229, 0.32);
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(242,246,255,0.98));
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.12);
}

.spc--sel::before { opacity: 1; }

.spc > * { position: relative; z-index: 1; }

.spc__head {
    display: grid;
    grid-template-columns: 1fr minmax(200px, auto);
    align-items: center;
    gap: 10px;
}

.spc__lead {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.spc__amount-wrap { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; }
.spc__rupee {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}
.spc__amount {
    font-size: clamp(1.45rem, 2.1vw, 1.85rem);
    font-weight: 780;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text-main);
}

.spc__badge-wrap,
.spc__selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.spc__badge-wrap {
    padding: 4px 8px;
    color: var(--primary);
    background: rgba(79,70,229,0.08);
    border: 1px solid rgba(79,70,229,0.12);
}

.spc__meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.spc__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 1);
}

.spc__lbl {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.spc__val {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-main);
    word-break: break-word;
}

.spc__selected-chip {
    margin-left: auto;
    padding: 6px 9px;
    color: #1d4ed8;
    background: rgba(219,234,254,0.72);
    border: 1px solid rgba(59,130,246,0.16);
}

.spc__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 20px;
}

.spc__desc {
    flex: 1;
    min-width: 0;
    margin: 0;
    line-height: 1.42;
    font-size: 0.78rem;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spc__details-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.spc__details-link[hidden] { display: none; }
.spc__details-link:hover { color: #4338ca; }

.sp-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; text-align: center; color: var(--text-muted); }
.sp-empty svg { opacity: 0.4; }
.sp-empty p { font-size: 0.95rem; font-weight: 600; margin: 0; }

/* Sticky bar */
.sp-sticky { position: fixed; bottom: 0; left: 0; right: 0; z-index: 500; padding: 12px var(--page-padding) max(12px,env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); border-top: 1px solid rgba(148,163,184,0.2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: slideUp 0.38s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sp-sticky-inner { width: 100%; max-width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sp-sticky-copy { flex: 1; min-width: 0; }
.sp-sticky-label { font-size: 0.76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.sp-sticky-amt { font-size: 1.4rem; font-weight: 900; color: var(--primary); letter-spacing: -0.03em; }
.sp-sticky-btn { flex-shrink: 0; padding: 14px 24px; border-radius: 16px; font-size: 0.96rem; font-weight: 800; color: white; background: linear-gradient(135deg,var(--primary),#0ea5e9); box-shadow: 0 8px 20px rgba(79,70,229,0.28); cursor: pointer; transition: var(--transition); width: auto; }
.sp-sticky-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(79,70,229,0.34); }

/* Bottom sheet */
.sp-sheet-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(15,23,42,0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; display: flex; align-items: flex-end; justify-content: center; }
.sp-sheet-overlay--open { opacity: 1; pointer-events: auto; }
.sp-sheet { width: 100%; max-width: 520px; max-height: 88vh; background: rgba(255,255,255,0.98); border-radius: 28px 28px 0 0; padding: 0 0 max(20px,env(safe-area-inset-bottom)); display: flex; flex-direction: column; transform: translateY(40px); transition: transform 0.38s cubic-bezier(0.16,1,0.3,1); overflow-y: auto; }
.sp-sheet-overlay--open .sp-sheet { transform: translateY(0); }
.sp-sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: rgba(148,163,184,0.4); margin: 14px auto 0; flex-shrink: 0; }
.sp-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 14px; border-bottom: 1px solid rgba(148,163,184,0.14); }
.sp-sheet-price { display: flex; align-items: baseline; gap: 4px; }
.sp-sheet-currency { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.sp-sheet-amt { font-size: 2rem; font-weight: 900; letter-spacing: -0.04em; color: var(--text-main); }
.sp-sheet-cat { font-size: 0.78rem; font-weight: 800; color: var(--primary); background: rgba(79,70,229,0.08); padding: 4px 10px; border-radius: 999px; margin-left: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.sp-sheet-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(148,163,184,0.12); cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.sp-sheet-close:hover { background: rgba(148,163,184,0.22); }
.sp-sheet-meta { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
.sp-sheet-meta-item { display: flex; align-items: center; gap: 10px; }
.sp-sheet-meta-item svg { color: var(--text-muted); flex-shrink: 0; }
.sp-sheet-meta-item small { display: block; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.sp-sheet-meta-item strong { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.sp-sheet-desc-wrap { padding: 0 20px 16px; }
.sp-sheet-desc-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.sp-sheet-desc { font-size: 0.92rem; color: var(--text-main); line-height: 1.65; white-space: pre-wrap; }
.sp-sheet-foot { padding: 12px 20px 0; flex-shrink: 0; }
.sp-sheet-foot .btn-primary { border-radius: 16px; padding: 16px; font-size: 1rem; }

/* ── Desktop: use full width, expand plans grid ────────── */
@media (min-width: 960px) {
    /* Details step stays narrow and centered */
    .sp-page { max-width: 100%; padding-top: 32px; padding-inline: 32px; }
    #detailsView { max-width: 540px; margin: 0 auto; }

    /* Plans step goes wide */
    #plansView {
        width: 100%;
        max-width: none;
        align-self: stretch;
    }
    .sp-summary-bar,
    .sp-plans-shell,
    .sp-search-wrap,
    .sp-tabs-nav,
    .sp-tabs-outer,
    .sp-status-msg,
    .sp-cards {
        width: 100%;
        max-width: none;
    }

    /* Single-column list for rows on desktop */
    .sp-cards { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
    .sp-sticky-inner { max-width: 100%; }
}

/* Wide screens */
@media (min-width: 1280px) {
    .sp-page { padding-inline: 24px; }
    .sp-cards { max-width: none; margin: 0; }
}

/* Mobile responsive for row layout */
@media (max-width: 640px) {
    .sp-cards { gap: 10px; }
    .sp-tabs-nav { gap: 6px; }
    .sp-tabs-scroll-btn {
        width: 30px;
        height: 30px;
    }
    .sp-tab-btn { padding: 6px 10px; font-size: 0.73rem; }
    .spc { padding: 12px; gap: 8px; border-radius: 18px; }
    .sp-sticky-inner { align-items: center; }
    .spc__head {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .spc__lead {
        justify-content: space-between;
        align-items: center;
    }
    .spc__amount { font-size: 1.4rem; }
    .spc__meta-row { gap: 8px; }
    .spc__meta-pill {
        padding: 5px 9px;
        min-height: 30px;
    }
    .spc__selected-chip { margin-left: 0; }
    .spc__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .spc__details-link { width: fit-content; }
}

@media (max-width: 420px) {
    .spc__badge-wrap,
    .spc__selected-chip { font-size: 0.63rem; }
    .spc__lead { gap: 8px; align-items: flex-start; }
    .spc__amount { font-size: 1.3rem; }
    .spc__meta-pill {
        width: calc(50% - 4px);
        justify-content: space-between;
    }
    .spc__desc {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}
