:root,
[data-theme="dark"] {
    /* Color Palette - Dark Theme (Primary & Default) */
    --bg-base: #030712;
    --bg-base-rgb: 3, 7, 18;
    --bg-app: #090e1a;
    --bg-app-rgb: 9, 14, 26;
    --bg-surface: #111a2e;
    --bg-surface-rgb: 17, 26, 46;
    --bg-surface-hover: #1e293b;
    --bg-card: #0f172a;
    --bg-card-rgb: 15, 23, 42;
    --bg-card-hover: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Brand Colors */
    --brand-primary: #3b82f6;
    --brand-accent: #64ffda;
    --pos-gold: #eab308;
    --pos-gold-hover: #f59e0b;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Metrics */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --bottom-nav-height: 70px;
    --app-header-height: 60px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Modal & Sheet Glassmorphism Variables */
    --bg-sheet-glass: rgba(17, 26, 46, 0.88);
    --bg-sheet-blur: 20px;
    --sheet-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    --modal-overlay-bg: rgba(3, 7, 18, 0.78);
    --modal-border: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] {
    --bg-base: #f1f5f9;
    --bg-base-rgb: 241, 245, 249;
    --bg-app: #f8fafc;
    --bg-app-rgb: 248, 250, 252;
    --bg-surface: #ffffff;
    --bg-surface-rgb: 255, 255, 255;
    --bg-surface-hover: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-rgb: 255, 255, 255;
    --bg-card-hover: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(15, 23, 42, 0.08);
    --pos-gold: #d97706;
    --pos-gold-hover: #b45309;
    --bg-sheet-glass: rgba(255, 255, 255, 0.88);
    --bg-sheet-blur: 20px;
    --sheet-shadow: 0 -10px 40px rgba(15, 23, 42, 0.08);
    --modal-overlay-bg: rgba(15, 23, 42, 0.45);
    --modal-border: rgba(15, 23, 42, 0.08);
}

/* Global Select Options Styling */
select option {
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
}
[data-theme="light"] select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on mobile */
}

html, body {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow: hidden; /* App wrapper handles scrolling */
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
}

/* App Wrappers */
.view-container {
    display: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    background-color: var(--bg-app);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

.view-container.active {
    display: flex;
    flex-direction: column;
}

/* Auth View */
.auth-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    position: relative;
    overflow: hidden;
    transition: background var(--transition-smooth);
}
[data-theme="light"] .auth-wrapper {
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
}
.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0) 70%);
    top: -80px;
    left: -80px;
    filter: blur(50px);
    pointer-events: none;
    animation: float-blob-1 12s infinite alternate ease-in-out;
}
[data-theme="light"] .auth-wrapper::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 70%);
}
.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0) 70%);
    bottom: -80px;
    right: -80px;
    filter: blur(50px);
    pointer-events: none;
    animation: float-blob-2 15s infinite alternate ease-in-out;
}
[data-theme="light"] .auth-wrapper::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0) 70%);
}

@keyframes float-blob-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -30px) scale(1.1);
    }
    100% {
        transform: translate(-20px, 10px) scale(0.95);
    }
}
@keyframes float-blob-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 40px) scale(1.15);
    }
    100% {
        transform: translate(10px, -20px) scale(0.9);
    }
}
@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================================
   Modern Split Login Screen (Matches Reference Design)
   ======================================================== */
#auth-view.view-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    background: var(--bg-base, #0b1320);
    z-index: 99999;
    display: none;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

[data-theme="light"] #auth-view.view-container {
    background: #ffffff;
}

#auth-view.active {
    display: flex;
    flex-direction: column;
}

.login-page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 44px;
    box-sizing: border-box;
    max-width: 1560px;
    margin: 0 auto;
    justify-content: space-between;
}

/* Navbar */
.login-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 20px 0;
    width: 100%;
}

.login-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.login-brand-logo-img {
    height: 42px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(234, 179, 8, 0.25));
    transition: transform 0.2s ease;
}

.login-brand-logo-img:hover {
    transform: scale(1.03);
}

.login-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-nav-btn i {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.login-nav-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.login-nav-btn:hover i {
    color: #ffffff;
}

.login-theme-btn {
    padding: 8px 12px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-theme-btn i {
    font-size: 1.1rem;
    color: #eab308;
}

.login-theme-btn:hover i {
    color: #fde047;
}

/* Light Theme Overrides */
[data-theme="light"] .login-nav-btn {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] .login-nav-btn i {
    color: #64748b;
}

[data-theme="light"] .login-nav-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .login-nav-btn:hover i {
    color: #0f172a;
}

[data-theme="light"] .login-theme-btn i,
[data-theme="light"] #theme-toggle-auth i {
    color: #1e293b;
}

[data-theme="light"] .login-theme-btn:hover i,
[data-theme="light"] #theme-toggle-auth:hover i {
    color: #0f172a;
}

/* Split Layout */
.login-split-layout {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 52px;
    flex: 1;
    align-items: center;
    width: 100%;
    margin: auto 0;
    padding: 10px 0;
}

/* Left Pane: Form */
.login-form-pane {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 440px;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    letter-spacing: -0.8px;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
    margin: 0;
}

.login-main-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

#login-step-1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.login-field-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted, #475569);
    letter-spacing: 0.2px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.login-input-wrap input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color, #cbd5e1);
    background: var(--bg-surface, #ffffff);
    color: var(--text-main, #0f172a);
    font-size: 0.92rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

[data-theme="light"] .login-input-wrap input {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.login-input-wrap input:focus {
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.25);
}

.login-pwd-toggle {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 1.15rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.login-pwd-toggle:hover {
    color: var(--text-main, #0f172a);
}

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 2px;
    padding: 2px 0;
}

.login-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    user-select: none;
}

.login-remember-label input[type="checkbox"] {
    accent-color: #eab308;
    width: 17px;
    height: 17px;
    cursor: pointer;
    border-radius: 4px;
}

.login-error-msg {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Big Golden Action Button (Reference Match) */
.btn-login-submit {
    width: 100%;
    height: 48px;
    background: #eab308;
    color: #0f172a;
    border: none;
    border-radius: 26px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login-submit:hover {
    background: #eab308;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.45);
}

.btn-login-submit:active {
    transform: translateY(0);
}

.login-forgot-wrap {
    text-align: center;
    margin-top: 2px;
}

.login-forgot-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.15s;
}

.login-forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.btn-login-passkey {
    width: 100%;
    height: 42px;
    background: var(--bg-surface, #f8fafc);
    color: var(--text-main, #0f172a);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 22px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.btn-login-passkey:hover {
    background: var(--bg-card, #f1f5f9);
    border-color: #cbd5e1;
}

/* Bottom Promo Card (Yellow-Magenta Split) */
.login-promo-card {
    position: relative;
    border-radius: 16px;
    padding: 20px 22px;
    background: linear-gradient(115deg, #eab308 0%, #f59e0b 60%, #ec4899 60%, #db2777 100%);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
    margin-top: 6px;
}

.login-promo-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.promo-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.promo-desc {
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
    line-height: 1.35;
}

.btn-promo-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0f172a;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.15s ease;
    align-self: flex-start;
}

.btn-promo-register:hover {
    background: #0f172a;
    color: #ffffff;
    transform: translateY(-1px);
}

.login-promo-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: #eab308;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Right Pane: Hero Showcase & Slider */
.login-hero-pane {
    position: relative;
    height: 640px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
    background: #0b1320;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 19, 32, 0.95) 0%, rgba(11, 19, 32, 0.45) 50%, rgba(11, 19, 32, 0.15) 100%);
    z-index: 2;
}

/* Floating Glass Mini Dashboard */
.hero-floating-mockup {
    position: absolute;
    top: 36px;
    left: 36px;
    right: 36px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 16px 20px;
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: floatMockup 4s ease-in-out infinite alternate;
}

@keyframes floatMockup {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mockup-status-live {
    font-size: 0.72rem;
    font-weight: 800;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.mockup-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mockup-stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
}

.mockup-stat-card .m-label {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-bottom: 2px;
}

.mockup-stat-card .m-val {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.mockup-stat-card .m-val.text-green { color: #34d399; }
.mockup-stat-card .m-val.text-gold { color: #eab308; }

/* Caption Area */
.hero-caption-area {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-caption-slide {
    display: none;
    flex-direction: column;
    gap: 8px;
    animation: fadeInSlide 0.5s ease;
}

.hero-caption-slide.active {
    display: flex;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-caption-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-highlight-pill {
    background: #6366f1;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.hero-highlight-pill.pill-cyan {
    background: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.hero-highlight-pill.pill-emerald {
    background: #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.hero-caption-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
    max-width: 580px;
}

.hero-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.btn-hero-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0f172a;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
}

.btn-hero-info:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-dot.active {
    width: 24px;
    background: #eab308;
}

.hero-slider-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hero-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .login-split-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .login-hero-pane {
        display: none;
    }
    .login-form-pane {
        max-width: 480px;
        margin: 0 auto;
    }
    .login-page-container {
        padding: 20px;
    }
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-primary i {
    font-size: 1.2rem;
    transition: transform var(--transition-smooth);
}
.btn-primary:hover i:not(.ph-spin) {
    transform: translateX(4px);
}

.error-msg {
    color: var(--danger);
    text-align: center;
    margin-bottom: 1.25rem;
    display: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.theme-toggle-auth {
    position: absolute;
    top: calc(1.5rem + env(safe-area-inset-top, 0px));
    right: 1.5rem;
    z-index: 10;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.theme-toggle-auth:hover {
    transform: scale(1.05);
    background: var(--bg-surface-hover);
}
.theme-toggle-auth:active {
    transform: scale(0.95);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 3;
    font-size: 1.2rem;
    transition: color var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}
.password-toggle:hover {
    color: var(--brand-primary);
}

/* App Header */
.app-header {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-app);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
    flex-shrink: 0;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-header-logo {
    width: 36px;
    height: 36px;
    background-color: var(--brand-primary);
    -webkit-mask: url("../images/logo.png") no-repeat center / contain;
    mask: url("../images/logo.png") no-repeat center / contain;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.app-header-logo:hover {
    transform: scale(1.05);
}

.app-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.icon-btn:active { background: var(--border-color); }

/* Main Content Area */
.app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* hide scrollbar */
    scrollbar-width: none;
}
.app-content::-webkit-scrollbar { display: none; }

.page-view {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-view.active { display: block; }

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

.bottom-padding {
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 80px); /* extra space for FAB */
}

/* Dashboard View */
.dashboard-welcome {
    margin-bottom: 1.5rem;
    padding: 0.5rem;
}

.dashboard-welcome h2 { font-size: 1.8rem; font-weight: 800; }
.dashboard-welcome p { color: var(--text-muted); }

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

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.bg-blue .stat-icon { background: #3b82f6; }
.bg-green .stat-icon { background: #10b981; }
.bg-purple .stat-icon { background: #8b5cf6; }
.bg-orange .stat-icon { background: #f59e0b; }

.stat-details h3 { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.stat-details p { font-size: 1.5rem; font-weight: 800; margin-top: 0.2rem; }

/* List View (Customers, Tickets, etc.) */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 30px; /* Capsule */
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}
.search-bar:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: var(--bg-surface-hover);
}

.search-bar i { color: var(--text-muted); font-size: 1.2rem; margin-right: 0.5rem; }
.search-bar input {
    background: transparent; border: none; color: var(--text-main); font-size: 1rem; width: 100%; outline: none;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* List Item (App Card) */
.list-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.list-item:hover {
    border-left-color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 5%, var(--bg-surface));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.list-item:active {
    background: color-mix(in srgb, var(--brand-primary) 10%, var(--bg-surface));
    transform: scale(0.985) translateX(2px);
    border-left-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.li-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}
.list-item:hover .li-avatar {
    transform: scale(1.05);
}

/* Gradient avatars depending on view type */
.avatar-tickets {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
}
.avatar-invoices {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.05));
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}
.avatar-messages {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.05));
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.2);
}
.avatar-services {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05));
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}
.avatar-users {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    color: var(--brand-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.li-content {
    flex: 1;
    overflow: hidden;
}

.li-title {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.li-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.li-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.li-info i {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.li-info.font-amount {
    font-weight: 700;
    color: var(--text-main);
}

.li-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.li-chevron {
    color: var(--border-color);
    font-size: 1.2rem;
}

/* Badges */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-success { background: rgba(16, 185, 129, 0.12); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.15); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.15); }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.15); }
.badge-info { background: rgba(59, 130, 246, 0.12); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.15); }
.badge-secondary { background: rgba(148, 163, 184, 0.12); color: var(--text-muted); border: 1px solid rgba(148, 163, 184, 0.15); }

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--bg-sheet-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    height: calc(65px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    box-shadow: var(--sheet-shadow);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    flex: 1;
    height: 100%;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.nav-item i {
    font-size: 1.4rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item.active {
    color: var(--brand-primary);
}
.nav-item.active i {
    transform: translateY(-2px);
}
.nav-item.active::after {
    content: '';
    position: absolute;
    top: 4px;
    width: 20px;
    height: 4px;
    background-color: var(--brand-primary);
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Floating Action Button */
.fab {
    position: absolute;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 1rem);
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    z-index: 40;
    cursor: pointer;
    transition: transform var(--transition-spring);
}
.fab:active { transform: scale(0.9); }

/* Overlays & Sheets */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}
.overlay.active { opacity: 1; pointer-events: auto; }

/* Bottom Sheet */
.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-sheet-glass);
    backdrop-filter: blur(var(--bg-sheet-blur));
    -webkit-backdrop-filter: blur(var(--bg-sheet-blur));
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    transform: translateY(100%);
    transition: transform var(--transition-spring);
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    box-shadow: var(--sheet-shadow);
}
.bottom-sheet.active { transform: translateY(0); }

.sheet-handle {
    width: 40px;
    height: 5px;
    background: var(--border-color);
    border-radius: 5px;
    margin: 10px auto;
    opacity: 0.6;
}

.sheet-content { padding: 0.5rem 1.5rem 1.5rem; }

/* Grid Layout for More Menu */
.sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.sheet-grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.sheet-grid-item:hover, .sheet-grid-item:active {
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
    border-color: var(--brand-primary);
}
[data-theme="light"] .sheet-grid-item {
    background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .sheet-grid-item:hover {
    background: var(--bg-surface-hover);
}

.sheet-grid-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform var(--transition-fast);
}
.sheet-grid-item:hover .sheet-grid-icon {
    transform: scale(1.1);
}

/* Premium gradients or solid colors for grid icons */
.sheet-icon-emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.sheet-icon-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}
[data-theme="light"] .sheet-icon-purple {
    color: #7c3aed;
}

.sheet-grid-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}
.sheet-grid-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.sheet-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: var(--danger);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    margin-top: 10px;
}
.sheet-logout-btn:hover, .sheet-logout-btn:active {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Full Screen Sheet (Modals/Forms) */
.full-sheet {
    position: absolute;
    inset: 0;
    background: var(--bg-app);
    z-index: 110;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.full-sheet.active { transform: translateY(0); }

.full-sheet-header {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    flex-shrink: 0;
    position: relative;
}
.full-sheet-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 30%, transparent));
    opacity: 0.9;
}
.full-sheet-header h3 { font-size: 1.1rem; font-weight: 700; flex: 1; text-align: center; }
.full-sheet-header .icon-btn { width: 40px; }
.text-btn {
    background: transparent; border: none; color: var(--brand-primary); font-weight: 700; font-size: 1rem; padding: 0.5rem; cursor: pointer;
}

.full-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; color: var(--text-muted); font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select {
    width: 100%; padding: 0.85rem 1rem; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-main); font-size: 1rem; outline: none; transition: all var(--transition-fast);
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 20%, transparent);
    background: var(--bg-surface-hover);
}

.detail-row {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.detail-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }
.detail-value { font-size: 1rem; font-weight: 600; color: var(--text-main); word-break: break-word; }

/* Loader */
.loader-container { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 20; display: none; align-items: center; justify-content: center; }
.loader-container.active { display: flex; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border-color); border-top-color: var(--brand-primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Chat Baloncukları Arayüzü */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
    padding: 4px;
}
.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.45;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-bubble-user {
    align-self: flex-start;
    background: var(--bg-surface);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}
.chat-bubble-admin {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}
.chat-meta {
    font-size: 0.7rem;
    opacity: 0.8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.chat-bubble-user .chat-meta {
    color: var(--text-muted);
}
.chat-bubble-admin .chat-meta {
    color: rgba(255, 255, 255, 0.85);
}

/* Detay Sayfası Kartları (Card-based UI) */
.detail-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.detail-card-title {
    font-size: 0.75rem;
    color: var(--brand-primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.detail-card-title i {
    font-size: 1rem;
}
.detail-row-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.detail-row-inline .detail-label {
    margin-bottom: 0;
    text-transform: none;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0;
}
.detail-row-inline .detail-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: right;
    word-break: break-all;
}

/* Hızlı Eylem Butonları */
.detail-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.btn-action-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.btn-action-outline:active {
    background: var(--bg-surface-hover);
    transform: scale(0.97);
}
[data-theme="light"] .btn-action-outline {
    background: rgba(0, 0, 0, 0.02);
}

/* Sohbet Yazma Alanı Geliştirmesi */
.chat-composer-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Canned Responses and Typing styles */
.canned-quick-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.canned-quick-row::-webkit-scrollbar {
    display: none;
}
.btn-canned-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-canned-chip:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
    color: #64ffda;
}
.canned-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 -10px 25px rgba(0,0,0,0.5);
    z-index: 10;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 6px;
}
.canned-item {
    padding: 10px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.canned-item:last-child {
    border-bottom: none;
}
.canned-item:hover {
    background-color: var(--bg-surface-hover);
    color: var(--brand-primary);
}
.chat-bubble-visitor-typing {
    align-self: flex-start;
    background: var(--bg-surface);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
}
.crm-typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    animation: crmDotBlink 1.4s infinite both;
}
.crm-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.crm-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes crmDotBlink {
    0% { opacity: 0.2; transform: scale(0.8); }
    20% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

/* Profile menu dropdown and general glassmorphic design improvements */
.profile-dropdown-container {
    position: relative;
}
.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    z-index: 100;
    min-width: 190px;
    margin-top: 8px;
    padding: 6px 0;
    animation: fadeSlideUp var(--transition-fast) both;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.dropdown-item:hover {
    background-color: var(--bg-surface-hover);
    color: var(--brand-primary);
}
.dropdown-item.text-danger {
    color: var(--danger);
}
.dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.08);
    color: #ff6b6b;
}

/* Glassmorphism improvements to existing structures */
.stat-card, .list-item, .detail-card, .chat-composer-card, .profile-card, .settings-card {
    background: rgba(17, 26, 46, 0.45) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}
[data-theme="light"] .stat-card, 
[data-theme="light"] .list-item, 
[data-theme="light"] .detail-card, 
[data-theme="light"] .chat-composer-card,
[data-theme="light"] .profile-card, 
[data-theme="light"] .settings-card {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04) !important;
}

.stat-card:hover, .list-item:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: var(--brand-primary) !important;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15) !important;
}
[data-theme="light"] .stat-card:hover, 
[data-theme="light"] .list-item:hover {
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08) !important;
}

