/* Unity Manager PRO — Adam44 branding (workspace name lives in script.js as WORKSPACE_DISPLAY_NAME) */

/* Mobile: prevent horizontal page shift; respect notched devices via env(safe-area-*) */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --bg-main: #f1f5f9;
    --sidebar-bg: #0f172a;
    --accent: #10b981;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 40px -16px rgba(15, 23, 42, 0.12);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

#root {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Faster taps on iOS; avoids 300ms delay on legacy WebKit */
.touch-manipulation {
    touch-action: manipulation;
}

/* Diagnostic / floating controls clear home indicator on iPhone */
.ump-fab-safe {
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)) !important;
    right: max(1.25rem, env(safe-area-inset-right, 0px)) !important;
}

.ump-panel-safe {
    bottom: max(5rem, calc(env(safe-area-inset-bottom, 0px) + 4rem)) !important;
    right: max(1.25rem, env(safe-area-inset-right, 0px)) !important;
    max-height: min(80vh, calc(100dvh - env(safe-area-inset-bottom, 0px) - 6rem)) !important;
}

.font-display {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
}

/* Executive typography (Apple / Stripe hierarchy) */
.exec-display {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
}

.exec-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.exec-muted {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Glass surfaces */
.exec-glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-soft);
}

.exec-glass-dark {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--glass-border);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
}

.exec-glass-modal {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--shadow-card);
}

/* Premium utility cards */
.exec-util-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.exec-util-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 30px -10px rgba(15, 23, 42, 0.1);
}

/* Subscription tier cards */
.exec-tier {
    position: relative;
    border-radius: 1.125rem;
    padding: 1.35rem 1.25rem;
    border: 1px solid;
    overflow: hidden;
    cursor: default;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.exec-tier::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
    pointer-events: none;
}

.exec-tier:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px -18px rgba(15, 23, 42, 0.18);
}

.exec-tier--silver {
    background: linear-gradient(155deg, #f8fafc 0%, #e2e8f0 42%, #cbd5e1 100%);
    border-color: rgba(148, 163, 184, 0.55);
    color: #334155;
}

.exec-tier--gold {
    background: linear-gradient(155deg, #fffbeb 0%, #fde68a 35%, #d97706 120%);
    border-color: rgba(217, 119, 6, 0.35);
    color: #78350f;
}

.exec-tier--platinum {
    background: linear-gradient(155deg, #f8fafc 0%, #e2e8f0 30%, #64748b 95%, #334155 100%);
    border-color: rgba(100, 116, 139, 0.45);
    color: #0f172a;
}

.exec-tier__name {
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.exec-tier__title {
    font-weight: 300;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-top: 0.35rem;
}

/* Data grid */
.exec-grid-wrap {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.exec-grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.exec-grid-table thead {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.exec-grid-table th {
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.exec-grid-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.exec-grid-table tbody tr {
    transition: background-color 0.15s ease;
    animation: exec-row-in 0.4s ease backwards;
}

@keyframes exec-row-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exec-grid-table tbody tr:hover {
    background: rgba(241, 245, 249, 0.65);
}

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

.exec-input-inline {
    width: 100%;
    max-width: 11rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: #fafafa;
    font-size: 0.75rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.exec-input-inline:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
    background: #fff;
}

/* Status badges */
.exec-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.exec-badge--active {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.25);
}

.exec-badge--pending {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.28);
}

.exec-badge--expired {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
    border-color: rgba(100, 116, 139, 0.25);
}

.exec-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.exec-badge--active .exec-badge-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.exec-badge--pending .exec-badge-dot {
    background: #f59e0b;
}

.exec-badge--expired .exec-badge-dot {
    background: #94a3b8;
}

.exec-badge--suspended {
    background: rgba(244, 63, 94, 0.12);
    color: #be123c;
    border-color: rgba(244, 63, 94, 0.28);
}

.exec-badge--suspended .exec-badge-dot {
    background: #f43f5e;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

/* Buttons — executive */
.exec-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(5, 150, 105, 0.5);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.exec-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -6px rgba(16, 185, 129, 0.45);
}

.exec-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.exec-btn-ghost:hover {
    background: #fff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.exec-btn-danger {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #b91c1c;
    background: rgba(254, 242, 242, 0.85);
    border: 1px solid #fecaca;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.exec-btn-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

/* Legacy app (shared) */
.sleek-card {
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    transition: all 0.2s ease;
}

.sleek-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.sleek-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.sleek-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    background: white;
}

.sleek-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sleek-btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.sleek-btn-primary:hover {
    background-color: #059669;
    transform: scale(1.02);
}

.sleek-btn-primary:active {
    transform: scale(0.98);
}

.sleek-btn-ghost {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.sleek-btn-ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.sleek-btn-danger {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    cursor: pointer;
}

.sleek-btn-danger:hover {
    background: #fecaca;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.875rem 1.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    background: transparent;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent);
}

/* Main app sidebar — subtle glass (Stripe-like depth) */
.ump-sidebar-glass {
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Premium context switcher (Super Admin ↔ Workspace) */
.ump-context-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 24px -8px rgba(15, 23, 42, 0.08);
}

.ump-context-bar--workspace {
    box-shadow: 0 3px 0 0 #10b981 inset, 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 30px -12px rgba(16, 185, 129, 0.12);
}

.ump-context-bar--admin {
    box-shadow: 0 3px 0 0 #6366f1 inset, 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 30px -12px rgba(99, 102, 241, 0.1);
}

.ump-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ump-role-pill--workspace {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.25);
}

.ump-role-pill--admin {
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.28);
}

.ump-role-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s ease;
}

.ump-role-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.ump-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.45rem 0.2rem 0.2rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ump-profile-trigger:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.ump-profile-menu {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    min-width: 13rem;
    padding: 0.35rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.18);
}

.ump-profile-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    text-align: left;
}

.ump-profile-menu button:hover {
    background: #f1f5f9;
}

.ump-profile-menu button.danger {
    color: #b91c1c;
}

.ump-profile-menu button.danger:hover {
    background: #fef2f2;
}

/* —— SaaS landing (Stripe / Apple inspired) —— */
.saas-landing {
    min-height: 100vh;
    background: radial-gradient(120% 80% at 50% -20%, rgba(16, 185, 129, 0.12), transparent 50%),
        radial-gradient(80% 50% at 100% 0%, rgba(99, 102, 241, 0.08), transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 40%, #e2e8f0 100%);
    color: #0f172a;
}

.saas-landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.saas-hero-glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 70%;
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.18), transparent 70%);
    pointer-events: none;
}

