/* ==========================================================================
   TRAFIK HIT CONTROL PANEL - CORE DESIGN SYSTEM (CORPORATE SAAS THEME)
   ========================================================================== */

:root {
    --bg-main: #080c16;
    --bg-gradient: radial-gradient(circle at 50% 0%, #17244d 0%, #080c16 80%);
    --panel-bg: rgba(15, 23, 48, 0.65);
    --panel-border: rgba(255, 255, 255, 0.07);
    --panel-border-focus: rgba(37, 99, 235, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --neon-blue: #2563eb; /* Royal Blue */
    --neon-blue-glow: rgba(37, 99, 235, 0.25);
    --neon-cyan: #00e5ff;  /* Lightning Cyan */
    --neon-cyan-glow: rgba(0, 229, 255, 0.2);
    --neon-green: #10b981;
    --neon-green-glow: rgba(16, 185, 129, 0.2);
    --neon-purple: #8b5cf6;
    --neon-orange: #f59e0b;
    --th-orange: #2491db;
    --th-orange-hover: #2491db;
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-main);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Logo icon lightning styling */
.logo-icon-lightning {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    animation: rotateBolt 4s infinite alternate ease-in-out;
}

@keyframes rotateBolt {
    0% { transform: scale(1); box-shadow: 0 0 12px rgba(0, 229, 255, 0.3); }
    100% { transform: scale(1.06); box-shadow: 0 0 22px rgba(37, 99, 235, 0.5); }
}

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

/* Header & Branding */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.2rem 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }
    100% { box-shadow: 0 0 25px rgba(213, 0, 249, 0.6); }
}

.brand-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ffffff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-green);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulseIndicator 1.5s infinite;
}

@keyframes pulseIndicator {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px var(--neon-green); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Metrics Dashboard Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
}

.metric-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.3);
}

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

.metric-icon.blue { background: rgba(0, 229, 255, 0.1); color: var(--neon-blue); border: 1px solid rgba(0, 229, 255, 0.2); }
.metric-icon.green { background: rgba(0, 230, 118, 0.1); color: var(--neon-green); border: 1px solid rgba(0, 230, 118, 0.2); }
.metric-icon.purple { background: rgba(213, 0, 249, 0.1); color: var(--neon-purple); border: 1px solid rgba(213, 0, 249, 0.2); }
.metric-icon.orange { background: rgba(255, 145, 0, 0.1); color: var(--neon-orange); border: 1px solid rgba(255, 145, 0, 0.2); }
.metric-icon.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }

.metric-data {
    min-width: 0;
    flex: 1;
}

.metric-data h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.metric-data p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 1400px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

/* Main Layout Split */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Panels (Glassmorphism containers) */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.panel-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.panel-header h2 i {
    color: var(--neon-blue);
}

.badge {
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

.panel-body {
    padding: 2.2rem 2.5rem;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .panel-body {
        padding: 1.2rem 1.5rem;
    }
}

/* Right Column Utilities */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Device List & Item Styling */
.device-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

/* Custom Scrollbar for modern feel */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.device-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.device-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateX(4px);
}

.device-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.device-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-item.active .device-avatar {
    color: var(--neon-blue);
    border-color: rgba(0, 229, 255, 0.2);
}

.device-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.device-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 0.15rem;
}