/* Color dot selection styles */
.color-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.color-dot:hover {
    transform: scale(1.15);
}
.color-dot.active {
    border-color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 15px currentColor;
}
[data-theme="light"] .color-dot.active {
    border-color: #0f172a;
}

.btn-theme-select {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
[data-theme="light"] .btn-theme-select {
    background: rgba(0, 0, 0, 0.02);
}
.btn-theme-select:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}
.btn-theme-select.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Premium Gradient Metric Card */
.metrics-card-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1e40af 100%) !important;
    border: none !important;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3) !important;
    color: #fff !important;
}
[data-theme="light"] .metrics-card-gradient {
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.25) !important;
}

/* Form controls & Search parlaması */
.search-bar:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15) !important;
}

/* Live Chat Notification Banner */
.live-chat-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--brand-primary) 0%, rgba(29, 78, 216, 0.95) 100%);
    color: #ffffff;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform var(--transition-spring), box-shadow var(--transition-fast), filter var(--transition-fast);
    animation: banner-pulse-shadow 2.5s infinite alternate ease-in-out;
}
.live-chat-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    filter: brightness(1.05);
}
.live-chat-banner:active {
    transform: translateY(0);
}
.live-chat-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.banner-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pulsing dot */
.live-chat-pulse {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: live-pulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
    flex-shrink: 0;
}

@keyframes live-pulse {
    to {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}
@keyframes banner-pulse-shadow {
    0% {
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    100% {
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }
}

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

/* Metric Mini Card */
.metric-mini-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-align: center;
    transition: transform var(--transition-spring), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-surface-hover);
}

.metric-mini-card:active {
    transform: translateY(0);
}

.metric-mini-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.metric-mini-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-mini-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.metric-mini-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

/* Semantic Glass Accents for cards */
.bg-blue-glass {
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.bg-blue-glass .metric-mini-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-primary);
}
.bg-blue-glass:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.08);
}

.bg-purple-glass {
    border: 1px solid rgba(139, 92, 246, 0.15);
}
.bg-purple-glass .metric-mini-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}
.bg-purple-glass:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.08);
}

.bg-red-glass {
    border: 1px solid rgba(239, 68, 68, 0.15);
}
.bg-red-glass .metric-mini-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.bg-red-glass:hover {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.08);
}

/* Chart Canvas tweaks */
.chart-card canvas {
    max-width: 100%;
}

/* Header Live Chat Button styling */
#header-chat-btn {
    color: var(--brand-primary) !important;
    position: relative;
    transition: transform var(--transition-fast);
}
#header-chat-btn:active {
    transform: scale(0.9);
}
#header-chat-btn .chat-badge-pulse {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: live-pulse-red 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes live-pulse-red {
    to {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* ============================================================
   Modal İç Sayfa Premium Bileşen Stilleri
   ============================================================ */

/* Müşteri / Profil Modalı - Üst Kartı */
.modal-profile-card {
    text-align: center;
    margin-bottom: 20px;
    padding: 28px 16px 20px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--brand-primary) 8%, var(--bg-surface));
    border: 1px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
    position: relative;
    overflow: hidden;
}
.modal-profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 40%, transparent));
}

.modal-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 60%, #000));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: white;
    font-weight: 800;
    margin: 0 auto 14px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 35%, transparent);
    letter-spacing: -1px;
}

.modal-profile-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 3px;
    line-height: 1.2;
}

.modal-profile-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Form alanı grid (2 sütunlu) */
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.modal-form-grid .form-group {
    margin-bottom: 0;
}
.modal-form-grid .form-group.span-2 {
    grid-column: span 2;
}

/* Form label - ikonlu, daha sade */
.modal-form-grid .form-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}
.modal-form-grid .form-group label i {
    font-size: 0.85rem;
    color: var(--brand-primary);
}
.modal-form-grid .form-group input,
.modal-form-grid .form-group select {
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    border-radius: 10px;
}

/* Silme linki - modal altında */
.btn-delete-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: transparent;
    border: 1px dashed rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.2px;
}
.btn-delete-link:hover, .btn-delete-link:active {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.5);
    border-style: solid;
}
.btn-delete-link i {
    font-size: 1rem;
}

/* Fatura dijital fiş görünümü */
.invoice-receipt-header {
    text-align: center;
    padding: 28px 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.invoice-receipt-amount {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}
.invoice-receipt-no {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.7;
}

/* Canlı sohbet & hizmet üst banner */
.modal-type-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid;
}
.modal-type-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.modal-type-info { flex: 1; min-width: 0; }
.modal-type-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.modal-type-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Avatar in list item - hover içinden brand-primary ile */
.avatar-users {
    background: color-mix(in srgb, var(--brand-primary) 12%, var(--bg-surface));
    color: var(--brand-primary);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
}

/* --- Visual Enhancements: Skeleton Shimmer & Spring click effects --- */

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer-bg {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--border-color) 37%, var(--bg-surface) 63%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
}

.skeleton-title-line {
    height: 18px;
    border-radius: 6px;
    margin-bottom: 15px;
    width: 60%;
}

.skeleton-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-block {
    height: 100px;
    border-radius: 12px;
    margin-bottom: 15px;
    width: 100%;
}

/* Active micro-press spring animation on items/buttons */
.list-item, .btn-primary, .btn-action-outline, .sheet-grid-item, .row-delete-btn, .avatar-invoices, .avatar-services, .avatar-users {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.list-item:active,
.btn-primary:active,
.btn-action-outline:active,
.sheet-grid-item:active,
.row-delete-btn:active {
    transform: scale(0.96) !important;
}

/* Connection Status Banner */
.status-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 40px;
    background: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 99999;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}
.status-banner.active {
    transform: translateY(0);
}
.status-banner.online {
    background: #10b981;
}

/* Service Type Colored List Items */
.list-item-hosting {
    border-left: 4px solid #0ea5e9 !important;
}
.list-item-hosting .li-avatar {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05)) !important;
    color: #0ea5e9 !important;
    border: 1px solid rgba(14, 165, 233, 0.2) !important;
}
.list-item-hosting:hover {
    background: color-mix(in srgb, #0ea5e9 4%, var(--bg-surface)) !important;
}

.list-item-server {
    border-left: 4px solid #8b5cf6 !important;
}
.list-item-server .li-avatar {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05)) !important;
    color: #8b5cf6 !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}
.list-item-server:hover {
    background: color-mix(in srgb, #8b5cf6 4%, var(--bg-surface)) !important;
}

.list-item-ssl {
    border-left: 4px solid #10b981 !important;
}
.list-item-ssl .li-avatar {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05)) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}
.list-item-ssl:hover {
    background: color-mix(in srgb, #10b981 4%, var(--bg-surface)) !important;
}

/* Dashboard Service Stats Table */
.stats-table-wrapper {
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.dashboard-stats-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.dashboard-stats-table:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: color-mix(in srgb, var(--brand-primary) 20%, var(--border-color));
}

.dashboard-stats-table thead {
    background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .dashboard-stats-table thead {
    background: rgba(0, 0, 0, 0.01);
}

.dashboard-stats-table th {
    padding: 12px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-stats-table th:first-child {
    text-align: left;
    padding-left: 14px;
}

.dashboard-stats-table th.col-total-header {
    color: var(--brand-primary);
    font-weight: 800;
    border-bottom-color: color-mix(in srgb, var(--brand-primary) 30%, var(--border-color));
    background: color-mix(in srgb, var(--brand-primary) 3%, transparent);
}

.dashboard-stats-table td {
    padding: 10px 6px;
    font-size: 0.78rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.dashboard-stats-table tr:last-child td {
    border-bottom: none;
}

.dashboard-stats-table td:first-child {
    text-align: left;
    padding-left: 14px;
}

.dashboard-stats-table tbody tr {
    transition: background-color 0.2s ease;
}

.dashboard-stats-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

[data-theme="light"] .dashboard-stats-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.012);
}

/* Premium Capsule Badges for counts */
.stats-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 12px;
    min-width: 28px;
    height: 20px;
    line-height: 1;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.stats-badge.badge-active {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.stats-badge.badge-pending {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.stats-badge.badge-suspended {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.stats-badge.badge-expired {
    background: rgba(156, 163, 175, 0.08);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.15);
}

.stats-badge.badge-total {
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    color: var(--brand-primary);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, transparent);
    font-weight: 800;
}

/* Zero states: muted, clean and non-distracting */
.stats-badge.badge-zero {
    opacity: 0.3;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
[data-theme="light"] .stats-badge.badge-zero {
    border-color: rgba(0, 0, 0, 0.05);
}

/* Hover scales badges slightly to give interactive feel */
.dashboard-stats-table tbody tr:hover .stats-badge:not(.badge-zero) {
    transform: scale(1.06);
}

/* Profile Banner & Cards Styles */
.profile-banner-card {
    position: relative;
    background: rgba(17, 26, 46, 0.45) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}
[data-theme="light"] .profile-banner-card {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04) !important;
}

.profile-banner-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 75px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 12%, transparent), transparent);
    z-index: 0;
}

.profile-avatar-wrapper {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
}

.settings-section-card {
    background: rgba(17, 26, 46, 0.45) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}
[data-theme="light"] .settings-section-card {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04) !important;
}

.settings-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-list-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    padding-right: 12px;
}

.settings-list-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.settings-list-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Custom switch toggle */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.ios-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-color);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.ios-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

/* Sliding Theme Switcher */
.theme-selector-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    width: 100%;
}
[data-theme="light"] .theme-selector-bar {
    background: rgba(0, 0, 0, 0.02);
}

.theme-selector-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 8px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.theme-selector-btn.active {
    background: var(--bg-surface);
    color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

/* Dynamic Timeline Styles */
.audit-timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.audit-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
}

.audit-timeline-item {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.audit-timeline-item:last-child {
    margin-bottom: 0;
}

.audit-timeline-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--bg-surface);
    box-sizing: border-box;
}

.audit-timeline-item.active .audit-timeline-dot {
    background: var(--brand-primary);
    box-shadow: 0 0 8px var(--brand-primary);
}

.audit-timeline-content {
    font-size: 0.76rem;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.audit-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-size: 0.7rem;
    flex-wrap: wrap;
}

.audit-timeline-title {
    font-weight: 700;
    color: var(--text-main);
}

/* Custom Sheet Forms */
.sheet-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 4px;
}

.sheet-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sheet-form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sheet-form-input, .sheet-form-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 0.82rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}
[data-theme="light"] .sheet-form-input, [data-theme="light"] .sheet-form-select {
    background: rgba(0, 0, 0, 0.02);
}

.sheet-form-input:focus, .sheet-form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .sheet-form-input:focus, [data-theme="light"] .sheet-form-select:focus {
    background: rgba(0, 0, 0, 0.03);
}

/* Custom Confirm Dialog Modal */
.confirm-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.22s ease;
    box-sizing: border-box;
}

.confirm-modal.active {
    display: flex;
    opacity: 1;
}

.confirm-modal-box {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 28px 24px 22px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 25px 60px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-color);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-main);
    box-sizing: border-box;
}

[data-theme="light"] .confirm-modal-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.confirm-modal.active .confirm-modal-box {
    transform: scale(1) translateY(0);
}

.confirm-modal-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin: 0 auto 16px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.confirm-modal-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-main, #f8fafc);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.confirm-modal-message {
    font-size: 0.84rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.48;
    margin-bottom: 22px;
}

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

.confirm-btn {
    flex: 1;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main, #f1f5f9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
}
[data-theme="light"] .confirm-btn-cancel {
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .confirm-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.08);
}

.confirm-btn-approve {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.confirm-btn-approve:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.45);
}
.confirm-btn-approve:active {
    transform: translateY(0);
}

/* Ambient Background Glows Disabled */
.ambient-glows {
    display: none !important;
}

/* Glass Card improvements */
.glass-card {
    background: rgba(17, 26, 46, 0.45) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04) !important;
}

/* AMOLED overrides */
[data-theme="amoled"] .stat-card,
[data-theme="amoled"] .list-item,
[data-theme="amoled"] .detail-card,
[data-theme="amoled"] .chat-composer-card,
[data-theme="amoled"] .profile-card,
[data-theme="amoled"] .settings-card,
[data-theme="amoled"] .glass-card,
[data-theme="amoled"] .profile-banner-card,
[data-theme="amoled"] .settings-section-card {
    background: rgba(10, 10, 10, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="amoled"] .confirm-modal-box {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Shimmer Animation & Skeletons */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-item {
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.03) !important;
}

.skeleton-avatar,
.skeleton-line,
.skeleton-bar-placeholder,
.skeleton-badge-placeholder {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.04) 25%, 
        rgba(255, 255, 255, 0.08) 37%, 
        rgba(255, 255, 255, 0.04) 63%
    );
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
}

[data-theme="light"] .skeleton-avatar,
[data-theme="light"] .skeleton-line,
[data-theme="light"] .skeleton-bar-placeholder,
[data-theme="light"] .skeleton-badge-placeholder {
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.03) 25%, 
        rgba(0, 0, 0, 0.06) 37%, 
        rgba(0, 0, 0, 0.03) 63%
    );
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
}

[data-theme="amoled"] .skeleton-avatar,
[data-theme="amoled"] .skeleton-line,
[data-theme="amoled"] .skeleton-bar-placeholder,
[data-theme="amoled"] .skeleton-badge-placeholder {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.02) 25%, 
        rgba(255, 255, 255, 0.05) 37%, 
        rgba(255, 255, 255, 0.02) 63%
    );
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
}

.skeleton-line {
    height: 10px;
    border-radius: 4px;
    display: inline-block;
}

.skeleton-w-30 { width: 30%; }
.skeleton-w-40 { width: 40%; }
.skeleton-w-50 { width: 50%; }
.skeleton-w-60 { width: 60%; }
.skeleton-w-70 { width: 70%; }

.skeleton-bar-placeholder {
    height: 6px;
    border-radius: 3px;
    width: 100%;
}

.skeleton-badge-placeholder {
    height: 18px;
    width: 60px;
    border-radius: 10px;
    display: inline-block;
}

/* --- View Transitions API Customizations --- */
::view-transition-old(root) {
    animation: 250ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out,
               250ms cubic-bezier(0.4, 0, 0.2, 1) both scale-down;
}

::view-transition-new(root) {
    animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both fade-in,
               300ms cubic-bezier(0.4, 0, 0.2, 1) both scale-up;
}

/* Yönlü İleri (Sola Kayma) Geçişi */
html.nav-forward::view-transition-old(root) {
    animation: 250ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out,
               250ms cubic-bezier(0.4, 0, 0.2, 1) both slide-left-out;
}
html.nav-forward::view-transition-new(root) {
    animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both fade-in,
               300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-left-in;
}

/* Yönlü Geri (Sağa Kayma) Geçişi */
html.nav-backward::view-transition-old(root) {
    animation: 250ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out,
               250ms cubic-bezier(0.4, 0, 0.2, 1) both slide-right-out;
}
html.nav-backward::view-transition-new(root) {
    animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both fade-in,
               300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-right-in;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-down {
    from { transform: scale(1); }
    to { transform: scale(0.97); }
}

@keyframes scale-up {
    from { transform: scale(0.97); }
    to { transform: scale(1); }
}

@keyframes slide-left-out {
    from { transform: translateX(0); }
    to { transform: translateX(-30px); }
}

@keyframes slide-left-in {
    from { transform: translateX(30px); }
    to { transform: translateX(0); }
}

@keyframes slide-right-out {
    from { transform: translateX(0); }
    to { transform: translateX(30px); }
}

@keyframes slide-right-in {
    from { transform: translateX(-30px); }
    to { transform: translateX(0); }
}

/* SSO brand buttons custom styling */
.sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease-in-out;
}
.sso-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.sso-btn:active {
    transform: translateY(0);
}

.sso-btn-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    transition: all 0.2s ease-in-out;
}
.sso-btn-mini:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}
.sso-btn-mini:active {
    transform: translateY(0);
}

/* cPanel Brand */
.sso-cpanel-btn {
    border: 1px solid #ff6c2c !important;
    background: rgba(255, 108, 44, 0.06) !important;
    color: #ff8c5a !important;
}
.sso-cpanel-btn:hover {
    background: #ff6c2c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 108, 44, 0.35) !important;
}

/* WHM Brand */
.sso-whm-btn {
    border: 1px solid #eab308 !important;
    background: rgba(234, 179, 8, 0.06) !important;
    color: #eab308 !important;
}
.sso-whm-btn:hover {
    background: #eab308 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35) !important;
}

/* DNS Brand */
.sso-dns-btn {
    border: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-muted) !important;
}
.sso-dns-btn:hover {
    background: var(--border-color) !important;
    color: var(--text-main) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05) !important;
}

/* DNS Zone Editor Premium Styles */
.dns-filter-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.dns-filter-btn.active {
    border-color: var(--brand-primary) !important;
    background: color-mix(in srgb, var(--brand-primary) 10%, transparent) !important;
    color: var(--brand-primary) !important;
}
.dns-filter-btn:hover:not(.active) {
    background: var(--bg-surface-hover) !important;
    color: var(--text-main) !important;
}

.dns-record-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    transition: all 0.24s ease;
    overflow: hidden;
}
.dns-record-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--border-color) 70%, var(--brand-primary));
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.dns-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dns-record-name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-all;
    flex: 1;
    margin-right: 12px;
}

.badge-dns-type {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
}

/* DNS Type colors */
.badge-dns-a {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.badge-dns-aaaa {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
.badge-dns-cname {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}
.badge-dns-txt {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.badge-dns-mx {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.15);
    color: #eab308;
}
.badge-dns-ns {
    background: rgba(236, 72, 153, 0.08);
    border-color: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}
.badge-dns-other {
    background: rgba(156, 163, 175, 0.08);
    border-color: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.dns-record-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
    background: var(--bg-app);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.dns-record-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dns-record-actions {
    display: flex;
    gap: 8px;
}

.dns-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-app);
    color: var(--text-main);
    transition: all 0.2s;
}
.dns-action-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.dns-action-btn.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.dns-filter-bar::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   🌐 WHM DNS ZONE EDITOR SECONDARY LAYERED SIDE DRAWER (TIER-2)
   ========================================================================== */
.pos-dns-drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    z-index: 2200 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pos-dns-drawer-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#dns-zone-sheet.pos-tier2-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(720px, 98vw) !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--bg-card, #0f172a) !important;
    border-left: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.1)) !important;
    color: var(--text-main, #ffffff) !important;
    z-index: 2201 !important;
    transform: translateX(100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.75) !important;
    visibility: hidden;
    pointer-events: none;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

[data-theme="light"] #dns-zone-sheet.pos-tier2-drawer {
    background: #ffffff !important;
    border-left-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: -10px 0 45px rgba(0, 0, 0, 0.18) !important;
}

