:root {
    /* Colors */
    --bg-body: #050505;
    --bg-surface: #0A0A0A;
    --bg-card: #0F0F0F;
    --border-color: #1F1F1F;

    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-tertiary: #52525B;

    --accent-gold: #C9A25D;
    --accent-gold-hover: #D4B06E;

    --status-success: #2EB85C;
    --status-info: #3299FF;
    --status-warning: #F9B115;
    --status-danger: #E55353;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    height: 100vh;
    overflow: hidden;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg) 0;
}

.sidebar-header {
    padding: 0 var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--accent-gold);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: rgba(201, 162, 93, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-family: serif;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
    padding: 0 var(--spacing-md);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--accent-gold);
    background: rgba(201, 162, 93, 0.08);
    border-left: 2px solid var(--accent-gold);
    /* Optional accent bar */
}

.sidebar-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #27272A;
    color: var(--accent-gold);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: var(--bg-body);
    /* Slightly darker/lighter for contrast */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: var(--spacing-2xl);
    gap: var(--spacing-xl);
}

/* Header */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 2rem;
    font-weight: 400;
    /* Serif vibe but clean */
    color: var(--text-primary);
    /* For that "Poster Generator" serif look in design, 'Outfit' is sans but let's stick to it for consistency. Or add serif. */
    font-family: 'Outfit', sans-serif;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Buttons */
button {
    cursor: pointer;
    font-family: var(--font-main);
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: rgba(201, 162, 93, 0.1);
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.btn-sm:hover {
    color: var(--text-primary);
    border-color: var(--accent-gold);
    background: rgba(201, 162, 93, 0.05);
}

.full-width {
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* KPIs */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-sm);
    /* Sharp corners like design */
}

.kpi-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

.kpi-value {
    font-size: 2.5rem;
    /* Large number */
    font-weight: 300;
    /* Thin look */
    color: var(--text-primary);
    /* Maybe serif for the number class? */
}

.kpi-trend {
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    font-weight: 500;
}

.kpi-trend.positive {
    color: var(--status-success);
}

.kpi-trend.negative {
    color: var(--status-danger);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Upload section wider */
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    flex: 1;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    /* Padding handled inside */
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Upload Zone */
.campaign-upload {
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
}

/* Reset padding for specific cards that use header */
.campaign-upload .card-header {
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.step-indicator {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.upload-zone {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.01);
    transition: background 0.2s;
}

.upload-zone:hover,
.upload-zone.drag-over {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--text-tertiary);
}

.upload-zone.drag-over {
    background: rgba(201, 162, 93, 0.1) !important;
    border-color: var(--accent-gold) !important;
}

.upload-zone h3 {
    font-weight: 400;
    color: var(--text-primary);
}

.upload-zone p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    background: rgba(46, 184, 92, 0.05);
    /* subtle green tint from icon */
    border-left: 2px solid var(--status-success);
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.file-meta {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Activity List */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

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

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.status-icon.success {
    background: rgba(46, 184, 92, 0.1);
    color: var(--status-success);
    border: 1px solid rgba(46, 184, 92, 0.2);
}

.status-icon.info {
    background: rgba(50, 153, 255, 0.1);
    color: var(--status-info);
    border: 1px solid rgba(50, 153, 255, 0.2);
}

.status-icon.warning {
    background: rgba(249, 177, 21, 0.1);
    color: var(--status-warning);
    border: 1px solid rgba(249, 177, 21, 0.2);
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
}

.badge.success {
    color: var(--status-success);
}

.badge.info {
    color: var(--status-info);
}

.badge.warning {
    color: var(--status-warning);
}


/* Views */
.view {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Campaign/Dealer View Styles */
.campaign-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-xl);
    height: calc(100vh - 140px);
}

.poster-preview-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-xl);
    min-height: 0;
    overflow-y: auto;
}

.preview-header {
    margin-bottom: var(--spacing-lg);
}

.preview-stage {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.poster-wrapper {
    position: relative;
    max-height: 100%;
    max-width: 100%;
    display: inline-block;
    overflow: hidden;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Poster Overlay - Transparent Split Layout */
.poster-overlay-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Gradient for readability */
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%); */
}

.poster-logo {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: flex-end;
}

.poster-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.dealer-details {
    text-align: right;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dealer-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dealer-details p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.dealer-list-sidebar {
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-height: 0;
    overflow: hidden;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
}

.dealer-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.dealer-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

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

.dealer-item.active {
    background: rgba(201, 162, 93, 0.1);
    border-left: 2px solid var(--accent-gold);
}

.dealer-avatar {
    width: 32px;
    height: 32px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--accent-gold);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-color: var(--status-success);
}

.toast-icon {
    font-size: 1.2rem;
}

/* Manual Form Styles */
.divider-text {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    line-height: 0.1em;
    margin: var(--spacing-sm) 0 var(--spacing-md);
}

.divider-text span {
    background: var(--bg-surface);
    padding: 0 10px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
}

