/* QR Code Generator Pro - Enterprise Multi-Theme Engine */
:root, [data-theme="light"] {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --navy: #0f172a;
    --navy-hover: #1e293b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-subtle: #f1f5f9;
    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --top-nav-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --hover-bg: #f8fafc;
    --active-nav-bg: #f0f9ff;
    --success-bg: #ecfdf3;
    --success-text: #027a48;
    --warning-bg: #fffaeb;
    --warning-text: #b54708;
    --danger-bg: #fef3f2;
    --danger-text: #b42318;
    --info-bg: #eff8ff;
    --info-text: #0284c7;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="emerald"] {
    --primary: #059669;
    --primary-hover: #047857;
    --navy: #064e3b;
    --navy-hover: #065f46;
    --bg-page: #f0fdf4;
    --bg-card: #ffffff;
    --bg-card-hover: #f0fdf4;
    --bg-subtle: #dcfce7;
    --border-color: #bbf7d0;
    --border-subtle: #dcfce7;
    --text-primary: #064e3b;
    --text-secondary: #047857;
    --text-muted: #059669;
    --card-shadow: 0 1px 3px rgba(5, 150, 105, 0.08), 0 1px 2px rgba(0, 0, 0, 0.03);
    --top-nav-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --hover-bg: #f0fdf4;
    --active-nav-bg: #dcfce7;
    --success-bg: #dcfce7;
    --success-text: #15803d;
    --warning-bg: #fef3c7;
    --warning-text: #b45309;
    --danger-bg: #fee2e2;
    --danger-text: #b91c1c;
    --info-bg: #e0f2fe;
    --info-text: #0369a1;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="violet"] {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --navy: #4c1d95;
    --navy-hover: #5b21b6;
    --bg-page: #faf5ff;
    --bg-card: #ffffff;
    --bg-card-hover: #faf5ff;
    --bg-subtle: #f3e8ff;
    --border-color: #e9d5ff;
    --border-subtle: #f3e8ff;
    --text-primary: #4c1d95;
    --text-secondary: #6d28d9;
    --text-muted: #8b5cf6;
    --card-shadow: 0 1px 3px rgba(124, 58, 237, 0.08), 0 1px 2px rgba(0, 0, 0, 0.03);
    --top-nav-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --hover-bg: #faf5ff;
    --active-nav-bg: #f3e8ff;
    --success-bg: #dcfce7;
    --success-text: #15803d;
    --warning-bg: #fef3c7;
    --warning-text: #b45309;
    --danger-bg: #fee2e2;
    --danger-text: #b91c1c;
    --info-bg: #f3e8ff;
    --info-text: #7c3aed;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="amber"] {
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --navy: #7c2d12;
    --navy-hover: #9a3412;
    --bg-page: #fff7ed;
    --bg-card: #ffffff;
    --bg-card-hover: #fff7ed;
    --bg-subtle: #ffedd5;
    --border-color: #fed7aa;
    --border-subtle: #ffedd5;
    --text-primary: #7c2d12;
    --text-secondary: #9a3412;
    --text-muted: #c2410c;
    --card-shadow: 0 1px 3px rgba(234, 88, 12, 0.08), 0 1px 2px rgba(0, 0, 0, 0.03);
    --top-nav-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --hover-bg: #fff7ed;
    --active-nav-bg: #ffedd5;
    --success-bg: #dcfce7;
    --success-text: #15803d;
    --warning-bg: #fef3c7;
    --warning-text: #b45309;
    --danger-bg: #fee2e2;
    --danger-text: #b91c1c;
    --info-bg: #ffedd5;
    --info-text: #ea580c;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    --primary: #38bdf8;
    --primary-hover: #0ea5e9;
    --navy: #f8fafc;
    --navy-hover: #ffffff;
    --bg-page: #0b1120;
    --bg-card: #131d35;
    --bg-card-hover: #182442;
    --bg-subtle: #1e293b;
    --border-color: #243452;
    --border-subtle: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --top-nav-bg: #0f172a;
    --sidebar-bg: #0f172a;
    --hover-bg: #1e293b;
    --active-nav-bg: rgba(56, 189, 248, 0.15);
    --success-bg: rgba(16, 185, 129, 0.2);
    --success-text: #34d399;
    --warning-bg: rgba(245, 158, 11, 0.2);
    --warning-text: #fbbf24;
    --danger-bg: rgba(239, 68, 68, 0.2);
    --danger-text: #f87171;
    --info-bg: rgba(56, 189, 248, 0.2);
    --info-text: #38bdf8;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Top Navigation Bar */
.top-nav {
    height: 60px;
    background: var(--top-nav-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    user-select: none;
}

.brand-qrcg {
    font-size: 20px;
    font-weight: 800;
    color: #0099ff;
    letter-spacing: -0.5px;
}

.brand-by {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.brand-bitly {
    font-size: 20px;
    font-weight: 800;
    color: #ee6123;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 10px 22px;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-navy {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
}
.btn-navy:hover {
    background: var(--navy-hover);
}

.btn-outline {
    background: #ffffff;
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-outline:hover {
    background: #f1f5f9;
}

.btn-primary-outline {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-primary-outline:hover {
    background: #eff8ff;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-secondary);
    border-color: #cbd5e1;
}
.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-block {
    width: 100%;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
}
.icon-btn:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

/* App Layout: Sidebar + Main */
.app-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.scans-counter-section {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.scans-count-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.scans-count-number {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
}

.scans-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
}

.scans-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.folders-section {
    margin-top: 20px;
    flex-grow: 1;
}

.folders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.folders-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icon-btn-sm {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}
.icon-btn-sm:hover {
    background: #eff8ff;
}

.folders-list {
    list-style: none;
}

.folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    margin-bottom: 4px;
    position: relative;
}

.folder-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    flex-grow: 1;
    border-radius: 6px;
}

.folder-item:hover a,
.folder-item.active a {
    background: #f1f5f9;
    color: var(--navy);
}

.folder-item.active a {
    font-weight: 700;
    color: var(--primary);
}

.badge-count {
    font-size: 11px;
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.btn-folder-delete {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: none;
}
.folder-item:hover .btn-folder-delete {
    display: block;
}
.btn-folder-delete:hover {
    color: var(--danger-text);
}

.sidebar-bottom {
    margin-top: 24px;
}

.overview-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
}

.overview-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.overview-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 8px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.trial-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 24px 32px;
    max-width: 1300px;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.header-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
}

.crumb-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}
.crumb-link:hover {
    color: var(--navy);
}
.crumb-sep {
    color: #94a3b8;
    width: 18px;
    height: 18px;
}
.crumb-current {
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
}

/* Filter Toolbar */
.filter-toolbar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-filter-dropdown {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.btn-filter-dropdown:hover {
    background: #f8fafc;
}

.filter-tag b {
    color: var(--navy);
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.sort-select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    outline: none;
}

.view-mode-switch {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.icon-toggle {
    background: #ffffff;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text-muted);
}
.icon-toggle.active {
    background: #f1f5f9;
    color: var(--navy);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.search-box input {
    padding: 6px 12px 6px 32px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    width: 220px;
}
.search-box input:focus {
    border-color: var(--primary);
}

/* Tips Banner */
.tips-banner {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tips-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tips-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.tips-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
}
.tips-text p {
    font-size: 13px;
    color: #0c4a6e;
}

.tips-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-outline-dark {
    border: 1px solid #0369a1;
    color: #0369a1;
    background: transparent;
    border-radius: 20px;
    padding: 4px 14px;
    font-weight: 700;
}
.btn-outline-dark:hover {
    background: #0369a1;
    color: #ffffff;
}

.icon-btn-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #0369a1;
    cursor: pointer;
}

/* Scroll Container for QR Codes (Limits endless scrolling on dashboard) */
.qrcodes-scroll-container {
    max-height: 840px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.qrcodes-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.qrcodes-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.qrcodes-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
.qrcodes-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Tile Grid View (3 QR Codes per row) */
.qrcodes-list.grid-view {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 1200px) {
    .qrcodes-list.grid-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .qrcodes-list.grid-view {
        grid-template-columns: 1fr;
    }
}

.qrcodes-list.grid-view .qrcode-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 16px;
    border-radius: 10px;
    height: 100%;
    min-height: 230px;
}

.qrcodes-list.grid-view .card-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
}

.qrcodes-list.grid-view .qr-thumb-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 8px;
}

.qrcodes-list.grid-view .card-middle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    width: 100%;
}

