/**
 * Haber Botu v4.0 — "Tactile Studio Edition"
 * Pastel Matte Surfaces, Multi-Layered Soft Shadows, Double-Bezel HD Architecture
 */

/* ==========================================================================
   1. PASTEL MATTE THEME ENGINE (4 SIGNATURE STUDIO PALETTES)
   ========================================================================== */

/* Theme 1: Nordic Slate (Default — Matte Charcoal & Pastel Periwinkle/Indigo) */
:root,
[data-theme="cyber"],
[data-theme="dark"] {
    --bg-canvas: #15171c;
    --bg-primary: #181b21;
    --bg-secondary: #1e2229;
    --bg-card: #21252d;
    --bg-card-hover: #262b34;
    --bg-recessed: #13151a;
    --bg-chassis: #1a1d23;
    --bg-sidebar: #1c2027;
    --bg-input: #14171c;

    /* Pastel Matte Accents (Soft Periwinkle / Muted Slate Indigo) */
    --accent: #828df8;
    --accent-strong: #6875e8;
    --accent-secondary: #76b5c5;
    --accent-hover: #949ef9;
    --accent-light: rgba(130, 141, 248, 0.11);
    --accent-subtle: rgba(130, 141, 248, 0.06);
    --accent-text: #ffffff;

    /* Matte Button Surface (Satin Finish, No Neon Gradient) */
    --btn-matte-bg: linear-gradient(180deg, #7682eb 0%, #636fd9 100%);
    --btn-matte-hover: linear-gradient(180deg, #838ef0 0%, #6f7be0 100%);
    --btn-matte-border: rgba(255, 255, 255, 0.16);
    --btn-matte-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.22) inset, 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 14px -3px rgba(99, 111, 217, 0.35);
    --gradient-brand: linear-gradient(180deg, #7682eb 0%, #636fd9 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);

    /* Typography */
    --text-primary: #e8eaed;
    --text-secondary: #9ba1ae;
    --text-muted: #686f7d;

    /* HD Borders & Bevels */
    --border-color: rgba(255, 255, 255, 0.065);
    --border-strong: rgba(255, 255, 255, 0.11);
    --border-dark: rgba(0, 0, 0, 0.55);
    --border-accent: rgba(130, 141, 248, 0.32);
    --bevel-top: rgba(255, 255, 255, 0.065);

    /* Multi-Layered Tactile Shadows (HD Depth) */
    --shadow-card:
        0 1px 0 0 rgba(255, 255, 255, 0.055) inset,
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 4px 8px -2px rgba(0, 0, 0, 0.32),
        0 16px 32px -8px rgba(0, 0, 0, 0.42);
    --shadow-card-hover:
        0 1px 0 0 rgba(255, 255, 255, 0.09) inset,
        0 0 0 1px rgba(130, 141, 248, 0.28),
        0 8px 16px -4px rgba(0, 0, 0, 0.38),
        0 24px 48px -12px rgba(0, 0, 0, 0.52);
    --shadow-recessed:
        inset 0 2px 4px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.045);
    --shadow-floating:
        0 1px 0 0 rgba(255, 255, 255, 0.07) inset,
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 12px 28px -6px rgba(0, 0, 0, 0.48),
        0 28px 60px -12px rgba(0, 0, 0, 0.55);

    /* Pastel Matte Status Colors */
    --success: #68b892;
    --success-bg: rgba(104, 184, 146, 0.12);
    --warning: #d9a55b;
    --warning-bg: rgba(217, 165, 91, 0.12);
    --danger: #d9737a;
    --danger-bg: rgba(217, 115, 122, 0.12);
    --info: #73a8d9;
    --info-bg: rgba(115, 168, 217, 0.12);

    /* Subtle Studio Lighting (Matte Vignette) */
    --studio-light: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(130, 141, 248, 0.07), transparent 70%);
}

/* Theme 2: Botanical Sage (Matte Olive-Slate & Pastel Sage Green) */
[data-theme="emerald"] {
    --bg-canvas: #141816;
    --bg-primary: #171c1a;
    --bg-secondary: #1d2320;
    --bg-card: #202724;
    --bg-card-hover: #262e2b;
    --bg-recessed: #111513;
    --bg-chassis: #191f1c;
    --bg-sidebar: #1b211e;
    --bg-input: #131715;

    --accent: #74b898;
    --accent-strong: #589e7d;
    --accent-secondary: #c9ab72;
    --accent-hover: #86c4a7;
    --accent-light: rgba(116, 184, 152, 0.11);
    --accent-subtle: rgba(116, 184, 152, 0.06);
    --accent-text: #ffffff;

    --btn-matte-bg: linear-gradient(180deg, #62a887 0%, #4e9172 100%);
    --btn-matte-hover: linear-gradient(180deg, #6fb594 0%, #599e7e 100%);
    --btn-matte-border: rgba(255, 255, 255, 0.16);
    --btn-matte-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.22) inset, 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 14px -3px rgba(78, 145, 114, 0.35);

    --text-primary: #e6ece9;
    --text-secondary: #98a69f;
    --text-muted: #66756e;

    --border-accent: rgba(116, 184, 152, 0.32);
    --studio-light: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(116, 184, 152, 0.07), transparent 70%);
}

/* Theme 3: Terracotta Clay (Matte Warm Espresso & Pastel Coral/Terracotta) */
[data-theme="crimson"] {
    --bg-canvas: #191617;
    --bg-primary: #1d191a;
    --bg-secondary: #241f21;
    --bg-card: #282224;
    --bg-card-hover: #2f282b;
    --bg-recessed: #141213;
    --bg-chassis: #201c1d;
    --bg-sidebar: #211d1e;
    --bg-input: #161314;

    --accent: #d98276;
    --accent-strong: #c26a5e;
    --accent-secondary: #d9a773;
    --accent-hover: #e29186;
    --accent-light: rgba(217, 130, 118, 0.12);
    --accent-subtle: rgba(217, 130, 118, 0.06);
    --accent-text: #ffffff;

    --btn-matte-bg: linear-gradient(180deg, #cc7468 0%, #b55e52 100%);
    --btn-matte-hover: linear-gradient(180deg, #d68175 0%, #c2695d 100%);
    --btn-matte-border: rgba(255, 255, 255, 0.16);
    --btn-matte-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.22) inset, 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 14px -3px rgba(181, 94, 82, 0.35);

    --text-primary: #ede7e6;
    --text-secondary: #a89c9a;
    --text-muted: #756967;

    --border-accent: rgba(217, 130, 118, 0.32);
    --studio-light: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(217, 130, 118, 0.07), transparent 70%);
}