.device-status-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.device-item.active .status-dot {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.last-seen {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Settings Form Elements */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1.2rem;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
    }
}

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

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="datetime-local"],
.form-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.form-select option {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
.form-select:focus {
    outline: none;
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

/* Varsayılan tarayıcı sayı arttırma/azaltma oklarını (spinners) gizle */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* Number unit positioning */
.number-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.number-input-wrapper input[type="number"] {
    padding-right: 4.8rem !important; /* Birim etiketine yazının çakışmasını önler */
}

.number-input-wrapper .unit {
    position: absolute;
    right: 0.6rem;
    color: var(--neon-blue);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
}

/* Toggle Switch Styling */
.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    height: 44px; /* Align with inputs */
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.toggle-label.active {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input:checked + .slider {
    background-color: rgba(0, 230, 118, 0.2);
    border-color: rgba(0, 230, 118, 0.4);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), #00b0ff);
    color: #060913;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

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

.btn-accent:hover {
    background: var(--text-primary);
    color: var(--bg-main);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-pwa {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

.btn-text-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-text-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--neon-orange);
}

.hidden {
    display: none !important;
}

/* Terminal Console View */
.terminal-panel {
    flex-grow: 1;
    min-height: 250px;
}

.terminal-body {
    padding: 0;
}

.terminal {
    background: #03050c;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 1.2rem;
    height: 100%;
    min-height: 220px;
    max-height: 300px;
    overflow-y: auto;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.log-line {
    word-break: break-all;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
}

.log-line.system { border-color: var(--neon-blue); color: var(--neon-blue); }
.log-line.success { border-color: var(--neon-green); color: var(--neon-green); }
.log-line.warning { border-color: var(--neon-orange); color: var(--neon-orange); }
.log-line.info { border-color: var(--text-muted); color: var(--text-secondary); }

/* Loading & Empty State Placeholders */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    gap: 0.8rem;
    font-size: 0.9rem;
}

.loading-placeholder i {
    font-size: 1.8rem;
    color: var(--neon-blue);
}

/* Dynamic Link Tags / Badges UI Styles */
.link-input-group {
    display: flex;
    gap: 0.5rem;
}

.link-input-group input[type="text"] {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.link-input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.btn-icon-only {
    padding: 0.75rem 1.2rem;
    white-space: nowrap;
}

.sub-pages-list-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 0.8rem;
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    align-content: flex-start;
}

.sub-page-badge {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--neon-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInBadge 0.25s ease-out;
    max-width: 100%;
    word-break: break-all;
}

@keyframes fadeInBadge {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.sub-page-badge span {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.sub-page-badge button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.sub-page-badge button:hover {
    color: var(--neon-orange);
    background: rgba(255, 255, 255, 0.1);
}

.sub-pages-empty {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 50px;
    font-style: italic;
}

/* Footer Section */
.footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: auto;
}

/* ==========================================================================
   TABS BAR & TABS NAVIGATION
   ========================================================================== */
.tabs-bar {
    display: flex;
    gap: 1rem;
    background: rgba(13, 20, 41, 0.45);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 0.65rem;
    backdrop-filter: blur(20px);
    margin-top: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}

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

.tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(213, 0, 249, 0.15));
    border: 1px solid rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

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

/* ==========================================================================
   FORM GRID & DETAILED FORM LAYOUT
   ========================================================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.8rem;
}

@media (max-width: 968px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.settings-group {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-group h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neon-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-group {
    display: flex;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    padding: 0.4rem;
    border-radius: 10px;
}

.radio-label {
    flex: 1;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label span {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.radio-label input:checked + span {
    color: var(--neon-blue);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.range-inputs input {
    flex: 1;
    text-align: center;
}

.range-divider {
    color: var(--text-muted);
    font-weight: 700;
}

.duration-badge {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: var(--neon-blue);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--neon-blue);
    cursor: pointer;
}

.checkbox-align {
    justify-content: center;
    padding-top: 1rem;
}

/* ==========================================================================
   CUSTOM TABLES & LIST CONTROLS
   ========================================================================== */
.list-add-control {
    display: flex;
    gap: 0.5rem;
}

.custom-table-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.4rem;
}

.custom-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.custom-list-table th,
.custom-list-table td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-list-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 600;
}

.custom-list-table td {
    color: var(--text-primary);
}

.subpage-tags-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 0.6rem;
    min-height: 50px;
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

/* ==========================================================================
   HOURLY CHART DISTRIBUTION GRAPH
   ========================================================================== */
.chart-section-wrapper {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.6rem;
}

.chart-header h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-presets {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.chart-presets label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.preset-select {
    width: auto !important;
    padding: 0.4rem 2rem 0.4rem 1rem !important;
    font-size: 0.8rem !important;
}

.chart-visual-container {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    height: 160px;
    display: flex;
    flex-direction: column;
}

.hourly-bars-container {
    display: flex;
    height: 100%;
    align-items: flex-end;
    gap: 4px;
}

.hourly-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
}

.hourly-bar-fill {
    width: 100%;
    background: linear-gradient(to top, var(--neon-blue), var(--neon-purple));
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height 0.4s ease;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
}

.hourly-bar-col:hover .hourly-bar-fill {
    background: linear-gradient(to top, var(--neon-green), var(--neon-blue));
    box-shadow: 0 0 8px var(--neon-green);
}

.hourly-bar-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 0.4rem;
}

.hourly-bar-col:hover::after {
    content: attr(data-val) "%";
    position: absolute;
    bottom: 100%;
    background: #03050c;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    z-index: 10;
}

