/* ==========================================================================
   1. GLOBAL DESIGN SYSTEM & THEME VARIABLES
   ========================================================================== */
:root {
    /* Base Color Palette */
    --dark-bg: #0B0F17;
    --dark-card: #151C28;
    --dark-input: rgba(255, 255, 255, 0.05);
    --medium-slate: #94A3B8;
    --card-border: rgba(255, 255, 255, 0.1);
    --text-light: #F8FAFC;
    
    /* Consumer Portal Accent (Electric Cyan Blue) */
    --primary-blue: #38BDF8;
    --blue-hover: #7DD3FC;
    --blue-glow: rgba(56, 189, 248, 0.12);
    --blue-shadow: rgba(56, 189, 248, 0.35);

    /* Partner / Business Portal Accent (Vibrant Purple) */
    --biz-accent: #A855F7;
    --biz-hover: #C084FC;
    --biz-glow: rgba(168, 85, 247, 0.12);
    --biz-shadow: rgba(168, 85, 247, 0.35);

    /* Dashboard Metrics Specific Colors */
    --metric-pink: #F43F5E;
    --metric-green: #10B981;
    --metric-blue: #38BDF8;
    --metric-purple: #A855F7;

    /* Admin Portal Accent Colors */
    --primary-red: #FF3B30;
    --primary-red-hover: #E03126;
    --red-glow: rgba(255, 59, 48, 0.45);
    --red-glow-strong: rgba(255, 59, 48, 0.85);

    /* Feedback & Utilities */
    --danger-red: #F87171;
    --success-green: #4ADE80;
}

