/* Modern CSS Variables for Premium Dark/Neon Aesthetic */
:root {
    --bg-base: #0a0c14;
    --bg-surface: rgba(13, 18, 32, 0.75);
    --bg-card: rgba(20, 28, 48, 0.5);
    --border-color: rgba(0, 229, 255, 0.15);
    --border-glow: rgba(0, 229, 255, 0.25);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    --color-primary: #ff6b00; /* Proxbox Electric Orange */
    --color-primary-hover: #e05e00;
    --color-accent: #00e5ff; /* Vivid Cyan */
    --color-accent-hover: #00c8e0;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(0, 229, 255, 0.15);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 10% 20%, rgba(255, 107, 0, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(0, 229, 255, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* App Layout */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.app-logo:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.5);
    border-color: var(--color-accent);
}

.brand h1 {
    font-size: 3.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: linear-gradient(120deg, #ffffff 10%, #ff9f43 45%, #00e5ff 75%, #ff9f43 90%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s linear infinite;
    filter: drop-shadow(0 0 15px rgba(255, 159, 67, 0.25));
    margin-bottom: 0.25rem;
    line-height: 1.15;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    cursor: default;
    user-select: none;
}

.brand h1:hover {
    transform: scale(1.03) translateY(-1px);
    filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.45));
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brand p {
    font-size: 0.74rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    justify-content: center;
}

.brand p::before,
.brand p::after {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 159, 67, 0.4));
}

.brand p::after {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.4), transparent);
}

.header-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.header-link-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-link-btn.admin-btn-link {
    background: rgba(255, 107, 0, 0.05);
    border-color: rgba(255, 107, 0, 0.15);
    color: var(--color-primary);
}

.header-link-btn.admin-btn-link:hover {
    background: rgba(255, 107, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.3);
    color: var(--color-primary-hover);
}

.app-nav {
    display: flex;
    gap: 0.75rem;
}

/* Premium Navigation Buttons */
.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

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

.nav-btn.active {
    color: var(--color-accent);
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: var(--shadow-glow);
}