/* Theme 4: Warm Cashmere / Daylight Studio (Matte Stone & Pastel Slate Blue) */
[data-theme="light"] {
    --bg-canvas: #ebe9e2;
    --bg-primary: #f2f0ea;
    --bg-secondary: #e5e2da;
    --bg-card: #f9f8f5;
    --bg-card-hover: #ffffff;
    --bg-recessed: #e3e0d7;
    --bg-chassis: #e6e3da;
    --bg-sidebar: #f5f4ef;
    --bg-input: #ece9e1;

    --accent: #556485;
    --accent-strong: #455373;
    --accent-secondary: #688a7d;
    --accent-hover: #647496;
    --accent-light: rgba(85, 100, 133, 0.10);
    --accent-subtle: rgba(85, 100, 133, 0.05);
    --accent-text: #ffffff;

    --btn-matte-bg: linear-gradient(180deg, #5c6c8f 0%, #495878 100%);
    --btn-matte-hover: linear-gradient(180deg, #67789c 0%, #536385 100%);
    --btn-matte-border: rgba(255, 255, 255, 0.25);
    --btn-matte-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.28) inset, 0 2px 4px rgba(30, 32, 38, 0.14), 0 6px 14px -3px rgba(73, 88, 120, 0.26);

    --text-primary: #1f2229;
    --text-secondary: #5a606d;
    --text-muted: #878d99;

    --border-color: rgba(31, 34, 41, 0.08);
    --border-strong: rgba(31, 34, 41, 0.13);
    --border-dark: rgba(31, 34, 41, 0.11);
    --border-accent: rgba(85, 100, 133, 0.30);
    --bevel-top: rgba(255, 255, 255, 0.9);

    --shadow-card:
        0 1px 0 0 #ffffff inset,
        0 0 0 1px rgba(31, 34, 41, 0.07),
        0 3px 6px -1px rgba(31, 34, 41, 0.05),
        0 12px 24px -6px rgba(31, 34, 41, 0.07);
    --shadow-card-hover:
        0 1px 0 0 #ffffff inset,
        0 0 0 1px rgba(85, 100, 133, 0.25),
        0 6px 12px -2px rgba(31, 34, 41, 0.07),
        0 20px 36px -8px rgba(31, 34, 41, 0.11);
    --shadow-recessed:
        inset 0 2px 4px rgba(31, 34, 41, 0.07),
        inset 0 0 0 1px rgba(31, 34, 41, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8);
    --shadow-floating:
        0 1px 0 0 #ffffff inset,
        0 0 0 1px rgba(31, 34, 41, 0.09),
        0 12px 28px -6px rgba(31, 34, 41, 0.09),
        0 24px 48px -12px rgba(31, 34, 41, 0.12);

    --success: #3c8c67;
    --success-bg: rgba(60, 140, 103, 0.11);
    --warning: #b87d2e;
    --warning-bg: rgba(184, 125, 46, 0.11);
    --danger: #bf4d56;
    --danger-bg: rgba(191, 77, 86, 0.11);
    --info: #467bb0;
    --info-bg: rgba(70, 123, 176, 0.11);

    --studio-light: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 255, 255, 0.7), transparent 70%);
}

/* ==========================================================================
   2. GLOBAL RESET, TYPOGRAPHY & MATTE CANVAS
   ========================================================================== */
:root {
    --sidebar-width: 264px;
    --sidebar-collapsed-width: 78px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-sm: 9px;
    --transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, transform 0.14s ease, opacity 0.14s ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    background-image: var(--studio-light);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: var(--font-display);
    letter-spacing: -0.022em;
}

.font-mono {
    font-family: var(--font-mono);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* Custom Matte Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: var(--bg-recessed);
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   3. FLOATING TACTILE DOCK SIDEBAR & APP SHELL
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-floating);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 14px;
    left: 14px;
    bottom: 14px;
    z-index: 100;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
    overflow: hidden;
}

.sidebar-header {
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text-primary);
    min-width: 0;
}

.logo-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-strong);
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--bg-recessed);
    color: var(--text-secondary);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-recessed);
}

.dock-collapse-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.dock-collapse-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
}

.sidebar-nav {
    flex: 1;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-group-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    padding: 14px 12px 5px;
    white-space: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.89rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-link .nav-icon-wrap {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.nav-link.active {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-card);
    border-color: var(--border-strong);
}

.nav-link.active .nav-icon-wrap {
    color: var(--accent);
    opacity: 1;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 24%;
    height: 52%;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-recessed);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-logout {
    color: var(--text-muted);
    padding: 7px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-logout:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.version-note {
    padding: 7px 14px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-recessed);
    border-top: 1px solid var(--border-color);
    letter-spacing: 0.06em;
}

/* Collapsed Dock Mode */
body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}
body.sidebar-collapsed .logo-text,
body.sidebar-collapsed .logo-badge,
body.sidebar-collapsed .nav-group-title,
body.sidebar-collapsed .nav-link span:not(.nav-icon-wrap),
body.sidebar-collapsed .user-details,
body.sidebar-collapsed .version-note span {
    display: none !important;
}
body.sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 16px 8px;
}
body.sidebar-collapsed .logo {
    display: none;
}
body.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 11px;
}
body.sidebar-collapsed .sidebar-footer {
    flex-direction: column;
    gap: 8px;
    padding: 10px 6px;
}
body.sidebar-collapsed .main-content {
    margin-left: calc(var(--sidebar-collapsed-width) + 28px);
}

/* ==========================================================================
   4. MAIN CONTENT & TACTILE TOP COMMAND BAR
   ========================================================================== */
.main-content {
    flex: 1;
    margin-left: calc(var(--sidebar-width) + 28px);
    padding: 14px 26px 44px 10px;
    max-width: 1680px;
    transition: margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px;
    margin-bottom: 24px;
    background: var(--bg-sidebar);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 14px;
    z-index: 85;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Recessed Spotlight Search Bar */
.spotlight-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 7px 13px;
    min-width: 250px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    box-shadow: var(--shadow-recessed);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.spotlight-trigger:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.kbd-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Matte System Status Pill */
.live-pulse-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-recessed);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px var(--success-bg);
}

/* Pastel Matte Theme Switcher Dock */
.theme-switcher-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    box-shadow: var(--shadow-recessed);
}

.theme-dot-btn {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.theme-dot-btn:hover {
    transform: translateY(-1px);
}

.theme-dot-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--accent-light), 0 2px 4px rgba(0, 0, 0, 0.4);
}

.top-bar-btn {
    background: var(--btn-matte-bg);
    color: #fff;
    border: 1px solid var(--btn-matte-border);
    box-shadow: var(--btn-matte-shadow);
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.top-bar-btn:hover {
    background: var(--btn-matte-hover);
    transform: translateY(-1px);
}

.notification-icon {
    position: relative;
    color: var(--text-secondary);
    padding: 7px;
    border-radius: 9px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.notification-icon:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   5. PAGE HEADERS & EXECUTIVE COMMAND BANNER
   ========================================================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 14px;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 2px;
}

/* Matte Studio Hero Banner */
.hero-command-banner {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.hero-command-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.hero-command-left h1 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.hero-command-left p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 640px;
}

.hero-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   6. BENTO STATS GRID & MATTE TACTILE CARDS
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-card-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-recessed);
    box-shadow: var(--shadow-recessed);
}

.stat-total .stat-icon, .stat-icon.blue { color: var(--accent); }
.stat-pending .stat-icon, .stat-icon.yellow { color: var(--warning); }
.stat-published .stat-icon, .stat-icon.green { color: var(--success); }
.stat-feeds .stat-icon, .stat-icon.purple { color: var(--accent-secondary); }

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

.stat-number,
.stat-info h3 {
    font-family: var(--font-mono);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.stat-label,
.stat-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 3px;
}

.hero-title {
    font-size: 1.48rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 650px;
}

.mono-metric {
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

/* Bento 12-Column Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 22px;
}

.bento-col-8 { grid-column: span 8; }
.bento-col-7 { grid-column: span 7; }
.bento-col-6 { grid-column: span 6; }
.bento-col-5 { grid-column: span 5; }
.bento-col-4 { grid-column: span 4; }
.bento-col-12 { grid-column: span 12; }

/* Tactile Matte Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 22px;
    transition: var(--transition);
}

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

.card-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
}

/* ==========================================================================
   7. ARTICLES: MAGAZINE GRID & SEGMENTED TABS
   ========================================================================== */
.segmented-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--bg-recessed);
    border-radius: 11px;
    box-shadow: var(--shadow-recessed);
    flex-wrap: wrap;
}

.segmented-tab {
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.segmented-tab:hover {
    color: var(--text-primary);
}

.segmented-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
}

.view-mode-switcher {
    display: inline-flex;
    background: var(--bg-recessed);
    border-radius: 9px;
    padding: 3px;
    gap: 3px;
    box-shadow: var(--shadow-recessed);
}

.view-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.view-mode-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Magazine Card Grid */
.articles-magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
    padding: 4px 0 14px;
}

.magazine-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.magazine-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-card-hover);
}

.magazine-card-media {
    position: relative;
    height: 176px;
    background: var(--bg-recessed);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.magazine-card-media::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 68px;
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.68) 0%, rgba(8, 12, 22, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.magazine-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.magazine-card:hover .magazine-card-media img {
    transform: scale(1.03);
}

.magazine-card-media .magazine-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.7rem;
    background: var(--bg-recessed);
}