/* ==========================================================================
   2. BASE RESET & AMBIENT BACKGROUND GLOWS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body { 
    background-color: var(--dark-bg); 
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; 
    color: var(--text-light) !important;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.center-layout,
.center-layout {
    align-items: center;
    justify-content: center;
}

/* Ambient Grid & Glow (Default Consumer Electric Blue) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 50% 35%, var(--blue-glow) 0%, transparent 50%),
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    z-index: -1;
    pointer-events: none;
}

/* Ambient Glow (Business Theme Override) */
body.biz-theme::before {
    background-image: 
        radial-gradient(circle at 50% 35%, var(--biz-glow) 0%, transparent 50%),
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Ambient Glow (Admin Theme Override) */
body.admin-theme::before {
    background-image: 
        radial-gradient(circle at 50% 35%, var(--red-glow) 0%, transparent 55%),
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* ==========================================================================
   3. NAVIGATION & HEADER (DESKTOP DEFAULT)
   ========================================================================== */
header, 
.navbar {
    width: 100%;
    padding: 24px 0 10px 0;
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1000px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Restores prominent desktop logo size */
.header-logo img,
.navbar-brand img {
    height: 350px !important;
    max-height: 350px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-main-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link-custom {
    color: var(--blue-hover) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--primary-blue) !important;
}

.nav-link-biz-pill {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.nav-link-biz-pill:hover {
    background: rgba(168, 85, 247, 0.35);
    border-color: var(--biz-accent);
}

/* ==========================================================================
   4. LANDING PAGE HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 60px 15px 40px 15px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-blue);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.hero-title span { 
    color: var(--primary-blue) !important; 
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--medium-slate) !important;
    max-width: 620px;
    margin: 0 auto 28px auto;
    font-weight: 500;
    line-height: 1.5;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   5. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn-primary-custom,
.btn-biz-custom { 
    border: none; 
    border-radius: 10px; 
    padding: 12px 24px; 
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    min-width: 240px;
}

.btn-primary-custom { 
    background: var(--primary-blue);
    color: #0F172A !important; 
    box-shadow: 0 4px 15px var(--blue-shadow);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background-color: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
    color: #0F172A !important;
}

.btn-biz-custom {
    background: var(--biz-accent);
    color: #ffffff !important;
    box-shadow: 0 4px 15px var(--biz-shadow);
}

.btn-biz-custom:hover {
    background-color: var(--biz-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
    color: #ffffff !important;
}

.btn-danger-custom {
    background-color: rgba(244, 63, 94, 0.15);
    color: #FB7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-danger-custom:hover, 
.btn-danger-custom:focus {
    background-color: #F43F5E;
    color: #FFFFFF;
    border-color: #F43F5E;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.btn-outline-custom {
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 8px 20px;
    color: var(--text-light);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-outline-custom:hover {
    border-color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* ==========================================================================
   6. CARDS & SAVINGS GRID
   ========================================================================== */
.section-title-wrapper {
    text-align: center;
    margin: 40px 0 24px 0;
}

.section-subhead {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--medium-slate);
    text-transform: uppercase;
}

.content-card {
    height: 100%;
    border-radius: 20px; 
    background: var(--dark-card); 
    border: 1px solid var(--card-border); 
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 45px rgba(56, 189, 248, 0.15);
}

body.biz-theme .content-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 45px rgba(168, 85, 247, 0.15);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.card-title {
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.card-text {
    color: var(--medium-slate) !important;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

/* ==========================================================================
   7. BUSINESS / MERCHANT NETWORK SECTION
   ========================================================================== */
.business-section {
    background: var(--dark-card);
    border: 1px solid var(--card-border);
    border-left: 5px solid var(--primary-blue);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-top: 50px;
}

.customer-badge {
    display: inline-block;
    background-color: rgba(56, 189, 248, 0.15);
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 0.725rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.biz-badge {
    display: inline-block;
    background-color: rgba(168, 85, 247, 0.15);
    color: var(--biz-accent);
    font-weight: 800;
    font-size: 0.725rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.merchant-card {
    background: rgba(11, 15, 23, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

/* ==========================================================================
   8. AUTH CARDS & DASHBOARD CONTAINERS
   ========================================================================== */
.auth-card,
.login-card,
.biz-card {
    width: 100%;
    max-width: 440px; 
    border-radius: 20px; 
    border: 1px solid var(--card-border); 
    border-top: 5px solid var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); 
    background: var(--dark-card); 
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch; 
    color: var(--text-light) !important;
    margin: 20px auto;
    position: relative;
    z-index: 10;
}

.biz-card {
    border-top-color: var(--biz-accent);
    max-width: 420px;
}

.biz-card.dashboard-card {
    max-width: 900px;
}

.brand-logo { 
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.brand-logo img { 
    max-width: 350px; 
    width: 80%;
    height: auto; 
    display: block; 
    margin: 0 auto;
    object-fit: contain;
}

.biz-card .brand-logo img {
    max-width: 180px;
    width: 100%;
    margin-bottom: 20px;
    filter: brightness(1.1);
}

.welcome-header { 
    margin-bottom: 25px; 
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
}

.view-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-light) !important;
    margin-bottom: 5px;
}

.view-sub {
    color: var(--medium-slate) !important;
    font-size: 0.95rem;
    font-weight: 500;
}

.text-uppercase-label { 
    font-size: 0.725rem; 
    letter-spacing: 0.05rem; 
    color: var(--primary-blue) !important; 
    margin-bottom: 6px; 
    display: block; 
    font-weight: 800; 
    text-transform: uppercase;
}

body.biz-theme .text-uppercase-label {
    color: var(--biz-accent) !important;
}

/* Typography Utilities */
.tracking-tight { 
    letter-spacing: -0.025em; 
}

.tracking-wider { 
    letter-spacing: 0.05em; 
}

.extra-small { 
    font-size: 0.725rem; 
}

/* ==========================================================================
   9. FORMS & INPUTS
   ========================================================================== */
.form-control,
.form-select,
.form-control-dark { 
    border-radius: 10px; 
    padding: 12px 16px; 
    background-color: var(--dark-input) !important; 
    border: 1px solid var(--card-border) !important; 
    color: #ffffff !important; 
    margin-bottom: 16px; 
    width: 100%;
    font-weight: 500;
    transition: all 0.25s ease;
}

.form-control::placeholder,
.form-control-dark::placeholder { 
    color: #64748B !important; 
}

.form-control:focus,
.form-select:focus,
.form-control-dark:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-blue) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

body.biz-theme .form-control:focus,
body.biz-theme .form-select:focus,
body.biz-theme .form-control-dark:focus {
    border-color: var(--biz-accent) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25) !important;
}

option {
    background-color: #151A23;
    color: var(--text-light);
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

body.biz-theme .form-check-input:checked {
    background-color: var(--biz-accent);
    border-color: var(--biz-accent);
}

.form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   10. FOOTERS & UTILITIES
   ========================================================================== */
.toggle-link {
    color: var(--primary-blue) !important;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

body.biz-theme .toggle-link {
    color: var(--biz-accent) !important;
}

.toggle-link:hover {
    color: var(--blue-hover) !important;
    text-decoration: underline;
}

body.biz-theme .toggle-link:hover {
    color: var(--biz-hover) !important;
}

.biz-link {
    color: var(--biz-accent) !important;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.biz-link:hover {
    color: var(--biz-hover) !important;
    text-decoration: underline;
}

.back-link {
    color: var(--medium-slate) !important;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-blue) !important;
}

.action-link {
    color: var(--medium-slate);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.action-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

body.biz-theme .action-link {
    color: var(--biz-accent) !important;
}

body.biz-theme .action-link:hover {
    color: var(--biz-hover) !important;
}

.action-link-danger {
    color: var(--danger-red) !important;
}

.action-link-danger:hover {
    color: #fca5a5 !important;
}

.footer-links {
    text-align: center;
    margin-top: 25px;
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
    width: 100%;
}

.footer-links p {
    color: var(--medium-slate) !important;
    font-weight: 500;
}

hr { 
    border-color: var(--card-border); 
    opacity: 1; 
}

#status, 
#pwd-status { 
    font-weight: 700; 
    min-height: 24px; 
    letter-spacing: 0.01em;
}

/* ==========================================================================
   11. DISCOVERY SETTINGS PORTAL
   ========================================================================== */
.pref-card { 
    width: 100%;
    max-width: 650px; 
    border-radius: 20px; 
    background: var(--dark-card);
    border: 1px solid var(--card-border); 
    border-top: 5px solid var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); 
    padding: 40px;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
    margin: 20px auto;
    position: relative;
    z-index: 10;
}

.section-title { 
    font-size: 0.725rem; 
    font-weight: 800; 
    color: var(--primary-blue); 
    text-transform: uppercase; 
    letter-spacing: 0.05rem; 
    border-bottom: 1px solid var(--card-border); 
    padding-bottom: 8px; 
    margin-bottom: 15px; 
}

body.biz-theme .section-title {
    color: var(--biz-accent) !important;
}

.pref-box {
    background: var(--dark-input);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 15px;
}

.option-box { 
    border: 1px solid var(--card-border); 
    background-color: var(--dark-input);
    border-radius: 12px; 
    padding: 14px 16px; 
    margin-bottom: 10px; 
    transition: all 0.2s ease; 
    cursor: pointer; 
    display: flex;
    align-items: center;
}

.option-box:hover { 
    border-color: var(--primary-blue); 
    background-color: rgba(56, 189, 248, 0.06);
}

.option-box.active { 
    border-color: var(--primary-blue); 
    background-color: var(--blue-glow); 
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.shop-item-card {
    background: var(--dark-input);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 14px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.shop-item-card.subscribed {
    border-color: var(--primary-blue);
    background-color: var(--blue-glow);
}

/* ==========================================================================
   12. METRICS & DASHBOARD ANALYTICS
   ========================================================================== */
.stat-card,
.metric-card {
    background: var(--dark-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
    border-left-width: 4px;
}

.stat-card:hover,
.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 45px rgba(56, 189, 248, 0.15);
}

.stat-value,
.metric-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-blue) !important;
    line-height: 1.2;
    margin-bottom: 6px;
    text-align: center;
}

.metric-value {
    color: var(--text-light);
    margin-top: 4px;
}

body.biz-theme .stat-value,
.business-section .stat-value {
    color: var(--biz-accent) !important;
}

.stat-label,
.metric-title {
    color: var(--medium-slate);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
}

.metric-card.border-blue,
.card-emails-sent { 
    border-left-color: var(--metric-blue) !important; 
}

.metric-card.border-purple,
.card-emails-read { 
    border-left-color: var(--metric-purple) !important; 
}

.metric-card.border-pink,
.card-msgs-sent { 
    border-left-color: var(--metric-pink) !important; 
}

.metric-card.border-green,
.card-msgs-read { 
    border-left-color: var(--metric-green) !important; 
}

.chart-container {
    background: var(--dark-card) !important;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    height: 350px;
    width: 100%;
}

.chart-container canvas,
#metricsChart {
    background: transparent !important;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   13. MODALS & POPUPS (DARK THEME OVERRIDES)
   ========================================================================== */
.modal-backdrop {
    background-color: rgba(11, 15, 23, 0.85) !important;
}

.modal-content {
    background-color: var(--dark-card) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 20px;
    color: var(--text-light) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--card-border) !important;
    padding: 20px 24px 15px 24px;
}

.modal-header .modal-title {
    color: var(--text-light) !important;
}

.modal-header .btn-close,
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.modal-header .btn-close:hover,
.btn-close-white:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-body .form-label {
    color: var(--text-light) !important;
}

.modal-body .form-control {
    background-color: var(--dark-input) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-light) !important;
}

.modal-body .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

body.biz-theme .modal-body .form-control:focus {
    border-color: var(--biz-accent) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25) !important;
}

.modal-footer {
    border-top: 1px solid var(--card-border) !important;
    padding: 16px 24px;
}

/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS & MOBILE ADAPTATIONS
   ========================================================================== */
@media (max-width: 768px) {
    .pref-card,
    .biz-card,
    .admin-card { 
        padding: 24px 16px; 
    }

    .chart-container { 
        height: 280px; 
        padding: 12px;
    }

    .welcome-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .header-logo img,
    .navbar-brand img {
        height: 200px !important;
        max-height: 200px !important;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        align-items: center;
    }

    /* Row 1: Sign In & Get Started Free side-by-side */
    .nav-main-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    /* Row 2: For Businesses pill centered below */
    .nav-link-biz-pill {
        width: auto;
        justify-content: center;
        padding: 8px 24px;
    }

    .hero-section {
        padding: 30px 15px 20px 15px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary-custom,
    .btn-biz-custom {
        width: 100%;
        min-width: unset;
    }

    .style-btn-inline {
        width: 100% !important;
    }

    .dashboard-card {
        padding: 1.25rem !important;
    }
    
    .welcome-header {
        text-align: center;
        align-items: center !important;
    }

    .welcome-header > div {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   15. ADMIN PORTAL SPECIFIC STYLES
   ========================================================================== */
.admin-card { 
    width: 100%;
    max-width: 900px; 
    border-radius: 20px; 
    border: 1px solid rgba(255, 59, 48, 0.25); 
    box-shadow: 
        0 0 30px rgba(255, 59, 48, 0.25),
        0 0 60px rgba(255, 59, 48, 0.12),
        0 25px 50px -12px rgba(0, 0, 0, 0.9); 
    background: var(--dark-card); 
    padding: 40px;
    position: relative;
}

.admin-badge {
    display: inline-block;
    background: rgba(255, 59, 48, 0.15);
    color: var(--primary-red);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 59, 48, 0.4);
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.3);
    margin-bottom: 12px;
}

.admin-card .section-title { 
    font-size: 0.75rem; 
    font-weight: 800; 
    color: var(--primary-red); 
    text-transform: uppercase; 
    letter-spacing: 0.1rem; 
    border-bottom: 1px solid var(--card-border); 
    padding-bottom: 8px; 
    margin-bottom: 20px; 
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

.admin-card .btn-primary-custom { 
    background: var(--primary-red);
    color: #FFFFFF !important; 
    box-shadow: 0 0 25px var(--red-glow), 0 4px 18px rgba(255, 59, 48, 0.5);
}

.admin-card .btn-primary-custom:hover {
    background-color: var(--primary-red-hover);
    box-shadow: 0 0 35px var(--red-glow-strong), 0 6px 22px rgba(255, 59, 48, 0.75);
}

.admin-card .btn-outline-custom:hover {
    border-color: var(--primary-red);
    color: var(--primary-red) !important;
    background-color: rgba(255, 59, 48, 0.1);
    box-shadow: 0 0 12px var(--red-glow);
}

.table-responsive {
    background: var(--dark-input);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    max-height: 380px;
    overflow-y: auto;
}

.table {
    color: var(--text-light);
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--card-border);
    color: var(--text-light);
    padding: 12px 16px;
    font-size: 0.9rem;
}

.table thead th {
    background-color: #0F131A;
    color: var(--medium-slate);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.badge-category {
    background-color: rgba(255, 59, 48, 0.15);
    color: var(--primary-red);
    border: 1px solid rgba(255, 59, 48, 0.35);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.25);
}