/*
Theme Name: KatzCD Pro
Theme URI: https://katz.cd
Author: KatzCD
Author URI: https://katz.cd
Description: Professional link directory WordPress theme with advanced search, domain verification, bulk submission, analytics, SEO, and admin tools. Features responsive table/card views, dark mode, live search, bookmarks, and more.
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: katzcd-pro
Tags: three-columns, right-sidebar, left-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════
   RESET & CSS VARIABLES
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

:root {
    --primary: #4fc3f7;
    --primary-hover: #29b6f6;
    --primary-light: #e1f5fe;
    --primary-glow: rgba(79, 195, 247, 0.2);
    --accent: #ff5252;
    --accent-hover: #d32f2f;
    --accent-light: #ffebee;
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ff5252;
    --danger-light: #ffebee;
    --text: #263238;
    --text-secondary: #37474f;
    --text-muted: #78909c;
    --border: #e0e0e0;
    --border-hover: #bdbdbd;
    --bg: #e7e7e7;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f5;
    --bg-input: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
    --header-h: 64px;
    --sky-blue: #4fc3f7;
    --sky-blue-dark: #29b6f6;
    --sky-blue-light: #e1f5fe;
    --redish: #ff5252;
    --redish-dark: #d32f2f;
    --redish-light: #ffebee;
    --grayish-black: #263238;
    --grayish-dark: #37474f;
}

/* Dark Mode */
[data-theme="dark"] {
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-hover: #475569;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #253348;
    --bg-input: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
    --primary-light: rgba(37,99,235,0.15);
    --success-light: rgba(16,185,129,0.15);
    --warning-light: rgba(245,158,11,0.15);
    --danger-light: rgba(239,68,68,0.15);
}

/* ═══════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════ */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
    background: var(--bg-card);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: box-shadow var(--transition);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.site-header.scrolled { box-shadow: 0 5px 20px rgba(0,0,0,0.15); }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 20px;
}

.site-branding a {
    font-size: 24px;
    font-weight: 800;
    color: var(--grayish-black);
    letter-spacing: -0.5px;
}
.site-branding a:hover { color: var(--redish); }
.header-logo img { height: 40px; width: auto; }

/* Navigation */
.main-navigation { display: flex; align-items: center; gap: 8px; }
.primary-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
.primary-menu li { position: relative; }
.primary-menu li a {
    display: block;
    padding: 8px 14px;
    color: var(--grayish-black);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}
.primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--redish);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.primary-menu li a:hover::after,
.primary-menu li.current-menu-item > a::after,
.primary-menu li.current_page_item > a::after { transform: scaleX(1); }
.primary-menu li a:hover,
.primary-menu li.current-menu-item > a,
.primary-menu li.current_page_item > a {
    color: var(--redish);
}

/* Sub menus */
.primary-menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 6px;
    z-index: 100;
    list-style: none;
}
.primary-menu li:hover > ul.sub-menu { display: block; }
.primary-menu ul.sub-menu li a {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 4px;
}
.primary-menu ul.sub-menu ul.sub-menu { top: 0; left: 100%; }
.primary-menu ul.sub-menu.open-left { left: auto; right: 100%; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--text-muted);
    transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--sky-blue); color: var(--sky-blue); }

/* Hamburger */
.menu-toggle {
    display: none;
    background: var(--sky-blue);
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
}
.menu-toggle:hover { background: var(--sky-blue-dark); }
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all var(--transition);
}

/* ═══════════════════════════════════════════
   SEARCH BAR — UNIFIED
   ═══════════════════════════════════════════ */
.katz-search-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.katz-search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg-input);
}
.katz-search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }

.katz-search-form .search-field {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font);
    background: transparent;
    color: var(--text);
}
.katz-search-form .search-field::placeholder { color: var(--text-muted); }

.katz-search-form .category-select-wrapper {
    border-left: 1px solid var(--border);
    position: relative;
    flex-shrink: 0;
}
.katz-search-form .search-cat-dropdown {
    height: 100%;
    border: none;
    outline: none;
    padding: 0 36px 0 14px;
    font-size: 14px;
    font-family: var(--font);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 140px;
    font-weight: 500;
}
.katz-search-form .cat-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 10px;
}

.katz-search-form .search-submit-btn {
    border: none;
    background: var(--sky-blue);
    color: #fff;
    padding: 12px 28px;
    font-size: 15px;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    white-space: nowrap;
}
.katz-search-form .search-submit-btn:hover { background: var(--sky-blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,195,247,0.3); }
.katz-search-form .search-submit-btn .btn-icon { font-size: 16px; }

/* ═══════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════ */
.katz-stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.katz-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--bg-card);
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.katz-stat .stat-num {
    font-weight: 800;
    color: var(--sky-blue-dark);
    font-size: 18px;
}

