/* C:\xampp\htdocs\QRCode-Generator-php\assets\css\style.css */

/* ── LOCAL GDPR-COMPLIANT FONTS ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/inter-300.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/outfit-300.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/outfit-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/outfit-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/outfit-700.ttf') format('truetype');
}

/* ── DESIGN SYSTEM VARIABLES ── */
:root {
    --bg-main: #0c0c0e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: #ffd700;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --text-muted: #6b6b76;
    
    --color-gold: #ffd700;
    --color-gold-dark: #c9a800;
    --color-accent: #ffa500;
    --color-cyan: #00e5ff;
    --color-red: #f44336;
    --color-green: #4caf50;
    
    --sidebar-width: 280px;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 20px rgba(255, 215, 0, 0.15);

    /* Theme-specific declarations (Dark Mode defaults) */
    --bg-sidebar: rgba(18, 18, 22, 0.7);
    --bg-mobile-header: #111115;
    --bg-glass-card: rgba(255, 255, 255, 0.02);
    --bg-input: rgba(0, 0, 0, 0.3);
    --color-input-text: #ffffff;
    --color-scrollbar-thumb: rgba(255, 255, 255, 0.1);
    --bg-modal: #141418;
    --bg-top-bar: rgba(18, 18, 22, 0.45);
}

/* ── LIGHT THEME OVERRIDES ── */
body.light-theme {
    --bg-main: #f5f5f7;
    --bg-card: rgba(0, 0, 0, 0.025);
    --bg-card-hover: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-focus: #b28900;
    
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-muted: #86868b;
    
    --color-gold: #b28900;
    --color-gold-dark: #8e6d00;
    --color-accent: #ff6f00;
    --color-cyan: #007c91;
    --color-red: #d32f2f;
    --color-green: #388e3c;
    
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 0 20px rgba(178, 137, 0, 0.1);

    /* Light Mode settings */
    --bg-sidebar: rgba(245, 245, 247, 0.85);
    --bg-mobile-header: #ffffff;
    --bg-glass-card: rgba(255, 255, 255, 0.7);
    --bg-input: #ffffff;
    --color-input-text: #1d1d1f;
    --color-scrollbar-thumb: rgba(0, 0, 0, 0.15);
    --bg-modal: #ffffff;
    --bg-top-bar: rgba(255, 255, 255, 0.65);
}

/* ── BASE & TYPOGRAPHY ── */
* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--color-scrollbar-thumb) transparent;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-top: 0;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: var(--color-scrollbar-thumb);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ── APP CONTAINER LAYOUT ── */
.app-container {
    display: flex;
    min-height: 100vh;
	max-width:1450px;
	margin: 0 auto;
}

/* Sidebar navigation */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #f00, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.nav-link.active {
    color: var(--bg-main);
    background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
    box-shadow: var(--shadow-accent);
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sidebar-footer a:hover {
    color: var(--text-secondary);
}

/* Main Content Workspace */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 40px;
    width: calc(100vw - var(--sidebar-width));
}

.workspace {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.workspace.active {
    display: block;
}

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

/* Double-column Work Panel Grid */
.workspace-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Card container standard */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(16px);
	max-width:1450px;
}

/* ── FORM ELEMENTS ── */
.form-section-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-gold);
    padding-left: 12px;
}

.form-group {
    margin-bottom: 24px;
}

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

.form-control, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    color: var(--color-input-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

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

/* Content Type selection cards */
.type-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.type-card.active {
    border-color: var(--color-gold);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.type-card i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
    display: block;
    transition: var(--transition-smooth);
}

.type-card.active i {
    color: var(--color-gold);
}

.type-card span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── STYLING CUSTOMIZER TABS ── */
.styling-tabs-container {
    margin-top: 30px;
}

.styling-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-item {
    padding: 12px 20px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

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

.tab-item.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out forwards;
}

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

/* Grid presets scrollbars */
.scroll-grid {
    display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
}

/* Show frames in a 2-row horizontal scrollable grid to avoid spreading too wide */
#frame-grid {
    display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    /*grid-template-rows: repeat(2, 110px);*/
   /* grid-auto-flow: column;*/
    grid-auto-columns: 90px;
    gap: 12px;
    /*overflow-x: auto;*/
    padding: 10px 0;
    margin-bottom: 20px;
}

.preset-cell {
    min-width: 90px;
    height: 110px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.preset-cell:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.preset-cell.active {
    border-color: var(--color-gold);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.15);
}

.preset-cell canvas {
    width: 50px;
    height: 50px;
    margin-bottom: 6px;
}

.preset-cell span {
    font-size: 0.75rem;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
}