.qrcodes-list.grid-view .card-header-row {
    margin-bottom: 2px;
}

.qrcodes-list.grid-view .card-title-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.qrcodes-list.grid-view .card-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.qrcodes-list.grid-view .card-shortlink-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    background: var(--bg-subtle);
    border-radius: 6px;
    font-size: 12px;
}

.qrcodes-list.grid-view .card-destination-row {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.qrcodes-list.grid-view .destination-url {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qrcodes-list.grid-view .card-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.qrcodes-list.grid-view .card-actions-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qrcodes-list.grid-view .card-scans-metric {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-subtle);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* QR Code Card (Matching Screenshots 1 & 7) */
.qrcode-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}
.qrcode-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-thumb-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}


.qr-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 35, 64, 0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.qr-thumb-wrapper:hover .thumb-hover-overlay {
    opacity: 1;
}

.card-middle {
    flex-grow: 1;
}

.card-header-row {
    margin-bottom: 4px;
}

.card-title-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}
.card-title-link:hover {
    color: var(--primary);
}

.card-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.badge-type {
    background: #f1f5f9;
    color: var(--text-secondary);
}

.badge-date {
    background: transparent;
    color: var(--text-muted);
}

.badge-active {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-paused {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge-expiry {
    background: var(--info-bg);
    color: var(--info-text);
}

.badge-folder {
    background: #f3e8ff;
    color: #7e22ce;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-icon {
    width: 11px;
    height: 11px;
}

.card-shortlink-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.short-url-text {
    font-family: monospace;
    font-size: 13px;
    color: #334155;
}

.btn-copy-link {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
}
.btn-copy-link:hover {
    color: var(--primary);
}

.card-destination-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.destination-arrow {
    color: #94a3b8;
}

.destination-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.destination-url {
    color: var(--primary);
    text-decoration: none;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.destination-url:hover {
    text-decoration: underline;
}

.btn-edit-dest {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
}
.btn-edit-dest:hover {
    color: var(--navy);
}

.card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.card-actions-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-icon {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.btn-action-icon:hover {
    background: #f1f5f9;
    color: var(--navy);
}

.card-scans-metric {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.scans-icon {
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

/* Empty State (Matching Screenshot 4) */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.empty-folder-icon {
    width: 64px;
    height: 64px;
    color: #93c5fd;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Create QR Code Screen (Screenshot 9) */
.create-page-container {
    display: flex;
    gap: 32px;
}

.create-left-panel {
    flex: 1;
}

.create-right-panel {
    width: 380px;
    flex-shrink: 0;
}

.code-type-primary-card {
    background: #ffffff;
    border: 2px solid #0099ff;
    border-radius: 10px;
    padding: 24px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.card-type-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.type-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-name-heading {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
}

.btn-bulk-link {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-bulk-link:hover {
    text-decoration: underline;
}

.type-description-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.url-input-wrapper {
    display: flex;
    gap: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
}

.form-control-lg {
    font-size: 15px;
    padding: 12px 16px;
}

.char-count-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

.btn-submit-create {
    padding: 12px 28px;
    font-weight: 800;
    white-space: nowrap;
}

.section-divider-text {
    text-align: center;
    position: relative;
    margin: 24px 0;
}
.section-divider-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}
.section-divider-text span {
    position: relative;
    background: var(--bg-page);
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.dynamic-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.type-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.type-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.type-card.active {
    border: 2.5px solid #0284c7 !important;
    background: #f0f9ff !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}
.type-card-badge-check {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    align-items: center;
    justify-content: center;
}
.type-card-badge-check svg {
    width: 12px;
    height: 12px;
    stroke-width: 3;
}
.type-card.active .type-card-badge-check {
    display: flex;
}

.type-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff8ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.type-card.active .type-card-icon {
    background: #0284c7;
    color: #ffffff;
}

.type-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.type-card-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Welcome Screen Upload Card (Edit & Create pages) */
.welcome-screen-upload-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.welcome-logo-box {
    width: 160px;
    height: 95px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.15s;
}

.welcome-logo-box:hover {
    border-color: #0284c7;
}

.welcome-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Phone Mockup Preview (Matching Screenshot 9 & Reference) */
.phone-mockup-wrapper {
    position: sticky;
    top: 80px;

}

.phone-mockup {
    width: 330px;
    height: 590px;
    background: #ffffff;
    border: 10px solid #f1f5f9;
    border-radius: 34px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.phone-speaker {
    width: 60px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    flex-grow: 1;
    background: #ffffff;
    overflow-y: auto;
    padding-top: 14px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Hover QR Code Overlay in Wizard on mouse pointer/hover */
.phone-mockup {
    position: relative;
}

.phone-mockup .phone-qr-hover-overlay {
    display: none !important;
}

.phone-qr-hover-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 220px;
    transform: translateY(8px);
    transition: transform 0.25s ease;
}

.phone-mockup:hover .phone-qr-hover-card,
.phone-qr-hover-overlay.visible .phone-qr-hover-card {
    transform: translateY(0);
}

.phone-qr-hover-card img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    display: block;
}

.phone-hover-qr-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.vcard-preview-header {
    background: #2b6cb0;
    color: #ffffff;
    text-align: center;
    padding: 30px 16px 20px;
}

.vcard-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
}

.vcard-name {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
}

.vcard-role {
    font-size: 13px;
    opacity: 0.9;
}

.vcard-actions-row {
    display: flex;
    justify-content: space-around;
    background: #235284;
    padding: 10px 14px;
}

.vcard-action-btn {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    cursor: pointer;
}

.vcard-bio-card {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.vcard-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
}

.contact-icon {
    color: var(--primary);
}

.contact-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-lbl {
    font-size: 11px;
    color: var(--text-muted);
}

.contact-action-circle {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e11d48;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcard-destination-tag {
    padding: 16px 20px;
    text-align: center;
}

.preview-url-lbl {
    font-size: 11px;
    color: var(--text-muted);
    word-break: break-all;
}

/* Customize QR Code Screen (Screenshots 2 & 3) */
.customize-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.customize-header-title h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
}

.customize-main-layout {
    display: flex;
    gap: 32px;
}

.customize-left-panel {
    flex: 1;
}

.customize-right-panel {
    width: 380px;
    flex-shrink: 0;
}

.customize-section-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.section-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}

.templates-empty-state {
    padding: 14px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 13px;
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.subsection-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.5px;
}

.options-icon-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.design-option-box {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}
.design-option-box:hover {
    border-color: #94a3b8;
}
.design-option-box.active {
    border-color: var(--primary);
    background: #eff8ff;
}

.opt-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.frame-thumb-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4px;
}

.frame-thumb-qr {
    width: 24px;
    height: 24px;
    background: #1e293b;
    border-radius: 2px;
}

.frame-thumb-pill {
    font-size: 6px;
    font-weight: 800;
    background: #1e293b;
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 3px;
}

.phone-notch-thumb {
    width: 14px;
    height: 2px;
    background: #1e293b;
    margin-bottom: 2px;
}

.thumb-caption {
    font-size: 6px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2px;
}

.badge-logo-thumb {
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    color: var(--navy);
}

.custom-logo-thumb {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.btn-link-upload {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    margin-left: auto;
}

/* Shape pattern visuals */
.shape-pattern {
    width: 32px;
    height: 32px;
}
.square-pattern {
    background: repeating-conic-gradient(#0c2340 0% 25%, transparent 0% 50%) 50% / 10px 10px;
}
.rounded-pattern {
    background: radial-gradient(circle, #0c2340 40%, transparent 40%) 0 0 / 10px 10px;
    border-radius: 4px;
}
.dots-pattern {
    background: radial-gradient(circle, #0c2340 35%, transparent 35%) 0 0 / 10px 10px;
}
.gapped-pattern {
    background: repeating-linear-gradient(45deg, #0c2340, #0c2340 4px, transparent 4px, transparent 8px);
}

.colors-row {
    display: flex;
    gap: 24px;
}

.color-picker-group {
    flex: 1;
}

.color-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.color-input-box input[type="color"] {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    background: #ffffff;
}

.color-hex-text {
    font-family: monospace;
    font-weight: 600;
    max-width: 120px;
}

.btn-group-footer {
    display: flex;
    gap: 12px;
}

/* Live Preview Panel */
.preview-panel-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    position: sticky;
    top: 80px;
}

.preview-header-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.preview-canvas-wrapper {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.live-qr-img {
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn-reset-design {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-reset-design:hover {
    color: var(--primary);
}

/* Modals & Backdrop (High-priority override against Bootstrap 5 conflicts) */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    padding: 20px !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.modal-backdrop.show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-backdrop .modal-dialog,
.modal-dialog {
    background: #ffffff !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 520px !important;
    max-height: min(90vh, 760px) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 100000 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: auto !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    animation: modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-backdrop .modal-sm,
.modal-sm {
    max-width: 420px !important;
}
.modal-backdrop .modal-md,
.modal-md {
    max-width: 520px !important;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fafbfc;
    flex-shrink: 0;
}

/* Dropdown menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 6px 0;
    z-index: 200;
    display: none;
}
.dropdown-menu.show {
    display: block;
}

.dropdown-menu.card-menu {
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 4px) !important;
    min-width: 175px !important;
    z-index: 1000 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}
.dropdown-item:hover {
    background: #f1f5f9;
}
.dropdown-item.active {
    font-weight: 700;
    color: var(--primary);
    background: #eff8ff;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.reports-dropdown, .user-profile-menu, .menu-dropdown-container, .filter-dropdown {
    position: relative;
}

.dropdown-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}
.user-email-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}
.user-id-text {
    font-size: 11px;
    color: var(--text-muted);
}

/* Download Modal UI (Matching Screenshot 6) */
.download-qr-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 auto 16px auto;
}

.download-preview-thumb {
    width: 280px !important;
    height: 280px !important;
    max-width: 280px !important;
    max-height: 280px !important;
    border: none;
    border-radius: 12px;
    padding: 0;
    background: #ffffff;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.format-pills {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.btn-format-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}
.btn-format-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.format-note {
    font-size: 12px;
    line-height: 1.4;
}

/* Bulk drop zone */
.drop-zone {
    border: 2px dashed #93c5fd;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: #f0f9ff;
    cursor: pointer;
    transition: background 0.15s ease;
}
.drop-zone:hover {
    background: #e0f2fe;
}
.drop-icon {
    width: 42px;
    height: 42px;
    color: var(--primary);
    margin-bottom: 8px;
}
.drop-text {
    font-size: 13px;
    color: var(--text-secondary);
}
.selected-file-label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.sample-downloads {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.link-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--navy);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none;
}
.toast.show {
    display: block;
    animation: toastIn 0.2s ease-out;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Helper Utilities */
.text-green { color: #16a34a !important; }
.text-blue { color: #0284c7 !important; }
.text-red { color: #dc2626 !important; }
.text-danger { color: #dc2626 !important; }
.text-muted { color: var(--text-muted) !important; }
.font-bold { font-weight: 700 !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

/* ======================================================== */
/* MULTI-TYPE CREATION WIZARD & DESIGN STUDIO STYLES       */
/* Exact styling matching user uploaded screenshots         */
/* ======================================================== */

.wizard-root-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.wizard-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.wizard-title-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.wizard-type-avatar {
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-main-name-input {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    max-width: 500px;
}

.wizard-main-name-input::placeholder {
    color: #94a3b8;
}

.wizard-columns-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
    padding-bottom: 90px;
}

/* Accordions */
.wz-accordion {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.wz-acc-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.wz-acc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.wz-chevron {
    color: #64748b;
    transition: transform 0.2s;
}

.wz-acc-body {
    padding: 20px;
    background: #ffffff;
}

.wz-subtext {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.wz-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

/* Dropzone */
.wz-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s, background 0.2s;
}

.wz-dropzone:hover {
    border-color: #0284c7;
    background: #f0f9ff;
}

/* Color Swatches Grid - Single Horizontal Row (Landscape View across ALL Types) */
.wz-swatches-grid-2x5,
.wz-swatches-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    scrollbar-width: thin !important;
    -webkit-overflow-scrolling: touch !important;
}

.wz-swatch {
    width: 52px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    transition: transform 0.15s, border-color 0.15s;
}

.wz-swatch:hover {
    transform: translateY(-2px);
    border-color: #94a3b8;
}

.wz-swatch.active {
    border-color: #84cc16;
    box-shadow: 0 0 0 2px rgba(132, 204, 22, 0.25);
}

.sw-top {
    height: 55%;
    width: 100%;
}

.sw-bottom {
    height: 45%;
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.sw-check {
    display: none;
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: #84cc16;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
}

.sw-check svg {
    width: 10px;
    height: 10px;
}

.wz-swatch.active .sw-check {
    display: flex;
}

/* Color pickers row */
.wz-color-pickers-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wz-picker-col {
    flex: 1;
}

.wz-picker-col label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    display: block;
}

.wz-input-color-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.wz-input-color-wrap input[type="text"] {
    border: none;
    box-shadow: none;
    padding: 6px 10px;
    font-size: 13px;
    flex: 1;
}

.wz-input-color-wrap input[type="color"] {
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.btn-swap {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    margin-top: 18px;
}

.btn-swap:hover {
    background: #e2e8f0;
}

/* /* Modern Client-Spec Social Media Builder (PDF Page 4) */
.social-channels-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.soc-channel-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    padding: 2px 0;
}

.soc-channel-label {
    width: 90px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-align: right;
    padding-right: 4px;
    padding-top: 8px;
}

.soc-channel-badge {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
    margin-top: 0px;
}

.soc-channel-row[data-key="google_review"] .soc-channel-badge {
    border: 1px solid #e2e8f0;
}

.soc-channel-badge svg {
    width: 20px;
    height: 20px;
}

.soc-channel-inputs-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.soc-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    height: 38px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.soc-input-group:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.soc-input-group.has-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px #ef4444 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.soc-input-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0 10px;
    background: #f8fafc;
    border-right: 1px solid #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    user-select: none;
}

.soc-input-group.has-error .soc-input-tag {
    border-right-color: #ef4444;
}

.soc-input-field {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 6px 12px;
    font-size: 13px;
    color: #0f172a;
    background: transparent;
    min-width: 0;
}

.soc-input-field::placeholder {
    color: #94a3b8;
}

.soc-err-banner {
    background: #ef4444;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-top: -6px;
    margin-bottom: 2px;
    display: block;
}

.soc-channel-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-top: 6px;
    flex-shrink: 0;
}

.soc-tooltip-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.soc-tooltip-btn:hover {
    color: #0284c7;
}

.soc-delete-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.soc-delete-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

.soc-arrow-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.soc-arrow-btn:hover {
    color: #1e293b;
    background: #f1f5f9;
}

/* Palette 34 outline grid (Matching media_1789748342351.png) */
.social-icons-palette-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    max-width: 100% !important;
    padding: 4px 0 !important;
}

.soc-palette-btn {
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.15s ease !important;
    color: #475569 !important;
}

.soc-palette-btn:hover {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
    transform: scale(1.15) !important;
}

.soc-palette-btn svg {
    width: 20px !important;
    height: 20px !important;
}

/* Feedback card */
.wz-feedback-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.wz-fb-head {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
}

.wz-fb-sub {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 10px 0;
}

.wz-fb-body {
    display: flex;
    gap: 12px;
}

.wz-fb-mascot {
    color: #0284c7;
}

/* Preview / QR Code Toggle Pills */
.wz-preview-toggle-pills {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.preview-pill {
    padding: 6px 20px;
    border-radius: 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.preview-pill.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

/* Sticky Wizard Bottom Bar */
.wizard-sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 240px;
    right: 0;
    background: #334155;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
    .wizard-sticky-bottom-bar {
        left: 0;
    }
}

.btn-wz-back {
    background: #475569;
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
}

.btn-wz-back:hover {
    background: #64748b;
}

.btn-wz-next {
    background: #7ebd22;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 48px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(126, 189, 34, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-wz-next:hover {
    background: #6ea71e;
}

/* Step 2 Design Studio */
.step2-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.step2-workspace-grid {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 32px;
}

.step2-custom-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
}

.step2-card-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.frames-selector-grid, .shapes-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.frame-choice, .shape-choice {
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.frame-choice.active, .shape-choice.active {
    border-color: #0284c7;
    background: #f0f9ff;
}

.step2-preview-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
}

.preview-badge {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.step2-qr-wrapper {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    display: inline-block;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.step2-qr-wrapper img {
    width: 240px;
    height: 240px;
    object-fit: contain;
}

.step2-download-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.btn-download-lg {
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==============================================================================
   NEW COMPONENT STYLES: BRANDING, MULTI-THEME, STATUS, SIDEBAR NAV, SUMMARY DASHBOARD
   ============================================================================== */

/* Enterprise Brand Logo (Top Left) */
.brand-logo-pro {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    user-select: none;
}
.brand-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: block;
}
.brand-name-wrap {
    display: flex;
    flex-direction: column;
}
.brand-main-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.brand-sub-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Live Status Indicators (Top Nav) */
.nav-status-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.nav-status-pill.connected, .nav-status-pill.online {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.nav-status-pill.retrying, .nav-status-pill.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid rgba(245, 158, 11, 0.4);
    animation: pulse-retry 1.5s infinite;
}
.nav-status-pill.offline, .nav-status-pill.disconnected {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.nav-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.nav-status-pill.connected .nav-status-dot, .nav-status-pill.online .nav-status-dot {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}
.nav-status-pill.retrying .nav-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}
.nav-status-pill.offline .nav-status-dot, .nav-status-pill.disconnected .nav-status-dot {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

/* Theme Switcher Dropdown */
.theme-dropdown {
    position: relative;
}
.theme-select-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s ease;
}
.theme-select-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
}
.theme-menu {
    min-width: 190px;
    padding: 6px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}
.theme-option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.theme-option-row:hover {
    background: var(--hover-bg);
}
.theme-option-row.active {
    background: var(--active-nav-bg);
    color: var(--primary);
}
.theme-color-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* Sidebar Top Primary Navigation */
.sidebar-nav-section {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}
.sidebar-nav-link i, .sidebar-nav-link svg {
    width: 18px;
    height: 18px;
}
.sidebar-nav-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}
.sidebar-nav-link.active {
    background: var(--active-nav-bg);
    color: var(--primary);
    font-weight: 700;
}

/* Sidebar Project & Version Card */
.project-version-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    margin-top: auto;
}
.project-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.project-card-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.project-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 6px;
}
.project-info-row:last-child {
    margin-bottom: 0;
}
.project-info-label {
    color: var(--text-muted);
}
.project-info-value {
    font-weight: 700;
    color: var(--text-primary);
}
.scannability-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
}

/* Summary Dashboard Styling */
.dashboard-summary-wrap {
    max-width: 1280px;
    margin: 0 auto;
}
.summary-welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}
.summary-welcome-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.summary-welcome-sub {
    font-size: 13px;
    color: var(--text-muted);
}
.system-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--success-bg);
    color: var(--success-text);
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kpi-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}
.quick-create-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}
.quick-create-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.quick-create-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.quick-card-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s ease;
    text-align: center;
}
.quick-card-btn:hover {
    background: var(--active-nav-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.quick-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.quick-card-btn span {
    font-size: 12px;
    font-weight: 700;
}
.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.summary-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
}
.summary-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.summary-chart-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.chart-canvas-box {
    height: 250px;
    position: relative;
}
.summary-tables-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
}
.summary-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
}
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}
.summary-table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-subtle);
}
.summary-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.summary-table tr:hover td {
    background: var(--hover-bg);
}

/* Analytics 2-Column Responsive Grid */
.analytics-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.summary-welcome-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.summary-welcome-sub {
    font-size: 13px;
    color: var(--text-muted);
}
.system-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--success-bg);
    color: var(--success-text);
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kpi-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}
.quick-create-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}
.quick-create-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.quick-create-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.quick-card-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s ease;
    text-align: center;
}
.quick-card-btn:hover {
    background: var(--active-nav-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.quick-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.quick-card-btn span {
    font-size: 12px;
    font-weight: 700;
}
.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.summary-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
}
.summary-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.summary-chart-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.chart-canvas-box {
    height: 250px;
    position: relative;
}
.summary-tables-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
}
.summary-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
}
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}
.summary-table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-subtle);
}
.summary-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.summary-table tr:hover td {
    background: var(--hover-bg);
}