.magazine-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.magazine-card-body {
    padding: 15px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.magazine-card-title {
    font-family: var(--font-display);
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.44;
    min-height: 2.88em;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazine-card-title a {
    color: inherit;
    text-decoration: none;
}
.magazine-card-title a:hover {
    color: var(--accent);
}

.magazine-card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.magazine-metrics-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--bg-recessed);
    box-shadow: var(--shadow-recessed);
}

.magazine-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 5px;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap;
}

.magazine-social-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-color);
}

.magazine-social-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.magazine-social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    line-height: 1;
}

.magazine-social-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 6px;
    opacity: 0.24;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.magazine-social-dot.shared {
    opacity: 1;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.magazine-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.magazine-card-footer .btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    padding: 7px 10px;
    font-size: 0.8rem;
}

/* ==========================================================================
   8. APP STORE MARKETPLACE GRID (WP_PLUGINS.PHP)
   ========================================================================== */
.plugin-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.plugin-store-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

.plugin-store-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-strong);
}

.plugin-store-card.is-enabled {
    background: var(--bg-card);
    border-color: var(--border-accent);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px var(--border-accent),
        0 8px 20px -4px rgba(0, 0, 0, 0.35);
}

.plugin-store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin-bottom: 14px;
}

.plugin-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--bg-recessed);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-recessed);
    color: var(--accent);
    flex-shrink: 0;
}

.plugin-icon-box svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.plugin-store-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.36;
    color: var(--text-primary);
    min-height: 2.72em;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.plugin-store-title .plugin-title-text {
    flex: 1;
    min-width: 0;
}

.plugin-store-title .badge {
    flex-shrink: 0;
    margin-top: 1px;
}

.plugin-store-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.54;
    margin: 0;
    flex: 1 1 auto;
}

.plugin-config-drawer {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--border-color);
}

/* App Store Category Filter Nav & Section Headers */
.plugin-cat-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 12px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-recessed);
}

.plugin-cat-tab {
    height: 35px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.plugin-cat-tab svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.plugin-cat-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.plugin-cat-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card);
}

.plugin-cat-count {
    font-family: var(--font-mono);
    font-size: 0.69rem;
    padding: 1px 6px;
    border-radius: 99px;
    background: var(--bg-recessed);
    color: var(--accent);
    border: 1px solid var(--border-color);
}

.plugin-section-card {
    margin-bottom: 22px;
}

.plugin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.plugin-section-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plugin-section-emblem {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.plugin-section-emblem svg {
    width: 20px;
    height: 20px;
}

.plugin-section-head h2 {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.plugin-section-sub {
    margin: 2px 0 0 0;
    font-size: 0.79rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   9. TABLES, FORMS, RECESSED INPUTS & TACTILE BUTTONS
   ========================================================================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--bg-recessed);
    box-shadow: var(--shadow-recessed);
    padding: 2px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(0, 0, 0, 0.14);
}

th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.87rem;
    vertical-align: middle;
}

tbody tr {
    transition: var(--transition);
    background: var(--bg-card);
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

/* Recessed Form Inputs */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="search"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 10px 13px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-recessed);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    transition: var(--transition);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-recessed), 0 0 0 3px var(--accent-light);
}

select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Tactile Matte Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--btn-matte-bg);
    color: #ffffff !important;
    border-color: var(--btn-matte-border);
    box-shadow: var(--btn-matte-shadow);
}

.btn-primary:hover {
    background: var(--btn-matte-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-strong);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(217, 115, 122, 0.28);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff !important;
}

.btn-sm {
    padding: 6px 11px;
    font-size: 0.77rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Pastel Matte Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.71rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    vertical-align: middle;
}

.badge .hb-3d-ico {
    width: 1.16em;
    height: 1.16em;
    margin-right: 0.12em;
    vertical-align: middle;
}

.badge-active, .badge-published {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(104, 184, 146, 0.25);
}

.badge-inactive, .badge-rejected {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(217, 115, 122, 0.25);
}

.badge-admin {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--border-accent);
}

.badge-editor {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(217, 165, 91, 0.25);
}

.badge-demo {
    background: var(--bg-recessed);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* Tactile Matte Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 23px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--bg-recessed);
    box-shadow: var(--shadow-recessed);
    transition: .22s;
    border-radius: 99px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: .22s;
    border-radius: 50%;
}
input:checked + .slider {
    background: var(--accent-strong);
}
input:checked + .slider:before {
    transform: translateX(19px);
    background-color: #fff;
}

/* ==========================================================================
   10. COMMAND PALETTE (CTRL+K SPOTLIGHT MODAL)
   ========================================================================== */
.cmd-palette-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 12, 16, 0.72);
    backdrop-filter: blur(6px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.cmd-palette-backdrop.open,
.cmd-palette-backdrop.show {
    display: flex;
}

.cmd-palette {
    width: 92%;
    max-width: 600px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-floating);
    overflow: hidden;
}

.cmd-palette-header,
.cmd-input-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-recessed);
}

.cmd-palette-header input,
.cmd-input-header input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--text-primary);
}

.cmd-palette-body,
.cmd-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 13px;
    border-radius: 9px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.86rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.cmd-item:hover,
.cmd-item.selected {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ==========================================================================
   10.5. MODALS, RICH TEXT TOOLBAR, SPLIT-VIEW & TOASTS
   ========================================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(8, 11, 18, 0.76);
    backdrop-filter: blur(9px) saturate(125%);
    -webkit-backdrop-filter: blur(9px) saturate(125%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-backdrop.open,
.modal-backdrop.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 26px;
    width: 92%;
    max-width: 820px;
    box-shadow: var(--shadow-floating);
    transform: translateY(-10px) scale(0.99);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-backdrop.open .modal,
.modal-backdrop.show .modal {
    transform: translateY(0) scale(1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.editor-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.editor-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent);
}

.split-view-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.split-view-container.active {
    grid-template-columns: 1fr 1fr;
}

.original-compare-pane {
    display: none;
    background: var(--bg-recessed);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-recessed);
    padding: 14px;
    max-height: 360px;
    overflow-y: auto;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.split-view-container.active .original-compare-pane {
    display: block;
}

.app-toast {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 11px !important;
    box-shadow: var(--shadow-floating) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    padding: 13px 18px !important;
}
.app-toast.toast-success { border-left: 4px solid var(--success) !important; }
.app-toast.toast-error, .app-toast.toast-danger { border-left: 4px solid var(--danger) !important; }
.app-toast.toast-warning { border-left: 4px solid var(--warning) !important; }
.app-toast.toast-info { border-left: 4px solid var(--info) !important; }

/* ==========================================================================
   11. ULTRA-PROFESSIONAL ARCHITECTURAL LOGIN VAULT (LOGIN.PHP)
   ========================================================================== */
.login-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-canvas);
    background-image:
        var(--studio-light),
        linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    position: relative;
    overflow-x: hidden;
}