.saas-glass-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.saas-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Google brand button */
.ump-google-btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ump-google-btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.ump-google-btn:active {
    transform: translateY(0);
}

.ump-google-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Account pending / suspended full-page shells */
.saas-state-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
}

.saas-state-card {
    width: 100%;
    max-width: 28rem;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.45);
    color: #f8fafc;
    text-align: center;
}

.saas-state-card h1 {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.saas-state-card p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(241, 245, 249, 0.82);
}

.saas-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.saas-admin-actions button {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.saas-admin-actions button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.saas-admin-actions button.saas-btn-suspend {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.saas-admin-actions button.saas-btn-suspend:hover {
    background: #fee2e2;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* —— Premium auth (Stripe / Clerk–inspired) —— */
.ump-auth-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.ump-auth-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.65rem 0.9rem;
    font-size: 0.9375rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ump-auth-input::placeholder {
    color: #94a3b8;
}

.ump-auth-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.ump-auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.55);
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.ump-auth-btn-primary:hover:not(:disabled) {
    box-shadow: 0 8px 22px -6px rgba(16, 185, 129, 0.65);
}

.ump-auth-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ump-auth-otp-cell {
    width: 2.5rem;
    height: 2.85rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

@media (min-width: 480px) {
    .ump-auth-otp-cell {
        width: 2.75rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

.ump-auth-otp-cell:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Workspace: global search dropdown */
.ump-global-search-dropdown {
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.18);
}

/* Empty members illustration block */
.ump-empty-members svg {
    max-width: 220px;
    height: auto;
    color: #64748b;
}

/* Printable receipt (Adam44) */
@media print {
    body * {
        visibility: hidden !important;
    }
    #printable-receipt,
    #printable-receipt * {
        visibility: visible !important;
    }
    #printable-receipt {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 210mm !important;
        min-height: 297mm !important;
        max-width: 210mm !important;
        margin: 0 !important;
        padding: 10mm !important;
        background: #fff !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: 1px solid #e2e8f0;
        overflow: hidden !important;
    }
    @page {
        size: A4 portrait;
        margin: 0;
    }
}

/* —— Super Admin · Modern Executive console —— */
.exec-mono-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-variant-numeric: tabular-nums;
}

.sa-admin-sidebar {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 8px 0 40px -12px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sa-admin-sidebar__eyebrow {
    letter-spacing: 0.14em;
    font-weight: 800;
    text-transform: uppercase;
}

.sa-admin-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.85);
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sa-admin-nav-item:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sa-admin-nav-item.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(99, 102, 241, 0.12));
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35), 0 8px 32px -12px rgba(16, 185, 129, 0.35);
}