#dns-zone-sheet.pos-tier2-drawer.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.dns-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 24px !important;
    border-bottom: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
    background: var(--bg-surface, #1e293b) !important;
    gap: 14px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.dns-drawer-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.dns-drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dns-drawer-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}

/* DNS Record Add/Edit Dialog / Modal on Top */
.pos-dns-record-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    z-index: 2300 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pos-dns-record-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#dns-record-sheet.pos-dns-record-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
    width: min(520px, 94vw) !important;
    max-height: 90vh !important;
    background: var(--bg-card, #0f172a) !important;
    border: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.12)) !important;
    border-radius: 16px !important;
    z-index: 2301 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

[data-theme="light"] #dns-record-sheet.pos-dns-record-modal {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}

#dns-record-sheet.pos-dns-record-modal.active {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.dns-filter-btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-app);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.dns-filter-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
    border-color: rgba(234, 179, 8, 0.4);
}

.dns-filter-btn.active {
    background: rgba(234, 179, 8, 0.15) !important;
    border-color: #eab308 !important;
    color: #eab308 !important;
    font-weight: 700 !important;
}

/* =================================================================
   TABLET LAYOUT — 768px ve üzeri ekranlar
   Mobil görünüme dokunulmaz, sadece tablet/masaüstü layout eklenir
   ================================================================= */

@media (min-width: 768px) {

    /* ── Body & App Shell ── */
    body {
        background: var(--bg-base);
        overflow: hidden;
        align-items: stretch;
    }

    /* Auth ekranı tam ekran responsive layout */
    #auth-view.view-container {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        box-shadow: none;
    }

    /* App view: tam ekran tablet layout */
    #app-view.view-container {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        box-shadow: none;
    }

    /* Grid layout SADECE active olduğunda uygula */
    #app-view.view-container.active {
        display: grid !important;
        grid-template-columns: 220px 1fr;
        grid-template-rows: 56px 1fr;
        grid-template-areas:
            "sidebar header"
            "sidebar content";
        transition: grid-template-columns 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #app-view.view-container.active.sidebar-collapsed {
        grid-template-columns: 72px 1fr !important;
    }
    
    .tablet-sidebar-toggle,
    #sidebar-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #f8fafc !important;
        cursor: pointer;
        font-size: 1.15rem;
        transition: all 0.2s ease;
        flex-shrink: 0;
        position: relative;
        z-index: 60;
    }

    .tablet-sidebar-toggle:hover,
    #sidebar-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.18) !important;
        color: #38bdf8 !important;
        border-color: rgba(56, 189, 248, 0.4) !important;
    }
    
    #app-view.sidebar-collapsed .bottom-nav .nav-item span,
    #app-view.sidebar-collapsed .sidebar-section-title,
    #app-view.sidebar-collapsed .sidebar-user-details,
    #app-view.sidebar-collapsed .sidebar-logo-text,
    #app-view.sidebar-collapsed .sidebar-brand-text,
    #app-view.sidebar-collapsed .sidebar-brand-name,
    #app-view.sidebar-collapsed .sidebar-brand-caret,
    #app-view.sidebar-collapsed .sidebar-org-badge,
    #app-view.sidebar-collapsed .sidebar-search-box,
    #app-view.sidebar-collapsed .nav-toggle-btn,
    #app-view.sidebar-collapsed .nav-submenu,
    #app-view.sidebar-collapsed .sidebar-user-chevron,
    #app-view.sidebar-collapsed .sidebar-user-menu,
    #app-view.sidebar-collapsed .nav-badge-new,
    #app-view.sidebar-collapsed .sidebar-user-actions {
        display: none !important;
    }
    
    #app-view.sidebar-collapsed .bottom-nav .nav-item {
        justify-content: center;
        padding: 0;
        width: 44px;
        height: 40px !important;
        margin: 4px auto;
    }
    
    #app-view.sidebar-collapsed .bottom-nav .nav-item i {
        margin: 0;
        font-size: 1.25rem !important;
    }
    
    #app-view.sidebar-collapsed .sidebar-user-info {
        justify-content: center;
        padding: 4px 0;
        margin-bottom: 0;
    }
    
    #app-view.sidebar-collapsed .sidebar-user-avatar {
        margin: 0 auto;
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    /* =================================================================
       1. ANIMASYONLARI KALDIRMA (Tablet)
       ================================================================= */
    /* View Transitions (kayma efektleri) iptali */
    ::view-transition-old(root),
    ::view-transition-new(root),
    html.nav-forward::view-transition-old(root),
    html.nav-forward::view-transition-new(root),
    html.nav-backward::view-transition-old(root),
    html.nav-backward::view-transition-new(root) {
        animation: none !important;
    }
    
    /* Sayfa geçiş animasyonu (fadeSlideUp) iptali */
    .page-view, .chat-bubble, .profile-dropdown {
        animation: none !important;
    }
    
    /* Full-sheet modal animasyon iptali ve centered dialog görünümü */
    .full-sheet {
        transition: none !important;
    }

    /* ── Header (Topbar Modern POS Redesign) ── */
    #app-view .app-header {
        grid-area: header;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0 20px;
        height: 56px;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #0b1320;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 50;
    }

    .app-header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .app-header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Topbar Icon Buttons */
    .topbar-icon-btn {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #94a3b8;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.05rem;
        transition: all 0.15s ease;
        position: relative;
    }

    .topbar-icon-btn:hover {
        background: #1e293b;
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.15);
    }

    .topbar-dot {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 6px;
        height: 6px;
        background: #ef4444;
        border-radius: 50%;
        box-shadow: 0 0 6px #ef4444;
    }

    /* Organization / Tenant Switcher Pill */
    .topbar-org-pill {
        background: #1e293b;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 6px;
        padding: 5px 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #ffffff;
        font-size: 0.80rem;
        font-weight: 700;
        cursor: pointer;
        letter-spacing: 0.2px;
        transition: all 0.15s ease;
        user-select: none;
    }

    .topbar-org-pill:hover {
        background: #273549;
        border-color: rgba(255, 255, 255, 0.15);
    }

    .topbar-org-pill i {
        color: #94a3b8;
        font-size: 0.95rem;
    }

    .topbar-org-switch-icon {
        font-size: 0.85rem !important;
        color: #64748b !important;
    }

    .topbar-org-pill:hover .topbar-org-switch-icon {
        color: #ffffff !important;
    }

    .topbar-org-pill.location-active {
        border-color: rgba(234, 179, 8, 0.5) !important;
        background: rgba(234, 179, 8, 0.15) !important;
        color: #eab308 !important;
    }

    .topbar-org-pill.location-active i {
        color: #eab308 !important;
    }

    .topbar-org-pill.location-active .topbar-org-switch-icon {
        color: #eab308 !important;
    }

    .topbar-org-pill.location-active:hover {
        background: rgba(234, 179, 8, 0.25) !important;
        border-color: rgba(234, 179, 8, 0.75) !important;
        color: #facc15 !important;
    }

    .topbar-org-pill.location-active:hover i,
    .topbar-org-pill.location-active:hover .topbar-org-switch-icon {
        color: #facc15 !important;
    }

    .topbar-page-dropdown-container {
        position: relative;
        display: inline-block;
    }

    .topbar-page-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 280px;
        max-width: 340px;
        background: var(--bg-card, #ffffff);
        border: 1.5px solid var(--border-color, #e2e8f0);
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.1);
        z-index: 100070;
        max-height: 440px;
        overflow-y: auto;
        scrollbar-width: thin;
    }

    [data-theme="dark"] .topbar-page-menu,
    [data-theme="amoled"] .topbar-page-menu {
        background: #0f172a;
        border-color: #334155;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.15);
    }

    .topbar-page-menu.active {
        display: flex;
        flex-direction: column;
    }

    .topbar-menu-header {
        margin-bottom: 10px;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    }

    .topbar-menu-header-title {
        font-size: 0.88rem;
        font-weight: 800;
        color: var(--text-main, #0f172a);
        margin-bottom: 2px;
    }

    .topbar-menu-header-sub {
        font-size: 0.72rem;
        color: var(--text-muted, #64748b);
        line-height: 1.35;
    }

    .topbar-menu-search {
        position: relative;
        display: flex;
        align-items: center;
        background: var(--bg-surface, rgba(0, 0, 0, 0.03));
        border: 1px solid var(--border-color, #e2e8f0);
        border-radius: 8px;
        padding: 0 10px;
        height: 32px;
        margin-bottom: 8px;
    }

    .topbar-menu-search input {
        background: transparent;
        border: none;
        outline: none;
        color: var(--text-main, #0f172a);
        font-size: 0.78rem;
        width: 100%;
        margin-left: 6px;
    }

    .topbar-menu-search input::placeholder {
        color: var(--text-muted, #94a3b8);
    }

    .topbar-menu-search i {
        color: var(--text-muted, #64748b);
        font-size: 0.88rem;
    }

    .topbar-menu-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .topbar-menu-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px 12px;
        color: var(--text-main, #334155);
        text-decoration: none;
        font-size: 0.82rem;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.15s ease;
        cursor: pointer;
    }

    .topbar-menu-item:hover {
        background: var(--bg-surface-hover, rgba(59, 130, 246, 0.08));
        color: var(--pos-gold, #eab308);
    }

    .topbar-menu-item.active {
        background: rgba(59, 130, 246, 0.12);
        color: #3b82f6;
        font-weight: 800;
    }

    #topbar-location-menu .topbar-menu-item.active {
        background: rgba(234, 179, 8, 0.14) !important;
        color: #eab308 !important;
        font-weight: 800 !important;
    }

    #topbar-location-menu .topbar-menu-item:hover {
        background: rgba(234, 179, 8, 0.10) !important;
        color: #facc15 !important;
    }

    .topbar-menu-item i {
        font-size: 1rem;
        color: inherit;
    }

    /* Arkadaşına Öner Sarı Buton */
    .topbar-btn-yellow {
        background: #eab308;
        color: #000000;
        border: none;
        border-radius: 8px;
        padding: 6px 10px;
        font-size: 0.76rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        transition: transform 0.15s ease, background 0.15s ease;
        box-shadow: 0 2px 6px rgba(234, 179, 8, 0.25);
        flex-shrink: 0;
    }

    .topbar-btn-yellow:hover {
        background: #facc15;
        transform: translateY(-1px);
    }

    .topbar-btn-yellow i {
        font-size: 1.05rem;
    }

    .topbar-btn-yellow span {
        display: none;
    }

    @media (min-width: 1200px) {
        .topbar-btn-yellow span {
            display: inline;
        }
    }

    /* Dil Seçici */
    .topbar-lang-pill {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 8px;
        color: #94a3b8;
        font-size: 0.78rem;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.15s ease;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .topbar-lang-pill:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

    .topbar-lang-pill i {
        font-size: 0.95rem;
    }

    .topbar-lang-pill span {
        display: none;
    }

    @media (min-width: 1200px) {
        .topbar-lang-pill span {
            display: inline;
        }
    }

    .desktop-only-flex {
        display: flex !important;
    }

    /* Mobile özgü ikonları gizle */
    .mobile-only-actions {
        display: none !important;
    }

    /* ── Sidebar Navigation ── */
    #app-view .bottom-nav {
        grid-area: sidebar;
        position: static;
        height: 100%;
        width: 100%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        border-top: none;
        border-right: 1px solid var(--border-color);
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        background: var(--bg-app);
        overflow-y: auto;
        overflow-x: hidden;
        height: 100vh;
        /* Custom scrollbar for sidebar */
        scrollbar-width: thin;
        scrollbar-color: var(--border-color) transparent;
    }

    #app-view .bottom-nav::-webkit-scrollbar {
        width: 4px;
    }
    #app-view .bottom-nav::-webkit-scrollbar-thumb {
        background-color: var(--border-color);
        border-radius: 4px;
    }

    /* Sidebar Logo Alanı */
    #app-view .sidebar-header {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 64px;
        padding: 0 24px;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
        background: var(--bg-app);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    #app-view .sidebar-header .app-header-logo {
        width: 32px;
        height: 32px;
    }
    
    #app-view .sidebar-header .sidebar-logo-text {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--brand-primary);
        letter-spacing: -0.3px;
    }

    /* Sidebar Grup Başlıkları */
    .sidebar-section-title {
        display: block !important;
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 24px 20px 8px;
    }
    
    .tablet-only-nav {
        display: flex !important;
        flex-direction: column;
        margin-bottom: auto; /* Footer'ı aşağı iter */
    }

    /* "Diğer" butonu ve alt-sheet'i gizle (menüleri tablet-only'ye aldık) */
    .nav-item-more, .sidebar-tools-title {
        display: none !important;
    }

    /* Sidebar nav item stili */
    #app-view .bottom-nav .nav-item {
        flex: none;
        height: 48px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 0 16px;
        gap: 14px;
        font-size: 0.95rem;
        font-weight: 600;
        margin: 2px 12px;
        width: calc(100% - 24px);
        border-radius: var(--radius-md);
        color: var(--text-muted);
        transition: all 0.2s ease;
        text-decoration: none;
        position: relative;
    }

    #app-view .bottom-nav .nav-item:hover {
        background: var(--bg-surface-hover);
        color: var(--text-main);
    }

    /* Sidebar Premium Active State */
    #app-view .bottom-nav .nav-item.active {
        background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
        color: var(--brand-primary);
        font-weight: 700;
        border-radius: var(--radius-md);
    }
    
    #app-view .bottom-nav .nav-item.active::before {
        content: '';
        position: absolute;
        left: -12px;
        top: 10%;
        height: 80%;
        width: 4px;
        background: var(--brand-primary);
        border-radius: 0 4px 4px 0;
        box-shadow: 2px 0 8px color-mix(in srgb, var(--brand-primary) 50%, transparent);
    }

    #app-view .bottom-nav .nav-item.active::after {
        display: none;
    }

    #app-view .bottom-nav .nav-item i {
        font-size: 1.25rem;
        flex-shrink: 0;
        transition: transform var(--transition-fast);
        opacity: 0.8;
    }

    #app-view .bottom-nav .nav-item.active i {
        opacity: 1;
    }

    #app-view .bottom-nav .nav-item span {
        display: block;
    }

    /* ── Sidebar Footer (Kullanıcı Profil Alanı) ── */
    .sidebar-footer {
        display: flex !important;
        flex-direction: column;
        border-top: 1px solid var(--border-color);
        padding: 16px;
        background: color-mix(in srgb, var(--bg-surface) 50%, var(--bg-app));
        margin-top: auto;
    }

    .sidebar-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: background 0.2s;
        margin-bottom: 12px;
    }
    
    .sidebar-user-info:hover {
        background: var(--bg-surface-hover);
    }

    .sidebar-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--brand-primary), #1e40af);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .sidebar-user-details {
        flex: 1;
        overflow: hidden;
    }

    .sidebar-user-name {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--text-main);
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

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

    .sidebar-user-actions {
        display: flex;
        justify-content: space-between;
        padding: 0 4px;
    }
    
    .sidebar-user-actions .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
    }
    
    .sidebar-user-actions .icon-btn:hover {
        background: var(--bg-surface-hover);
        border-color: color-mix(in srgb, var(--border-color) 70%, var(--brand-primary));
    }


    /* ── Main Content ── */
    #app-view .app-content {
        grid-area: content;
        padding: 24px 30px;
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
        background-size: 24px 24px;
    }
    
    [data-theme="light"] #app-view .app-content {
        background-image: radial-gradient(circle, rgba(0,0,0,0.02) 1px, transparent 1px);
    }

    #app-view .bottom-padding {
        height: 40px;
    }

    /* ── FAB ── */
    #app-view .fab {
        bottom: 40px;
        right: 40px;
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
    }

    /* ── Dashboard (4 Sütun) ── */
    .metrics-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .metric-mini-card {
        padding: 24px 20px;
        gap: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .metric-mini-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), 0.15);
    }

    .metric-mini-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .metric-mini-val {
        font-size: 1.8rem;
    }

    .metric-mini-label {
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Grafik kartları: tablet'te yan yana */
    .charts-section {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    #whm-dashboard-card {
        grid-column: span 2;
    }

    /* ── Liste görünümü iyileştirmeleri ── */
    .list-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .list-item {
        flex-direction: row;
        padding: 16px 20px;
        border-radius: var(--radius-lg);
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    }
    
    .list-item:hover {
        box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-primary) 15%, transparent) !important;
        transform: translateY(-2px);
    }

    .li-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .li-title {
        font-size: 1.1rem;
    }
    
    .li-subtitle {
        font-size: 0.9rem;
    }

    /* Arama çubuğu */
    .search-bar {
        padding: 1.2rem 1.6rem;
        font-size: 1.05rem;
        border-radius: 16px;
        margin-bottom: 24px;
        max-width: 600px; /* Tablet'te fazla uzamaması için */
    }

    /* ── Detay Kartları ── */
    .detail-card {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    /* ── Full Sheet Modal (Centered Dialog - Compact & Wide) ── */
    .full-sheet {
        position: fixed;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: var(--modal-overlay-bg);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 24px;
        transform: none !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 100050 !important;
        box-sizing: border-box;
    }
    
    .full-sheet.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .full-sheet-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        width: 100%;
        max-width: 620px;
        background: var(--bg-surface);
        border: 1.5px solid var(--border-color);
        border-bottom: 1.5px solid var(--border-color);
        border-radius: 18px 18px 0 0;
        padding: 16px 22px;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        z-index: 2;
        box-sizing: border-box;
    }
    
    .full-sheet-header h3 {
        font-size: 1.08rem;
        font-weight: 800;
        color: var(--text-main);
        text-align: center;
        flex: 1;
        margin: 0;
    }
    
    .full-sheet-header .icon-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: var(--bg-surface-hover);
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .full-sheet-header .icon-btn:hover {
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.3);
        color: #ef4444;
    }
    
    .full-sheet-body {
        width: 100%;
        max-width: 620px;
        max-height: min(78vh, 720px);
        background: var(--bg-card);
        border: 1.5px solid var(--border-color);
        border-top: none;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 25px 60px -8px rgba(0, 0, 0, 0.6);
        overflow-y: auto;
        padding: 24px 28px;
        position: relative;
        z-index: 1;
        flex: none;
        box-sizing: border-box;
    }

    #dns-zone-sheet .full-sheet-header,
    #dns-zone-sheet .full-sheet-body,
    #detail-sheet .full-sheet-header,
    #detail-sheet .full-sheet-body {
        max-width: 820px;
    }
    
    .modal-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .form-group input, .form-group select {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    /* ── Bottom Sheet -> Centered Modal ── */
    .bottom-sheet {
        position: fixed;
        left: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: var(--modal-overlay-bg);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        transform: scale(0.96);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease !important;
        box-shadow: none;
        z-index: 100050 !important;
        box-sizing: border-box;
    }
    
    .bottom-sheet.active {
        transform: scale(1);
        opacity: 1;
        pointer-events: auto;
    }
    
    .bottom-sheet .sheet-handle {
        display: none;
    }
    
    .bottom-sheet .sheet-content {
        background: var(--bg-card);
        border: 1.5px solid var(--border-color);
        border-radius: 18px;
        box-shadow: 0 25px 60px -8px rgba(0, 0, 0, 0.6);
        padding: 28px;
        width: 100%;
        max-width: 520px;
        max-height: 85vh;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .sheet-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .sheet-grid-item {
        padding: 20px 16px;
    }

    /* ── Profil sayfası ── */
    .profile-banner-card {
        padding: 40px 32px;
    }

    .profile-avatar-wrapper {
        width: 104px;
        height: 104px;
    }
    
    #profile-greeting {
        font-size: 1.6rem !important;
    }

    /* ── Büyük dokunma hedefleri ── */
    .btn-primary,
    .btn-action-outline,
    .sheet-logout-btn {
        padding: 1.2rem 1.6rem;
        font-size: 1.05rem;
        min-height: 56px;
    }

    .icon-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        border-radius: 12px;
    }

    /* ── Dashboard welcome ── */
    .dashboard-welcome h2 {
        font-size: 2.4rem;
        margin-bottom: 8px;
    }
    
    .dashboard-welcome p {
        font-size: 1.1rem;
    }

    /* ── Stats table: daha rahat hücreler ── */
    .dashboard-stats-table th,
    .dashboard-stats-table td {
        padding: 18px 16px;
        font-size: 0.95rem;
    }
    .dashboard-stats-table th {
        font-size: 0.8rem;
    }

    .stats-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 40px;
        height: 28px;
    }

    /* ── Badge boyutları ── */
    .badge {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    /* ── Canlı chat baloncukları ── */
    .chat-bubble {
        max-width: 65%;
        padding: 16px 24px;
        font-size: 1.05rem;
    }

    /* ── Confirm modal: daha büyük ── */
    .confirm-modal-box {
        max-width: 460px;
        padding: 40px;
    }
    
    .confirm-modal-icon {
        width: 64px;
        height: 64px;
        font-size: 2.2rem;
    }
}