.chart-edit-toggle {
    display: flex;
    justify-content: flex-end;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--neon-blue);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.manual-hours-inputs {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--panel-border);
    padding: 0.8rem;
    border-radius: 10px;
    animation: slideDown 0.3s ease-out;
}

@media (max-width: 768px) {
    .manual-hours-inputs {
        grid-template-columns: repeat(6, 1fr);
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hour-input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.hour-input-box span {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.hour-input-box input {
    width: 100%;
    padding: 0.3rem !important;
    text-align: center;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
}

.form-action-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   CAMPAIGNS TABLE STYLING
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.custom-table th,
.custom-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 600;
}

.custom-table td {
    color: var(--text-primary);
}

.custom-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Progress bar inside table cell */
.progress-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-green));
    border-radius: 30px;
    width: 0%;
    transition: width 0.5s ease-out;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.status-badge.active {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--neon-green);
}

.status-badge.paused {
    background: rgba(255, 145, 0, 0.08);
    border: 1px solid rgba(255, 145, 0, 0.2);
    color: var(--neon-orange);
}

.status-badge.completed {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--neon-blue);
}

.table-actions {
    display: flex;
    gap: 0.4rem;
}

.btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.btn-icon.play { color: var(--neon-green); border-color: rgba(0, 230, 118, 0.2); }
.btn-icon.pause { color: var(--neon-orange); border-color: rgba(255, 145, 0, 0.2); }
.btn-icon.edit { color: var(--neon-blue); border-color: rgba(0, 229, 255, 0.2); }
.btn-icon.delete { color: #ff5252; border-color: rgba(255, 82, 82, 0.2); }
.btn-icon.detail { color: var(--neon-purple); border-color: rgba(213, 0, 249, 0.2); }

/* ==========================================================================
   KREDİ KAZAN TAB LAYOUT
   ========================================================================== */
.kredi-tab-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.5rem;
}

@media (max-width: 968px) {
    .kredi-tab-grid {
        grid-template-columns: 1fr;
    }
}

.credit-banner {
    background: linear-gradient(135deg, rgba(13, 20, 41, 0.8), rgba(6, 9, 19, 0.9));
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.2rem;
}

.credit-banner span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.2rem;
}

.credit-banner h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neon-blue);
    font-family: var(--font-mono);
}

.node-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1rem;
    border-radius: 12px;
}

.pc-download-info {
    margin-top: 1.2rem;
    background: rgba(213, 0, 249, 0.04);
    border: 1px solid rgba(213, 0, 249, 0.15);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pc-download-info h4 {
    font-size: 0.9rem;
    color: var(--neon-purple);
    font-weight: 600;
}

.pc-download-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Canlı Yürütülen Ziyaretler Listesi */
.small-text {
    font-size: 0.8rem !important;
}

.small-text th,
.small-text td {
    padding: 0.8rem 1rem !important;
}

.btn-link-action {
    color: var(--neon-blue);
    text-decoration: underline;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
}

.btn-link-action:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   MODAL OVERLAY & CARDS Styling
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 5, 12, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: rgba(13, 20, 41, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-card.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: var(--neon-blue);
}

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

.btn-close-modal:hover {
    color: #ff5252;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.scrollable-modal-body {
    max-height: 60vh;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.modal-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

/* Visitor sliders inside modal */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.slider-label span i {
    color: var(--neon-blue);
}

.modal-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    outline: none;
    accent-color: var(--neon-blue);
    cursor: pointer;
}

.slider-total-status {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: var(--neon-blue);
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1.2rem;
}

/* Detail Modal Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.detail-column h4 {
    font-size: 0.9rem;
    color: var(--neon-blue);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.8rem;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 0.4rem;
}

.detail-list li strong {
    color: var(--text-secondary);
}

.detail-list li span {
    color: var(--text-primary);
    text-align: right;
    max-width: 70%;
    word-break: break-all;
}

.browser-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: flex-end;
}

.browser-badge-small {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.65rem;
}

.tags-container-static {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.5rem;
    min-height: 40px;
    max-height: 100px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.2rem;
}

.static-tag {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: var(--neon-blue);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* ==========================================================================
   LANDING PAGE (GUEST-VIEW) AND SAAS COMPONENT STYLES
   ========================================================================== */

.guest-container {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    margin-right: 2rem;
}

.nav-link:hover {
    color: var(--neon-cyan);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 6rem 0;
}

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 0;
    }
}