[data-theme="light"] .login-body {
    background-image:
        var(--studio-light),
        linear-gradient(to right, rgba(31, 34, 41, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(31, 34, 41, 0.03) 1px, transparent 1px);
}

/* Login Top Architectural Bar */
.login-topbar {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 10;
}

.login-brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand-emblem {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.login-brand-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.login-brand-sub {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Center Double-Bezel Hardware Vault */
.login-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    z-index: 10;
}

.login-vault-chassis {
    width: 100%;
    max-width: 900px;
    padding: 8px;
    border-radius: 24px;
    background: var(--bg-chassis);
    border: 1px solid var(--border-strong);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 24px 48px -12px rgba(0, 0, 0, 0.52),
        0 48px 96px -24px rgba(0, 0, 0, 0.62);
}

[data-theme="light"] .login-vault-chassis {
    box-shadow:
        0 1px 0 0 #ffffff inset,
        0 0 0 1px rgba(31, 34, 41, 0.1),
        0 20px 40px -12px rgba(31, 34, 41, 0.10),
        0 44px 88px -20px rgba(31, 34, 41, 0.14);
}

.login-vault-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border-radius: 17px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

/* Left Telemetry & Identity Plate */
.login-telemetry-plate {
    background: var(--bg-recessed);
    padding: 40px 36px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.login-telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 7px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 22px;
}

.login-telemetry-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.login-telemetry-lead {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Precision Architectural Spec List */
.login-spec-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.login-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.login-spec-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.login-spec-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--bg-recessed);
    box-shadow: var(--shadow-recessed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.login-spec-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.login-spec-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.login-spec-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--success);
    background: var(--success-bg);
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid rgba(104, 184, 146, 0.22);
}

.login-telemetry-footer {
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Right Authentication Vault Plate */
.login-auth-plate {
    padding: 42px 38px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-auth-header {
    margin-bottom: 26px;
    text-align: center;
}

.login-auth-crest {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: var(--bg-recessed);
    box-shadow: var(--shadow-recessed);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    padding: 11px;
}

.login-auth-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.login-auth-header p {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

/* Recessed Input Group with Leading SVG Icon */
.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: var(--transition);
}

.login-input-wrap input {
    padding-left: 38px !important;
    padding-right: 40px !important;
    height: 42px;
}

.login-input-wrap:focus-within .login-input-icon {
    color: var(--accent);
}

.login-pw-toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.login-pw-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.login-security-strip {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.73rem;
    color: var(--text-muted);
}

.login-bottombar {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   12. ALERTS, PAGINATION & UTILITIES
   ========================================================================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(217, 115, 122, 0.3);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(104, 184, 146, 0.3);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(217, 165, 91, 0.3);
}

.demo-banner {
    background: var(--warning-bg);
    border: 1px solid rgba(217, 165, 91, 0.32);
    color: var(--warning);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 46px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 12px;
    opacity: 0.45;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.py-4 { padding-top: 20px; padding-bottom: 20px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 22px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 22px; }

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.suggestion-area {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggestion-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-strong);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-tag:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.menu-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px;
    border-radius: 8px;
    cursor: pointer;
}

/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
    .login-vault-inner {
        grid-template-columns: 1fr;
    }
    .login-telemetry-plate {
        display: none;
    }
    .login-vault-chassis {
        max-width: 460px;
    }
    .sidebar {
        transform: translateX(-115%);
        top: 0;
        left: 0;
        bottom: 0;
        border-radius: 0 18px 18px 0;
    }
    .sidebar.open,
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content,
    body.sidebar-collapsed .main-content {
        margin-left: 0;
        padding: 12px 14px 36px;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .dashboard-grid,
    .form-row,
    .split-view-container.active {
        grid-template-columns: 1fr;
    }
    .bento-col-8,
    .bento-col-7,
    .bento-col-6,
    .bento-col-5,
    .bento-col-4 {
        grid-column: span 12;
    }
    .spotlight-trigger {
        min-width: auto;
    }
    .spotlight-trigger span:first-child {
        display: none;
    }
}

/* ==========================================================================
   14. 3D VOLUMETRIC STUDIO & PIXAR/VISION-OS TACTILE DEPTH ENGINE (v4.5 60FPS)
   Zero-Jitter GPU Composited Architecture — No SVG drop-shadow filters,
   No Layout Shift (CLS=0), No Overshoot Vibration.
   ========================================================================== */

/* 14.1 3D Volumetric Cards & Surfaces */
.card,
.stat-card,
.magazine-card,
.plugin-store-card,
.hero-command-banner,
.login-vault-chassis {
    background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 45%);
    border: 1px solid var(--border-strong);
}

[data-theme="light"] .card,
[data-theme="light"] .stat-card,
[data-theme="light"] .magazine-card,
[data-theme="light"] .plugin-store-card,
[data-theme="light"] .hero-command-banner {
    background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 50%);
}

/* 14.2 3D Bombeli Squircle İkon Kapsülleri (Sıfır GPU Filtre Yükü, Saf 60FPS) */
.stat-icon,
.plugin-icon-box,
.logo-icon-box,
.user-avatar,
.login-spec-icon {
    position: relative;
    border-radius: 13px !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 55%, rgba(0, 0, 0, 0.24) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow:
        inset 0 1.5px 1px rgba(255, 255, 255, 0.24),
        inset 0 -2.5px 4px rgba(0, 0, 0, 0.36),
        0 4px 10px -2px rgba(0, 0, 0, 0.32) !important;
    transition: transform 0.15s ease-out !important;
}

.stat-card:hover .stat-icon,
.plugin-store-card:hover .plugin-icon-box {
    transform: translateY(-1.5px);
}

/* Renkli 3D Bombeli İstatistik Kapsülleri */
.stat-icon.blue {
    background: linear-gradient(145deg, rgba(130, 141, 248, 0.28) 0%, rgba(130, 141, 248, 0.08) 60%, rgba(0, 0, 0, 0.28) 100%) !important;
    border-color: var(--border-accent) !important;
    color: var(--accent) !important;
}
.stat-icon.green {
    background: linear-gradient(145deg, rgba(104, 184, 146, 0.28) 0%, rgba(104, 184, 146, 0.08) 60%, rgba(0, 0, 0, 0.28) 100%) !important;
    border-color: rgba(104, 184, 146, 0.42) !important;
    color: var(--success) !important;
}
.stat-icon.yellow {
    background: linear-gradient(145deg, rgba(217, 165, 91, 0.28) 0%, rgba(217, 165, 91, 0.08) 60%, rgba(0, 0, 0, 0.28) 100%) !important;
    border-color: rgba(217, 165, 91, 0.42) !important;
    color: var(--warning) !important;
}
.stat-icon.purple {
    background: linear-gradient(145deg, rgba(118, 181, 197, 0.28) 0%, rgba(118, 181, 197, 0.08) 60%, rgba(0, 0, 0, 0.28) 100%) !important;
    border-color: rgba(118, 181, 197, 0.42) !important;
    color: var(--accent-secondary) !important;
}

/* Sol Menüde 3D Yuvarlatılmış İkon Soketi */
.nav-link .nav-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: background-color 0.14s ease, border-color 0.14s ease;
    flex-shrink: 0;
}

.nav-link:hover .nav-icon-wrap {
    border-color: var(--border-accent);
}

.nav-link.active .nav-icon-wrap {
    background: var(--btn-matte-bg);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 14.3 3D Fiziksel Stüdyo Tuşları (Titremesiz, Akıcı 60FPS Keycaps) */
.btn,
.top-bar-btn,
.editor-btn {
    position: relative;
    border-radius: 9.5px;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 0 rgba(0, 0, 0, 0.24),
        0 3px 8px -2px rgba(0, 0, 0, 0.28);
    transition: transform 0.12s ease-out, background-color 0.14s ease, border-color 0.14s ease !important;
}

.btn-success {
    background: linear-gradient(180deg, #52b788 0%, #3b966b 100%);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-success:hover {
    background: linear-gradient(180deg, #5ec494 0%, #44a376 100%);
}

.btn-outline {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.1) 100%), var(--bg-card);
    border-color: var(--border-strong);
}

[data-theme="light"] .btn-outline {
    background: linear-gradient(180deg, #ffffff 0%, #ece9e0 100%);
}

.btn:hover,
.top-bar-btn:hover {
    transform: translateY(-1px);
}

.btn:active,
.top-bar-btn:active {
    transform: translateY(0.5px) !important;
}

/* 14.4 Sıfır Kaymalı (CLS=0) 3D Duotone Stüdyo İkon Rozetleri (.hb-3d-ico) */
.hb-3d-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.32em;
    height: 1.32em;
    border-radius: 0.36em;
    margin-right: 0.28em;
    vertical-align: -0.22em;
    line-height: 1;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 55%, rgba(0, 0, 0, 0.22) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: var(--accent);
}

.hb-3d-ico svg {
    width: 0.82em;
    height: 0.82em;
    display: block;
}

.btn-primary .hb-3d-ico,
.btn-success .hb-3d-ico {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

/* 3D İkon Renk Varyasyonları */
.hb-3d-ico.ico-amber {
    color: #fbbf24;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.24) 0%, rgba(217, 119, 6, 0.08) 100%);
    border-color: rgba(251, 191, 36, 0.32);
}
.hb-3d-ico.ico-emerald {
    color: #34d399;
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.24) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(52, 211, 153, 0.32);
}
.hb-3d-ico.ico-crimson {
    color: #f87171;
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.24) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-color: rgba(248, 113, 113, 0.32);
}
.hb-3d-ico.ico-cyan {
    color: #38bdf8;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.24) 0%, rgba(14, 165, 233, 0.08) 100%);
    border-color: rgba(56, 189, 248, 0.32);
}
.hb-3d-ico.ico-violet {
    color: #a78bfa;
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.24) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-color: rgba(167, 139, 250, 0.32);
}