/* Glassmorphism Card Style */
.card.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.card.glass:hover {
    border-color: rgba(144, 85, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(144, 85, 255, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
}

.icon-header {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Main Split View */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

/* Inputs & Form Controls */
.input-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

input[type="url"],
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: rgba(8, 12, 22, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
    background: rgba(8, 12, 22, 0.9);
}

textarea {
    resize: vertical;
}

.helper-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Segmented Control / Tabs */
.segmented-control {
    display: flex;
    background: rgba(8, 12, 22, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: 8px;
    gap: 0.25rem;
}

.segment-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.segment-btn.active {
    background: var(--color-primary);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(144, 85, 255, 0.3);
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 15px rgba(144, 85, 255, 0.4);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--color-accent);
    color: #040814;
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    aspect-ratio: 1;
}

/* Summary Card States */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 350px;
    padding: 2rem;
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.placeholder-content h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.placeholder-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 250px;
}

/* Metrics Dashboard Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.metric-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Checkout Tier Card */
.pricing-tier-card {
    background: linear-gradient(135deg, rgba(144, 85, 255, 0.15) 0%, rgba(0, 240, 255, 0.05) 100%);
    border: 1px solid rgba(144, 85, 255, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

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

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

.tier-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

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

.customer-form {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.customer-form h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 500px) {
    .input-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Overlay Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 13, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-card {
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

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

.success-large-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

.success-msg {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.order-number-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 2rem;
}

.order-number-box .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.order-number-box .value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-success);
}

/* Admin Dashboard layout */
.admin-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1000px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mini-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.mini-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.mini-metric .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.mini-metric .value {
    font-size: 1.25rem;
    font-weight: 700;
}

.text-accent { color: var(--color-accent) !important; }
.text-success { color: var(--color-success) !important; }
.text-white { color: var(--text-white) !important; }

/* Pricing Settings Form specific styling */
.settings-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin: 1rem 0 0.75rem;
}

.switch-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.switch-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Toggle Switch Widget */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-field.hidden {
    display: none;
}

/* Admin Queue / Queue Manager Table */
.flex-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flex-fill {
    flex: 1;
}

.table-container {
    overflow-x: auto;
    margin-top: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

td {
    font-size: 0.9rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.text-right {
    text-align: right;
}

tbody tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Badge Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending, .status-received {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-downloading, .status-generating, .status-processing, .status-printing, .status-downloading_pdf {
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.status-downloaded {
    background: rgba(144, 85, 255, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(144, 85, 255, 0.2);
}

.status-pdf_generated, .status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-pulse {
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Order Queue Actions Group */
.action-group {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Expended Detail Row in Table */
.expanded-row {
    background: rgba(8, 12, 22, 0.4);
}

.order-detail-card {
    padding: 1.25rem;
    border-left: 3px solid var(--color-primary);
    margin: 0.5rem 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 800px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.detail-info h4, .detail-workflow h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.detail-item {
    margin-bottom: 0.75rem;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.card-list-scroller {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    background: rgba(8, 12, 22, 0.5);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

.scroller-item {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    display: flex;
    justify-content: space-between;
}

.workflow-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Console Panel styling (The Print Shop Console) */
.console-card {
    border-color: rgba(0, 240, 255, 0.3) !important;
    background: #040710 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.05) !important;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.console-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.console-title h3 {
    font-size: 1rem;
    font-family: var(--font-mono);
    color: var(--color-accent);
}

.console-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.console-body {
    background: #02040a;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #a5f3fc;
    padding: 1rem;
    border-radius: 8px;
    height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.console-body::-webkit-scrollbar {
    width: 6px;
}

.console-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.console-body::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 3px;
}

/* Hide helper */
.hidden {
    display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

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

/* Calculator Helper Tool Box */
.calc-helper-trigger {
    font-size: 0.75rem !important;
    color: var(--color-accent) !important;
    text-decoration: none;
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}
.calc-helper-trigger:hover {
    text-decoration: underline;
    color: var(--color-accent-hover) !important;
}
.calc-helper-box {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #0d111b !important;
    border: 1px solid var(--color-primary) !important;
    border-radius: 8px;
    animation: slideDown 0.2s ease-out;
    z-index: 1000 !important;
    opacity: 1 !important;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.compact {
    margin-bottom: 0.5rem !important;
}
.input-grid.compact {
    gap: 0.5rem !important;
}

/* Card slot aesthetics */
.deck-slot-container {
    border: 1px solid rgba(255, 107, 0, 0.3) !important;
    position: relative;
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.05), inset 0 0 20px rgba(255, 107, 0, 0.02) !important;
}

.deck-slot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 16px 16px 0 0;
}

.deck-slot-container:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 0, 0.12), 0 0 20px rgba(0, 229, 255, 0.05), inset 0 0 20px rgba(255, 107, 0, 0.04) !important;
    border-color: rgba(255, 107, 0, 0.45) !important;
}

/* CLI Autocomplete IntelliSense styling */
.cli-autocomplete-box {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #0f131f;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg), 0 0 15px rgba(0, 229, 255, 0.1);
    z-index: 1000;
    display: flex;
    max-height: 220px;
    font-family: var(--font-sans);
    overflow: hidden;
    animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}
.cli-option-list {
    flex: 1.1;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    background: rgba(15, 19, 31, 0.95);
}
.cli-option-item {
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.cli-option-item:last-child {
    border-bottom: none;
}
.cli-option-item:hover, .cli-option-item.active {
    background: rgba(0, 229, 255, 0.12);
    color: var(--text-white);
}
.cli-option-item .flag-term {
    font-family: var(--font-mono);
    color: var(--color-primary);
}
.cli-option-item:hover .flag-term, .cli-option-item.active .flag-term {
    color: var(--color-accent);
}
.cli-option-item .flag-type {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.cli-option-desc-pane {
    flex: 1.3;
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
    overflow-y: auto;
    font-size: 0.72rem;
    line-height: 1.4;
    border-radius: 0 8px 8px 0;
}
.cli-option-desc-pane .desc-header {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}
.cli-option-desc-pane .desc-body {
    opacity: 0.85;
}