/* Colors panel custom inputs */
.color-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.color-picker-row input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    flex: 1;
    font-family: monospace;
}

.color-preview-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.color-preview-box:hover {
    transform: scale(1.1);
}

.check-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.info-banner {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--color-cyan);
    margin-bottom: 20px;
    line-height: 1.5;
}

.contrast-panel {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.contrast-panel.warning {
    background: rgba(244, 67, 54, 0.05);
    border-color: rgba(244, 67, 54, 0.2);
    color: var(--color-red);
}

.contrast-panel.success {
    color: var(--color-green);
}

/* ── PREVIEW PANEL ── */
.preview-panel {
    width: 100%;
max-width:300px;				 
}

.preview-sticky-wrapper {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
	max-width:300px;			 
}

.preview-container {
    width: 100%;
    max-width: 380px;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-premium);
    margin-bottom: 30px;
}

/* Live render canvas wrapper */
.qr-canvas-wrapper {
    background: #ffffff;
    border-radius: var(--border-radius-md);
    padding: 12px;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.preview-container canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.preview-card-info {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.preview-card-info h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.preview-card-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Buttons styling */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
    color: var(--bg-main);
    box-shadow: var(--shadow-accent);
}

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

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    margin-top: 14px;
}

.preview-actions {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── HISTORY GRID & FILTERS ── */
.history-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-wrapper input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 12px 20px 12px 48px;
    color: #fff;
    outline: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.search-wrapper input:focus {
    border-color: var(--color-gold);
    background: rgba(255,255,255,0.05);
}

.search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.filter-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.chip {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

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

.chip.active {
    background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
    color: var(--bg-main);
    border-color: transparent;
}

/* History list structure */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.history-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-type-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 12px;
}

.history-fav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.history-fav-btn:hover, .history-fav-btn.active {
    color: var(--color-gold);
    transform: scale(1.15);
}

.history-card-preview {
    width: 100%;
    height: 180px;
    background: #fff;
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.history-card-preview canvas {
    max-width: 100%;
    max-height: 100%;
}

.history-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.history-card-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: auto;
}

.history-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition-smooth);
}

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

.history-btn.delete:hover {
    background: rgba(244, 67, 54, 0.1);
    color: var(--color-red);
    border-color: rgba(244, 67, 54, 0.2);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 18px;
    color: var(--text-muted);
}

/* ── MODAL EXPORTS ── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-premium);
    animation: zoomIn 0.3s ease-out forwards;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close-btn:hover {
    color: var(--color-gold);
    transform: scale(1.15);
}

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

.modal-title {
    margin-bottom: 10px;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

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

/* Color Palette picker modal grid */
.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.palette-circle {
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-smooth);
}

.palette-circle:hover {
    transform: scale(1.15);
    border-color: #fff;
}

/* ── BUSINESS CARD SPECIFIC STYLE ── */
.bc-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.bc-preset-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.bc-preset-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.bc-preset-card.active {
    border-color: var(--color-gold);
    background: rgba(255, 215, 0, 0.05);
}

.bc-swatch {
    height: 48px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    border: 2px solid transparent;
}

.bc-preset-card.active .bc-swatch {
    border-color: var(--color-gold);
}

.bc-preset-card span {
    font-size: 0.85rem;
    font-weight: 600;
}