[data-theme="light"] .hb-3d-ico.ico-amber { color: #b45309; }
[data-theme="light"] .hb-3d-ico.ico-emerald { color: #047857; }
[data-theme="light"] .hb-3d-ico.ico-crimson { color: #b91c1c; }
[data-theme="light"] .hb-3d-ico.ico-cyan { color: #0369a1; }
[data-theme="light"] .hb-3d-ico.ico-violet { color: #5b21b6; }

/* 14.5 3D LED Kapsül Rozetler (.badge) & Duotone Menü Katmanı */
.badge {
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-icon-wrap svg rect,
.nav-icon-wrap svg circle,
.nav-icon-wrap svg polygon,
.nav-icon-wrap svg ellipse {
    fill: currentColor;
    fill-opacity: 0.22;
}

.plugin-icon-box .hb-3d-ico {
    width: 100%;
    height: 100%;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.plugin-icon-box .hb-3d-ico svg {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   14.6. STUDIO DATA TABLES & ACTION COLUMN ANTI-SHIFT GUARD
   ========================================================================== */
td:last-child .btn-group,
.scraper-actions-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

/* ==========================================================================
   15. BRANDED MANUAL QUICK-SHARE DOCK (ZERO QUOTA POPUP SHARING)
   ========================================================================== */
.magazine-quickshare-dock {
    margin-top: 2px;
    padding: 8px 10px 9px;
    border-radius: 10px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: border-color 0.2s ease;
}

.magazine-card:hover .magazine-quickshare-dock {
    border-color: var(--border-strong);
}

.qs-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.qs-title-label {
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.qs-state-pill {
    font-size: 0.63rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 99px;
    letter-spacing: 0.2px;
}

.qs-state-pill.is-live {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.qs-state-pill.is-pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.qs-buttons-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

.qs-dock-unpublished .qs-buttons-row {
    opacity: 0.58;
    transition: opacity 0.2s ease;
}

.qs-dock-unpublished:hover .qs-buttons-row {
    opacity: 0.95;
}

.qs-brand-btn {
    position: relative;
    height: 30px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, filter 0.16s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.qs-brand-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    pointer-events: none;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.qs-brand-btn:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.08);
    z-index: 2;
}

.qs-brand-btn:active {
    transform: translateY(0) scale(0.98);
}

.qs-brand-btn.qs-fb {
    background: linear-gradient(145deg, #2b86ff 0%, #1877F2 100%);
}
.qs-brand-btn.qs-fb:hover {
    box-shadow: 0 6px 14px rgba(24, 119, 242, 0.45);
}

.qs-brand-btn.qs-nsosyal {
    background: linear-gradient(135deg, #E30A17 0%, #c8102e 50%, #0099cc 100%);
}
.qs-brand-btn.qs-nsosyal:hover {
    box-shadow: 0 6px 14px rgba(227, 10, 23, 0.45);
}

.qs-brand-btn.qs-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 62%, #285AEB 92%);
}
.qs-brand-btn.qs-ig:hover {
    box-shadow: 0 6px 14px rgba(214, 36, 159, 0.45);
}

.qs-brand-btn.qs-x {
    background: linear-gradient(145deg, #242b35 0%, #0f1419 100%);
    border-color: rgba(255, 255, 255, 0.24);
}
.qs-brand-btn.qs-x:hover {
    box-shadow: 0 6px 14px rgba(15, 20, 25, 0.55);
}

.qs-brand-btn.qs-wa {
    background: linear-gradient(145deg, #2ee370 0%, #1ebe57 100%);
}
.qs-brand-btn.qs-wa:hover {
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.45);
}

.qs-brand-btn.qs-tg {
    background: linear-gradient(145deg, #2db2f0 0%, #1c93cc 100%);
}
.qs-brand-btn.qs-tg:hover {
    box-shadow: 0 6px 14px rgba(34, 158, 217, 0.45);
}

.qs-brand-btn.qs-li {
    background: linear-gradient(145deg, #167ee0 0%, #0A66C2 100%);
}
.qs-brand-btn.qs-li:hover {
    box-shadow: 0 6px 14px rgba(10, 102, 194, 0.45);
}

.qs-brand-btn.qs-copy {
    background: linear-gradient(145deg, #475569 0%, #334155 100%);
}
.qs-brand-btn.qs-copy:hover {
    box-shadow: 0 6px 14px rgba(71, 85, 105, 0.45);
}

.qs-brand-btn.is-shared::after {
    content: "✓";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 13px;
    height: 13px;
    border-radius: 99px;
    background: #10b981;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.qs-table-strip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.qs-table-strip .qs-brand-btn {
    width: 25px;
    height: 25px;
    border-radius: 6px;
}

.qs-table-strip .qs-brand-btn svg {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   15.2. HIGH-CONTRAST MAGAZINE CARD STATUS BADGES (READABLE ON ALL PHOTOS)
   ========================================================================== */
.magazine-card-badges .magazine-status-badge {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.25px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.magazine-card-badges .magazine-status-badge.badge-active,
.magazine-card-badges .magazine-status-badge.badge-published {
    background: linear-gradient(135deg, rgba(5, 122, 85, 0.96) 0%, rgba(4, 92, 66, 0.96) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(110, 231, 183, 0.85) !important;
}

.magazine-card-badges .magazine-status-badge.badge-active::before,
.magazine-card-badges .magazine-status-badge.badge-published::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6ee7b7;
    margin-right: 6px;
    box-shadow: 0 0 6px rgba(110, 231, 183, 0.9);
}

.magazine-card-badges .magazine-status-badge.badge-editor {
    background: rgba(15, 23, 42, 0.92) !important;
    color: #fde68a !important;
    border: 1px solid rgba(251, 191, 36, 0.72) !important;
}

.magazine-card-badges .magazine-status-badge.badge-inactive,
.magazine-card-badges .magazine-status-badge.badge-rejected {
    background: rgba(127, 29, 29, 0.94) !important;
    color: #ffe4e6 !important;
    border: 1px solid rgba(252, 165, 165, 0.75) !important;
}

/* ==========================================================================
   15.3. EXECUTIVE BULK COMMAND DECK & TACTILE STUDIO ROW BUTTONS (v4.9 PRO)
   ========================================================================== */
.hb-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.hb-card-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.hb-card-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.hb-search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 260px;
    max-width: 100%;
}

.hb-search-box > svg {
    position: absolute;
    left: 10px;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.hb-search-box:focus-within > svg {
    color: var(--accent);
}

.hb-search-box input[type="search"],
.hb-search-box input[type="text"] {
    width: 100% !important;
    height: 34px !important;
    padding: 0 11px 0 31px !important;
    font-size: 0.79rem !important;
    font-weight: 500;
    border-radius: 8px !important;
    background: var(--bg-input) !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-recessed);
    box-sizing: border-box;
}

.hb-search-box input[type="search"]:focus,
.hb-search-box input[type="text"]:focus {
    border-color: var(--accent) !important;
    box-shadow: var(--shadow-recessed), 0 0 0 3px var(--accent-light) !important;
}

.hb-bulk-command-bar {
    padding: 8px 10px;
    margin-bottom: 14px;
    border-radius: 11px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-recessed), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px 12px;
    flex-wrap: wrap;
}

[data-theme="light"] .hb-bulk-command-bar {
    background: #eeebe2;
    border-color: rgba(24, 32, 44, 0.11);
}

.hb-bulk-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hb-bulk-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
}

.hb-bulk-divider {
    width: 1px;
    height: 20px;
    background: var(--border-strong);
    margin: 0 3px;
    flex-shrink: 0;
}

.hb-bulk-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 3px;
    white-space: nowrap;
    user-select: none;
}

.hb-bulk-selection-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    transition: opacity 0.18s ease;
}

.hb-bulk-command-bar.is-selection-aware:not(.has-selection) .hb-bulk-selection-group {
    opacity: 0.62;
}

.hb-bulk-command-bar.is-selection-aware:not(.has-selection) .hb-bulk-selection-group:hover {
    opacity: 0.94;
}

/* Otomatik YENİ rozetlerinin toplu/satır içi butonların genişliğini bozmasını önle */
.hb-bulk-command-bar .hb-action-btn .hb-new-badge,
.hb-row-actions .hb-new-badge,
.rss-actions-bar .hb-new-badge,
.scraper-actions-bar .hb-new-badge {
    display: none !important;
}

.hb-ctrl-pill {
    height: 34px;
    padding: 0 11px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0.08) 100%), var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), inset 0 1px 0 var(--bevel-top);
}

[data-theme="light"] .hb-ctrl-pill {
    background: linear-gradient(180deg, #ffffff 0%, #f6f4ee 100%);
    border-color: rgba(24, 32, 44, 0.15);
    box-shadow: 0 1px 2px rgba(24, 32, 44, 0.05), inset 0 1px 0 #ffffff;
}

.hb-ctrl-pill:hover {
    border-color: var(--accent);
}

.hb-bulk-command-bar.has-selection .hb-ctrl-pill {
    border-color: var(--border-accent);
}

.hb-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 19px;
    padding: 0 6px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: var(--bg-recessed);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.hb-bulk-command-bar.has-selection .hb-count-pill {
    background: var(--accent-strong);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 1px 4px rgba(14, 165, 233, 0.32);
}

.hb-ctrl-pill.is-social-toggle {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(16, 185, 129, 0.07));
    border-color: rgba(14, 165, 233, 0.36);
}

.hb-ctrl-pill.is-social-toggle:hover {
    border-color: rgba(14, 165, 233, 0.68);
}

.hb-ctrl-pill input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.hb-bulk-select {
    height: 34px !important;
    padding: 0 11px !important;
    font-size: 0.78rem !important;
    font-weight: 600;
    border-radius: 8px !important;
    width: auto !important;
    max-width: 265px;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--text-primary) !important;
    box-sizing: border-box;
}

.hb-action-btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0.08) 100%), var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), inset 0 1px 0 var(--bevel-top);
    transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

[data-theme="light"] .hb-action-btn {
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ed 100%);
    border-color: rgba(24, 32, 44, 0.15);
    box-shadow: 0 1px 2px rgba(24, 32, 44, 0.05), inset 0 1px 0 #ffffff;
}

.hb-action-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    pointer-events: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.hb-action-btn:hover {
    transform: translateY(-1px);
}

.hb-action-btn:active {
    transform: translateY(0);
}

.hb-action-btn.is-queue-primary {
    background: var(--btn-matte-bg);
    color: #ffffff !important;
    border: 1px solid var(--btn-matte-border);
    box-shadow: var(--btn-matte-shadow);
    font-weight: 700;
}

.hb-action-btn.is-queue-primary svg {
    color: #ffffff;
}

.hb-action-btn.is-queue-primary:hover {
    background: var(--btn-matte-hover);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hb-rec-tag {
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    line-height: 1.1;
}

/* Anlamsal Taktil Stüdyo Buton Varyantları (Sakin Zemin + Renkli Vektör İkon -> Hover'da Zengin Vurgu) */
.hb-action-btn.is-success-soft svg {
    color: var(--success);
}

.hb-bulk-command-bar.has-selection .hb-action-btn.is-success-soft {
    border-color: rgba(104, 184, 146, 0.38);
    background: linear-gradient(180deg, rgba(104, 184, 146, 0.10) 0%, rgba(104, 184, 146, 0.03) 100%), var(--bg-card);
}

[data-theme="light"] .hb-bulk-command-bar.has-selection .hb-action-btn.is-success-soft {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: rgba(5, 150, 105, 0.32);
    color: #065f46;
}

.hb-action-btn.is-success-soft:hover {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.26);
}

.hb-action-btn.is-success-soft:hover svg {
    color: #ffffff !important;
}

.hb-action-btn.is-warning-soft svg {
    color: var(--warning);
}

.hb-bulk-command-bar.has-selection .hb-action-btn.is-warning-soft {
    border-color: rgba(217, 165, 91, 0.38);
    background: linear-gradient(180deg, rgba(217, 165, 91, 0.10) 0%, rgba(217, 165, 91, 0.03) 100%), var(--bg-card);
}

[data-theme="light"] .hb-bulk-command-bar.has-selection .hb-action-btn.is-warning-soft {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border-color: rgba(180, 83, 9, 0.30);
    color: #92400e;
}

.hb-action-btn.is-warning-soft:hover {
    background: #d97706 !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.26);
}

.hb-action-btn.is-warning-soft:hover svg {
    color: #ffffff !important;
}

.hb-action-btn.is-danger-soft svg {
    color: var(--danger);
}

.hb-bulk-command-bar.has-selection .hb-action-btn.is-danger-soft {
    border-color: rgba(217, 115, 122, 0.42);
    background: linear-gradient(180deg, rgba(217, 115, 122, 0.12) 0%, rgba(217, 115, 122, 0.04) 100%), var(--bg-card);
    color: var(--danger);
}

[data-theme="light"] .hb-bulk-command-bar.has-selection .hb-action-btn.is-danger-soft {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: rgba(225, 29, 72, 0.32);
    color: #be123c;
}

.hb-action-btn.is-danger-soft:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

.hb-action-btn.is-danger-soft:hover svg {
    color: #ffffff !important;
}

/* Sağ Bölge (Tüm Liste) İkincil Komut Butonları */
.hb-action-btn.is-neutral-ghost {
    padding: 0 11px;
    font-size: 0.76rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

[data-theme="light"] .hb-action-btn.is-neutral-ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(24, 32, 44, 0.13);
    color: var(--text-secondary);
}

.hb-action-btn.is-neutral-ghost svg {
    color: var(--text-muted);
}

.hb-action-btn.is-neutral-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-strong);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .hb-action-btn.is-neutral-ghost:hover {
    background: #ffffff;
    border-color: rgba(24, 32, 44, 0.24);
}

.hb-action-btn.is-neutral-ghost:hover svg {
    color: var(--accent);
}

.hb-action-btn.is-danger-ghost {
    padding: 0 11px;
    font-size: 0.76rem;
    background: rgba(217, 115, 122, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(217, 115, 122, 0.24);
    box-shadow: none;
}

[data-theme="light"] .hb-action-btn.is-danger-ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(194, 65, 75, 0.24);
}

.hb-action-btn.is-danger-ghost svg {
    color: var(--danger);
}

.hb-action-btn.is-danger-ghost:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

.hb-action-btn.is-danger-ghost:hover svg {
    color: #ffffff !important;
}

/* ==========================================================================
   15.3.B. STANDART TABLO SATIR İÇİ TAKTİL AKSİYON BUTONLARI (.hb-row-btn)
   ========================================================================== */
.hb-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap !important;
}

.hb-row-btn,
.hb-row-icon-btn {
    height: 31px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap !important;
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0.08) 100%), var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), inset 0 1px 0 var(--bevel-top);
    transition: transform 0.13s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.hb-row-btn {
    padding: 0 10px;
}