/* Analytics 2-Column Responsive Grid */
.analytics-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.chart-box-constrained {
    height: 260px;
    position: relative;
}

/* Logout Confirmation Modal */
.modal-confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* ==========================================================================
   STEP 0: TYPE SELECTION CATALOG (Matching media_1789523212294.png)
   ========================================================================== */
.catalog-root {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px 90px 10px;
    position: relative;
}

.catalog-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.catalog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0284c7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    background: #f0f9ff;
}

.catalog-back-btn:hover {
    background: #e0f2fe;
    color: #0369a1;
}

.catalog-main-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 auto;
    text-align: center;
    letter-spacing: -0.3px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
}

.catalog-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Website Creation Card */
.cat-website-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: border-color 0.2s;
}

.cat-website-card:hover {
    border-color: #cbd5e1;
}

.cat-web-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cat-web-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.cat-web-title-wrap i {
    color: #0284c7;
    width: 18px;
    height: 18px;
}

.cat-bulk-csv-link {
    font-size: 12px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cat-bulk-csv-link:hover {
    text-decoration: underline;
}

.cat-web-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 14px;
}

.cat-web-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cat-web-input-group input {
    flex: 1;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 13px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
}

.cat-web-input-group input:focus {
    background: #ffffff;
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.cat-btn-create-web {
    background: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 24px;
    height: 42px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cat-btn-create-web:hover {
    background: #0052a3;
}

.cat-char-count-text {
    text-align: right;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Divider with Centered Pill */
.cat-middle-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 6px 0;
}

.cat-middle-divider::before,
.cat-middle-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.cat-middle-divider span {
    padding: 0 14px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* 2-Column Dynamic Tiles Grid */
.cat-dynamic-tiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cat-type-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    user-select: none;
}

.cat-type-card:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.cat-type-card.active {
    border-color: #0284c7;
    background: #e0f2fe;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.cat-type-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.cat-type-card:hover .cat-type-icon-box,
.cat-type-card.active .cat-type-icon-box {
    background: #0284c7;
    color: #ffffff;
}

.cat-type-info {
    flex: 1;
    min-width: 0;
}

.cat-type-heading {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.cat-type-subtext {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Centralized Floating NEXT Button Bar (Pinned at exact center, visible only after selecting a type - matching media_1789702839533.png) */
.cat-central-next-bar {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.btn-cat-central-next {
    pointer-events: auto;
    background: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 12px 64px;
    min-width: 260px;
    max-width: 86vw;
    height: 48px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 102, 204, 0.38);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-cat-central-next:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 102, 204, 0.48);
}

.btn-cat-central-next:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.3);
}

/* Right Side Preview Column */
.catalog-right-col {
    position: sticky;
    top: 24px;
}

.cat-preview-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

/* Default Illustration State */
.cat-illustration-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
}

.cat-illustration-svg {
    width: 180px;
    height: 180px;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 16px rgba(2, 132, 199, 0.1));
    animation: catFloat 3s ease-in-out infinite;
}

