/* Root Variables & Colors (Premium Palette - Light Mode like QR.io) */
:root {
    --bg-dark: #f4f7fa; /* Light background */
    --bg-card: #ffffff; /* White card panels */
    --bg-sidebar: #ffffff;
    --border-color: #e2e8f0; /* Soft blue-gray borders */
    --border-hover: rgba(37, 99, 235, 0.4);
    
    --primary: #2563eb; /* Blue */
    --primary-glow: rgba(37, 99, 235, 0.15);
    --secondary: #f97316; /* Orange buttons */
    --accent: #10b981; /* Green */
    --danger: #ef4444; /* Red */
    
    --text-main: #1e293b; /* Dark text */
    --text-muted: #64748b;
    --text-dark: #94a3b8;
    
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --shadow-premium: 0 10px 30px rgba(34, 14, 39, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-card: #1e293b; /* Slate 800 */
    --bg-sidebar: #1e293b;
    --border-color: #334155; /* Slate 700 */
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --text-dark: #cbd5e1; /* Slate 300 */
}


/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* TOP NAVBAR STYLING */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    z-index: 100;
    display: flex;
    align-items: center;
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.navbar-brand i {
    font-size: 1.8rem;
}

.navbar-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

.navbar-menu-pc {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link-item {
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-link-item:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.nav-link-item.active {
    color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login {
    background: #f97316 !important; /* Orange */
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2) !important;
}

.btn-login:hover {
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35) !important;
}

.btn-register {
    background: #2563eb !important; /* Blue */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

.btn-register:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.25rem;
}

/* MOBILE DRAWER STYLING */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    z-index: 160;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateX(100%);
    transition: var(--transition-smooth);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-drawer-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-link-item {
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.drawer-link-item:hover, .drawer-link-item.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.drawer-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

/* Layout App Container */
.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 70px auto 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
}

/* Main Content Area */
.main-content {
    width: 100%;
    flex-grow: 1;
    padding: 0;
    min-height: auto;
    margin-left: 0 !important;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

/* Cards & Layout */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    padding: 2rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Control Panel */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.panel-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.panel-section h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
select.custom-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.input-with-icon input {
    padding-left: 2.75rem;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select.custom-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-with-icon input:focus + i {
    color: var(--primary);
}

/* Toggle Group for Color Modes */
.toggle-group {
    display: flex;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.25rem;
    width: 100%;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.6rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
}

/* Color Picker */
.colors-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.4rem 0.75rem;
    gap: 0.75rem;
    width: 100%;
}

.color-picker-wrapper input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.color-val {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-main);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    user-select: none;
    margin-top: 1.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: var(--primary);
}

/* File Dropper Style */
.logo-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: #f8fafc;
}

.logo-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.03);
}

.logo-upload-zone i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.logo-upload-zone p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hidden-input {
    display: none;
}

.logo-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

.logo-preview-row img {
    height: 40px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 6px;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1rem;
    width: 100%;
}

.btn-icon-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-action {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-action:hover {
    background: var(--primary);
    color: white;
}

.btn-action-danger:hover {
    background: var(--danger);
    color: white;
}

/* Live Preview Panel */
.preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: sticky;
    top: 90px; /* Spacing for top-navbar */
}