.hb-row-icon-btn {
    width: 31px;
    padding: 0;
}

[data-theme="light"] .hb-row-btn,
[data-theme="light"] .hb-row-icon-btn {
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ed 100%);
    border-color: rgba(24, 32, 44, 0.15);
    box-shadow: 0 1px 2px rgba(24, 32, 44, 0.05), inset 0 1px 0 #ffffff;
}

.hb-row-btn svg,
.hb-row-icon-btn svg {
    width: 13.5px;
    height: 13.5px;
    flex-shrink: 0;
    pointer-events: none;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.hb-row-btn:hover,
.hb-row-icon-btn:hover {
    transform: translateY(-1px);
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--text-primary);
}

[data-theme="light"] .hb-row-btn:hover,
[data-theme="light"] .hb-row-icon-btn:hover {
    background: #ffffff;
    border-color: var(--accent);
    color: var(--accent);
}

.hb-row-btn:hover svg,
.hb-row-icon-btn:hover svg {
    color: var(--accent);
}

.hb-row-btn:active,
.hb-row-icon-btn:active {
    transform: translateY(0);
}

/* Satır İçi Birincil Aksiyon (Çalıştır / Haberleri Çek / +Süre) */
.hb-row-btn.is-primary {
    background: var(--btn-matte-bg);
    color: #ffffff !important;
    border-color: var(--btn-matte-border);
    box-shadow: var(--btn-matte-shadow);
}