.sa-admin-nav-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 50%, rgba(52, 211, 153, 0.25), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.sa-admin-nav-item span:last-child {
    position: relative;
    z-index: 1;
}

.sa-admin-nav-item svg {
    position: relative;
    z-index: 1;
}

.sa-admin-page-header {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 10px 40px -26px rgba(15, 23, 42, 0.18);
}

.exec-stat-card-v2 {
    border-radius: 1.5rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.42) 0%, rgba(248, 250, 252, 0.4) 100%);
    border: 1px solid rgba(226, 232, 240, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 14px 40px -20px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.exec-stat-card-v2:hover {
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.07),
        0 22px 56px -22px rgba(15, 23, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sa-admin-panel {
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.76);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(250, 251, 252, 0.35) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1.35rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 16px 48px -28px rgba(15, 23, 42, 0.12);
}

.sa-admin-grid-shadow {
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 18px 50px -28px rgba(15, 23, 42, 0.1);
}

.sa-admin-shell .exec-grid-wrap {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(226, 232, 240, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sa-admin-shell .exec-grid-table td .rounded-full {
    font-weight: 800;
    border-width: 2px;
}

.sa-admin-toast {
    border-radius: 0.875rem;
    border: 1px solid rgba(167, 243, 208, 0.95);
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), #fff);
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #065f46;
    box-shadow: 0 8px 28px -12px rgba(16, 185, 129, 0.35);
}

/* Luxury tier cards v2 */
.exec-tier-v2 {
    position: relative;
    border-radius: 1.5rem;
    padding: 1.5rem 1.35rem 1.65rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 24px 56px -28px rgba(15, 23, 42, 0.2);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.exec-tier-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%, transparent 100%);
    pointer-events: none;
}

.exec-tier-v2::after {
    content: '';
    position: absolute;
    inset: -40% -20% auto auto;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 65%);
    pointer-events: none;
}

.exec-tier-v2--silver {
    background: linear-gradient(155deg, #f8fafc 0%, #e2e8f0 45%, #cbd5e1 100%);
    border-color: rgba(148, 163, 184, 0.45);
    color: #1e293b;
}

.exec-tier-v2--gold {
    background: linear-gradient(155deg, #fffbeb 0%, #fde68a 38%, #f59e0b 115%);
    border-color: rgba(245, 158, 11, 0.45);
    color: #78350f;
}

.exec-tier-v2--platinum {
    background: linear-gradient(155deg, #f1f5f9 0%, #94a3b8 55%, #334155 100%);
    border-color: rgba(71, 85, 105, 0.5);
    color: #f8fafc;
}

.exec-tier-v2--popular {
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.45),
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 28px 64px -24px rgba(245, 158, 11, 0.35);
}

.exec-tier-popular-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(217, 119, 6, 0.65);
}

.exec-tier-v2__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.88;
}

.exec-tier-v2__title {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.sa-admin-search:focus {
    outline: none;
}

.sa-admin-select {
    cursor: pointer;
    outline: none;
}

.sa-admin-select:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.sa-admin-icon-btn {
    transition: background 0.15s ease, color 0.15s ease;
}

.sa-quick-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 11.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 20px 40px -16px rgba(15, 23, 42, 0.15);
    padding: 0.35rem 0;
    text-align: left;
}

.sa-quick-menu__item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease;
}

.sa-quick-menu__item:hover {
    background: #f8fafc;
}

.sa-quick-menu__item--danger {
    color: #be123c;
}

.sa-quick-menu__item--danger:hover {
    background: #fff1f2;
}

/* Context switcher: smoother Adam44 handoff */
.ump-role-btn {
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.2s ease;
}