.bc-accent-colors {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.bc-preview-card-wrapper {
    background: var(--bg-main);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1.75; /* 3.5x2 card */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 25px;
}

.bc-preview-card-wrapper canvas {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Logo uploading wrapper */
.upload-wrapper {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(0,0,0,0.2);
}

.upload-wrapper:hover {
    border-color: var(--color-gold);
    background: rgba(255,215,0,0.02);
}

.upload-wrapper i {
    font-size: 2.2rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.upload-wrapper p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.upload-wrapper span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 6px;
}

/* Mobile Header & Sidebar Controls (Desktop Hidden) */
.mobile-header {
    display: none;
}
.sidebar-close-btn {
    display: none;
}
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}
.theme-toggle-btn:hover {
    background: var(--bg-card-hover);
    color: var(--color-gold);
}

/* ── RESPONSIVE RESPONSIVENESS ── */
@media (max-width: 1024px) {
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        background: var(--bg-mobile-header);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 900;
        height: 60px;
        width: 100%;
    }
    
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: 'Outfit', sans-serif;
        color: var(--text-primary);
    }
    
    .mobile-brand i {
        color: var(--color-gold);
        font-size: 1.4rem;
    }
    
    .mobile-brand h2 {
        font-size: 1.25rem;
        margin: 0;
        font-weight: 700;
    }
    
    .hamburger-btn {
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.4rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
        transition: var(--transition-smooth);
    }
    
    .hamburger-btn:hover {
        color: var(--color-gold);
    }

    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -300px !important;
        width: 300px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: rgba(14, 14, 18, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-right: 1px solid var(--border-color) !important;
        border-top: none !important;
        padding: 30px 24px !important;
        box-shadow: 5px 0 25px rgba(0,0,0,0.5) !important;
    }
    
    .sidebar.open {
        left: 0 !important;
    }
    
    .sidebar-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 1.5rem;
        cursor: pointer;
        display: block !important;
        z-index: 1010;
        transition: var(--transition-smooth);
        padding: 5px;
    }
    
    .sidebar-close-btn:hover {
        color: var(--color-gold);
        transform: scale(1.1);
    }
    
    .brand {
        display: flex !important;
        margin-bottom: 30px !important;
    }
    
    .nav-menu {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
        overflow-x: visible !important;
    }
    
    .nav-link {
        flex-direction: row !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .nav-link i {
        font-size: 1.15rem !important;
    }
    
    .sidebar-footer {
        display: flex !important;
        flex-direction: column !important;
        margin-top: auto !important;
        gap: 8px !important;
        padding-top: 20px !important;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(4px);
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px 15px !important;
    }

    .workspace-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    .preview-panel {
        order: -1 !important; /* Place QR preview at the top on mobile for quick verification */
        position: relative !important;
        top: auto !important;
        z-index: 5 !important;
        background: transparent !important;
        padding-top: 10px !important;
        padding-bottom: 20px !important;
        width: 100% !important;
        border-bottom: none !important;
    }

    .preview-sticky-wrapper {
        position: relative !important;
        top: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .preview-container {
        width: 100% !important;
        max-width: 380px !important;
    }

    .preview-actions {
        width: 100% !important;
        max-width: 380px !important;
    }

    .play-store-promo-card {
        width: 100% !important;
        max-width: 380px !important;
    }

    .top-auth-bar {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
        padding: 15px !important;
    }

    .auth-actions {
        width: 100% !important;
    }

    .auth-actions button {
        width: 100% !important;
        justify-content: center !important;
    }

    .form-control-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .form-control-row .form-group {
        width: 100% !important;
    }
}

/* ── COMPLIANT COLOR SWATCH SELECTORS ── */
.color-swatch-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 4px 0;
}

.color-swatch-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.color-swatch-btn:hover {
    transform: scale(1.12);
}

.color-swatch-btn.active {
    border-color: var(--color-gold);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.color-swatch-btn.active::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ffffff;
    font-size: 0.9rem;
}

/* Light background color buttons need a dark contrast checkmark */
.color-swatch-btn.light-swatch.active::after {
    color: #121212;
}

.color-swatch-btn.light-swatch {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.color-swatch-btn.light-swatch.active {
    border: 3px solid var(--color-gold);
}

/* ── SaaS Specific Styling ── */
.top-auth-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-top-bar);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 24px;
    margin-bottom: 30px;
    backdrop-filter: blur(16px);
}

.auth-status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-status-info i {
    color: var(--color-gold);
    font-size: 1.1rem;
}

.auth-status-info strong {
    color: var(--text-primary);
}

.badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-green);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.badge-danger {
    background: rgba(244, 67, 54, 0.1);
    color: var(--color-red);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    width: auto;
}

/* History Promo Card */
.history-promo-card {
    grid-column: 1 / -1;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(16px);
}

.history-promo-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.history-promo-card .btn {
    max-width: 250px;
}

/* Force FontAwesome icons to preserve their correct font families in mockup previews */
#social-mockup-viewport .fa-brands,
.platform-icon-btn .fa-brands,
.platform-icon-grid .fa-brands {
    font-family: 'Font Awesome 6 Brands' !important;
}

#social-mockup-viewport .fa-solid,
.platform-icon-btn .fa-solid,
.platform-icon-grid .fa-solid {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

/* Clear Neon Buttons styling */
.btn-neon-clear {
    background: transparent !important;
    border: 1px solid var(--color-gold) !important;
    color: var(--color-gold) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.25), inset 0 0 5px rgba(255, 215, 0, 0.15);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.35);
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-neon-clear:hover {
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.6), inset 0 0 10px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    color: #000000 !important;
    background: var(--color-gold) !important;
    text-shadow: none;
}

/* ── STACKED STYLE SECTIONS ── */
.style-custom-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 15px;
}

.style-section {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.02);
}

.style-section-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 8px;
}

.style-section-header i {
    color: var(--color-gold);
    font-size: 1.05rem;
}