.preview-header {
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.preview-badge {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qr-output-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    min-height: 282px;
    min-width: 282px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

/* LIVE CSS PREVIEW FRAMES */
.qr-output-wrapper.frame-style-scan-me-bottom {
    flex-direction: column;
    padding: 1rem 1rem 0 1rem;
    border: 8px solid var(--frame-color, #2563eb);
}
.qr-output-wrapper.frame-style-scan-me-bottom::after {
    content: attr(data-frame-text);
    display: block;
    width: calc(100% + 2rem);
    margin-left: -1rem;
    background: var(--frame-color, #2563eb);
    color: var(--frame-text-color, #ffffff);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 0.6rem 0.5rem;
    font-size: 1rem;
    margin-top: 1rem;
    text-transform: uppercase;
}

.qr-output-wrapper.frame-style-scan-me-top {
    flex-direction: column;
    padding: 0 1rem 1rem 1rem;
    border: 8px solid var(--frame-color, #2563eb);
}
.qr-output-wrapper.frame-style-scan-me-top::before {
    content: attr(data-frame-text);
    display: block;
    width: calc(100% + 2rem);
    margin-left: -1rem;
    background: var(--frame-color, #2563eb);
    color: var(--frame-text-color, #ffffff);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 0.6rem 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.qr-output-wrapper.frame-style-phone {
    border: 12px solid #1e293b;
    border-radius: 40px;
    padding: 2.25rem 1.5rem 1.5rem 1.5rem;
    position: relative;
}
.qr-output-wrapper.frame-style-phone::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: #475569;
    border-radius: 4px;
}

.qr-output-wrapper.frame-style-clipboard {
    border: 4px solid #854d0e;
    border-top: 18px solid #854d0e;
    border-radius: 12px;
    position: relative;
    padding: 1.5rem;
}
.qr-output-wrapper.frame-style-clipboard::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    background: #94a3b8;
    border-radius: 4px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Premium Tables */
.links-table-wrapper {
    overflow-x: auto;
    padding: 0;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.premium-table th {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.premium-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-main);
}

.premium-table tbody tr {
    transition: var(--transition-smooth);
}

.premium-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 500px;
    max-width: 90%;
    padding: 2.25rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    overflow-y: auto;
    max-height: 90vh;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-main);
}

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

.close-modal-btn:hover {
    color: var(--primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

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

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.toast {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success {
    border-left-color: var(--accent);
}

.toast.danger {
    border-left-color: var(--danger);
}

/* Statistics Progress Bars list styling */
.stats-bars-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.stat-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.stat-bar-track {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.stat-bar-fill {
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}
/* RESPONSIVE DESIGN MEDIA QUERIES */

/* For Tablets and Small Desktops (<= 1024px) */
@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .control-panel, .preview-panel {
        width: 100% !important;
        min-width: 0 !important;
    }

    .preview-panel {
        position: relative;
        top: 0;
        min-height: auto;
    }

    .main-content {
        padding: 2rem;
    }
}

/* For Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .navbar-menu-pc {
        display: none !important;
    }
    
    .navbar-actions .btn-login,
    .navbar-actions .btn-register,
    .navbar-actions .btn-logout {
        display: none !important;
    }
    
    .hamburger-btn {
        display: block;
    }

    .app-container {
        padding: 1rem 0.5rem !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0 !important;
    }

    .form-row, .colors-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .qr-types-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .section-header h1 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .card {
        padding: 1rem !important;
        border-radius: 16px;
    }

    .links-table-wrapper.card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .premium-table {
        display: block;
        width: 100%;
    }

    .premium-table thead {
        display: none !important;
    }

    .premium-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }

    .premium-table tbody tr {
        display: block;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 1.25rem;
        margin-bottom: 0;
        box-shadow: var(--shadow-premium);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transition: var(--transition-smooth);
    }

    .premium-table tbody tr:hover {
        background: rgba(37, 99, 235, 0.02);
    }

    .premium-table td {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
        text-align: right;
        font-size: 0.9rem;
    }

    .premium-table td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-top: 0.5rem;
    }

    /* Labeled cards content headers using CSS content */
    .premium-table td:nth-child(1)::before {
        content: "Nombre QR";
        font-weight: 700;
        color: var(--text-muted);
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .premium-table td:nth-child(2)::before {
        content: "Cliente";
        font-weight: 700;
        color: var(--text-muted);
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .premium-table td:nth-child(3)::before {
        content: "Destino";
        font-weight: 700;
        color: var(--text-muted);
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .premium-table td:nth-child(4)::before {
        content: "QR Dinámico";
        font-weight: 700;
        color: var(--text-muted);
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .premium-table td:nth-child(5)::before {
        content: "Escaneos";
        font-weight: 700;
        color: var(--text-muted);
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .premium-table td:nth-child(6)::before {
        content: "Acciones";
        font-weight: 700;
        color: var(--text-muted);
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .premium-table td > span,
    .premium-table td > a,
    .premium-table td > div {
        text-align: right;
        word-break: break-all;
        max-width: 60%;
    }

    .actions-cell {
        justify-content: flex-end;
        width: 100%;
        gap: 0.5rem;
    }

    .stats-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* For Extra Small Screens (<= 480px) */
@media (max-width: 480px) {
    .login-card {
        width: 92%;
        padding: 2rem 1.25rem;
    }

    .login-brand h2 {
        font-size: 1.5rem;
    }

    .colors-row, .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .checkbox-label {
        margin-top: 0.5rem;
    }
}

/* GUEST MODE & LOCK OVERLAY MECHANICS */
.qr-output-wrapper {
    position: relative;
    overflow: hidden;
}

.qr-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 5;
    padding: 1.5rem;
    text-align: center;
    border-radius: 20px;
}

.qr-lock-overlay i {
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.qr-lock-overlay span {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Show lock and blur canvas in guest mode */
body.guest-mode .qr-lock-overlay {
    opacity: 1;
    pointer-events: all;
}

body.guest-mode #canvas-container {
    filter: blur(10px);
    pointer-events: none;
}

/* Hide/show navbar elements based on guest-mode */
body.guest-mode #tab-links-btn,
body.guest-mode #logout-action-btn,
body.guest-mode #mob-tab-links-btn,
body.guest-mode #mob-logout-action-btn {
    display: none !important;
}

body:not(.guest-mode) #login-action-btn,
body:not(.guest-mode) #register-action-btn,
body:not(.guest-mode) #mob-login-action-btn {
    display: none !important;
}

body:not(.guest-mode) #mob-logout-action-btn,
body:not(.guest-mode) #mob-tab-links-btn {
    display: flex !important;
}

/* QR TYPE BUTTONS & GRID STYLE */
.qr-types-grid {
    scrollbar-width: thin;
}
.qr-type-btn {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}
.qr-type-btn i {
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}
.qr-type-btn:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
}
.qr-type-btn.active {
    background: rgba(37, 99, 235, 0.06);
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}

/* DESIGN TAB CONTAINER & BUTTONS */
.design-tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
}
.design-tab-btn:hover {
    color: var(--primary);
}
.design-tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* FRAME CAROUSEL SELECTION */
.frame-carousel {
    scrollbar-width: thin;
}
.frame-option:hover {
    border-color: var(--primary) !important;
    background: #f8fafc !important;
}
.frame-option.active {
    border-color: var(--accent) !important;
    background: rgba(16, 185, 129, 0.05) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

/* GENERAL UTILITIES */
.hidden {
    display: none !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* =========================================================
   PREMIUM DASHBOARD LAYOUT & BAR STYLING (QRPay Studio style)
 ========================================================= */
.logo-green {
    color: var(--primary) !important;
    font-size: 1.8rem;
}

/* Header style */
.dashboard-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-card); /* White background */
    border-bottom: 1px solid var(--border-color); /* Bottom border */
    z-index: 101;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.db-nav-container {
    width: 100%;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.db-logo-box {
    width: 38px;
    height: 38px;
    background: var(--primary-glow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.db-nav-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

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

.btn-upgrade-premium {
    background: var(--secondary) !important;
    color: #ffffff !important;
    border: 1px solid var(--secondary) !important;
    font-weight: 700;
    padding: 0.55rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

.btn-upgrade-premium:hover {
    background: #ea580c !important;
    border-color: #ea580c !important;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.user-menu-trigger:hover {
    background: rgba(0, 0, 0, 0.03);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    min-width: 170px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.user-dropdown button {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.65rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.user-dropdown button:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

/* Sidebar Layout */
.dashboard-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 99;
    overflow-y: auto;
}

.btn-create-qr {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.btn-create-qr:hover, .btn-create-qr.active {
    background: var(--primary);
    color: #ffffff;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.menu-item-single, .menu-item-title {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.75rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}

.menu-item-single i, .menu-item-title i {
    width: 20px;
    font-size: 1.05rem;
}

.menu-item-single:hover, .menu-item.active .menu-item-title {
    color: #1e293b;
    background: #f1f5f9;
}

.menu-item-single.active {
    background: var(--primary);
    color: #ffffff;
}

.menu-subitems {
    padding-left: 1.5rem;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.subitem {
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.55rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.subitem:hover, .subitem.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 0;
}

.folders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
}

.btn-new-folder {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.btn-upgrade-sidebar {
    width: 100%;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.7rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

.btn-upgrade-sidebar:hover {
    background: #ea580c;
}

/* Sidebar Badges */
.badge-deactivated {
    background: var(--danger) !important;
    color: white !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 4px !important;
}

/* Layout Adjustments for Main Content */
body:not(.guest-mode) .app-container {
    margin-left: 260px;
    width: calc(100% - 260px);
    max-width: 100%;
    padding: 2rem;
}

body:not(.guest-mode) .top-navbar {
    display: none !important;
}

/* Warning Banner style */
.trial-expired-banner {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}

.trial-expired-banner a {
    color: #842029;
    text-decoration: underline;
    font-weight: 700;
}

/* Active QR header & Search actions bar */
.dashboard-view-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dashboard-view-header h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: #1e293b;
    text-align: left;
    margin: 0;
}

.search-actions-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    flex-grow: 1;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    height: 48px;
    align-items: center;
    padding-left: 1rem;
}

.search-input-wrapper i {
    color: var(--text-dark);
}

.search-input-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-main);
}

.btn-search-qr {
    background: var(--primary);
    color: white;
    border: none;
    height: 100%;
    padding: 0 1.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
}

.sort-select {
    border: 1px solid var(--border-color);
    background: #ffffff;
    height: 48px;
    border-radius: 12px;
    padding: 0 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    outline: none;
    cursor: pointer;
}

.btn-create-green {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    height: 48px !important;
    padding: 0 1.5rem !important;
    border-radius: 12px !important;
    font-family: var(--font-sans) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

.btn-create-green:hover {
    background: #1d4ed8 !important;
}

/* Empty State Card */
.empty-state-card {
    background: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 5rem 2rem;
    text-align: center;
    max-width: 100%;
    box-shadow: var(--shadow-premium);
}

.empty-state-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.btn-create-green-lg {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 2rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-create-green-lg:hover {
    background: #1d4ed8;
}

/* Mock account selector styles */
.google-account-item:hover {
    border-color: var(--primary) !important;
    background: #f8fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.auth-tab {
    transition: var(--transition-smooth);
}

.auth-tab.active {
    border-bottom: 2px solid var(--primary);
}

/* Responsive Rules */
@media (max-width: 900px) {
    body:not(.guest-mode) .dashboard-sidebar {
        transform: translateX(-100%);
        transition: var(--transition-smooth);
    }
    body:not(.guest-mode) .dashboard-sidebar.active {
        transform: translateX(0) !important;
    }
    #db-hamburger-toggle-btn {
        display: block !important;
    }
    body:not(.guest-mode) .app-container {
        margin-left: 0;
        width: 100%;
    }
    .search-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-create-green, .sort-select {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   FAQ SECTION (PREGUNTAS FRECUENTES)
   ========================================== */
.faq-section {
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    clear: both;
}

/* Hide FAQ in workspace dashboard (not in guest mode) */
body:not(.guest-mode) .faq-section {
    display: none !important;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

.faq-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: var(--font-sans);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.04);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    user-select: none;
    gap: 1rem;
    font-family: var(--font-sans);
    transition: color 0.2s ease;
}

.faq-icon {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-family: var(--font-sans);
}

/* Active states for accordion */
.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* high enough limit for standard text */
    padding: 0 1.5rem 0.5rem 1.5rem;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .faq-header h2 {
        font-size: 1.75rem;
    }
    .faq-header p {
        font-size: 0.95rem;
    }
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }
    .faq-answer p {
        font-size: 0.85rem;
    }
}

/* ==========================================
   FOOTER STYLING (QRStudio)
   ========================================== */
.main-footer {
    background-color: #f97316; /* Solid Orange */
    padding: 3.5rem 2rem 2.5rem 2rem;
    margin-top: 6rem; /* Space between content and footer */
    font-family: var(--font-sans);
    color: #000000; /* Black */
    width: 100%;
    clear: both;
}

/* Hide footer in dashboard view (not guest-mode) */
body:not(.guest-mode) .main-footer {
    display: none !important;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.footer-brand p {
    color: rgba(0, 0, 0, 0.75); /* Dark black-translucent */
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 280px;
    margin: 0;
}

.footer-email {
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
    opacity: 0.9;
}

.footer-email:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #000000;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    background: #000000;
    color: #f97316;
    transform: translateY(-2px);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #000000;
    padding-left: 2px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.7);
}

.footer-bottom .lang-selector {
    background: rgba(0, 0, 0, 0.08) !important;
}

.footer-bottom .lang-btn {
    color: rgba(0, 0, 0, 0.6) !important;
}

.footer-bottom .lang-btn.active {
    color: #000000 !important;
}

.footer-bottom span {
    color: rgba(0, 0, 0, 0.3) !important;
}

/* Responsive adjustment for footer */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    .footer-brand {
        align-items: flex-start;
    }
    .footer-brand p {
        margin: 0;
    }
    .footer-socials {
        justify-content: flex-start;
    }
    .footer-column {
        text-align: left;
        align-items: flex-start;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
}

/* ==========================================
   PRICING / UPGRADE CARDS (Apple 2026 Style)
   ========================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.25);
}

.pricing-card.premium {
    border: 2px solid #f97316;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.08);
}

.pricing-card.premium:hover {
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.15);
}

.btn-upgrade-pro:hover {
    background: #222222 !important;
    transform: translateY(-1px);
}

.btn-upgrade-lifetime:hover {
    background: #ea580c !important;
    transform: translateY(-1px);
}

/* ==========================================
   BLOG MODULE STYLES (Apple 2026 Style)
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    text-decoration: none;
    color: inherit;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    border-color: rgba(249, 115, 22, 0.3);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.75rem;
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

/* Article Reading View */
.article-container {
    max-width: 760px;
    margin: 100px auto 4rem auto;
    padding: 0 1.5rem;
    text-align: left;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.article-category-badge {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.article-hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-main);
    font-family: var(--font-sans);
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    font-family: var(--font-heading);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem 0;
    font-family: var(--font-heading);
}

.article-content p {
    margin: 0 0 1.5rem 0;
}

.article-content ul, .article-content ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--text-dark);
}

.blog-cta-box {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: #ffffff;
    margin-top: 4rem;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.blog-cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}

.blog-cta-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.btn-blog-cta {
    background: #ffffff;
    color: #f97316;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.btn-blog-cta:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }
    .article-hero-img {
        height: 240px;
    }
    .blog-cta-box {
        padding: 1.75rem;
    }
    .blog-cta-box h3 {
        font-size: 1.25rem;
    }
}

/* ==========================================
   FLOATING SHARE WIDGET (Premium UI)
   ========================================== */
.floating-share-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.75rem;
}

/* Hide widget when user is logged in (dashboard mode) */
body:not(.guest-mode) .floating-share-widget {
    display: none !important;
}

.share-main-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary); /* Azul #2563eb */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-main-btn:hover {
    transform: scale(1.1);
    background: #1d4ed8;
}

.share-main-btn.active {
    transform: rotate(135deg);
    background: var(--danger) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.share-options-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-options-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-opt-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-premium);
    position: relative;
}

.share-opt-btn:hover {
    transform: scale(1.1);
}

.share-opt-btn.whatsapp {
    background: #25d366;
}

.share-opt-btn.facebook {
    background: #1877f2;
}

.share-opt-btn.copy {
    background: #64748b;
}

/* Tooltip text */
.share-opt-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 55px;
    background: #1e293b;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow: var(--shadow-premium);
}

.share-opt-btn:hover::after {
    opacity: 1;
    visibility: visible;
}
/* ==========================================
   APPLE-STYLE SLIDE CAPTCHA
   ========================================== */
.slider-captcha-container {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    user-select: none;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 48px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.slider-handle {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 40px;
    height: 40px;
    background: var(--primary); /* Azul Apple */
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: grab;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.slider-handle:active {
    cursor: grabbing;
}

.slider-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(34, 197, 94, 0.15); /* Verde suave al deslizar */
    z-index: 1;
}

.slider-captcha-container.verified .slider-track {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.slider-captcha-container.verified .slider-handle {
    background: var(--success) !important; /* Verde verificado */
    box-shadow: 0 2px 5px rgba(34, 197, 94, 0.3);
    cursor: default;
}

.slider-captcha-container.verified .slider-text {
    color: #166534;
    font-weight: 700;
}

/* =========================================================
   SURGICAL RESPONSIVE FIXES (2026-06-17)
   ========================================================= */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column !important;
    }
    
    /* Move floating share widget on mobile so it doesn't overlap actions */
    .floating-share-widget {
        bottom: 1rem !important;
        right: 1rem !important;
    }
    .share-main-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    /* Prevent preview panel card overflow */
    .qr-output-wrapper {
        min-width: 100% !important;
        min-height: auto !important;
        aspect-ratio: 1 / 1 !important;
        padding: 1rem !important;
    }
    
    #canvas-container {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #canvas-container canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure the carousel doesn't clip items harshly */
    .frame-carousel {
        padding-right: 1.5rem !important;
    }
}

/* Button reset for frame options (Safari/iOS compatibility) */
button.frame-option {
    font-family: var(--font-sans);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
button.frame-option:focus {
    outline: none;
}

/* =========================================================
   RESPONSIVE HEADER OVERRIDES FOR USER DASHBOARD (MOBILE)
   ========================================================= */
#user-email-display, #user-email-display-guest {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

@media (min-width: 769px) {
    #user-email-display, #user-email-display-guest {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    #btn-logout-navbar {
        display: none !important;
    }
    #btn-upgrade-top {
        display: none !important;
    }
    .user-identity-badge {
        padding: 0.4rem 0.5rem !important;
    }
}