@keyframes catFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.cat-illustration-caption {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    max-width: 220px;
    line-height: 1.4;
    margin: 0;
}

/* Active Hover Phone Mockup State */
.cat-phone-state {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.cat-phone-state .smartphone-mockup {
    margin: 0 auto;
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

/* 1st Page (Catalog): Floating QR Code Overlay on mouse point/hover */
.cat-phone-state .phone-qr-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
    z-index: 100;
    border-radius: 40px;
}

.cat-phone-state .smartphone-mockup:hover .phone-qr-hover-overlay,
.cat-phone-state .phone-screen:hover .phone-qr-hover-overlay,
.cat-phone-state:hover .phone-qr-hover-overlay,
.cat-phone-state .phone-qr-hover-overlay.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.cat-phone-state .phone-qr-hover-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 220px;
    transform: translateY(6px);
    transition: transform 0.25s ease;
}

.cat-phone-state .smartphone-mockup:hover .phone-qr-hover-card,
.cat-phone-state .phone-screen:hover .phone-qr-hover-card,
.cat-phone-state:hover .phone-qr-hover-card,
.cat-phone-state .phone-qr-hover-overlay.visible .phone-qr-hover-card {
    transform: translateY(0);
}

/* ==============================================================================
   BULK CREATE WIZARD PAGE STYLES (Matching media_1789532773400.png)
   ============================================================================== */