.hb-row-btn.is-primary svg {
    color: #ffffff !important;
}

.hb-row-btn.is-primary:hover {
    background: var(--btn-matte-hover);
    border-color: var(--accent);
    color: #ffffff !important;
    box-shadow: 0 4px 11px rgba(14, 165, 233, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Satır İçi Zümrüt Çekim / Yenileme Aksiyonu */
.hb-row-btn.is-emerald svg {
    color: var(--success);
}

.hb-row-btn.is-emerald {
    border-color: rgba(104, 184, 146, 0.34);
    background: linear-gradient(180deg, rgba(104, 184, 146, 0.11) 0%, rgba(104, 184, 146, 0.04) 100%), var(--bg-card);
}

[data-theme="light"] .hb-row-btn.is-emerald {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: rgba(5, 150, 105, 0.28);
    color: #065f46;
}

.hb-row-btn.is-emerald:hover {
    background: #059669 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 11px rgba(16, 185, 129, 0.26);
}

.hb-row-btn.is-emerald:hover svg {
    color: #ffffff !important;
}

/* Satır İçi & Komut Çubuğu Siber Test / Kopyala İkincil Vurgu */
.hb-action-btn.is-accent-soft svg,
.hb-row-btn.is-accent-soft svg {
    color: var(--accent);
}

.hb-action-btn.is-accent-soft:hover,
.hb-row-btn.is-accent-soft:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

/* Satır İçi Uyarı / Kilitle Kare İkon Butonu */
.hb-row-icon-btn.is-warning svg {
    color: var(--warning);
}

.hb-row-icon-btn.is-warning:hover {
    background: #d97706 !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

.hb-row-icon-btn.is-warning:hover svg {
    color: #ffffff !important;
}

/* Satır İçi Silme Kare İkon / Metin Butonu */
.hb-row-icon-btn.is-danger,
.hb-row-btn.is-danger {
    background: rgba(217, 115, 122, 0.08);
    border-color: rgba(217, 115, 122, 0.28);
    color: var(--danger);
}

[data-theme="light"] .hb-row-icon-btn.is-danger,
[data-theme="light"] .hb-row-btn.is-danger {
    background: #fff1f2;
    border-color: rgba(225, 29, 72, 0.24);
    color: #be123c;
}

.hb-row-icon-btn.is-danger svg,
.hb-row-btn.is-danger svg {
    color: var(--danger);
}

.hb-row-icon-btn.is-danger:hover,
.hb-row-btn.is-danger:hover {
    background: #dc2626 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 11px rgba(220, 38, 38, 0.28);
}

.hb-row-icon-btn.is-danger:hover svg,
.hb-row-btn.is-danger:hover svg {
    color: #ffffff !important;
}

@media (max-width: 1480px) {
    .hb-row-btn {
        padding: 0 8px;
        font-size: 0.73rem;
    }
    .hb-row-btn.is-compact-icon {
        width: 31px;
        padding: 0;
    }
}

/* Magazine Card Studio & Story Buttons */
.magazine-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.mc-action-btn {
    height: 36px;
    width: 100%;
    padding: 0 12px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.mc-action-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    pointer-events: none;
}

.mc-action-btn:hover {
    transform: translateY(-1.5px);
}

.mc-action-btn:active {
    transform: translateY(0);
}

.mc-action-btn.is-studio {
    background: var(--btn-matte-bg);
    color: #ffffff !important;
    border: 1px solid var(--btn-matte-border);
    box-shadow: var(--btn-matte-shadow);
}

.mc-action-btn.is-studio:hover {
    background: var(--btn-matte-hover);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.mc-action-btn.is-story {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.14) 0%, rgba(6, 182, 212, 0.09) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(16, 185, 129, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mc-action-btn.is-story svg {
    color: var(--success);
    transition: color 0.16s ease;
}

.mc-action-btn.is-story:hover {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    color: #ffffff !important;
    border-color: rgba(110, 231, 183, 0.65);
    box-shadow: 0 6px 15px rgba(5, 150, 105, 0.32);
}

.mc-action-btn.is-story:hover svg {
    color: #ffffff;
}

/* Compact Table Row Action Buttons */
.mc-table-btn {
    height: 31px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    width: auto;
    gap: 5px;
}

.mc-table-btn svg {
    width: 13.5px;
    height: 13.5px;
}

/* ==========================================================================
   16. "YENİ" FEATURE UPDATE BADGES (SIDEBAR TOP STACK & IN-PAGE PILLS)
   ========================================================================== */
@keyframes hbNewPulseGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    }
    50% {
        box-shadow: 0 3px 13px rgba(14, 165, 233, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    }
}

.hb-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 99px;
    font-family: var(--font-display);
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    animation: hbNewPulseGlow 2.6s ease-in-out infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Sol Menüde Menü Metninin Tam Üstünde Duran Kompakt "YENİ" Rozeti */
.nav-label-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    line-height: 1.18;
}

.hb-new-badge.is-sidebar-top {
    font-size: 0.52rem;
    padding: 1.5px 6px;
    margin-bottom: 2px;
    letter-spacing: 0.09em;
    line-height: 1.1;
}

.nav-link.has-unseen-update {
    padding-top: 7px;
    padding-bottom: 7px;
}

.nav-link.has-unseen-update .nav-icon-wrap {
    position: relative;
    color: var(--accent);
    opacity: 1;
}

/* Daraltılmış (Collapsed) Sol Menü Modunda İkon Köşesinde Parlayan Nokta */
body.sidebar-collapsed .nav-link.has-unseen-update .nav-icon-wrap::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    border: 1.5px solid var(--bg-sidebar);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
}

/* Yeni Eklenen Eklenti Kartlarında İlk Ziyarette Zarif Vurgu Çerçevesi */
.plugin-store-card.has-new-feature-ring {
    border-color: rgba(16, 185, 129, 0.55) !important;
    box-shadow:
        0 0 0 1px rgba(14, 165, 233, 0.22),
        0 10px 24px -6px rgba(16, 185, 129, 0.18);
}

/* ==========================================================================
   17. SON DAKİKA CANLI RADAR STÜDYO KONTROLLERİ (LIVE RED SPHERE + RADAR RINGS)
   ========================================================================== */
@keyframes hbRadarWaveExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.92;
    }
    75% {
        opacity: 0.25;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.45);
        opacity: 0;
    }
}

@keyframes hbLiveSpherePulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.85), inset 0 1px 2px rgba(255, 255, 255, 0.65);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 59, 78, 1), 0 0 24px rgba(220, 38, 38, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.85);
    }
}

.hb-live-radar-beacon {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    flex-shrink: 0;
    background: radial-gradient(circle at 32% 30%, #ffe4e6 0%, #ff3b4e 38%, #dc2626 75%, #881337 100%);
    animation: hbLiveSpherePulse 1.8s ease-in-out infinite;
    vertical-align: middle;
}

.hb-live-radar-beacon::before,
.hb-live-radar-beacon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 82, 99, 0.88);
    pointer-events: none;
    animation: hbRadarWaveExpand 1.9s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.hb-live-radar-beacon::after {
    animation-delay: 0.95s;
}