/* ── Büyük tablet / küçük masaüstü (1024px+) ── */
@media (min-width: 1024px) {

    #app-view.view-container.active {
        grid-template-columns: 260px 1fr !important;
    }

    #app-view .bottom-nav {
        width: 260px;
    }

    #app-view .overlay {
        left: 260px;
    }

    #app-view .loader-container {
        left: 260px;
    }

    /* Liste: 3 sütun */
    .list-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Geniş ekran (1280px+) ── */
@media (min-width: 1280px) {

    #app-view.view-container.active {
        grid-template-columns: 280px 1fr !important;
    }

    #app-view .bottom-nav {
        width: 280px;
    }

    #app-view .overlay {
        left: 280px;
    }

    #app-view .loader-container {
        left: 280px;
    }

    /* İçerik daha geniş padding */
    #app-view .app-content {
        padding: 30px 40px;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Liste: 4 sütun geniş ekranda */
    .list-container {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Sidebar Collapsed Global Overrides for ALL desktop sizes */
@media (min-width: 768px) {
    #app-view.view-container.active.sidebar-collapsed {
        grid-template-columns: 80px 1fr !important;
    }
    #app-view.sidebar-collapsed .bottom-nav {
        width: 100% !important;
    }
    #app-view.sidebar-collapsed .overlay,
    #app-view.sidebar-collapsed .loader-container {
        left: 80px !important;
    }
}

/* Accordion Menu Styles (Tablet/Desktop Only) */
.nav-item-accordion {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nav-toggle-btn {
    background: transparent;
    border: none;
    color: inherit;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s;
    margin-left: auto;
}

.nav-toggle-btn:hover {
    color: #ffffff;
}

.nav-submenu {
    display: none;
    flex-direction: column;
    padding-left: 32px;
    margin-top: 2px;
    margin-bottom: 6px;
    position: relative;
}

.nav-item-accordion.expanded .nav-submenu {
    display: flex;
}

.nav-item-accordion.expanded .nav-toggle-btn i {
    transform: rotate(180deg);
}

/* Vertical guide tree line on the left */
.nav-submenu::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

.submenu-item {
    font-size: 0.80rem;
    color: #94a3b8 !important;
    text-decoration: none;
    padding: 6px 12px;
    margin: 1px 0;
    border-radius: 4px;
    transition: all 0.15s ease;
    font-weight: 500;
    position: relative;
    background: transparent !important;
}

.submenu-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.submenu-item.active {
    color: #ffffff !important;
    font-weight: 700 !important;
    background: transparent !important;
}

/* Active indicator white vertical bar on top of the tree line */
.submenu-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5px;
    height: 18px;
    background: #ffffff !important;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.nav-badge-new {
    background: #eab308;
    color: #000000;
    font-size: 0.60rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: auto;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Show toggle only on desktop where sidebar is vertical */
@media (min-width: 768px) {
    .nav-toggle-btn {
        display: flex;
    }
    
    /* When sidebar is collapsed, hide accordion elements */
    #app-view.sidebar-collapsed .nav-toggle-btn,
    #app-view.sidebar-collapsed .nav-submenu,
    #app-view.sidebar-collapsed .nav-badge-new {
        display: none !important;
    }
}

/* Sidebar Dark Theme Overrides (Tablet/Desktop) */
@media (min-width: 768px) {
    .app-header-left .app-header-logo {
        display: none !important;
    }
    #app-view .sidebar-header {
        background-color: #0b1320 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        height: auto !important;
        min-height: auto !important;
        padding: 14px 12px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .sidebar-top-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .sidebar-brand-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        cursor: pointer;
        padding: 2px 4px;
        border-radius: 6px;
        transition: background 0.15s ease;
    }
    
    .sidebar-brand-wrapper:hover {
        background: rgba(255, 255, 255, 0.04);
    }
    
    .sidebar-brand-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .sidebar-brand-logo-img {
        height: 36px;
        width: auto;
        max-width: 110px;
        object-fit: contain;
        filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
    }
    
    .sidebar-brand-wrapper:hover .sidebar-brand-logo-img {
        transform: scale(1.05);
    }
    
    .sidebar-brand-name {
        color: #ffffff;
        font-weight: 800;
        font-size: 1.12rem;
        letter-spacing: -0.4px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    
    .sidebar-brand-caret {
        color: #64748b;
        font-size: 0.95rem;
        transition: color 0.15s ease;
    }
    
    .sidebar-brand-wrapper:hover .sidebar-brand-caret {
        color: #ffffff;
    }
    
    /* Organization Level Badge */
    .sidebar-org-badge {
        background: rgba(30, 58, 138, 0.25);
        border: 1px solid rgba(59, 130, 246, 0.28);
        border-radius: 6px;
        padding: 5px 8px;
        color: #60a5fa;
        font-size: 0.68rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        text-align: center;
        letter-spacing: 0.1px;
        user-select: none;
    }
    
    .sidebar-org-badge i {
        font-size: 0.78rem;
        color: #3b82f6;
    }
    
    /* Sidebar Search Box */
    .sidebar-search-box {
        position: relative;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        padding: 0 8px 0 10px;
        height: 34px;
        transition: all 0.2s ease;
    }
    
    .sidebar-search-box:focus-within {
        border-color: rgba(59, 130, 246, 0.5);
        background: rgba(255, 255, 255, 0.06);
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    }
    
    .sidebar-search-box i {
        color: #64748b;
        font-size: 0.95rem;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .sidebar-search-box input {
        background: transparent;
        border: none;
        outline: none;
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: 500;
        width: 100%;
    }
    
    .sidebar-search-box input::placeholder {
        color: #64748b;
    }
    
    .sidebar-search-kbd {
        background: rgba(255, 255, 255, 0.08);
        color: #94a3b8;
        font-size: 0.60rem;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-family: inherit;
        line-height: 1;
        pointer-events: none;
        flex-shrink: 0;
    }
    
    /* Collapsed Support */
    #app-view.sidebar-collapsed .sidebar-org-badge,
    #app-view.sidebar-collapsed .sidebar-search-box,
    #app-view.sidebar-collapsed .sidebar-brand-name,
    #app-view.sidebar-collapsed .sidebar-brand-caret {
        display: none !important;
    }
    
    #app-view.sidebar-collapsed .sidebar-brand-wrapper {
        justify-content: center !important;
    }
    #app-view .bottom-nav {
        background-color: #0b1320 !important;
        border-right: 1px solid #1e293b !important;
    }
    .sidebar-section-title {
        color: #64748b !important;
        font-size: 0.65rem !important;
        padding: 14px 14px 4px !important;
        letter-spacing: 0.8px !important;
    }
    
    /* Nav Item Compact Size */
    #app-view .bottom-nav .nav-item {
        color: #94a3b8 !important;
        height: 38px !important;
        padding: 0 10px !important;
        margin: 2px 8px !important;
        width: calc(100% - 16px) !important;
        font-size: 0.84rem !important;
        font-weight: 500 !important;
        gap: 10px !important;
        border-radius: 8px !important;
        border: 1px solid transparent !important;
    }
    
    #app-view .bottom-nav .nav-item i {
        font-size: 1.05rem !important;
        color: inherit !important;
        transition: color 0.15s ease;
    }
    
    #app-view .bottom-nav .nav-item:hover {
        background: rgba(255, 255, 255, 0.04) !important;
        color: #ffffff !important;
    }
    
    /* Active Item (Rounded Pill with Dark Slate Background like Image) */
    #app-view .bottom-nav .nav-item.active {
        background: #1e293b !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }
    
    #app-view .bottom-nav .nav-item.active::before {
        display: none !important;
    }
    
    /* Accordion Expanded Parent State */
    .nav-item-accordion.expanded > .nav-item {
        background: #1e293b !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    .sidebar-footer {
        background: transparent !important;
        border-top: none !important;
        position: sticky;
        bottom: 0;
        z-index: 20;
        padding: 12px 10px !important;
    }
    .sidebar-user-container {
        background: #1e293b !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 8px !important;
        overflow: hidden;
        transition: all 0.2s ease;
    }
    .sidebar-user-info {
        padding: 8px 10px !important;
        margin-bottom: 0 !important;
        justify-content: space-between !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
    }
    .sidebar-user-info:hover {
        background: #273549 !important;
    }
    .sidebar-user-name {
        color: #f8fafc !important;
        font-size: 0.82rem !important;
        font-weight: 600;
    }
    .sidebar-user-role {
        display: flex;
        align-items: center;
    }
    .sidebar-user-avatar {
        background: linear-gradient(135deg, var(--brand-primary), #1e40af) !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        font-weight: 700;
        width: 30px !important;
        height: 30px !important;
        font-size: 0.82rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .sidebar-user-chevron {
        color: #94a3b8 !important;
        font-size: 1rem;
        margin-left: auto;
    }
    .sidebar-user-menu {
        display: none;
        flex-direction: column;
        border-top: 1px solid #334155;
        padding: 4px 0;
    }
    .sidebar-user-container.expanded .sidebar-user-menu {
        display: flex;
    }
    .sidebar-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 14px;
        color: #f8fafc !important;
        text-decoration: none;
        font-size: 0.85rem;
    }
    .sidebar-menu-item:hover {
        background: #334155 !important;
    }
    .sidebar-menu-item.text-danger {
        color: #fca5a5 !important;
    }
    .sidebar-menu-item i {
        font-size: 1.1rem;
    }
    .sidebar-user-actions.desktop-hidden {
        display: none !important;
    }
}

/* ==========================================================================
   ⚡ MODERN POS-STYLE DASHBOARD (ÖZET) STYLES
   ========================================================================== */

/* 1. Filter Controls Bar (Sticky At Top Matching Reference Screenshot) */
.dash-filter-container {
    position: sticky;
    top: 0;
    z-index: 25;
    background: #ffffff;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .dash-filter-container,
[data-theme="amoled"] .dash-filter-container {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.dash-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 140px;
    min-width: 130px;
}

.dash-filter-field label {
    font-size: 0.70rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
}

.dash-select-wrapper,
.dash-date-wrapper {
    position: relative;
    width: 100%;
}

.dash-select-wrapper select,
.dash-date-wrapper input {
    width: 100%;
    height: 38px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 28px 0 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

[data-theme="dark"] .dash-select-wrapper select,
[data-theme="dark"] .dash-date-wrapper input,
[data-theme="amoled"] .dash-select-wrapper select,
[data-theme="amoled"] .dash-date-wrapper input {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.dash-select-wrapper select:focus,
.dash-date-wrapper input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.dash-select-wrapper i,
.dash-date-wrapper i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 0.85rem;
}

.dash-filter-btn {
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1.5px solid #ec4899;
    background: transparent;
    color: #ec4899;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    flex-shrink: 0;
}

.dash-filter-btn:hover {
    background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(244,63,94,0.12));
    border-color: #f43f5e;
    color: #f43f5e;
    box-shadow: 0 0 14px rgba(236,72,153,0.25);
    transform: translateY(-1px);
}

/* 2. Main 8 Metric Cards Grid */
.dash-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .dash-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .dash-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .dash-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.dash-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    position: relative;
    min-height: 125px;
}

[data-theme="dark"] .dash-metric-card,
[data-theme="amoled"] .dash-metric-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.dash-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .dash-metric-card:hover,
[data-theme="amoled"] .dash-metric-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    border-color: rgba(59, 130, 246, 0.3);
}

.dash-metric-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.dash-metric-title {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.dash-metric-val-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 6px;
}

.dash-metric-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] .dash-metric-val,
[data-theme="amoled"] .dash-metric-val {
    color: #ffffff;
}

.dash-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

.badge-down {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.badge-up {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.badge-neutral {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.dash-sparkline-box {
    width: 100%;
    position: relative;
    margin-top: auto;
}

.dash-sparkline-svg {
    width: 100%;
    height: 38px;
    display: block;
    overflow: visible;
}

.dash-sparkline-base {
    stroke: #cbd5e1;
    stroke-width: 1;
    stroke-dasharray: 4 3;
}

[data-theme="dark"] .dash-sparkline-base,
[data-theme="amoled"] .dash-sparkline-base {
    stroke: #334155;
}

.dash-sparkline-line.stroke-blue {
    fill: none;
    stroke: #0284c7;
    stroke-width: 2.2;
    stroke-linecap: round;
}

[data-theme="dark"] .dash-sparkline-line.stroke-blue,
[data-theme="amoled"] .dash-sparkline-line.stroke-blue {
    stroke: #38bdf8;
}

.dash-sparkline-avg {
    font-size: 0.60rem;
    color: #64748b;
    position: absolute;
    right: 0;
    bottom: -1px;
    font-weight: 500;
}

/* 3. Mid Section (Açık Çek & Bars) */
.dash-mid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .dash-mid-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dash-status-bars-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .dash-mid-grid {
        grid-template-columns: 1fr;
    }
    .dash-status-bars-card {
        grid-column: auto;
    }
}

.dash-status-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 110px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .dash-status-card,
[data-theme="amoled"] .dash-status-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.dash-status-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.3);
}

.dash-status-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.dash-status-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .dash-status-val,
[data-theme="amoled"] .dash-status-val {
    color: #ffffff;
}

.dash-status-bars-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .dash-status-bars-card,
[data-theme="amoled"] .dash-status-bars-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.dash-bars-canvas-container {
    height: 90px;
    width: 100%;
    position: relative;
}

.dash-bars-labels {
    display: flex;
    justify-content: space-around;
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}

/* 4. Bottom Sales & Services Analysis */
.dash-sales-section {
    margin-bottom: 24px;
}

.dash-section-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 16px 0 12px 2px;
}

[data-theme="dark"] .dash-section-heading,
[data-theme="amoled"] .dash-section-heading {
    color: #f8fafc;
}

.dash-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .dash-charts-grid {
        grid-template-columns: 1fr;
    }
}

.dash-chart-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    min-height: 260px;
    height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: visible;
}

[data-theme="dark"] .dash-chart-box,
[data-theme="amoled"] .dash-chart-box {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.dash-chart-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #475569;
    text-align: center;
    margin-bottom: 14px;
}

[data-theme="dark"] .dash-chart-title,
[data-theme="amoled"] .dash-chart-title {
    color: #94a3b8;
}

.dash-donut-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 180px;
    height: auto;
    width: 100%;
    padding: 6px 0;
    box-sizing: border-box;
}

.dash-donut-canvas {
    width: 135px;
    height: 135px;
    flex-shrink: 0;
    position: relative;
}

.dash-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 500;
    min-width: 170px;
}

[data-theme="dark"] .dash-donut-legend,
[data-theme="amoled"] .dash-donut-legend {
    color: #94a3b8;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dash-bars-wrapper {
    height: 180px;
    width: 100%;
    position: relative;
}

/* 5. Floating Assistance Button */
.dash-floating-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
}

.dash-floating-btn {
    background: #eab308;
    color: #000000;
    border-radius: 24px;
    padding: 8px 18px;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid #000000;
    user-select: none;
}

.dash-floating-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(234, 179, 8, 0.55);
}

/* ==========================================================================
   ⚡ DEDICATED REPORTS (GÜNLÜK, YOĞUNLUK, SATIŞ) STYLES
   ========================================================================== */

/* Ensure app-content has 0 padding when in reports layout */
#app-view .app-content:has(.reports-layout-container),
#app-view:has(#view-dashboard.active) .app-content,
#app-view:has(#view-daily-report.active) .app-content,
#app-view:has(#view-density-report.active) .app-content,
#app-view:has(#view-sales-report.active) .app-content,
#app-view:has(#view-ai-insights.active) .app-content {
    padding: 0 !important;
}

/* Reports Layout with Sub-Navigation Sidebar (Matches Screenshot) */
.reports-layout-container {
    display: flex;
    min-height: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    align-items: stretch;
    background: #f4f6f9;
}