.bulk-trial-banner {
    background: #0066cc;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 13.5px;
    font-weight: 600;
}
.bulk-trial-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.btn-banner-plans {
    background: transparent;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 16px;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.5px;
}
.btn-banner-plans:hover {
    background: rgba(255,255,255,0.15);
}

.bulk-page-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 20px 100px;
}
.bulk-back-nav {
    margin-bottom: 16px;
}
.bulk-back-link {
    color: #0284c7;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bulk-back-link:hover {
    text-decoration: underline;
}

.bulk-header-block {
    margin-bottom: 24px;
}
.bulk-category-badge {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.bulk-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.bulk-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}
.bulk-steps-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bulk-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.bulk-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bulk-step-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.btn-download-csv {
    border: 1.5px solid #0284c7;
    color: #0284c7;
    background: #ffffff;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-download-csv:hover {
    background: #f0f9ff;
    color: #0369a1;
}

.bulk-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s ease;
}
.bulk-dropzone:hover, .bulk-dropzone.dragover {
    border-color: #0284c7;
    background: #f0f9ff;
}
.dropzone-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.dropzone-cloud-icon {
    font-size: 32px;
    color: #0284c7;
    margin-bottom: 8px;
}
.dropzone-cloud-icon i, .dropzone-cloud-icon svg {
    width: 32px;
    height: 32px;
}
.dropzone-text-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.text-upload-action {
    font-weight: 700;
    color: #0284c7;
    font-size: 14px;
}
.text-upload-or {
    color: #64748b;
    font-size: 14px;
}

.bulk-selected-file-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* New Social Media Channels Styling (Matching Client PDF Page 4 media_1789662099740.png) */
.social-channels-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.soc-channel-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.soc-channel-label {
    width: 110px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-align: left;
}