.hero-content h2 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-hero {
    background: rgba(37, 99, 235, 0.1);
    color: var(--neon-cyan);
    border-color: rgba(0, 229, 255, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
    .hero-actions {
        justify-content: center;
    }
}

.btn-lg {
    padding: 0.95rem 2.2rem;
    font-size: 1rem;
    border-radius: 12px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

@media (max-width: 992px) {
    .hero-stats {
        justify-content: center;
    }
}

.hero-stat-item h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Interactive Preview Card Simulation */
.preview-card-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.preview-card {
    background: #0f1422;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.preview-header {
    background: #161b2c;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.4rem;
}

.preview-dot.red { background: #ef4444; }
.preview-dot.yellow { background: #f59e0b; }
.preview-dot.green { background: #10b981; }

.preview-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-left: 0.8rem;
}

.preview-body {
    padding: 1.5rem;
}

.preview-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.preview-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.8rem;
}

.preview-stat-card span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.preview-stat-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.2rem;
}

.preview-stat-card .pulse-indicator-small {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.3rem;
    box-shadow: 0 0 8px #10b981;
}

.preview-console {
    background: #05070e;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    height: 110px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.con-line {
    word-break: break-all;
}
.con-line.text-blue { color: var(--neon-cyan); }
.con-line.text-green { color: var(--neon-green); }
.con-line.text-muted { color: var(--text-muted); }

/* Features Section */
.features-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card-lp {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2.2rem;
    transition: var(--transition-smooth);
}

.feature-card-lp:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue-glow);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.feat-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--neon-cyan);
    font-size: 1.4rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card-lp h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.feature-card-lp p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: var(--neon-blue);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .pricing-card.featured {
        transform: scale(1);
    }
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    letter-spacing: 1.5px;
}

.price-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.price {
    display: flex;
    align-items: baseline;
    margin-bottom: 2rem;
}

.price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-right: 0.3rem;
}

.price .amount {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.price-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.price-features li i {
    color: var(--neon-green);
    font-size: 0.95rem;
}

.pricing-card .price-footer {
    margin-top: auto;
}

/* Auth Modal Styles */
.auth-switch-prompt button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    margin-left: 0.3rem;
    text-decoration: underline;
}

/* User Email Badge */
.user-email-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer LP */
.footer-lp {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 6rem;
}

/* ==========================================================================
   PRICING SLIDERS AND LIGHT THEME STYLING
   ========================================================================== */

/* Pricing Sliders Styling */
.pricing-sliders {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem;
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

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

.slider-group-box label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
}

.slider-group-box label strong {
    color: #2563eb;
    font-weight: 700;
}

/* Custom pricing range slider input */
.pricing-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #cbd5e1;
    outline: none;
    margin: 0.4rem 0;
}

.pricing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    transition: transform 0.1s ease;
}

.pricing-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.pricing-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    transition: transform 0.1s ease;
}

.pricing-slider::-moz-range-thumb:hover {
    transform: scale(1.25);
}

/* Body Light Theme overrides specifically for the Landing Page */
body.light-theme {
    background: #f8fafc;
    background-image: none;
    color: #0f172a;
}

body.light-theme .guest-container {
    color: #0f172a;
}

body.light-theme .navbar {
    border-bottom: 1px solid #e2e8f0;
}

body.light-theme .nav-link {
    color: #475569;
}

body.light-theme .nav-link:hover {
    color: #2563eb;
}

body.light-theme .brand-text h1 {
    background: linear-gradient(to right, #0f172a, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .brand-text span {
    color: #64748b;
}

body.light-theme .hero-content h2 {
    color: #0f172a;
}

body.light-theme .hero-content p {
    color: #334155;
}

body.light-theme .badge-hero {
    background: rgba(37, 99, 235, 0.06);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.15);
}

body.light-theme .hero-stat-item h3 {
    color: #0f172a;
}

body.light-theme .hero-stat-item p {
    color: #64748b;
}

body.light-theme .features-section {
    border-top: 1px solid #e2e8f0;
}

body.light-theme .section-title h2 {
    color: #0f172a;
}

body.light-theme .section-title p {
    color: #475569;
}

body.light-theme .feature-card-lp {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}

body.light-theme .feature-card-lp:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1), 0 8px 10px -6px rgba(37, 99, 235, 0.1);
}

body.light-theme .feature-card-lp h3 {
    color: #0f172a;
}