/* ═══════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════ */
.table-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
    flex-wrap: wrap;
}
.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border-radius: 6px;
    padding: 3px;
    border: 1px solid var(--border);
}
.view-toggle button {
    background: none;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: all var(--transition);
}
.view-toggle button.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-sm); }

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.responsive-post-table {
    width: 100%;
    border-collapse: collapse;
}
.responsive-post-table thead {
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}
.responsive-post-table th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
}
.responsive-post-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}
.responsive-post-table tbody tr { transition: all var(--transition); }
.responsive-post-table tbody tr:hover { background: var(--sky-blue-light); }
.responsive-post-table tbody tr:last-child td { border-bottom: none; }

/* Title */
.table-title {
    font-weight: 600;
    color: var(--text);
    display: inline;
    word-break: break-word;
    line-height: 1.4;
}
.table-title:hover { color: var(--primary); }
.title-wrapper { display: inline; word-break: break-word; line-height: 1.5; }

/* Category Badge */
.badge-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    background: var(--sky-blue);
    color: #ffffff;
    white-space: nowrap;
    text-transform: uppercase;
}
.badge-cat a { text-decoration: none !important; color: #fff !important; }

/* Source */
.source-text {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Rating Stars */
.rating-cell .star { color: var(--warning); font-size: 14px; }
.rating-cell .star.empty { color: var(--border); }

/* Row Actions */
.row-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition);
}
.responsive-post-table tbody tr:hover .row-actions { opacity: 1; }
.row-action-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    transition: all var(--transition);
    position: relative;
}
.row-action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.row-action-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 50;
}

/* Copy Link Toast */
.katz-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.katz-toast.show { transform: translateY(0); opacity: 1; }

/* ═══════════════════════════════════════════
   CARD VIEW (Grid)
   ═══════════════════════════════════════════ */
.katz-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.katz-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.katz-card:hover { border-color: var(--sky-blue); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.katz-card .card-category { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); font-weight: 700; }
.katz-card .card-title { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4; }
.katz-card .card-title:hover { color: var(--primary); }
.katz-card .card-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.katz-card .card-actions { display: flex; gap: 6px; margin-top: auto; }

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.posts-navigation {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.posts-navigation a, .posts-navigation span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all var(--transition);
}
.posts-navigation a:hover { border-color: var(--primary); color: var(--primary); }
.posts-navigation .current {
    background: var(--sky-blue);
    color: #fff;
    border-color: var(--sky-blue);
}

/* ═══════════════════════════════════════════
   SIDEBAR — Original KatzCD dual-color
   ═══════════════════════════════════════════ */
.sidebar { width: 280px; flex-shrink: 0; }
.sidebar-left {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--sky-blue-light) 100%);
    border-left: 4px solid var(--sky-blue);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}
.sidebar-right {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--redish-light) 100%);
    border-right: 4px solid var(--redish);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}
.widget {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.widget:last-child { border-bottom: none; margin-bottom: 0; }
.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--grayish-black);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sky-blue);
}
.sidebar-right .widget-title { border-bottom-color: var(--redish); }
.widget ul { list-style: none; }
.widget li { padding: 5px 0; border-bottom: 1px dotted #ddd; transition: all var(--transition); }
.widget li:hover { padding-left: 5px; }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--grayish-black); }
.widget a:hover { color: var(--redish); }

/* ═══════════════════════════════════════════
   CONTENT WRAPPER
   ═══════════════════════════════════════════ */
.content-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}
.main-content { flex: 1; min-width: 0; }

/* ═══════════════════════════════════════════
   SUBMIT PAGE
   ═══════════════════════════════════════════ */
.submit-container { max-width: 1100px; margin: 0 auto; }