[data-theme="dark"] .reports-layout-container,
[data-theme="amoled"] .reports-layout-container {
    background: #070c14;
}

.reports-subnav-panel {
    width: 220px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: sticky;
    top: 0;
    height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 30;
    align-self: flex-start;
    box-sizing: border-box;
}

.reports-subnav-panel::-webkit-scrollbar {
    width: 4px;
}
.reports-subnav-panel::-webkit-scrollbar-track {
    background: transparent;
}
.reports-subnav-panel::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 4px;
}
.reports-subnav-panel:hover::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
}

[data-theme="dark"] .reports-subnav-panel,
[data-theme="amoled"] .reports-subnav-panel {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1023px) {
    .reports-layout-container {
        flex-direction: column;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .reports-subnav-panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 12px;
        position: sticky;
        top: 0;
        z-index: 30;
        height: auto;
        gap: 6px;
        flex-shrink: 0;
        scrollbar-width: thin;
    }
    .reports-subnav-panel::-webkit-scrollbar {
        height: 3px;
    }
    .reports-subnav-panel .subnav-item {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .reports-subnav-divider {
        display: none;
    }
    [data-theme="dark"] .reports-subnav-panel,
    [data-theme="amoled"] .reports-subnav-panel {
        border-color: rgba(255, 255, 255, 0.08);
    }
}

.reports-subnav-panel .subnav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer !important;
    user-select: none;
}

.reports-subnav-panel .subnav-item * {
    pointer-events: none;
}

[data-theme="dark"] .reports-subnav-panel .subnav-item,
[data-theme="amoled"] .reports-subnav-panel .subnav-item {
    color: #94a3b8;
}

.reports-subnav-panel .subnav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
}

[data-theme="dark"] .reports-subnav-panel .subnav-item:hover,
[data-theme="amoled"] .reports-subnav-panel .subnav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.reports-subnav-panel .subnav-item.active {
    background: #e6f9f0 !important;
    color: #10b981 !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .reports-subnav-panel .subnav-item.active,
[data-theme="amoled"] .reports-subnav-panel .subnav-item.active {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

.reports-subnav-panel .subnav-item i {
    font-size: 1.15rem !important;
    color: #64748b !important;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    line-height: 1;
}

[data-theme="dark"] .reports-subnav-panel .subnav-item i,
[data-theme="amoled"] .reports-subnav-panel .subnav-item i {
    color: #94a3b8 !important;
}

.reports-subnav-panel .subnav-item.active i {
    color: #10b981 !important;
}

[data-theme="dark"] .reports-subnav-panel .subnav-item.active i,
[data-theme="amoled"] .reports-subnav-panel .subnav-item.active i {
    color: #34d399 !important;
}

.reports-subnav-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 10px;
}

[data-theme="dark"] .reports-subnav-divider,
[data-theme="amoled"] .reports-subnav-divider {
    background: rgba(255, 255, 255, 0.08);
}

.subnav-ai-pill {
    background: #ec4899;
    color: #ffffff;
    font-size: 0.60rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: auto;
}

.reports-main-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 16px;
    background: #f4f6f9;
}

[data-theme="dark"] .reports-main-content,
[data-theme="amoled"] .reports-main-content {
    background: #070c14;
}

@media (max-width: 768px) {
    .reports-main-content {
        padding: 12px 10px 20px;
    }
}

.dash-perf-grid {
    display: flex;
    gap: 14px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .dash-perf-grid {
        flex-direction: column;
    }
}

.report-header-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.report-page-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

[data-theme="dark"] .report-page-title,
[data-theme="amoled"] .report-page-title {
    color: #f8fafc;
}

.report-page-sub {
    font-size: 0.76rem;
    color: #64748b;
    margin: 4px 0 0;
}

.report-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
}

[data-theme="dark"] .report-table-card,
[data-theme="amoled"] .report-table-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pos-report-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-align: left;
}

.pos-report-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

[data-theme="dark"] .pos-report-table thead th,
[data-theme="amoled"] .pos-report-table thead th {
    background: #1e293b;
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.08);
}

.pos-report-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    white-space: nowrap;
    font-weight: 500;
}

[data-theme="dark"] .pos-report-table tbody td,
[data-theme="amoled"] .pos-report-table tbody td {
    border-color: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
}

.pos-report-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.03);
}

[data-theme="dark"] .pos-report-table tbody tr:hover td,
[data-theme="amoled"] .pos-report-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.pos-report-table tr.row-subtotal td {
    background: #f8fafc !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

[data-theme="dark"] .pos-report-table tr.row-subtotal td,
[data-theme="amoled"] .pos-report-table tr.row-subtotal td {
    background: #1e293b !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.pos-report-table .text-right {
    text-align: right;
}

.pos-report-table .text-center {
    text-align: center;
}

.density-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .density-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ⚡ DEVNET AI INSIGHTS & RECOMMENDATIONS (VIBRANT & ULTRA-MODERN)
   ========================================================================== */

/* 1. Hero Banner */
.ai-hero-banner {
    background: linear-gradient(135deg, #ffd84d 0%, #ffc000 30%, #fb923c 70%, #f43f5e 100%);
    border-radius: 18px;
    padding: 34px 38px;
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(251, 146, 60, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-banner-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.ai-banner-orb.orb-1 {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.45);
    top: -50px;
    left: -40px;
}

.ai-banner-orb.orb-2 {
    width: 280px;
    height: 280px;
    background: rgba(244, 63, 94, 0.35);
    bottom: -80px;
    right: 20%;
}

.ai-banner-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 1;
}

.ai-hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.ai-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.ai-kicker-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 0.60rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

.ai-hero-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.ai-hero-sub {
    font-size: 0.90rem;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-weight: 600;
}

.ai-hero-metrics-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-hero-metric-chip {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.76rem;
    color: #0f172a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ai-hero-graphics {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.ai-floating-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    transition: transform 0.3s ease;
}

.ai-floating-card.card-1 {
    animation: float1 4s ease-in-out infinite;
}

.ai-floating-card.card-2 {
    animation: float2 4s ease-in-out infinite 0.5s;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(5px); }
}

.ai-fc-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ai-fc-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.ai-fc-val {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
}

.ai-floating-badge-chip {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 2. Timeline Month/Year Selector */
.ai-timeline-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 20px 0;
    scrollbar-width: none;
}

.ai-timeline-bar::-webkit-scrollbar {
    display: none;
}

.ai-year-pill {
    background: #eab308;
    color: #1e1b4b;
    font-weight: 700;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    flex-shrink: 0;
}

.ai-timeline-label {
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 600;
    margin: 0 4px;
    flex-shrink: 0;
}

.ai-month-pill {
    background: #ffffff;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

[data-theme="dark"] .ai-month-pill,
[data-theme="amoled"] .ai-month-pill {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.ai-month-pill:hover {
    border-color: #eab308;
    color: #1e293b;
}

.ai-month-pill.active {
    background: #eab308 !important;
    color: #1e1b4b !important;
    border-color: #eab308 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
}

/* 3. Content Layout (Main + Side Index) */
.ai-content-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.ai-main-feed {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ai-side-index {
    width: 250px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px;
    position: sticky;
    top: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .ai-side-index,
[data-theme="amoled"] .ai-side-index {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.ai-side-index-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px 0;
    line-height: 1.3;
}

[data-theme="dark"] .ai-side-index-title,
[data-theme="amoled"] .ai-side-index-title {
    color: #f8fafc;
}

.ai-side-index-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-side-index-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-side-index-nav a i {
    font-size: 1rem;
    flex-shrink: 0;
}

[data-theme="dark"] .ai-side-index-nav a,
[data-theme="amoled"] .ai-side-index-nav a {
    color: #94a3b8;
}

.ai-side-index-nav a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
}

[data-theme="dark"] .ai-side-index-nav a:hover,
[data-theme="amoled"] .ai-side-index-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.ai-side-index-nav a.active {
    color: #d97706 !important;
    font-weight: 700 !important;
    background: rgba(234, 179, 8, 0.12) !important;
}

[data-theme="dark"] .ai-side-index-nav a.active,
[data-theme="amoled"] .ai-side-index-nav a.active {
    color: #eab308 !important;
    background: rgba(234, 179, 8, 0.15) !important;
}

.ai-index-tip-box {
    margin-top: 18px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-theme="dark"] .ai-index-tip-box,
[data-theme="amoled"] .ai-index-tip-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

/* 4. Sections & Cards */
.ai-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .ai-section-title,
[data-theme="amoled"] .ai-section-title {
    color: #f8fafc;
}

.ai-cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ai-cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .ai-content-layout {
        flex-direction: column;
    }
    .ai-side-index {
        width: 100%;
        position: static;
    }
    .ai-cards-grid-2,
    .ai-cards-grid-3 {
        grid-template-columns: 1fr;
    }
}

.ai-insight-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .ai-insight-card,
[data-theme="amoled"] .ai-insight-card {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.ai-insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.ai-insight-icon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-insight-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.ai-insight-tag {
    font-size: 0.70rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ai-insight-text {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

[data-theme="dark"] .ai-insight-text,
[data-theme="amoled"] .ai-insight-text {
    color: #cbd5e1;
}

/* Service Potential Card */
.ai-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

[data-theme="dark"] .ai-service-card,
[data-theme="amoled"] .ai-service-card {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.ai-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-service-emoji {
    font-size: 1.6rem;
}

.ai-service-score {
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

.ai-service-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

[data-theme="dark"] .ai-service-title,
[data-theme="amoled"] .ai-service-title {
    color: #f8fafc;
}

.ai-service-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

[data-theme="dark"] .ai-service-stats,
[data-theme="amoled"] .ai-service-stats {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.ai-service-action-tip {
    font-size: 0.76rem;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
    padding: 8px 10px;
    border-radius: 8px;
    line-height: 1.4;
    font-weight: 500;
}

[data-theme="dark"] .ai-service-action-tip,
[data-theme="amoled"] .ai-service-action-tip {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

/* 5. Product High / Low Metric Card (Matching Screenshot 1) */
.ai-product-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

[data-theme="dark"] .ai-product-metric-card,
[data-theme="amoled"] .ai-product-metric-card {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.ai-product-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.ai-pm-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.ai-pm-icon-box.green {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

.ai-pm-icon-box.orange {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
}

[data-theme="dark"] .ai-pm-icon-box.green,
[data-theme="amoled"] .ai-pm-icon-box.green {
    background: rgba(22, 163, 74, 0.15);
    border-color: rgba(22, 163, 74, 0.3);
    color: #4ade80;
}

[data-theme="dark"] .ai-pm-icon-box.orange,
[data-theme="amoled"] .ai-pm-icon-box.orange {
    background: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.3);
    color: #fb923c;
}

.ai-pm-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

[data-theme="dark"] .ai-pm-title,
[data-theme="amoled"] .ai-pm-title {
    color: #94a3b8;
}

.ai-pm-count {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin: 2px 0 0 0;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .ai-pm-count,
[data-theme="amoled"] .ai-pm-count {
    color: #ffffff;
}

.ai-pm-price {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

[data-theme="dark"] .ai-pm-price,
[data-theme="amoled"] .ai-pm-price {
    color: #cbd5e1;
}

/* 6. Advice Cards (Price & Strategy Cards matching Screenshot 1) */
.ai-advice-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

[data-theme="dark"] .ai-advice-card,
[data-theme="amoled"] .ai-advice-card {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.ai-advice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.ai-advice-icon-box {
    font-size: 1.65rem;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
}

[data-theme="dark"] .ai-advice-icon-box,
[data-theme="amoled"] .ai-advice-icon-box {
    color: #f8fafc;
}

.ai-advice-text {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

[data-theme="dark"] .ai-advice-text,
[data-theme="amoled"] .ai-advice-text {
    color: #cbd5e1;
}

/* 7. Numbered Promo Cards (01, 02, 03 matching Screenshot 2) */
.ai-numbered-promo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

[data-theme="dark"] .ai-numbered-promo-card,
[data-theme="amoled"] .ai-numbered-promo-card {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.ai-numbered-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.ai-np-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .ai-np-number,
[data-theme="amoled"] .ai-np-number {
    color: #f8fafc;
}

.ai-np-text {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

[data-theme="dark"] .ai-np-text,
[data-theme="amoled"] .ai-np-text {
    color: #cbd5e1;
}

/* 8. Potential Category Card (Smiley cards matching Screenshot 2) */
.ai-smiley-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

[data-theme="dark"] .ai-smiley-card,
[data-theme="amoled"] .ai-smiley-card {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.ai-smiley-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.ai-smiley-icon {
    font-size: 2.3rem;
    color: #0284c7;
}

[data-theme="dark"] .ai-smiley-icon,
[data-theme="amoled"] .ai-smiley-icon {
    color: #38bdf8;
}

.ai-smiley-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

[data-theme="dark"] .ai-smiley-title,
[data-theme="amoled"] .ai-smiley-title {
    color: #f8fafc;
}

/* 9. Side Index Timestamp */
.ai-side-index-timestamp {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

[data-theme="dark"] .ai-side-index-timestamp,
[data-theme="amoled"] .ai-side-index-timestamp {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

/* ==========================================================================
   ⚡ REDESIGNED CUSTOMERS (USERS) PAGE (DASHBOARD DESIGN SYSTEM)
   ========================================================================== */

/* 1. KPI Metric Grid */
.customers-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .customers-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .customers-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.customer-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

[data-theme="dark"] .customer-kpi-card,
[data-theme="amoled"] .customer-kpi-card {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.customer-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.cust-kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.cust-kpi-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cust-kpi-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

[data-theme="dark"] .cust-kpi-label,
[data-theme="amoled"] .cust-kpi-label {
    color: #94a3b8;
}

.cust-kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}

[data-theme="dark"] .cust-kpi-value,
[data-theme="amoled"] .cust-kpi-value {
    color: #ffffff;
}

.cust-kpi-sub {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .cust-kpi-sub,
[data-theme="amoled"] .cust-kpi-sub {
    color: #94a3b8;
}

/* 2. Toolbar & Controls */
.customers-toolbar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

[data-theme="dark"] .customers-toolbar-card,
[data-theme="amoled"] .customers-toolbar-card {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.cust-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cust-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 500px;
}

.cust-search-wrapper i.ph-magnifying-glass {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.cust-search-wrapper input {
    width: 100%;
    padding: 10px 38px 10px 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .cust-search-wrapper input,
[data-theme="amoled"] .cust-search-wrapper input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.cust-search-wrapper input:focus {
    border-color: var(--brand-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .cust-search-wrapper input:focus,
[data-theme="amoled"] .cust-search-wrapper input:focus {
    background: #070c14;
}

.cust-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cust-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cust-view-toggle-group {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    border: 1px solid #e2e8f0;
}

[data-theme="dark"] .cust-view-toggle-group,
[data-theme="amoled"] .cust-view-toggle-group {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.cust-view-toggle-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 6px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

[data-theme="dark"] .cust-view-toggle-btn,
[data-theme="amoled"] .cust-view-toggle-btn {
    color: #94a3b8;
}

.cust-view-toggle-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .cust-view-toggle-btn.active,
[data-theme="amoled"] .cust-view-toggle-btn.active {
    background: #1e293b;
    color: #ffffff;
}

/* 3. Segment Filter Pills */
.cust-segment-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.cust-segment-pills-row::-webkit-scrollbar {
    display: none;
}

.cust-segment-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

[data-theme="dark"] .cust-segment-pill,
[data-theme="amoled"] .cust-segment-pill {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.cust-segment-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="dark"] .cust-segment-pill:hover,
[data-theme="amoled"] .cust-segment-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.cust-segment-pill.active {
    background: #e0f2fe !important;
    border-color: #38bdf8 !important;
    color: #0284c7 !important;
}

[data-theme="dark"] .cust-segment-pill.active,
[data-theme="amoled"] .cust-segment-pill.active {
    background: rgba(14, 165, 233, 0.2) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

.cust-segment-count {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
}

[data-theme="dark"] .cust-segment-count,
[data-theme="amoled"] .cust-segment-count {
    background: rgba(255, 255, 255, 0.1);
}

/* 4. Alphabet A-Z Bar */
.cust-alphabet-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding-top: 6px;
    scrollbar-width: none;
    border-top: 1px solid #f1f5f9;
}

[data-theme="dark"] .cust-alphabet-bar,
[data-theme="amoled"] .cust-alphabet-bar {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.cust-alphabet-bar::-webkit-scrollbar {
    display: none;
}

.cust-letter-pill {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

[data-theme="dark"] .cust-letter-pill,
[data-theme="amoled"] .cust-letter-pill {
    color: #94a3b8;
}

.cust-letter-pill:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

[data-theme="dark"] .cust-letter-pill:hover,
[data-theme="amoled"] .cust-letter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.cust-letter-pill.active {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
}

/* 5. Customers Table */
.customers-table-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.customers-table-wrapper::-webkit-scrollbar {
    height: 5px;
}
.customers-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.customers-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}

[data-theme="dark"] .customers-table-wrapper,
[data-theme="amoled"] .customers-table-wrapper {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.customers-data-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.customers-data-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 13px 16px;
    border-bottom: 1.5px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
}

[data-theme="dark"] .customers-data-table th,
[data-theme="amoled"] .customers-data-table th {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.customers-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

[data-theme="dark"] .customers-data-table td,
[data-theme="amoled"] .customers-data-table td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.customers-data-table tbody tr {
    transition: background 0.15s ease;
    cursor: pointer;
}

.customers-data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

[data-theme="dark"] .customers-data-table tbody tr:hover,
[data-theme="amoled"] .customers-data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cust-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cust-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cust-name-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cust-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.86rem;
}

[data-theme="dark"] .cust-name,
[data-theme="amoled"] .cust-name {
    color: #f8fafc;
}

.cust-username {
    font-size: 0.74rem;
    color: #64748b;
}

[data-theme="dark"] .cust-username,
[data-theme="amoled"] .cust-username {
    color: #94a3b8;
}

.cust-contact-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cust-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #475569;
}

[data-theme="dark"] .cust-contact-item,
[data-theme="amoled"] .cust-contact-item {
    color: #cbd5e1;
}

.cust-contact-item i {
    font-size: 0.95rem;
    color: #94a3b8;
}

.cust-quick-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

[data-theme="dark"] .cust-quick-action-btn,
[data-theme="amoled"] .cust-quick-action-btn {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.cust-quick-action-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

/* 6. Customers Grid Cards View */
.customers-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .customers-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .customers-cards-grid {
        grid-template-columns: 1fr;
    }
}

.customer-grid-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    cursor: pointer;
}

[data-theme="dark"] .customer-grid-card,
[data-theme="amoled"] .customer-grid-card {
    background: #0b1320;
    border-color: rgba(255, 255, 255, 0.08);
}

.customer-grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.4);
}

.cgc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cgc-info-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

[data-theme="dark"] .cgc-info-row,
[data-theme="amoled"] .cgc-info-row {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.cgc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
}

[data-theme="dark"] .cgc-footer,
[data-theme="amoled"] .cgc-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   👥 POS DESIGN SYSTEM: CUSTOMERS PAGE, 3-DOT POPOVER & SPLIT DRAWER
   ========================================================================== */

/* ── POS Header Bar ── */
.pos-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.pos-main-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

.pos-breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.pos-breadcrumb-trail .active {
    color: var(--text-main);
    font-weight: 700;
}

.pos-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-pos-gold {
    background: #eab308;
    color: #000000;
    font-weight: 800;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.25);
}

.btn-pos-gold:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
}

.btn-pos-gold:active {
    transform: translateY(0);
}

.btn-pos-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.18s ease;
}

.btn-pos-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.pos-dropdown-wrap {
    position: relative;
}

.pos-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    z-index: 100;
    padding: 6px;
}

.pos-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s;
}

.pos-dropdown-menu a:hover {
    background: var(--bg-surface);
}

.pos-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* ── POS Filter Strip (Matches Reference Screenshot) ── */
.pos-filter-strip-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    background: var(--bg-card);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.pos-filter-strip-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex: 1;
    overflow-x: auto;
}

.pos-filter-strip-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pos-strip-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    gap: 8px;
    flex-shrink: 0;
}

.pos-strip-search-box i {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pos-strip-search-box input {
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.82rem;
    outline: none;
    width: 220px;
    min-width: 180px;
}

.pos-strip-kbd {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1px 5px;
    border-radius: 4px;
}

.pos-strip-clear {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 2px;
    font-size: 0.8rem;
}

.pos-filter-item-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pos-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pos-filter-select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    color: var(--text-main);
    outline: none;
    font-weight: 600;
    cursor: pointer;
}

.pos-strip-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.pos-strip-btn:hover {
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--text-muted);
}

.pos-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.pos-table-card::-webkit-scrollbar {
    height: 5px;
}
.pos-table-card::-webkit-scrollbar-track {
    background: transparent;
}
.pos-table-card::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}

/* ── POS Table & Exact Row Design (Reference Screenshot Match) ── */
.pos-data-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: left;
}

.pos-data-table thead tr {
    background: #f8fafc;
    border-bottom: 1.5px solid var(--border-color);
}

[data-theme="dark"] .pos-data-table thead tr,
[data-theme="amoled"] .pos-data-table thead tr {
    background: rgba(255, 255, 255, 0.03);
}

.pos-data-table th {
    padding: 13px 16px;
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: none;
    user-select: none;
    vertical-align: middle;
}

.pos-th-sortable {
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pos-th-sortable:hover {
    background: color-mix(in srgb, var(--brand-primary) 6%, transparent);
    color: var(--text-main);
}

.pos-th-sort, .pos-th-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.14);
    font-size: 0.70rem;
    margin-left: 6px;
    color: var(--text-muted);
    vertical-align: middle;
    transition: all 0.2s ease;
}

th:hover .pos-th-sort,
th:hover .pos-th-filter {
    background: color-mix(in srgb, var(--brand-primary) 20%, transparent);
    color: var(--brand-primary);
    transform: scale(1.1);
}

/* ── Zebra Striping & Alternating Row Design (Exact Reference Match) ── */
.pos-data-table tbody tr:nth-child(odd),
.customers-data-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.pos-data-table tbody tr:nth-child(even),
.customers-data-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

[data-theme="dark"] .pos-data-table tbody tr:nth-child(odd),
[data-theme="dark"] .customers-data-table tbody tr:nth-child(odd),
[data-theme="amoled"] .pos-data-table tbody tr:nth-child(odd),
[data-theme="amoled"] .customers-data-table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.015);
}

[data-theme="dark"] .pos-data-table tbody tr:nth-child(even),
[data-theme="dark"] .customers-data-table tbody tr:nth-child(even),
[data-theme="amoled"] .pos-data-table tbody tr:nth-child(even),
[data-theme="amoled"] .customers-data-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.04);
}

.pos-table-row {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s ease;
}

.pos-table-row:hover,
.pos-data-table tbody tr:hover,
.customers-data-table tbody tr:hover {
    background-color: #eff6ff !important;
}

[data-theme="dark"] .pos-table-row:hover,
[data-theme="dark"] .pos-data-table tbody tr:hover,
[data-theme="dark"] .customers-data-table tbody tr:hover,
[data-theme="amoled"] .pos-table-row:hover,
[data-theme="amoled"] .pos-data-table tbody tr:hover,
[data-theme="amoled"] .customers-data-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.08) !important;
}

.pos-table-row td {
    padding: 12px 14px;
    vertical-align: middle;
    border: none;
    font-size: 0.80rem;
    line-height: 1.42;
}

.pos-cell-primary {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.pos-cell-text {
    color: var(--text-main);
    font-size: 0.80rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.pos-cell-muted {
    color: var(--text-muted);
    font-size: 0.80rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.pos-cell-code {
    color: var(--text-muted);
    font-size: 0.78rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.pos-cell-nowrap {
    white-space: nowrap !important;
}

.pos-cell-wrap {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.38 !important;
}

.pos-row-dot-btn,
.pos-row-action-btn,
.pos-action-dots-btn,
.cust-dot-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
}

.pos-row-dot-btn:hover,
.pos-row-action-btn:hover,
.pos-action-dots-btn:hover,
.cust-dot-menu-btn:hover {
    background: var(--bg-surface, rgba(255, 255, 255, 0.08));
    color: var(--text-main, #f8fafc);
}

.pos-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #f59e0b;
    cursor: pointer;
    vertical-align: middle;
}

.pos-th-sort, .pos-th-filter {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-left: 4px;
    cursor: pointer;
}

.cust-dot-menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.18s;
}

.cust-dot-menu-btn:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
}

/* ── 3-Dot Floating Action Popover ── */
.pos-action-popover {
    position: fixed;
    z-index: 2000;
    width: 220px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-color);
    padding: 8px 6px;
    animation: popoverFadeIn 0.15s ease-out;
}

[data-theme="light"] .pos-action-popover {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

@keyframes popoverFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.pos-popover-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.pos-popover-item:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}

[data-theme="light"] .pos-popover-item {
    color: #1e293b;
}

[data-theme="light"] .pos-popover-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.pos-popover-item.text-danger {
    color: #ef4444 !important;
}

.pos-popover-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
}

.pos-popover-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.pos-popover-footer {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 6px;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .pos-popover-footer {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
}

.pos-popover-id-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-popover-id-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pos-popover-copy-btn {
    border: none;
    background: transparent;
    color: var(--pos-gold);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.pos-popover-copy-btn:hover {
    text-decoration: underline;
}

.pos-popover-id-value {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    word-break: break-all;
    margin-top: 3px;
}

/* ── 2-Panel Split-Drawer Slide-Out (POS Reference) ── */
.pos-split-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay-bg);
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pos-split-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pos-split-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 430px;
    max-width: 100vw;
    background: var(--bg-card);
    border-left: 1.5px solid var(--border-color);
    color: var(--text-main);
    z-index: 2101;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
    box-shadow: none;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

[data-theme="light"] .pos-split-drawer {
    background: #ffffff;
    border-left-color: rgba(15, 23, 42, 0.1);
}

.pos-split-drawer.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .pos-split-drawer.active {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.pos-split-drawer.expanded {
    width: min(880px, 100vw) !important;
    max-width: 100vw !important;
}

.pos-split-drawer.wide-preview {
    width: min(980px, 100vw);
    max-width: 100vw;
}

.pos-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    flex-shrink: 0;
}

[data-theme="light"] .pos-drawer-header {
    background: #ffffff;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.pos-drawer-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    color: var(--text-main);
    margin: 0;
}

.pos-drawer-subtitle {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 3px;
    display: block;
    letter-spacing: 0.1px;
}

.pos-drawer-close-btn,
.pos-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-hover);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.pos-drawer-close-btn:hover,
.pos-drawer-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

[data-theme="light"] .pos-drawer-close-btn,
[data-theme="light"] .pos-drawer-close {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.pos-drawer-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.pos-drawer-left-panel {
    width: 100%;
    background: var(--bg-base);
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: width 0.26s ease;
    box-sizing: border-box;
}

[data-theme="light"] .pos-drawer-left-panel {
    background: #f1f5f9;
}

.pos-split-drawer.expanded .pos-drawer-left-panel {
    width: 330px;
    min-width: 280px;
    max-width: 360px;
    flex-shrink: 0;
    border-right: 1.5px solid var(--border-color);
}

[data-theme="light"] .pos-split-drawer.expanded .pos-drawer-left-panel {
    border-right-color: rgba(15, 23, 42, 0.08);
}

.pos-drawer-status-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

[data-theme="light"] .pos-drawer-status-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.pos-status-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Modern Icon-based Status Button Group */
.pos-status-btn-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.pos-status-btn-group.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pos-status-btn-group.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pos-status-btn-group.grid-1 {
    grid-template-columns: 1fr;
}

.pos-status-btn-group .full-span,
.pos-status-btn-group .grid-col-span-2 {
    grid-column: span 2;
}

.pos-status-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 9px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    user-select: none;
    box-sizing: border-box;
    text-align: center;
    min-width: 0;
    width: 100%;
}

.pos-status-option-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-status-option-btn i {
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pos-status-option-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
    border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--border-color));
    transform: translateY(-1px);
}

.pos-status-option-btn.active {
    background: var(--bg-surface-hover);
    border-color: var(--brand-primary);
    color: var(--text-main);
    box-shadow: 0 0 0 1.5px var(--brand-primary), 0 4px 12px rgba(59, 130, 246, 0.18);
}

.pos-status-option-btn.active i {
    transform: scale(1.15);
}

/* Specific status active accents */
.pos-status-option-btn[data-status="active"].active,
.pos-status-option-btn[data-status="Onaylandi"].active,
.pos-status-option-btn[data-status="read"].active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.14);
    box-shadow: 0 0 0 1.5px #10b981, 0 4px 14px rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.pos-status-option-btn[data-status="pending"].active,
.pos-status-option-btn[data-status="SuresiGecti"].active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.14);
    box-shadow: 0 0 0 1.5px #f59e0b, 0 4px 14px rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.pos-status-option-btn[data-status="suspended"].active {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.14);
    box-shadow: 0 0 0 1.5px #f97316, 0 4px 14px rgba(249, 115, 22, 0.25);
    color: #fb923c;
}