.soc-channel-badge {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.soc-input-group-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.soc-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    height: 38px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.soc-input-group:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.soc-input-group.has-error {
    border-color: #ef4444;
}

.soc-input-tag {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.soc-input-field {
    flex: 1;
    border: none;
    outline: none;
    height: 100%;
    padding: 0 12px;
    font-size: 13px;
    color: #1e293b;
    background: transparent;
}

.soc-input-field::placeholder {
    color: #94a3b8;
}

.soc-info-icon {
    color: #94a3b8;
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.soc-info-icon:hover {
    color: #0284c7;
}

.soc-error-msg {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0 0 4px 4px;
    display: none;
}

.soc-btn-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.soc-btn-remove:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Palette Grid of 34 monochrome icons */
.social-icons-palette-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 440px;
}

.soc-palette-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.soc-palette-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.soc-palette-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.15s;
}

.soc-palette-btn:hover svg {
    transform: scale(1.1);
}

.btn-remove-file {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #ef4444;
    cursor: pointer;
    margin-left: auto;
    line-height: 1;
}

.bulk-template-selector-row {
    display: flex;
    align-items: center;
}
.bulk-template-box {
    width: 58px;
    height: 58px;
    border: 2px solid #0284c7;
    border-radius: 6px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 0 0 1px #0284c7;
}
.bulk-template-mini-qr {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bulk-illustration-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.conveyor-svg-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.illustration-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.illustration-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.bulk-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}
.btn-bulk-cancel {
    border: 1.5px solid #cbd5e1;
    color: #475569;
    background: #ffffff;
    border-radius: 24px;
    padding: 8px 24px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-bulk-cancel:hover {
    border-color: #94a3b8;
    color: #1e293b;
}
.btn-bulk-start {
    background: #0284c7;
    border: none;
    color: #ffffff;
    border-radius: 24px;
    padding: 10px 28px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-bulk-start:hover {
    background: #0369a1;
}

/* ==============================================================================
   STEP 2 DESIGN STUDIO ENHANCEMENTS (Matching media_1789532304219.png)
   ============================================================================== */
.options-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.design-option-box {
    width: 58px;
    height: 58px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
}
.design-option-box:hover {
    border-color: #94a3b8;
}
.design-option-box.active {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 1px #0284c7;
}

.show-more-box {
    display: inline-flex;
    align-items: center;
    padding-left: 6px;
    cursor: pointer;
}
.show-more-text {
    font-size: 13px;
    font-weight: 700;
    color: #0284c7;
}
.show-more-text:hover {
    text-decoration: underline;
}

/* Frame thumbnail icons */
.frame-thumb-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4px;
}
.frame-thumb-qr {
    width: 22px;
    height: 22px;
    background: #1e293b;
    border-radius: 2px;
}
.frame-thumb-pill {
    font-size: 5.5px;
    font-weight: 800;
    background: #1e293b;
    color: #ffffff;
    padding: 1px 3px;
    border-radius: 3px;
    margin-top: 2px;
    letter-spacing: 0.2px;
}
.phone-box {
    border: 1.5px solid #1e293b;
    border-radius: 6px;
    padding: 3px 2px;
    width: 34px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.phone-notch-thumb {
    width: 10px;
    height: 2px;
    background: #1e293b;
    border-radius: 1px;
}
.phone-chin-thumb {
    width: 8px;
    height: 1.5px;
    background: #cbd5e1;
    border-radius: 1px;
}
.card-box {
    border: 1.5px solid #1e293b;
    border-radius: 3px;
    padding: 3px;
    width: 38px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.card-box .thumb-caption {
    font-size: 5px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 1px;
}
.ticket-box {
    border: 1.5px dashed #1e293b;
    border-radius: 3px;
    padding: 2px;
    width: 42px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Logos visual icons */
.logo-circle-globe {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-circle-globe i, .logo-circle-globe svg {
    width: 18px;
    height: 18px;
}
.logo-scan-bracket {
    border: 2px solid #0f172a;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    color: #0f172a;
}
.badge-logo-thumb {
    background: #0f172a;
    color: #ffffff;
    font-size: 7px;
    font-weight: 900;
    line-height: 1.1;
    padding: 4px 6px;
    border-radius: 4px;
    text-align: center;
}

/* Shape pattern visuals */
.shape-pattern {
    width: 30px;
    height: 30px;
}
.square-pattern {
    background: repeating-conic-gradient(#0c2340 0% 25%, transparent 0% 50%) 50% / 10px 10px;
}
.rounded-pattern {
    background: radial-gradient(circle, #0c2340 40%, transparent 40%) 0 0 / 10px 10px;
    border-radius: 4px;
}
.dots-pattern {
    background: radial-gradient(circle, #0c2340 35%, transparent 35%) 0 0 / 10px 10px;
}
.gapped-pattern {
    background: repeating-linear-gradient(45deg, #0c2340, #0c2340 3px, transparent 3px, transparent 7px);
}
.vbars-pattern {
    background: repeating-linear-gradient(90deg, #0c2340, #0c2340 3px, transparent 3px, transparent 6px);
}
.diamond-pattern {
    background: radial-gradient(circle, #0c2340 40%, transparent 40%) 0 0 / 8px 8px;
    transform: rotate(45deg);
}

/* Shape Colors Row */
.shape-colors-row {
    display: flex;
    gap: 20px;
    align-items: center;
}
.color-field-col {
    flex: 1;
}
.color-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.color-input-box input[type="color"] {
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    padding: 1px;
    background: #ffffff;
}
.color-hex-text {
    font-family: monospace;
    font-weight: 700;
    max-width: 110px;
    font-size: 13px;
}
.checkbox-trans-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 4px;
}

/* Corners Section */
.corners-nav-tabs {
    display: inline-flex;
    border-bottom: 2px solid #e2e8f0;
    gap: 16px;
    margin-bottom: 8px;
}
.corner-tab {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    padding: 4px 0 8px;
    cursor: pointer;
    position: relative;
}
.corner-tab.active {
    color: #0284c7;
    border-bottom: 2px solid #0284c7;
    margin-bottom: -2px;
}
.corners-icon-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
}
.corner-option-box {
    width: 38px;
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s ease;
}
.corner-option-box:hover {
    border-color: #94a3b8;
}
.corner-option-box.active {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 1px #0284c7;
}
.corner-preview-eye {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.corner-preview-eye::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background: #0f172a;
}
.eye-square-square { border: 3px solid #0f172a; }
.eye-square-square::after { border-radius: 0; }
.eye-square-round { border: 3px solid #0f172a; }
.eye-square-round::after { border-radius: 2px; }
.eye-square-circle { border: 3px solid #0f172a; }
.eye-square-circle::after { border-radius: 50%; }
.eye-rounded-square { border: 3px solid #0f172a; border-radius: 4px; }
.eye-rounded-square::after { border-radius: 0; }
.eye-rounded-round { border: 3px solid #0f172a; border-radius: 4px; }
.eye-rounded-round::after { border-radius: 2px; }
.eye-rounded-circle { border: 3px solid #0f172a; border-radius: 4px; }
.eye-rounded-circle::after { border-radius: 50%; }
.eye-circle-circle { border: 3px solid #0f172a; border-radius: 50%; }
.eye-circle-circle::after { border-radius: 50%; }
.eye-leaf-circle { border: 3px solid #0f172a; border-radius: 6px 0 6px 0; }
.eye-leaf-circle::after { border-radius: 50%; }
.eye-leaf-square { border: 3px solid #0f172a; border-radius: 6px 0 6px 0; }
.eye-leaf-square::after { border-radius: 0; }
.eye-inv-leaf { border: 3px solid #0f172a; border-radius: 0 6px 0 6px; }
.eye-inv-leaf::after { border-radius: 50%; }
.eye-cut-corner { border: 3px solid #0f172a; clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 25%); }
.eye-cut-corner::after { border-radius: 0; }
.eye-minimal-dot { border: none; }
.eye-minimal-dot::after { width: 12px; height: 12px; border-radius: 50%; }

/* Corner Toggle */
.corner-color-toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.toggle-switch-wrap {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}
.toggle-switch-wrap input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .2s;
    border-radius: 20px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}
.toggle-switch-wrap input:checked + .toggle-slider {
    background-color: #0284c7;
}
.toggle-switch-wrap input:checked + .toggle-slider:before {
    transform: translateX(16px);
}
.toggle-label-text {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

/* SHORT URL Input Field */
.short-url-input-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    gap: 6px;
    max-width: 380px;
}
.short-url-field {
    border: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: #0284c7;
    flex: 1;
    outline: none;
}
.btn-short-url-action {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.15s;
}
.btn-short-url-action:hover {
    color: #0284c7;
    background: #f1f5f9;
}
.btn-short-url-action i, .btn-short-url-action svg {
    width: 16px;
    height: 16px;
}

/* Customizer Footer Buttons */
.customize-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.footer-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.save-template-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
}
.btn-skip-code {
    border: 1.5px solid #cbd5e1;
    color: #475569;
    background: #ffffff;
    border-radius: 20px;
    padding: 7px 24px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-skip-code:hover {
    border-color: #94a3b8;
    color: #1e293b;
}
.btn-complete-code {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 9px 26px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-complete-code:hover {
    background: #0369a1;
}

/* Right Panel Preview Buttons */
.btn-reset-design {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    margin-top: 12px;
    transition: color 0.15s;
}
.btn-reset-design:hover {
    color: #0284c7;
}
.btn-reset-design i, .btn-reset-design svg {
    width: 14px;
    height: 14px;
}

.step2-download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.btn-download-pill {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}
.btn-download-pill:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
}
.btn-download-pill i, .btn-download-pill svg {
    width: 14px;
    height: 14px;
}

/* Analytics Table Scrollbox - limit default 10 rows then scroll */
.analytics-table-scrollbox {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 12px;
}
.analytics-table-scrollbox .summary-table {
    margin-top: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.analytics-table-scrollbox .summary-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-subtle);
    border-bottom: 2px solid var(--border-color);
}
.analytics-table-scrollbox::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.analytics-table-scrollbox::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}
.analytics-table-scrollbox::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 4px;
}
.analytics-table-scrollbox::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.8);
}

/* Dashboard Inline Title Editing (Matching media_1789543602806.png) */
.card-header-row.inline-title-container {
    display: flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 6px;
}
.title-display-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: -6px;
    transition: background 0.15s;
}
.title-display-mode:hover {
    background: #f1f5f9;
}
.card-title-text {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.3;
}
.btn-title-pencil {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: color 0.15s;
    opacity: 0.8;
}
.title-display-mode:hover .btn-title-pencil {
    color: #0284c7;
    opacity: 1;
}
.title-edit-mode {
    position: relative;
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
}
.card-title-input {
    width: 100%;
    padding: 5px 28px 5px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    border: 1.5px solid #0284c7;
    border-radius: 6px;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    background: #ffffff;
}
.title-input-icon {
    position: absolute;
    right: 9px;
    width: 13px;
    height: 13px;
    color: #0284c7;
    pointer-events: none;
}



/* Venue Amenities Grid */
.wz-amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.wz-amenity-chip {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.wz-amenity-chip:hover {
    border-color: #94a3b8;
    color: #1e293b;
    background: #f8fafc;
}
.wz-amenity-chip.active {
    border-color: #0284c7;
    background: #f0f9ff;
    color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}
.wz-amenity-chip i {
    width: 18px;
    height: 18px;
}

/* Banner Upload Box */
.wz-banner-box {
    width: 180px;
    height: 100px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.wz-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wz-banner-placeholder {
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
    padding: 6px;
}

/* Action Links */
.wz-link-action {
    color: #0284c7;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.wz-link-action:hover {
    text-decoration: underline;
}

/* Social Platform Pick Grid */
.wz-social-pick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 14px;
}
.wz-soc-pick-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.wz-soc-pick-btn:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-1px);
}
.wz-soc-pick-btn.selected {
    border-color: #10b981;
    background: #ecfdf5;
    color: #10b981;
}

/* Character Counter */
.wz-char-counter {
    text-align: right;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}


/* ========================================================
   ADDITIONAL QR SIMULATOR & PANEL STYLES
   ======================================================== */

/* Audio Player Simulator */
.sim-audio-player {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    margin: 12px 0;
    border: 1px solid #e2e8f0;
}
.sim-audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.sim-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0284c7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    transition: transform 0.15s;
    flex-shrink: 0;
}
.sim-play-btn:hover {
    transform: scale(1.05);
}
.sim-audio-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sim-audio-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.sim-audio-bar-fill {
    height: 100%;
    width: 35%;
    background: #0284c7;
    border-radius: 3px;
    transition: width 0.15s;
}
.sim-audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: #64748b;
}

/* Video Player Simulator */
.sim-video-box {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.sim-video-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.sim-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sim-video-play-overlay {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.sim-video-play-overlay:hover {
    transform: scale(1.1);
    background: #dc2626;
}

/* Coupon Ticket Simulator */
.sim-coupon-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 2px dashed #cbd5e1;
    position: relative;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.sim-coupon-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}
.sim-promo-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 12px 0;
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.sim-copy-btn {
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
}
.sim-copy-btn:hover {
    background: #0369a1;
}

/* Instagram Mockup */
.sim-insta-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}
.sim-insta-avatar-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sim-insta-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    object-fit: cover;
}
.sim-insta-stats {
    display: flex;
    justify-content: space-around;
    flex: 1;
    text-align: center;
}
.sim-insta-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.sim-insta-stat-lbl {
    font-size: 10.5px;
    color: #64748b;
}
.sim-insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 14px;
}
.sim-insta-grid-item {
    aspect-ratio: 1;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.sim-insta-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Facebook Mockup */
.sim-fb-banner {
    width: 100%;
    height: 100px;
    background: #1877f2;
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
}
.sim-fb-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sim-fb-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    position: absolute;
    bottom: -24px;
    left: 16px;
    background: #f8fafc;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.sim-fb-actions {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}
.sim-fb-btn {
    flex: 1;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #1e293b;
    cursor: pointer;
}
.sim-fb-btn-primary {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

/* Feedback Rating Scale Mockup */
.sim-rating-emojis {
    display: flex;
    justify-content: space-between;
    padding: 12px 6px;
    margin: 10px 0;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.sim-emoji-btn {
    font-size: 26px;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
    user-select: none;
    line-height: 1;
}
.sim-emoji-btn:hover, .sim-emoji-btn.active {
    transform: scale(1.25);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.sim-rating-stars-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0;
}
.sim-star-icon {
    width: 32px;
    height: 32px;
    color: #f59e0b;
    fill: #f59e0b;
    cursor: pointer;
    transition: transform 0.15s;
}
.sim-star-icon:hover {
    transform: scale(1.15);
}

/* Review Platforms List */
.sim-review-platform-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
}
.sim-review-platform-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* ==========================================================================
   Responsive & Mobile Navigation Enhancements (Bootstrap & Off-Canvas)
   ========================================================================== */

/* Sidebar Toggle Button in Top Nav */
.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.sidebar-toggle-btn:hover {
    background: var(--hover-bg, #f1f5f9);
    color: var(--primary, #0284c7);
    border-color: var(--primary, #0284c7);
}

/* Sidebar Mobile Header & Close Button */
.sidebar-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 14px 14px;
    border-bottom: 1px solid var(--border-color);
    margin: -10px -10px 14px -10px;
}
.sidebar-mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.sidebar-close-btn:hover {
    background: var(--hover-bg, #f1f5f9);
    color: #ef4444;
}

/* Off-canvas Backdrop for Mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

/* Desktop Sidebar Collapsible State (Option to Hide Sidebar) */
@media (min-width: 993px) {
    .sidebar {
        transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease,
                    border-color 0.2s ease;
    }
    body.sidebar-collapsed .sidebar {
        width: 0 !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        border-right: none !important;
        pointer-events: none !important;
    }
    body.sidebar-collapsed .main-content {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Mobile & Tablet View (< 992px) */
@media (max-width: 992px) {
    .sidebar-mobile-header {
        display: flex;
    }
    .sidebar-backdrop {
        display: block;
    }
    body.sidebar-mobile-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    body.sidebar-mobile-open {
        overflow: hidden !important;
    }

    /* Off-canvas sidebar */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 290px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        z-index: 1050 !important;
        background: var(--sidebar-bg, #ffffff) !important;
        border-right: 1px solid var(--border-color) !important;
        box-shadow: 6px 0 32px rgba(0, 0, 0, 0.28) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    body.sidebar-mobile-open .sidebar {
        transform: translateX(0) !important;
    }

    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
    }

    .app-layout {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    /* Grids & Cards on Tablet */
    .dashboard-charts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .summary-tables-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Mobile Navigation Header Tweaks (< 768px) */
@media (max-width: 768px) {
    .top-nav {
        padding: 0 12px !important;
        height: 56px !important;
    }
    .brand-sub-title {
        display: none !important;
    }
    .brand-main-title {
        font-size: 16px !important;
    }
    .brand-logo-img {
        width: 32px !important;
        height: 32px !important;
    }
    .nav-right {
        gap: 8px !important;
    }
    .top-nav-btn-text {
        display: none !important;
    }
    .top-nav-create-btn {
        padding: 6px 10px !important;
    }
    .nav-status-group {
        display: none !important;
    }
}

/* Responsive Dashboard Summary Grids */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .quick-create-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
}
@media (max-width: 576px) {
    .kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .quick-create-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .quick-card-btn {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
    .simple-top-heading-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .simple-top-heading-row .btn-create-qr-pill {
        width: 100% !important;
        justify-content: center !important;
    }
    .filter-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    .toolbar-left, .toolbar-right {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: space-between !important;
    }
    .search-box {
        width: 100% !important;
    }
    .sort-control {
        width: 100% !important;
    }
    .sort-select {
        width: 100% !important;
    }
    .qrcodes-list.grid-view {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure all tables and data containers are horizontally scrollable on mobile */
.table-responsive,
.analytics-table-scrollbox,
.summary-table-card,
.restaurant-table-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Clean Sidebar Link Alignment on Touch Devices */
.sidebar-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    min-height: 42px !important;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    color: var(--text-secondary);
}
.sidebar-nav-link i,
.sidebar-nav-link svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}
.sidebar-nav-link > span,
.sidebar-nav-link div > span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
}
.sidebar-nav-link .badge,
.sidebar-nav-link .badge-count {
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

/* ======================================================== */
/* Create QR Code Wizard & Type Selection Responsive Styles */
/* ======================================================== */
@media (max-width: 992px) {
    /* Step 0 Catalog Layout */
    .catalog-root {
        padding: 8px 4px 100px 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-y: visible !important;
    }
    .catalog-header-bar {
        margin-bottom: 14px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    .catalog-main-title {
        font-size: 19px !important;
    }
    .catalog-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }
    .catalog-left-col {
        width: 100% !important;
        min-width: 0 !important;
    }
    .catalog-right-col {
        position: static !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    .cat-preview-container {
        min-height: auto !important;
        padding: 16px !important;
    }

    /* Step 1 & 2 Wizard Layout */
    .wizard-root-container {
        padding-bottom: 100px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .wizard-columns-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding-bottom: 80px !important;
        width: 100% !important;
    }
    .wizard-form-column {
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
    }
    .wizard-preview-column {
        width: 100% !important;
        max-width: 100% !important;
        order: 2 !important;
        margin-top: 14px !important;
    }
    .wizard-top-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 14px !important;
    }
    .wizard-header-actions {
        width: 100% !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }
    .wizard-main-name-input {
        font-size: 17px !important;
        width: 100% !important;
    }

    /* Sticky Bottom Navigation Bar */
    .wizard-sticky-bottom-bar {
        left: 0 !important;
        right: 0 !important;
        padding: 12px 16px !important;
        z-index: 1000 !important;
    }
}

@media (max-width: 680px) {
    /* 1-Column Responsive Type Selection Grids (Smooth Vertical Touch Scrolling) */
    .cat-dynamic-tiles-grid,
    .dynamic-types-grid {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        width: 100% !important;
    }
    .cat-type-card,
    .type-card {
        width: 100% !important;
        min-height: 58px !important;
        padding: 12px 14px !important;
        box-sizing: border-box !important;
    }
    .cat-type-subtext,
    .type-card-desc {
        white-space: normal !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    /* Website Card Mobile Stacking */
    .cat-web-input-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .cat-web-input-group input {
        width: 100% !important;
        height: 44px !important;
        font-size: 14px !important;
    }
    .cat-btn-create-web {
        width: 100% !important;
        height: 44px !important;
        font-size: 14px !important;
    }

    /* Floating NEXT button on mobile */
    .cat-central-next-bar {
        bottom: 12px !important;
        width: calc(100% - 24px) !important;
        max-width: 380px !important;
    }
    .btn-cat-central-next {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 48px !important;
        font-size: 14.5px !important;
        padding: 10px 20px !important;
    }
}