.submit-steps {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.submit-step {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid var(--border);
    opacity: 0.4;
    transition: all var(--transition);
    font-size: 14px;
    font-weight: 500;
}
.submit-step:last-child { border-right: none; }
.submit-step.active { opacity: 1; background: var(--primary-light); }
.submit-step.completed { opacity: 1; }
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.submit-step.active .step-num { background: var(--primary); color: #fff; }
.submit-step.completed .step-num { background: var(--success); color: #fff; }

.submit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.submit-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.submit-card .card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Form Elements */
.katz-input, .katz-select, .katz-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-input);
    transition: border-color var(--transition);
}
.katz-input:focus, .katz-select:focus, .katz-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.katz-textarea { resize: vertical; min-height: 120px; font-family: monospace; }

.katz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.katz-btn-primary { background: var(--sky-blue); color: #fff; }
.katz-btn-primary:hover { background: var(--sky-blue-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79,195,247,0.3); }
.katz-btn-success { background: #22c55e; color: #fff; }
.katz-btn-success:hover { background: #16a34a; }
.katz-btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.katz-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.katz-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* URL Row */
.url-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.url-row:last-child { border-bottom: none; }
.url-row .row-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.url-row .url-status {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Alert Banners */
.katz-alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.katz-alert-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.katz-alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fde68a; }
.katz-alert-danger { background: var(--danger-light); color: #991b1b; border: 1px solid #fecaca; }
.katz-alert-info { background: var(--primary-light); color: #1e40af; border: 1px solid #93c5fd; }

/* ═══════════════════════════════════════════
   SINGLE PAGE (Embed Bar)
   ═══════════════════════════════════════════ */
.pro-embed-bar {
    height: 64px;
    background: #0f172a;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    border-bottom: 1px solid #1e293b;
}
.bar-left { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar-title {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bar-source { font-size: 12px; color: #64748b; }
.bar-actions { display: flex; gap: 8px; }
.bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #334155;
    background: #1e293b;
    color: #cbd5e1;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.bar-btn:hover { background: #334155; color: #fff; }
.bar-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.bar-btn.primary:hover { background: var(--primary-hover); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    background: var(--grayish-black);
    color: #ffffff;
    border-top: none;
    padding: 40px 0 20px;
    margin-top: 40px;
}
.footer-widgets-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
    gap: 10px;
}
.footer-menu { display: flex; list-style: none; gap: 16px; }
.footer-menu a { color: rgba(255,255,255,0.6); font-size: 13px; }
.footer-menu a:hover { color: var(--sky-blue); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--sky-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(79,195,247,0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--sky-blue-dark); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════ */
.katz-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.katz-breadcrumbs a { color: var(--text-secondary); }
.katz-breadcrumbs a:hover { color: var(--primary); }
.katz-breadcrumbs .sep { color: var(--border); }

/* ═══════════════════════════════════════════
   404
   ═══════════════════════════════════════════ */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}
.error-404 .error-code { font-size: 120px; font-weight: 800; color: var(--border); line-height: 1; }
.error-404 h1 { font-size: 24px; margin-top: 16px; }
.error-404 p { color: var(--text-secondary); margin: 12px 0 24px; }

/* ═══════════════════════════════════════════
   CONTACT / WEBMASTERS
   ═══════════════════════════════════════════ */
.katz-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════
   LIVE SEARCH DROPDOWN
   ═══════════════════════════════════════════ */
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 500;
    display: none;
}
.live-search-results.active { display: block; }
.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
    font-size: 14px;
    text-decoration: none;
    color: var(--text);
}
.live-search-item:hover { background: var(--bg-card-hover); }
.live-search-item .ls-cat { font-size: 11px; color: var(--primary); font-weight: 600; white-space: nowrap; }
.live-search-item .ls-title { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-search-item .ls-source { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ═══════════════════════════════════════════
   COOKIE CONSENT
   ═══════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ═══════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg) 25%, var(--bg-card-hover) 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════
   TOOLTIPS
   ═══════════════════════════════════════════ */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════ */
@media print {
    .site-header, .site-footer, .sidebar, .back-to-top, .cookie-banner,
    .row-actions, .view-toggle, .table-controls, .katz-search-section { display: none !important; }
    body { background: #fff; color: #000; }
    .table-container { box-shadow: none; border: 1px solid #ccc; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media screen and (max-width: 1200px) {
    .sidebar { width: 240px; }
}

@media screen and (max-width: 991px) {
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    
    /* Mobile menu */
    .menu-toggle { display: flex; }
    .primary-menu {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #eee;
        flex-direction: column;
        padding: 12px;
        box-shadow: var(--shadow-lg);
        gap: 2px;
    }
    .primary-menu.open { display: flex; }
    .primary-menu li a { padding: 12px 16px; color: var(--grayish-black); }
    .primary-menu li a:hover { color: var(--redish); background: var(--sky-blue-light); }
    .primary-menu ul.sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        min-width: 100%;
        background: transparent;
    }
    .primary-menu li:hover > ul.sub-menu { display: none; }
    .primary-menu li.toggled > ul.sub-menu { display: block; }

    /* Search */
    .katz-search-form .btn-text { display: none; }
    .katz-search-form .search-submit-btn { padding: 12px 14px; }
    .katz-search-form .search-cat-dropdown { min-width: 100px; padding: 0 28px 0 8px; font-size: 12px; }

    /* Table */
    .responsive-post-table thead { display: none; }
    .responsive-post-table, .responsive-post-table tbody, .responsive-post-table tr { display: block; }
    .responsive-post-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--bg-card);
        padding: 12px 16px;
        box-shadow: var(--shadow-sm);
    }
    .responsive-post-table td {
        display: flex;
        padding: 6px 0;
        border: none !important;
        border-bottom: 1px solid var(--border) !important;
        align-items: flex-start;
        gap: 12px;
    }
    .responsive-post-table td:last-child { border-bottom: none !important; }
    .responsive-post-table td::before {
        content: attr(data-label);
        flex: 0 0 90px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        padding-top: 2px;
    }
    .row-actions { opacity: 1; }

    /* Submit */
    .submit-steps { flex-direction: column; }
    .submit-step { border-right: none; border-bottom: 1px solid var(--border); }
    .url-row { flex-wrap: wrap; }
    .url-row .katz-input { min-width: 0; }
}

@media screen and (max-width: 640px) {
    .container { padding: 0 12px; }
    .katz-search-form .category-select-wrapper { display: none; }
    .katz-stats-bar { gap: 12px; }
    .katz-card-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .katz-page-card { padding: 20px; }
    .header-container { gap: 12px; }
    .site-branding a { font-size: 18px; }
}