.hb-breaking-toggle-card {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.12) 0%, rgba(244, 63, 94, 0.06) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.36);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 14px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hb-breaking-toggle-card:hover {
    border-color: rgba(239, 68, 68, 0.62);
}

.hb-breaking-toggle-card.is-active {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.26) 0%, rgba(225, 29, 72, 0.14) 100%);
    border-color: #ef4444;
    box-shadow: 0 6px 20px -6px rgba(220, 38, 38, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .hb-breaking-toggle-card {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.72) 0%, rgba(255, 241, 242, 0.85) 100%);
    border-color: rgba(220, 38, 38, 0.35);
}

[data-theme="light"] .hb-breaking-toggle-card.is-active {
    background: linear-gradient(135deg, rgba(254, 202, 202, 0.85) 0%, rgba(254, 226, 226, 0.95) 100%);
    border-color: #dc2626;
}

.hb-breaking-mode-btn {
    border-color: rgba(239, 68, 68, 0.48) !important;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.18) 0%, rgba(225, 29, 72, 0.1) 100%) !important;
    color: #fca5a5 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .hb-breaking-mode-btn {
    color: #b91c1c !important;
    background: rgba(254, 226, 226, 0.85) !important;
}

.hb-breaking-mode-btn:hover,
.hb-breaking-mode-btn.is-selected-mode {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    border-color: #fca5a5 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4) !important;
}

.magazine-card-footer.has-three-actions {
    grid-template-columns: 0.95fr 1.18fr 0.87fr;
    gap: 6px;
}

.magazine-card-footer.has-three-actions .mc-action-btn {
    padding: 0 8px;
    font-size: 0.75rem;
    gap: 5px;
}

.mc-action-btn.is-breaking {
    background: linear-gradient(145deg, rgba(220, 38, 38, 0.16) 0%, rgba(153, 27, 27, 0.11) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(239, 68, 68, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mc-action-btn.is-breaking:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff !important;
    border-color: rgba(252, 165, 165, 0.75);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.36);
}

/* ==========================================================================
   18. CANLI İŞLEM SÜRESİ & YÜZDE DOLUM MODALI (BLUR BACKDROP TELEMETRİ)
   ========================================================================== */
.hb-live-proc-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(6, 10, 19, 0.72);
    backdrop-filter: blur(13px) saturate(140%);
    -webkit-backdrop-filter: blur(13px) saturate(140%);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.hb-live-proc-backdrop.show {
    display: flex;
    opacity: 1;
}

.hb-live-proc-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 26px 26px 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(8px) scale(0.985);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.hb-live-proc-backdrop.show .hb-live-proc-card {
    transform: translateY(0) scale(1);
}

.hb-live-proc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.hb-live-proc-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hb-live-proc-orb {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-light);
    border: 1px solid var(--border-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.hb-live-proc-orb::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 15px;
    border: 1.5px solid var(--accent);
    opacity: 0.45;
    animation: hbProcRingPulse 1.8s ease-out infinite;
}

.hb-live-proc-card.is-complete .hb-live-proc-orb {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.5);
}

.hb-live-proc-card.is-complete .hb-live-proc-orb::after {
    border-color: #10b981;
    animation: none;
}

@keyframes hbProcRingPulse {
    0% { transform: scale(0.92); opacity: 0.65; }
    100% { transform: scale(1.18); opacity: 0; }
}

.hb-live-proc-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.hb-live-proc-pct {
    font-family: var(--font-mono);
    font-size: 1.48rem;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.hb-live-proc-card.is-complete .hb-live-proc-pct {
    color: var(--success);
}

.hb-live-proc-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.48;
    margin: 0 0 16px 0;
}

.hb-live-proc-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.hb-live-proc-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent) 0%, #38bdf8 50%, var(--accent) 100%);
    background-size: 200% 100%;
    animation: hbProcBarShimmer 2s linear infinite;
    transition: width 0.24s ease-out, background 0.25s ease;
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.42);
}

.hb-live-proc-card.is-complete .hb-live-proc-fill {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    animation: none;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

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

.hb-live-proc-stage {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-color);
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    min-height: 38px;
}

.hb-live-proc-telemetry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   19. RSS KAYNAK STÜDYO TABLOSU & KÜÇÜK EKRAN OTOMATİK UYUM MOTORU
   ========================================================================== */
.rss-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.rss-search-wrap {
    width: 270px;
    max-width: 100%;
}

.rss-search-wrap input {
    padding: 7px 12px;
    font-size: 0.81rem;
}

.rss-studio-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.rss-studio-table th,
.rss-studio-table td {
    padding: 11px 12px;
    vertical-align: middle;
}

.rss-studio-table th {
    white-space: nowrap;
    font-size: 0.75rem;
}

.rss-studio-table .col-rss-src {
    min-width: 190px;
    max-width: 290px;
}

.rss-src-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rss-src-top {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.rss-src-name {
    font-weight: 700;
    font-size: 0.87rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 225px;
}

.rss-http-slot {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.rss-http-slot .badge {
    padding: 2px 6px;
    font-size: 0.65rem;
    font-family: var(--font-mono);
}

.rss-src-url {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    max-width: 265px;
    text-decoration: none;
}

.rss-src-url span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rss-src-url:hover {
    color: var(--accent);
}

.rss-studio-table .col-rss-rules {
    white-space: nowrap;
}

.rss-rules-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.rss-site-sub {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 165px;
    min-width: 0;
}

.rss-site-sub .hb-3d-ico {
    margin-right: 0;
}

.rss-site-sub-txt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rss-studio-table .col-rss-status,
.rss-studio-table th.col-rss-status {
    text-align: center;
    white-space: nowrap;
}

.rss-autopub-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.rss-studio-table .col-rss-telemetry {
    white-space: nowrap;
}

.rss-telemetry-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    line-height: 1.3;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.rss-telemetry-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.rss-telemetry-lbl {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.69rem;
    font-weight: 600;
}

.rss-studio-table .col-rss-actions,
.rss-studio-table th.col-rss-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.rss-actions-bar {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap !important;
}

.rss-btn-action {
    height: 32px;
    padding: 0 10px !important;
    font-size: 0.76rem !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.rss-btn-action .hb-3d-ico {
    margin-right: 0;
    vertical-align: middle;
}

.rss-btn-icon {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Küçük Ekranlı Monitörler ve Laptoplar (1280px – 1480px) İçin Otomatik Sıkışma Koruması */
@media (max-width: 1480px) {
    .rss-studio-table th,
    .rss-studio-table td {
        padding: 9px 8px;
    }
    .rss-studio-table .col-rss-src {
        min-width: 160px;
        max-width: 220px;
    }
    .rss-src-name {
        max-width: 170px;
        font-size: 0.83rem;
    }
    .rss-src-url {
        max-width: 205px;
        font-size: 0.69rem;
    }
    .rss-site-sub {
        max-width: 135px;
    }
    .rss-hide-compact {
        display: none !important;
    }
    .rss-btn-action {
        padding: 0 8px !important;
        font-size: 0.73rem !important;
    }
}

@media (max-width: 1240px) {
    .rss-studio-table {
        min-width: 700px;
    }
    .rss-autopub-wrap .badge {
        display: none;
    }
    .rss-src-name {
        max-width: 145px;
    }
    .rss-src-url {
        max-width: 175px;
    }
}

/* ==========================================================================
   20. OTONOM YAYIN CANLI KART GEÇİŞ & ÇIKIŞ ANİMASYONU
   ========================================================================== */
.magazine-card.hb-card-just-published {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.45), 0 18px 38px rgba(16, 185, 129, 0.22) !important;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.48s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.hb-pub-flash-banner {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 78, 59, 0.82);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    animation: hbPubFlashIn 0.24s ease-out forwards;
}

@keyframes hbPubFlashIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.magazine-card.hb-card-collapse-out {
    opacity: 0 !important;
    transform: translateY(-18px) scale(0.91) !important;
    pointer-events: none;
}

tr.hb-row-collapse-out {
    background: rgba(16, 185, 129, 0.16) !important;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.55s ease, transform 0.55s ease, background 0.25s ease;
}