.manual-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.form-group input[type="file"] {
    background: transparent;
    border: 1px dashed var(--border-color);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-group input[type="file"]:hover {
    border-color: var(--accent-gold);
    background: rgba(201, 162, 93, 0.05);
}

.form-row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0; /* Important for flex shrinking */
}

.form-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.form-group input {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    width: 100%; /* Ensure input takes full width of group */
}

.form-group input:focus {
    border-color: var(--accent-gold);
}

/* Dealers Page Styles */
.dealers-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
}

.dealers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.dealer-manage-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dealer-manage-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
}

.dealer-manage-card .card-header {
    padding: var(--spacing-md) var(--spacing-lg);
}

.dealer-actions {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
}

.dealer-actions button {
    cursor: pointer !important;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    max-width: 600px;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal-card {
    width: 100%;
    max-width: 540px;
    padding: var(--spacing-xl);
    border: 1px solid var(--accent-gold);
    animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-gold);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-primary);
}
/* --- Fix for oversized dealer logos and card layout --- */
.dealer-logo-preview img {
    height: 60px !important;
    width: auto !important;
    max-width: 90% !important;
    object-fit: contain !important;
}

.dealer-manage-card h3 {
    word-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* --- Modern Controls UI --- */
.modern-controls-panel {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: #151515;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.val-badge {
    background: #2a2a2a;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
}

/* Modern Range Slider */
.modern-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    outline: none;
    transition: background 0.2s;
}
.modern-slider:hover {
    background: #333;
}
.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: transform 0.1s;
}
.modern-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Modern Color Picker */
.color-picker-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
    transition: border-color 0.2s;
}
.color-picker-wrapper:hover {
    border-color: var(--accent-gold);
}
.modern-color {
    -webkit-appearance: none;
    border: none;
    width: 150%;
    height: 150%;
    margin: -25%;
    padding: 0;
    cursor: pointer;
}

/* --- Premium Workspace Designer Additions --- */
.preset-btn {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.preset-btn:hover {
    background: rgba(201, 162, 93, 0.1) !important;
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
}
.preset-btn:active {
    transform: scale(0.95);
}

.design-element {
    position: absolute;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.design-element:hover .design-bounding-box {
    opacity: 1 !important;
}

/* Hide webkit/scrollbars for sidebar controls to keep interface sleek */
.editor-controls-sidebar::-webkit-scrollbar {
    width: 4px;
}
.editor-controls-sidebar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.editor-controls-sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}
.editor-controls-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ============================================= */
/* --- Super Admin Panel Styles ---              */
/* ============================================= */

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

.admin-users-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    white-space: nowrap;
}

.admin-users-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.admin-users-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

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

.admin-users-table tbody td {
    padding: 14px 16px;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Row highlight for pending upgrade requests */
.row-upgrade-requested {
    background: rgba(249, 177, 21, 0.04) !important;
    border-left: 3px solid var(--status-warning);
}

.row-upgrade-requested:hover {
    background: rgba(249, 177, 21, 0.08) !important;
}

/* Admin user avatar (table cell) */
.admin-user-avatar {
    width: 34px;
    height: 34px;
    background: #1a1a1a;
    color: var(--accent-gold);
    border: 1px solid rgba(201, 162, 93, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Role badges */
.admin-role-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-super-admin {
    background: rgba(201, 162, 93, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(201, 162, 93, 0.3);
}

.badge-admin {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Status badges */
.admin-status-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.status-active {
    background: rgba(46, 184, 92, 0.1);
    color: var(--status-success);
    border: 1px solid rgba(46, 184, 92, 0.2);
}

.status-at-limit {
    background: rgba(249, 177, 21, 0.1);
    color: var(--status-warning);
    border: 1px solid rgba(249, 177, 21, 0.2);
}

.status-upgrade-requested {
    background: rgba(249, 177, 21, 0.15);
    color: var(--status-warning);
    border: 1px solid rgba(249, 177, 21, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 177, 21, 0); }
    50% { box-shadow: 0 0 8px 2px rgba(249, 177, 21, 0.15); }
}

/* Limit controls (inline +/- buttons) */
.admin-limit-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-limit-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
}

.admin-limit-btn:hover {
    background: rgba(201, 162, 93, 0.12);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.admin-limit-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

/* Action buttons */
.admin-action-btn {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-main);
}

.admin-action-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(201, 162, 93, 0.08);
}

.admin-action-btn.approve {
    background: rgba(46, 184, 92, 0.1);
    border-color: rgba(46, 184, 92, 0.3);
    color: var(--status-success);
}

.admin-action-btn.approve:hover {
    background: rgba(46, 184, 92, 0.2);
    border-color: var(--status-success);
}

/* Upgrade Modal Icon Container */
.upgrade-modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(201, 162, 93, 0.08);
    border: 1px solid rgba(201, 162, 93, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: modalIconPulse 2s ease-in-out infinite;
}

@keyframes modalIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 162, 93, 0); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 4px rgba(201, 162, 93, 0.1); }
}