body.light-theme .feature-card-lp p {
    color: #475569;
}

body.light-theme .feat-icon {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: #2563eb;
}

body.light-theme .pricing-section {
    border-top: 1px solid #e2e8f0;
}

body.light-theme .pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}

body.light-theme .pricing-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.04);
}

body.light-theme .pricing-card.featured {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.12), 0 10px 10px -5px rgba(37, 99, 235, 0.08);
}

body.light-theme .price-header h3 {
    color: #0f172a;
}

body.light-theme .price .amount {
    color: #0f172a;
}

body.light-theme .price .period {
    color: #64748b;
}

body.light-theme .price-features li {
    color: #334155;
}

body.light-theme .price-features li i {
    color: #10b981;
}

body.light-theme .footer-lp {
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

/* Light Theme Auth Modal Overrides */
body.light-theme .modal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body.light-theme .modal-header {
    border-bottom: 1px solid #f1f5f9;
}

body.light-theme .modal-header h3 {
    color: #0f172a;
}

body.light-theme .modal-header h3 i {
    color: #2563eb;
}

body.light-theme .modal-body {
    color: #334155;
}

body.light-theme .modal-footer {
    border-top: 1px solid #f1f5f9;
}

body.light-theme .form-group label {
    color: #475569;
}

body.light-theme input[type="email"],
body.light-theme input[type="password"] {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

body.light-theme input[type="email"]:focus,
body.light-theme input[type="password"]:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

body.light-theme .auth-switch-prompt {
    color: #64748b;
}

body.light-theme .btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

body.light-theme .btn-secondary:hover {
    background: #e2e8f0;
}

/* Admin tab global metrics layout */
.admin-metrics-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 968px) {
    .admin-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .admin-metrics-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   EKSİK VE TAMAMLAYICI CSS SINIFLARI (CSS FIX v2)
   ========================================================================== */

/* --- Danger Button (Kırmızı / Silme Butonu) --- */
.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

/* --- Secondary Button (İkincil / Gri Buton) --- */
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

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

/* --- Navbar Button Group --- */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Text Utility Classes --- */
.text-muted {
    color: var(--text-muted) !important;
}

.text-blue {
    color: var(--neon-cyan) !important;
}

.text-green {
    color: var(--neon-green) !important;
}

.text-orange {
    color: var(--neon-orange) !important;
}

.text-red {
    color: #ef4444 !important;
}

/* --- User Dashboard Container --- */
.user-dashboard-container {
    width: 100%;
}

/* --- Kredi Tab Grid Columns --- */
.kredi-left-col {
    display: flex;
    flex-direction: column;
}

.kredi-right-col {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* --- Form Panel (Görev Ekleme Paneli) --- */
.form-panel {
    /* Inherits from .panel */
}

/* --- Node Control Panel --- */
.node-control-panel {
    /* Inherits from .panel */
}

/* --- Campaigns Panel --- */
.campaigns-panel {
    /* Inherits from .panel */
}

/* --- Running Visits Panel --- */
.running-visits-panel {
    /* Inherits from .panel */
}

/* --- Visit Transparency Box --- */
.visit-transparency-box {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px dashed rgba(0, 229, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* --- Transparency Data --- */
.transparency-data {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* --- Detail Sub-Sections (Detay Modalı) --- */
.detail-sub-sections {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- Detail Chart Wrapper --- */
.detail-chart-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   IMPROVED RESPONSIVE FIXES
   ========================================================================== */
@media (max-width: 1200px) {
    .kredi-tab-grid {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 900px) {
    .kredi-tab-grid {
        grid-template-columns: 1fr;
    }
    .kredi-left-col,
    .kredi-right-col {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.2rem;
    }
    .header-actions {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    .brand-text h1 {
        font-size: 1.25rem;
    }
    .tabs-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .tab-btn {
        flex: 1 1 auto;
        min-width: 140px;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    .nav-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 1rem;
        gap: 1rem;
    }
    .header-actions .user-email-badge {
        display: none;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem;
    }
    .metric-card {
        padding: 0.6rem;
    }
    .metric-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .metric-data h3 {
        font-size: 1rem;
    }
}

/* Segmented pills for traffic source selection */
.source-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.source-pill {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--panel-border);
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.source-pill:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.source-pill.active {
    background-color: var(--th-orange);
    color: #ffffff;
    border-color: var(--th-orange);
    box-shadow: 0 0 10px rgba(36, 145, 219, 0.3);
}