.pos-status-option-btn[data-status="expired"].active,
.pos-status-option-btn[data-status="Reddedildi"].active,
.pos-status-option-btn[data-status="closed"].active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.14);
    box-shadow: 0 0 0 1.5px #ef4444, 0 4px 14px rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.pos-status-option-btn[data-status="Gonderildi"].active,
.pos-status-option-btn[data-status="new"].active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.14);
    box-shadow: 0 0 0 1.5px #3b82f6, 0 4px 14px rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.pos-status-option-btn[data-status="Taslak"].active {
    border-color: #94a3b8;
    background: rgba(148, 163, 184, 0.14);
    box-shadow: 0 0 0 1.5px #94a3b8, 0 4px 14px rgba(148, 163, 184, 0.25);
    color: #f1f5f9;
}

[data-theme="light"] .pos-status-option-btn {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.1);
    color: #475569;
}

[data-theme="light"] .pos-status-option-btn:hover {
    background: #ffffff;
    color: #0f172a;
}

[data-theme="light"] .pos-status-option-btn[data-status="active"].active,
[data-theme="light"] .pos-status-option-btn[data-status="Onaylandi"].active,
[data-theme="light"] .pos-status-option-btn[data-status="read"].active {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
}

[data-theme="light"] .pos-status-option-btn[data-status="pending"].active,
[data-theme="light"] .pos-status-option-btn[data-status="SuresiGecti"].active {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

[data-theme="light"] .pos-status-option-btn[data-status="suspended"].active {
    background: rgba(249, 115, 22, 0.12);
    color: #9a3412;
}

[data-theme="light"] .pos-status-option-btn[data-status="expired"].active,
[data-theme="light"] .pos-status-option-btn[data-status="Reddedildi"].active,
[data-theme="light"] .pos-status-option-btn[data-status="closed"].active {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

[data-theme="light"] .pos-status-option-btn[data-status="Gonderildi"].active,
[data-theme="light"] .pos-status-option-btn[data-status="new"].active {
    background: rgba(59, 130, 246, 0.12);
    color: #1e40af;
}

[data-theme="light"] .pos-status-option-btn[data-status="Taslak"].active {
    background: rgba(148, 163, 184, 0.18);
    color: #1e293b;
}

/* Custom Checkbox Row / Toggle Card */
.pos-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.pos-checkbox-row:hover {
    border-color: var(--brand-primary);
    background: var(--bg-surface-hover);
}

[data-theme="light"] .pos-checkbox-row {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

[data-theme="light"] .pos-checkbox-row:hover {
    background: #f8fafc;
    border-color: var(--brand-primary);
}

.pos-checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    cursor: pointer;
}

.pos-checkbox-row:has(input:checked) {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

[data-theme="light"] .pos-checkbox-row:has(input:checked) {
    background: rgba(16, 185, 129, 0.08);
    color: #065f46;
}

/* Modern iOS Style Switch (Alternative) */
.pos-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.pos-toggle-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.pos-toggle-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

.pos-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.pos-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.pos-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.pos-switch input:checked + .pos-switch-slider {
    background-color: #10b981;
    border-color: #10b981;
}

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

.pos-drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pos-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.pos-nav-item:hover {
    border-color: var(--brand-primary);
    background: var(--bg-surface-hover);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.pos-nav-item.active {
    border-color: var(--brand-primary);
    background: var(--bg-surface-hover);
    box-shadow: 0 0 0 1.5px var(--brand-primary), 0 6px 18px rgba(59, 130, 246, 0.2);
}

.pos-nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand-primary);
    border-radius: 0 4px 4px 0;
}

[data-theme="light"] .pos-nav-item {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .pos-nav-item:hover {
    border-color: var(--brand-primary);
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .pos-nav-item.active {
    border-color: var(--brand-primary);
    background: #ffffff;
    box-shadow: 0 0 0 1.5px var(--brand-primary), 0 6px 18px rgba(59, 130, 246, 0.12);
}

.pos-nav-item-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    letter-spacing: 0.1px;
}

.pos-nav-item-desc {
    font-size: 0.73rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 3px;
    display: block;
    line-height: 1.35;
}

.pos-pill-action {
    background: var(--pos-gold);
    color: #000000;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pos-drawer-right-panel {
    display: none;
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-card);
    color: var(--text-main);
    box-sizing: border-box;
    min-width: 0;
}

[data-theme="light"] .pos-drawer-right-panel {
    background: #ffffff;
    color: #0f172a;
}

.pos-split-drawer.expanded .pos-drawer-right-panel {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    box-sizing: border-box;
    animation: fadeInSlideRight 0.22s ease-out;
}

@keyframes fadeInSlideRight {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.pos-close-subpanel-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.pos-close-subpanel-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.pos-form-section-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
    margin: 0 0 4px 0;
}

.pos-form-section-desc {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.45;
}

.pos-form-group {
    margin-bottom: 18px;
}

.pos-form-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-main);
    margin-bottom: 7px;
}

.pos-form-input, .pos-form-select, .pos-form-textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 9px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[data-theme="light"] .pos-form-input,
[data-theme="light"] .pos-form-select,
[data-theme="light"] .pos-form-textarea {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.15);
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.pos-form-input:hover, .pos-form-select:hover, .pos-form-textarea:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 50%, var(--border-color));
}

.pos-form-input:focus, .pos-form-select:focus, .pos-form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary) !important;
    background: var(--bg-surface-hover) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 25%, transparent) !important;
    color: var(--text-main) !important;
}

[data-theme="light"] .pos-form-input:focus,
[data-theme="light"] .pos-form-select:focus,
[data-theme="light"] .pos-form-textarea:focus {
    background: #ffffff !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent) !important;
    color: #0f172a !important;
}

.pos-form-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.pos-form-help, .pos-form-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.pos-avatar-upload-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 1.5px dashed var(--border-color);
    background: var(--bg-surface);
}

.pos-avatar-preview {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    overflow: hidden;
}

.pos-drawer-footer {
    padding: 16px 24px;
    border-top: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    flex-shrink: 0;
}

[data-theme="light"] .pos-drawer-footer {
    background: #ffffff;
    border-top-color: rgba(15, 23, 42, 0.08);
}

.btn-pos-gold-full {
    width: 100%;
    background: #eab308;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 14px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s ease;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
}

.btn-pos-gold-full:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.45);
    filter: brightness(1.05);
}

.btn-pos-gold-full:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.4);
}

.btn-pos-gold-full:active {
    transform: translateY(0);
}

/* Proposal Items Builder in Split Drawer */
.pos-item-card {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.2s ease;
}
.pos-item-card:hover {
    border-color: var(--brand-primary, #3b82f6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.pos-item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.pos-item-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--brand-primary, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}
.pos-item-del-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.15s;
}
.pos-item-del-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}
.pos-item-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pos-item-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 10px;
}
.pos-proposal-totals-box {
    background: var(--bg-surface, #f8fafc);
    border: 1.5px solid var(--border-color, #cbd5e1);
    border-radius: 10px;
    padding: 16px;
    margin-top: 18px;
}
.pos-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.83rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}
.pos-totals-row.grand {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    border-top: 1.5px solid var(--border-color);
    padding-top: 10px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* POS Modern Pagination Bar */
.pos-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--bg-surface, #f8fafc);
    border: 1.5px solid var(--border-color, #cbd5e1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
    flex-wrap: wrap;
    gap: 12px;
}

[data-theme="dark"] .pos-pagination-bar,
[data-theme="amoled"] .pos-pagination-bar {
    background: #0f172a;
    border-color: #1e293b;
}

.pos-pagination-info {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-pagination-info b {
    color: var(--text-main, #0f172a);
    font-weight: 700;
}

.pos-pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pos-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color, #cbd5e1);
    background: var(--bg-card, #ffffff);
    color: var(--text-main, #1e293b);
    font-size: 0.80rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.pos-page-btn:hover:not(:disabled) {
    background: var(--bg-surface, #f1f5f9);
    border-color: var(--brand-primary, #eab308);
    color: var(--text-main);
}

.pos-page-btn.active {
    background: var(--brand-primary, #eab308);
    border-color: var(--brand-primary, #eab308);
    color: #000000;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.28);
}

.pos-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--border-color, #cbd5e1);
}

.pos-page-size-select {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color, #cbd5e1);
    background: var(--bg-card, #ffffff);
    color: var(--text-main, #1e293b);
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    margin-right: 6px;
}

/* Responsive Drawer for mobile and tablet */
@media (max-width: 900px) {
    .pos-split-drawer.expanded {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    .pos-split-drawer.expanded .pos-drawer-left-panel {
        width: 280px !important;
        min-width: 260px !important;
    }
}

@media (max-width: 768px) {
    .pos-split-drawer,
    .pos-split-drawer.expanded,
    .pos-split-drawer.wide-preview {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
    .pos-drawer-body {
        flex-direction: column !important;
    }
    .pos-drawer-left-panel,
    .pos-split-drawer.expanded .pos-drawer-left-panel {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1.5px solid var(--border-color) !important;
        max-height: 240px !important;
        flex-shrink: 0 !important;
    }
    .pos-drawer-right-panel,
    .pos-split-drawer.expanded .pos-drawer-right-panel {
        min-width: 100% !important;
        width: 100% !important;
        padding: 16px !important;
    }
}

/* WHM Specific POS Enhancements */
.pos-domain-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-domain-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

[data-theme="dark"] .pos-domain-avatar,
[data-theme="amoled"] .pos-domain-avatar {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.pos-table-row:hover .pos-domain-avatar {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.pos-domain-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pos-domain-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-domain-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main, #0f172a) !important;
    transition: color 0.15s;
    text-decoration: none;
    line-height: 1.3;
}

.pos-table-row:hover .pos-domain-title {
    color: #d97706 !important;
}

[data-theme="dark"] .pos-table-row:hover .pos-domain-title,
[data-theme="amoled"] .pos-table-row:hover .pos-domain-title {
    color: #eab308 !important;
}

.pos-domain-ip-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted, #64748b);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    margin-top: 2px;
}

.pos-sso-chip-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pos-sso-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    text-decoration: none;
}

.pos-sso-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.pos-sso-cpanel {
    background: rgba(255, 108, 44, 0.1);
    color: #ea580c;
    border-color: rgba(255, 108, 44, 0.25);
}

.pos-sso-cpanel:hover {
    background: rgba(255, 108, 44, 0.2);
    color: #c2410c;
}

.pos-sso-whm {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border-color: rgba(14, 165, 233, 0.25);
}

.pos-sso-whm:hover {
    background: rgba(14, 165, 233, 0.2);
    color: #0369a1;
}

.pos-sso-dns {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
    border-color: rgba(168, 85, 247, 0.25);
}

.pos-sso-dns:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #7e22ce;
}

.pos-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main, #0f172a);
    background: var(--bg-surface, rgba(0, 0, 0, 0.04));
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

/* ========================================================
   Sistem Sağlığı & Telemetri (Metrics) POS Redesign Styles
   ======================================================== */
.pos-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pos-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 4 Core Gauge Grid */
.metrics-gauge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.metric-gauge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-gauge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.metric-gauge-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-gauge-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.metric-gauge-icon.cpu-icon { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.metric-gauge-icon.ram-icon { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.metric-gauge-icon.disk-icon { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.metric-gauge-icon.uptime-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }

.metric-gauge-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.metric-gauge-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-gauge-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.metric-status-chip {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
}

.metric-status-chip.status-good {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.metric-status-chip.status-warn {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.metric-status-chip.status-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.metric-status-chip.status-uptime {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

.metric-gauge-main-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 2px;
}

.metric-big-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -0.5px;
}

.metric-big-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.metric-progress-track {
    width: 100%;
    height: 6px;
    background: var(--bg-surface, rgba(0, 0, 0, 0.04));
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.metric-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-cpu { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.fill-ram { background: linear-gradient(90deg, #9333ea, #c084fc); }
.fill-disk { background: linear-gradient(90deg, #d97706, #f59e0b); }
.fill-uptime { background: linear-gradient(90deg, #059669, #10b981); }

.metric-footer-stats {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-top: 5px;
    border-top: 1px solid var(--border-color);
}

.metric-footer-stats .m-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-footer-stats .m-stat-row strong {
    color: var(--text-main);
    font-weight: 700;
}

/* 2-Column Middle & Bottom Panels */
.metrics-panels-grid, .metrics-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.pos-metrics-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.pos-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.pos-panel-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-panel-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.pos-panel-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

/* Services Status List */
.services-status-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--bg-surface, rgba(0,0,0,0.02));
    border: 1px solid var(--border-color);
    transition: background 0.15s;
}

.service-status-row:hover {
    background: var(--bg-card);
    border-color: #cbd5e1;
}

.service-info-col {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    flex-shrink: 0;
}

.service-name-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
}

.service-desc-text {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.service-badge-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-port-badge {
    font-size: 0.68rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.service-latency-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
}

/* DB Mini Stats Grid */
.db-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.db-stat-box {
    background: var(--bg-surface, rgba(0,0,0,0.02));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
}

.db-stat-num {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.db-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Panel Details List */
.panel-details-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.panel-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--bg-surface, rgba(0,0,0,0.02));
    border: 1px solid var(--border-color);
    font-size: 0.78rem;
}

.panel-detail-item .detail-name {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.panel-detail-item .detail-val {
    color: var(--text-main);
    font-weight: 700;
}

/* Modules Grid */
.modules-chip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.module-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    background: var(--bg-surface, rgba(0,0,0,0.02));
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.module-chip i {
    color: #10b981;
    font-size: 0.85rem;
}

/* ========================================================
   Yöneticiler & Denetim Logları POS Styles
   ======================================================== */
.admin-avatar-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(245, 158, 11, 0.08));
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    flex-shrink: 0;
}

[data-theme="dark"] .admin-avatar-box,
[data-theme="amoled"] .admin-avatar-box {
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.2);
}

.log-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.log-action-login { background: rgba(14, 165, 233, 0.1); color: #0284c7; border: 1px solid rgba(14, 165, 233, 0.2); }
.log-action-create { background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2); }
.log-action-update { background: rgba(245, 158, 11, 0.1); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.2); }
.log-action-delete { background: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2); }
.log-action-terminate { background: rgba(168, 85, 247, 0.1); color: #9333ea; border: 1px solid rgba(168, 85, 247, 0.2); }

/* ========================================================
   🌐 GLOBAL RESPONSIVE RULES (Mobile & Tablet Layouts)
   ======================================================== */

/* ── Responsive POS Page Container ── */
.pos-page-container {
    padding: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .pos-page-container {
        padding: 18px 20px;
    }
}

@media (min-width: 1024px) {
    .pos-page-container {
        padding: 24px 28px;
    }
}

/* ── POS Header Bar Responsive ── */
@media (max-width: 767px) {
    .pos-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 14px;
    }

    .pos-header-left {
        width: 100%;
    }

    .pos-main-title {
        font-size: 1.25rem;
    }

    .pos-header-actions {
        width: 100%;
        display: flex;
        gap: 8px;
        justify-content: stretch;
    }

    .pos-header-actions > * {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .btn-pos-gold, .btn-pos-secondary {
        padding: 8px 12px;
        font-size: 0.78rem;
        justify-content: center;
    }

    /* ── POS Filter Strip Responsive (Mobile) ── */
    .pos-filter-strip-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
        margin-bottom: 12px;
    }

    .pos-filter-strip-left {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
        overflow-x: visible;
    }

    .pos-strip-search-box {
        width: 100%;
        box-sizing: border-box;
    }

    .pos-strip-search-box input {
        width: 100%;
        min-width: 0;
        flex: 1;
    }

    .pos-filter-item-group {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
    }

    .pos-filter-item-group > * {
        flex: 1;
        min-width: calc(50% - 4px);
    }

    .pos-filter-strip-right {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--border-color);
        padding-top: 8px;
    }

    /* Table Wrappers */
    .pos-table-wrap, .data-table-container, .table-container, .pos-table-card, .customers-table-wrapper, .report-table-card {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 14px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .pos-data-table, .customers-data-table, .pos-report-table {
        min-width: 850px !important;
    }
}

/* ── Tablet Breakpoints (768px - 1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
    .pos-page-header {
        margin-bottom: 16px;
    }

    .pos-filter-strip-card {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pos-filter-strip-left {
        flex: 1 1 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .pos-filter-strip-right {
        flex: 1 1 100%;
        justify-content: flex-end;
    }

    .metrics-gauge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-panels-grid, .metrics-bottom-grid {
        grid-template-columns: 1fr;
    }

    /* Table Wrappers on Tablet */
    .pos-table-wrap, .data-table-container, .table-container, .pos-table-card, .customers-table-wrapper, .report-table-card {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 16px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .pos-data-table, .customers-data-table, .pos-report-table {
        min-width: 850px !important;
    }
}

@media (max-width: 640px) {
    .metrics-gauge-grid {
        grid-template-columns: 1fr;
    }
    .db-stat-grid, .modules-chip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Marketing Template Selector & Live Preview System ── */
.mktd-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.mktd-tpl-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mktd-tpl-card:hover {
    border-color: #f59e0b;
    background: color-mix(in srgb, #f59e0b 5%, var(--bg-surface));
    transform: translateY(-1px);
}

.mktd-tpl-card.active {
    border-color: #f59e0b;
    background: color-mix(in srgb, #f59e0b 10%, var(--bg-surface));
    box-shadow: 0 0 0 1px #f59e0b;
}

.mktd-tpl-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mktd-tpl-card-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mktd-var-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 0.72rem;
    font-family: monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.mktd-var-tag:hover {
    background: #f59e0b;
    color: #ffffff;
    transform: scale(1.04);
}

.mktd-preview-frame-wrap {
    background: #f1f5f9;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

[data-theme="dark"] .mktd-preview-frame-wrap,
[data-theme="amoled"] .mktd-preview-frame-wrap {
    background: #0b1120;
}

.mktd-preview-header {
    background: var(--bg-card);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.mktd-preview-canvas {
    padding: 20px;
    overflow-y: auto;
    max-height: 520px;
    display: flex;
    justify-content: center;
    background: #f1f5f9;
}

[data-theme="dark"] .mktd-preview-canvas,
[data-theme="amoled"] .mktd-preview-canvas {
    background: #0f172a;
}

/* ══════════════════════════════════════════════════════════════════
   GLOBAL POS TOAST NOTIFICATION SYSTEM (Bottom-Right Popup)
   ══════════════════════════════════════════════════════════════════ */
#crm-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    max-width: 380px;
    width: calc(100vw - 32px);
    pointer-events: none;
}

.crm-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: crmToastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    color: #ffffff;
}

.crm-toast:hover {
    transform: translateY(-3px) scale(1.015);
}

.crm-toast.closing {
    animation: crmToastSlideOut 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes crmToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes crmToastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(120%) scale(0.92);
    }
}

/* Toast Direct Vibrant Color Schemes */
.crm-toast-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 36px -4px rgba(16, 185, 129, 0.5), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.crm-toast-danger,
.crm-toast-error,
.crm-toast-delete {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 36px -4px rgba(239, 68, 68, 0.5), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.crm-toast-info,
.crm-toast-edit,
.crm-toast-update {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 36px -4px rgba(14, 165, 233, 0.5), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.crm-toast-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 36px -4px rgba(245, 158, 11, 0.5), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.crm-toast-upload,
.crm-toast-sync {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 36px -4px rgba(139, 92, 246, 0.5), 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Toast Inner Content */
.crm-toast-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.crm-toast-body {
    flex: 1;
    min-width: 0;
    padding-right: 4px;
}

.crm-toast-title {
    font-size: 0.90rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.crm-toast-msg {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.36;
    word-break: break-word;
    font-weight: 500;
}

.crm-toast-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: all 0.15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-toast-close-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.crm-toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3.5px;
    width: 100%;
    transform-origin: left;
    background: rgba(255, 255, 255, 0.45);
}

/* Modal / Drawer Inline Error Banner */
.pos-form-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    color: #ef4444;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
    animation: posFormErrorShake 0.4s ease;
    line-height: 1.4;
}

.pos-form-error-banner i {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 1px;
}

@keyframes posFormErrorShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@media (max-width: 640px) {
    #crm-toast-container {
        bottom: 84px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

.mktd-preview-canvas.device-mobile {
    max-width: 380px;
    margin: 0 auto;
    border-left: 2px dashed var(--border-color);
    border-right: 2px dashed var(--border-color);
    padding: 12px;
}

/* ==========================================================================
   💬 POS SEGMENTED TABS (MESSAGES / INBOX SWITCHER)
   ========================================================================== */
.pos-segment-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

[data-theme="dark"] .pos-segment-tabs,
[data-theme="amoled"] .pos-segment-tabs {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.pos-segment-btn,
.pos-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    outline: none;
    font-family: inherit;
}

.pos-segment-btn:hover,
.pos-tab-btn:hover {
    color: var(--text-main, #0f172a);
    background: var(--bg-surface-hover, rgba(0, 0, 0, 0.04));
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .pos-segment-btn:hover,
[data-theme="dark"] .pos-tab-btn:hover,
[data-theme="amoled"] .pos-segment-btn:hover,
[data-theme="amoled"] .pos-tab-btn:hover {
    color: var(--text-main, #f8fafc);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.pos-segment-btn.active,
.pos-tab-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--brand-primary, #3b82f6), #1d4ed8) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    border-color: transparent !important;
}

/* DCIM Location tab active gold styling */
#dc-location-tabs .pos-tab-btn.active,
#dc-location-tabs .pos-segment-btn.active {
    color: #000000 !important;
    background: linear-gradient(135deg, var(--pos-gold, #f59e0b), #d97706) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    border-color: transparent !important;
}

/* Live Indicator Pill */
.pos-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.pos-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: liveDotPulse 1.8s infinite ease-in-out;
}

@keyframes liveDotPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

.pos-segment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.pos-segment-btn.active .pos-segment-badge {
    background: #ffffff;
    color: #1d4ed8;
}

/* ==========================================================================
   📨 CONTACT MESSAGES TECHNICAL SPECS GRID
   ========================================================================== */
.pos-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.pos-spec-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: 10px;
}

.pos-spec-box-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #94a3b8);
}

.pos-spec-box-val {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
    word-break: break-word;
}

/* ==========================================================================
   🔒 MODERN MAINTENANCE HERO BANNER (MATCHES AI RECOMMENDATIONS BANNER DESIGN)
   ========================================================================== */
.pos-maint-hero-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 30%, #0284c7 70%, #4f46e5 100%);
    border-radius: 18px;
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pos-maint-hero-banner.is-active-maint {
    background: linear-gradient(135deg, #ffd84d 0%, #ffc000 30%, #fb923c 70%, #f43f5e 100%);
    box-shadow: 0 12px 35px rgba(251, 146, 60, 0.35);
}

.maint-banner-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.maint-banner-orb.orb-1 {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.35);
    top: -50px;
    left: -40px;
}

.maint-banner-orb.orb-2 {
    width: 280px;
    height: 280px;
    background: rgba(2, 132, 199, 0.3);
    bottom: -80px;
    right: 25%;
}

.pos-maint-hero-banner.is-active-maint .maint-banner-orb.orb-2 {
    background: rgba(244, 63, 94, 0.35);
}

.maint-banner-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 1;
}

.maint-hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.maint-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.pos-maint-hero-banner.is-active-maint .maint-banner-kicker {
    background: rgba(0, 0, 0, 0.15);
    color: #1e1b4b;
}

.maint-kicker-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 0.60rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pos-maint-hero-banner.is-active-maint .maint-kicker-badge {
    background: #dc2626;
    color: #ffffff;
}

.maint-hero-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.pos-maint-hero-banner.is-active-maint .maint-hero-title {
    color: #0f172a;
}

.maint-hero-sub {
    font-size: 0.90rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 18px 0;
    line-height: 1.5;
    font-weight: 500;
}

.pos-maint-hero-banner.is-active-maint .maint-hero-sub {
    color: #1e293b;
    font-weight: 600;
}

.maint-hero-metrics-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.maint-hero-metric-chip {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.76rem;
    color: #0f172a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.maint-hero-graphics {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    min-width: 250px;
}

.maint-floating-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 270px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.maint-floating-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.maint-floating-card.card-1 {
    animation: float1 4s ease-in-out infinite;
}

.maint-fc-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.maint-fc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.maint-fc-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.maint-fc-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
}

.btn-maint-hero-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.86rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
}

.btn-maint-hero-toggle:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-maint-hero-toggle:active {
    transform: translateY(0);
}

.pos-maint-hero-banner.is-active-maint .btn-maint-hero-toggle {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.pos-maint-hero-banner.is-active-maint .btn-maint-hero-toggle:hover {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

@media (max-width: 900px) {
    .pos-maint-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    .maint-hero-graphics {
        width: 100%;
        align-items: stretch;
    }
    .maint-floating-card {
        max-width: 100%;
    }
}

.pos-maint-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.pos-maint-pulse.pulse-green {
    background: #10b981;
}

.pos-maint-pulse.pulse-green::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: posPulseGreen 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.pos-maint-pulse.pulse-amber {
    background: #f59e0b;
}

.pos-maint-pulse.pulse-amber::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: posPulseAmber 1.6s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes posPulseGreen {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.4); opacity: 0; }
}

@keyframes posPulseAmber {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.4); opacity: 0; }
}

#topbar-maint-pill {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 0.4px;
    animation: posMaintPillGlow 2s infinite alternate;
    cursor: pointer;
}

@keyframes posMaintPillGlow {
    from { box-shadow: 0 0 4px rgba(245, 158, 11, 0.2); }
    to { box-shadow: 0 0 14px rgba(245, 158, 11, 0.5); }
}

/* ==========================================================================
   🚨 POS DRAWER ACTION BUTTONS & FOOTERS
   ========================================================================== */
.pos-drawer-left-actions {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.btn-pos-danger-ghost,
.pos-drawer-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1.5px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    color: #ef4444;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.btn-pos-danger-ghost:hover,
.pos-drawer-delete-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-1px);
}

.btn-pos-danger-ghost:active,
.pos-drawer-delete-btn:active {
    transform: translateY(0);
}

[data-theme="dark"] .btn-pos-danger-ghost,
[data-theme="amoled"] .btn-pos-danger-ghost {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

/* Multi-button drawer footer flex fix */
.pos-drawer-footer.flex-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-drawer-footer.flex-footer .btn-pos-secondary,
.pos-drawer-footer.flex-footer .btn-pos-gold {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 800;
    border-radius: 9px;
    cursor: pointer;
}

/* ==========================================================================
   DCIM (DATA CENTER INFRASTRUCTURE & 42U RACK VISUALIZER) STYLES
   ========================================================================== */
.dcim-main-split-layout {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 24px;
    align-items: start;
}

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

.dcim-rack-panel {
    background: var(--bg-card, #0f172a);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: var(--radius-lg, 16px);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dcim-rack-panel-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #1e293b);
    padding-bottom: 14px;
}

.dcim-rack-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dcim-rack-tab-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color, #1e293b);
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dcim-rack-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main, #f8fafc);
}

.dcim-rack-tab-btn.active {
    background: var(--pos-gold, #f59e0b);
    border-color: var(--pos-gold, #f59e0b);
    color: #000000;
}

.dcim-rack-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
}

.dcim-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.legend-dot.dot-server { background: #3b82f6; }
.legend-dot.dot-switch { background: #8b5cf6; }
.legend-dot.dot-storage { background: #10b981; }
.legend-dot.dot-pdu { background: #f59e0b; }
.legend-dot.dot-empty { background: rgba(255, 255, 255, 0.15); }

/* 42U Metal Frame Chassis */
.dcim-rack-frame-wrapper {
    background: #0f172a;
    border: 3px solid #1e293b;
    border-radius: 12px;
    padding: 12px;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
    max-height: 850px;
    overflow-y: auto;
}

@keyframes dcimRackFadeIn {
    0% {
        opacity: 0.4;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dcim-rack-frame {
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: dcimRackFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rack-u-unit {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.rack-u-num {
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
}

.rack-u-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-radius: 0 4px 4px 0;
    min-height: 32px;
    border: 1px solid transparent;
}

/* Empty Slot */
.rack-u-unit.empty-slot .rack-u-body {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.rack-u-unit.empty-slot:hover .rack-u-body {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.4);
}

.empty-slot-label {
    font-size: 0.70rem;
    color: #475569;
    font-style: italic;
}

/* Mounted Device Styles */
.rack-u-unit.mounted-device {
    cursor: pointer;
}

.rack-u-unit.mounted-device:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.rack-u-unit.type-server .rack-u-body {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(30, 58, 138, 0.25));
    border-color: rgba(59, 130, 246, 0.4);
}

.rack-u-unit.type-switch .rack-u-body {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(76, 29, 149, 0.25));
    border-color: rgba(139, 92, 246, 0.4);
}

.rack-u-unit.type-storage .rack-u-body {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(6, 78, 59, 0.25));
    border-color: rgba(16, 185, 129, 0.4);
}

.rack-u-unit.type-pdu .rack-u-body {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(120, 53, 15, 0.25));
    border-color: rgba(245, 158, 11, 0.4);
}

.rack-u-unit.type-patch_panel .rack-u-body {
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.15), rgba(30, 41, 59, 0.25));
    border-color: rgba(100, 116, 139, 0.4);
}

.dev-main-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-led-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.dev-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #f8fafc;
}

.dev-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.dev-meta-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.70rem;
    color: #94a3b8;
}

.dcim-rack-summary-card {
    padding: 20px;
    margin-bottom: 20px;
}

/* ==========================================================================
   SOC RADAR & SECURITY HERO BANNER STYLES
   ========================================================================== */
.pos-security-hero-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 40%, #1e293b 70%, #0c4a6e 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    border-radius: 18px;
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: all 0.35s ease;
}

.pos-security-hero-banner.under-attack-active {
    background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 40%, #18181b 70%, #b91c1c 100%);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.3);
}

.security-banner-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

.security-banner-orb.orb-1 {
    width: 260px;
    height: 260px;
    background: rgba(59, 130, 246, 0.2);
    top: -60px;
    left: -40px;
}

.security-banner-orb.orb-2 {
    width: 280px;
    height: 280px;
    background: rgba(139, 92, 246, 0.2);
    bottom: -80px;
    right: 25%;
}

.pos-security-hero-banner.under-attack-active .security-banner-orb.orb-1 {
    background: rgba(239, 68, 68, 0.35);
}

.security-banner-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
    z-index: 1;
}

.security-hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.security-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.security-kicker-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 0.60rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.pos-security-hero-banner.under-attack-active .security-kicker-badge {
    background: #ef4444;
}

.security-hero-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.security-hero-sub {
    font-size: 0.90rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 18px 0;
    line-height: 1.5;
    font-weight: 500;
}

.security-hero-metrics-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.security-hero-metric-chip {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.76rem;
    color: #f8fafc;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.security-hero-graphics {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    min-width: 250px;
}

/* Rotating Radar Graphic */
.security-radar-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.95) 70%);
    border: 2px solid rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.pos-security-hero-banner.under-attack-active .security-radar-container {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin-top: -70px;
    margin-left: -70px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.4) 0deg, rgba(16, 185, 129, 0.1) 45deg, transparent 90deg);
    animation: radarSweep 3s linear infinite;
    transform-origin: center;
}

.pos-security-hero-banner.under-attack-active .radar-sweep {
    background: conic-gradient(from 0deg, rgba(239, 68, 68, 0.6) 0deg, rgba(239, 68, 68, 0.15) 45deg, transparent 90deg);
}

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-blip {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: radarBlip 2s ease-in-out infinite;
}

.radar-blip.blip-1 { top: 30%; left: 65%; animation-delay: 0.3s; }
.radar-blip.blip-2 { top: 70%; left: 40%; animation-delay: 1.1s; }
.radar-blip.blip-3 { top: 45%; left: 25%; animation-delay: 1.8s; }

@keyframes radarBlip {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.6); opacity: 1; }
}

.radar-center-cross {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to right, transparent 49%, rgba(16, 185, 129, 0.2) 50%, transparent 51%),
        linear-gradient(to bottom, transparent 49%, rgba(16, 185, 129, 0.2) 50%, transparent 51%);
    pointer-events: none;
}

.security-floating-card {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 240px;
}

.sec-fc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sec-fc-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sec-fc-val {
    font-size: 0.80rem;
    font-weight: 800;
    color: #f8fafc;
}

.btn-security-under-attack {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    transition: all 0.2s ease;
}

.btn-security-under-attack:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* WAF Action Badges */
.waf-badge-blocked {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.waf-badge-challenge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.waf-badge-monitored {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Geo Threats Grid */
.sec-geo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.sec-geo-country-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: 12px;
    padding: 16px;
}

.sec-geo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sec-geo-country-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main, #f8fafc);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-geo-count {
    font-size: 0.80rem;
    font-weight: 800;
    color: var(--pos-gold, #f59e0b);
}

.sec-geo-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.sec-geo-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #ef4444);
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* Security SOC Tabs inside Table Card */
#security-view-tabs {
    display: flex;
    align-items: center;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color, #1e293b) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 18px !important;
    gap: 8px;
    margin-bottom: 0 !important;
}

#security-view-tabs .pos-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color, #1e293b);
    color: var(--text-muted, #94a3b8);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#security-view-tabs .pos-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main, #f8fafc);
    border-color: rgba(255, 255, 255, 0.15);
}

#security-view-tabs .pos-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* DCIM Header Location Tabs */
#dc-location-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: 12px;
}

#dc-location-tabs .pos-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted, #94a3b8);
    font-size: 0.80rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#dc-location-tabs .pos-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main, #f8fafc);
}

#dc-location-tabs .pos-tab-btn.active {
    background: linear-gradient(135deg, var(--pos-gold, #f59e0b), #d97706) !important;
    border-color: transparent !important;
    color: #000000 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   POS MODAL DIALOGS (FORMS & POPUPS)
   ========================================================================== */
.pos-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.pos-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.pos-modal-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-color);
    transform: scale(0.94) translateY(8px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    color: var(--text-main);
    box-sizing: border-box;
}

[data-theme="light"] .pos-modal-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.pos-modal-overlay.active .pos-modal-card {
    transform: scale(1) translateY(0);
}

.pos-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    flex-shrink: 0;
}

[data-theme="light"] .pos-modal-header {
    background: #ffffff;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.pos-modal-header-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.pos-modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pos-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.pos-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    background: var(--bg-card);
    color: var(--text-main);
}

[data-theme="light"] .pos-modal-body {
    background: #ffffff;
}

.pos-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    flex-shrink: 0;
}

[data-theme="light"] .pos-modal-footer {
    background: #f8fafc;
    border-top-color: rgba(15, 23, 42, 0.08);
}

/* Modal Form 2-Column Responsive Row */
.pos-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 580px) {
    .pos-form-row {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Organization / Location Level Badge */
.sidebar-org-badge.location-level {
    background: rgba(234, 179, 8, 0.18) !important;
    border-color: rgba(234, 179, 8, 0.55) !important;
    color: #eab308 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.25);
    transition: all 0.25s ease;
}

.sidebar-org-badge.location-level i {
    color: #eab308 !important;
}

.sidebar-org-badge.location-level span {
    color: #eab308 !important;
}

/* AI Analysis Banner Stilleri */
#ai-analysis-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.92); /* Slate 900 translucent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(168, 85, 247, 0.5); /* Purple glow border */
    box-shadow: 0 -10px 45px rgba(0, 0, 0, 0.6), 0 -2px 20px rgba(168, 85, 247, 0.2);
    padding: 24px 32px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f8fafc;
}
#ai-analysis-banner.active {
    transform: translateY(0);
}
@media (min-width: 768px) {
    #ai-analysis-banner {
        left: 280px;
    }
    #app-view.sidebar-collapsed #ai-analysis-banner {
        left: 80px !important;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    #ai-analysis-banner {
        left: 220px;
    }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    #ai-analysis-banner {
        left: 260px;
    }
}
[data-theme="light"] #ai-analysis-banner {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(168, 85, 247, 0.6);
    color: #0f172a;
    box-shadow: 0 -10px 45px rgba(0, 0, 0, 0.15), 0 -2px 20px rgba(168, 85, 247, 0.15);
}

.ai-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.ai-banner-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ai-banner-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.ai-banner-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}
[data-theme="light"] .ai-banner-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #64748b;
}

.ai-banner-body {
    min-height: 90px;
    font-size: 0.92rem;
    line-height: 1.6;
}
.ai-banner-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    gap: 12px;
    color: #a855f7;
}
.ai-banner-loading-icon {
    font-size: 2.2rem;
    animation: aiPulse 1.2s infinite ease-in-out;
}
.ai-banner-content-text {
    color: #cbd5e1;
    font-weight: 500;
}
[data-theme="light"] .ai-banner-content-text {
    color: #334155;
}

.ai-banner-recommendations {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
[data-theme="light"] .ai-banner-recommendations {
    border-top-color: rgba(0, 0, 0, 0.08);
}
.ai-rec-tag {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #c084fc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
[data-theme="light"] .ai-rec-tag {
    background: rgba(168, 85, 247, 0.06);
    border-color: rgba(168, 85, 247, 0.2);
    color: #7c3aed;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px #a855f7); }
}

/* --- REPORTS PAGE STICKY FIXES --- */
/* Override overflow properties on all report layout page views and container elements */
#view-dashboard,
#view-daily-report,
#view-density-report,
#view-sales-report,
#view-servers-report,
#view-domain-report,
#view-ssl-report,
#view-clients-report,
#view-tickets-report,
#view-invoices-report,
#view-finance-report,
#view-campaign-report,
#view-ai-insights {
    overflow: visible !important;
}

.reports-layout-container {
    overflow: visible !important;
}

.reports-main-content {
    overflow: visible !important;
}

/* Make report left subnav menu sticky at the side */
.reports-subnav-panel {
    position: sticky !important;
    top: 0 !important;
    height: calc(100vh - 56px) !important;
    align-self: flex-start !important;
    z-index: 30 !important;
}

/* Make report filter cards sticky at the top of the content area */
.reports-main-content .pos-filter-strip-card {
    position: sticky !important;
    top: 0 !important;
    z-index: 25 !important;
    background: var(--bg-card) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] .reports-main-content .pos-filter-strip-card,
[data-theme="amoled"] .reports-main-content .pos-filter-strip-card {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   DEVNET NOC (NETWORK OPERATIONS CENTER) & IPAM STYLES
   ========================================================================== */

.noc-tab-content {
    display: none;
    animation: fadeIn 0.2s ease;
}

.noc-tab-content.active {
    display: block;
}

/* NOC Node Monitor Cards */
.noc-node-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.noc-node-card:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 50%, var(--border-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.noc-node-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.noc-node-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.noc-node-target {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-top: 3px;
}

.noc-latency-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    font-family: monospace;
    flex-shrink: 0;
}

.noc-latency-badge.fast {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.noc-latency-badge.warn {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.noc-latency-badge.down {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.noc-node-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: var(--bg-base);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.noc-meta-item-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.noc-meta-item-value {
    font-size: 0.78rem;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Uptime 24h Visualizer Bar */
.noc-uptime-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.noc-uptime-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.noc-uptime-bar {
    display: flex;
    gap: 3px;
    height: 16px;
    align-items: center;
}

.noc-uptime-segment {
    flex: 1;
    height: 100%;
    border-radius: 3px;
    background: #10b981;
    transition: transform 0.15s ease, opacity 0.15s ease;
    cursor: pointer;
}

.noc-uptime-segment:hover {
    transform: scaleY(1.2);
    opacity: 0.85;
}

.noc-uptime-segment.warn {
    background: #f59e0b;
}

.noc-uptime-segment.down {
    background: #ef4444;
}

/* IPAM Usage Progress Bar */
.ipam-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.ipam-progress-bar {
    height: 7px;
    background: var(--bg-base);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.ipam-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    transition: width 0.3s ease;
}

.ipam-progress-fill.high {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.ipam-progress-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

/* NOC Timeline Event */
.noc-event-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    align-items: flex-start;
}

.noc-event-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.noc-event-icon.info {
    background: rgba(59, 130, 246, 0.14);
    color: #60a5fa;
}

.noc-event-icon.success {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
}

.noc-event-icon.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
}

.noc-event-content {
    flex: 1;
}

.noc-event-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.noc-event-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.4;
}

.noc-event-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* ==========================================================================
   DEVNET SOC RADAR & CYBERSECURITY OPERATIONS CENTER RICH STYLES
   ========================================================================== */
.soc-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.soc-metric-card {
    background: var(--bg-card, #ffffff);
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .soc-metric-card,
[data-theme="amoled"] .soc-metric-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.soc-metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.soc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.soc-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.soc-icon-wrap.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.soc-icon-wrap.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.soc-icon-wrap.gold { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.soc-icon-wrap.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.soc-icon-wrap.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.soc-card-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.soc-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    margin-bottom: 4px;
}

.soc-card-val {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    line-height: 1.2;
    margin-bottom: 8px;
}

[data-theme="dark"] .soc-card-val,
[data-theme="amoled"] .soc-card-val {
    color: #f8fafc;
}

.soc-card-sub {
    font-size: 0.74rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.soc-card-progress {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

[data-theme="dark"] .soc-card-progress,
[data-theme="amoled"] .soc-card-progress {
    background: rgba(255, 255, 255, 0.08);
}

.soc-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
}

.soc-progress-bar.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.soc-progress-bar.green { background: linear-gradient(90deg, #10b981, #34d399); }
.soc-progress-bar.gold { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.soc-progress-bar.purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

/* Datacenter Scrubbing Nodes Strip */
.soc-nodes-strip {
    background: var(--bg-card, #ffffff);
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .soc-nodes-strip,
[data-theme="amoled"] .soc-nodes-strip {
    background: #0f172a;
    border-color: #1e293b;
}

.soc-nodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

.soc-nodes-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .soc-nodes-title,
[data-theme="amoled"] .soc-nodes-title {
    color: #f8fafc;
}

.soc-nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.soc-node-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .soc-node-card,
[data-theme="amoled"] .soc-node-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: #1e293b;
}

.soc-node-card:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.soc-node-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.soc-node-name {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--text-main, #0f172a);
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="dark"] .soc-node-name,
[data-theme="amoled"] .soc-node-name {
    color: #f8fafc;
}

.soc-node-cap {
    font-size: 0.72rem;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.soc-node-sub {
    font-size: 0.70rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 8px;
    line-height: 1.3;
}

.soc-node-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 700;
}

.soc-node-ping {
    color: var(--text-muted, #64748b);
}

.soc-node-health {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
}

.soc-node-health .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* WAF Rules Grid */
.soc-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.soc-rule-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .soc-rule-card,
[data-theme="amoled"] .soc-rule-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: #1e293b;
}

.soc-rule-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.03);
}

.soc-rule-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.soc-rule-id {
    font-family: monospace;
    font-size: 0.76rem;
    font-weight: 800;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.soc-rule-name {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin-bottom: 6px;
}

[data-theme="dark"] .soc-rule-name,
[data-theme="amoled"] .soc-rule-name {
    color: #f8fafc;
}

.soc-rule-desc {
    font-size: 0.74rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.4;
    margin-bottom: 12px;
}

.soc-rule-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.06));
    font-size: 0.72rem;
}

/* AI SOC Recommendations Cards */
.soc-ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.soc-ai-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.soc-ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #ec4899);
}

.soc-ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.soc-ai-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.soc-ai-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
}

.soc-ai-body {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 12px;
}

.soc-ai-action-btn {
    padding: 6px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.soc-ai-action-btn:hover {
    background: rgba(139, 92, 246, 0.35);
    color: #ffffff;
}

/* --- Interactive Security Cards & Active Node Highlights --- */
.soc-node-card {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.soc-node-card:hover {
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.25);
}

.soc-node-card.active-node {
    border-color: #f59e0b !important;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.95)) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), inset 0 0 12px rgba(245, 158, 11, 0.1) !important;
}

.soc-node-card.active-node::after {
    content: "AKTİF SEÇİLİ ŞUBE";
    position: absolute;
    top: -9px;
    right: 12px;
    background: #f59e0b;
    color: #000000;
    font-size: 0.60rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    letter-spacing: 0.04em;
}

.soc-rule-card {
    cursor: pointer;
    user-select: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.soc-rule-card:hover {
    border-color: #f59e0b !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px -6px rgba(245, 158, 11, 0.2);
}

.soc-metric-card {
    cursor: pointer;
    user-select: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.soc-metric-card:hover {
    border-color: #3b82f6 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px -6px rgba(59, 130, 246, 0.2);
}

/* Security Detail Modal Specs */
.sec-modal-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.sec-modal-spec-item {
    background: var(--bg-surface, #0f172a);
    border: 1px solid var(--border-color, #1e293b);
    border-radius: 10px;
    padding: 10px 14px;
}

.sec-modal-spec-label {
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.sec-modal-spec-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main, #f8fafc);
}

.sec-modal-code-box {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.76rem;
    color: #38bdf8;
    position: relative;
    overflow-x: auto;
    white-space: pre-wrap;
    line-height: 1.5;
    margin: 8px 0 16px 0;
}

