/* ================================================
   qrRwanda - Professional QR Code Generator Styles
   ================================================ */

/* === CSS Variables === */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --light: #f1f5f9;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-base);
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* === Container === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* === Header & Navigation === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.navbar {
    padding: var(--spacing-md) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--dark-light);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: var(--light);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark);
}

/* === User Menu Dropdown === */
#user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
}

.user-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.user-menu-btn i {
    font-size: 1.25rem;
}

.plan-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
    overflow: hidden;
}

#user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--dark-light);
    transition: var(--transition-base);
}

.user-dropdown a:hover {
    background: var(--light);
    color: var(--primary-color);
}

.user-dropdown hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid var(--gray-light);
}

.user-dropdown i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Auth buttons */
.auth-login-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.auth-menu-item {
    list-style: none;
}

/* Hide login button when user menu is active */
#login-menu-item {
    display: block !important;
}

#user-menu-item {
    display: none !important;
}

/* When logged in, show user menu and hide login */
body.user-logged-in #login-menu-item,
body.user-logged-in .auth-menu-item#login-menu-item {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.user-logged-in #user-menu-item,
body.user-logged-in .auth-menu-item#user-menu-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Utility classes for JS toggling (avoid inline styles) */
.auth-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.auth-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* === Hero Section === */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.stat i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-preview-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-preview-container canvas {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.qr-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    opacity: 0.2;
    filter: blur(40px);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.95); }
    50% { opacity: 0.3; transform: scale(1.05); }
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -100px;
    right: -50px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    bottom: -50px;
    left: -50px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--success-color);
    top: 50%;
    left: 10%;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--gradient-success);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Google OAuth Button */
.btn-google {
    background: #fff;
    color: #444;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.btn-google i {
    font-size: 18px;
    color: #4285f4;
}

/* Auth Divider */
.auth-divider {
    margin: 24px 0;
    position: relative;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--light);
    color: var(--dark-light);
    transition: var(--transition-base);
}

.icon-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* === Section Styles === */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
}

/* === Generator Section === */
.generator-section {
    background: var(--light);
}

.generator-container {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: var(--spacing-xl);
    align-items: start;
}

.config-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.config-section {
    padding: var(--spacing-xl) 0;
    border-bottom: 2px solid var(--light);
}

.config-section:last-child {
    border-bottom: none;
}

.config-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--dark);
}

.config-title i {
    color: var(--primary-color);
}

/* QR Type Selection */
.qr-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
}

.type-btn i {
    font-size: 1.75rem;
    color: var(--gray);
    transition: var(--transition-base);
}

.type-btn span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-light);
}

.type-btn:hover {
    background: var(--white);
    border-color: var(--primary-light);
}

.type-btn:hover i {
    color: var(--primary-color);
}

.type-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.type-btn.active i,
.type-btn.active span {
    color: var(--white);
}

/* Forms */
.content-form {
    display: none;
}

.content-form.active {
    display: block;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-light);
}

.form-group label i {
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Invalid/Error state for required fields */
.form-control.is-invalid,
.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-control.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

/* Required field asterisk styling */
.text-danger {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

textarea.form-control {
    resize: vertical;
}

.char-counter {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--gray);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Customization Tabs */
.customize-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--dark-light);
    transition: var(--transition-base);
}

.tab-btn:hover {
    background: var(--white);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Color Picker */
.color-picker-group {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.color-picker-group input[type="color"] {
    width: 60px;
    height: 45px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.color-input {
    flex: 1;
}

.color-presets {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.color-preset {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.color-preset:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Style Options */
.style-options,
.format-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.style-btn,
.corner-btn,
.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.style-btn:hover,
.corner-btn:hover,
.format-btn:hover {
    background: var(--white);
    border-color: var(--primary-light);
}

.style-btn.active,
.corner-btn.active,
.format-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
}

.style-preview,
.corner-preview {
    width: 50px;
    height: 50px;
    background: var(--dark);
    border-radius: var(--radius-sm);
}

.dots-dots {
    background: radial-gradient(circle, var(--dark) 30%, transparent 30%);
    background-size: 10px 10px;
}

.dots-rounded {
    border-radius: var(--radius-md);
}

.corner-dot {
    border-radius: 50%;
}

.corner-rounded {
    border-radius: var(--radius-lg);
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: var(--light);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.file-upload-label span {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.file-upload-label small {
    display: block;
    color: var(--gray);
}

.logo-preview {
    position: relative;
    margin-top: var(--spacing-md);
    padding: var(--spacing-lg);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.logo-preview img {
    max-width: 150px;
    max-height: 150px;
    margin: 0 auto;
}

.remove-logo {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition-base);
}

.remove-logo:hover {
    transform: scale(1.1);
}

/* Slider */
.slider {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.slider-value {
    display: inline-block;
    margin-left: var(--spacing-md);
    font-weight: 600;
    color: var(--primary-color);
}

/* Preview Panel */
.preview-panel {
    position: sticky;
    top: 100px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.preview-header h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
}

.preview-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.qr-preview {
    margin-bottom: var(--spacing-xl);
}

.qr-canvas-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#qrCanvas {
    max-width: 100%;
    max-height: 100%;
}

.qr-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.qr-loader.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.qr-loader p {
    margin-top: var(--spacing-md);
    color: var(--gray);
}

/* Download Section */
.download-section {
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--light);
}

.download-section h4 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.download-format,
.download-size {
    margin-bottom: var(--spacing-lg);
}

.download-format label,
.download-size label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.btn-generate,
.btn-download {
    margin: var(--spacing-lg) 0;
}

/* Share Section */
.share-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--light);
    text-align: center;
}

.share-section p {
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--light);
    color: var(--dark-light);
    transition: var(--transition-base);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn[data-share="facebook"]:hover {
    background: #1877f2;
    color: var(--white);
}

.share-btn[data-share="twitter"]:hover {
    background: #1da1f2;
    color: var(--white);
}

.share-btn[data-share="linkedin"]:hover {
    background: #0077b5;
    color: var(--white);
}

.share-btn[data-share="pinterest"]:hover {
    background: #e60023;
    color: var(--white);
}

.share-btn[data-share="copy"]:hover {
    background: var(--dark);
    color: var(--white);
}

/* History Section */
.history-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--light);
}

.history-section h4 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-height: 300px;
    overflow-y: auto;
}

.empty-history {
    text-align: center;
    color: var(--gray);
    padding: var(--spacing-xl);
}

.history-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.history-item:hover {
    background: var(--gray-light);
}

.history-item-preview {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.history-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-item-info {
    flex: 1;
}

.history-item-type {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
}

.history-item-date {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--light);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
}

.step {
    position: relative;
    padding: var(--spacing-xl);
    text-align: center;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: var(--spacing-xl) auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.step p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===============================================
   Pricing Section - ME-QR Comparison Table Style
   =============================================== */
.pricing-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.pricing-section .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
}

.pricing-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pricing-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-table-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    overflow-y: hidden;
}

.pricing-table {
    display: grid;
    grid-template-columns: 250px repeat(3, 1fr);
    min-width: 1000px;
    width: 100%;
}

/* Feature Labels Column */
.pricing-features-column {
    background: #f8f9fa;
    border-right: 2px solid #e9ecef;
}

.feature-header {
    padding: 40px 25px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-bottom: 2px solid #e9ecef;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
}

.feature-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.feature-item {
    padding: 20px 25px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    min-height: 60px;
}

/* Plan Columns */
.pricing-plan-column {
    text-align: center;
    border-right: 1px solid #e9ecef;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-plan-column:last-child {
    border-right: none;
}

.pricing-plan-column:hover {
    background: #f8f9ff;
}

.plan-popular {
    background: linear-gradient(to bottom, #f0fff4 0%, #ffffff 100%);
    border-left: 3px solid #10b981;
    border-right: 3px solid #10b981;
    z-index: 2;
}

.popular-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.plan-header {
    padding: 40px 25px;
    background: white;
    border-bottom: 2px solid #e9ecef;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-popular .plan-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.plan-popular .plan-name {
    color: white;
}

.plan-price {
    margin: 15px 0;
}

.plan-price .currency {
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
    vertical-align: top;
}

.plan-popular .plan-price .currency {
    color: rgba(255, 255, 255, 0.9);
}

.plan-price .amount {
    font-size: 48px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.plan-popular .plan-price .amount {
    color: white;
}

.plan-period {
    font-size: 13px;
    color: #6c757d;
    margin: 8px 0 5px;
}

.plan-popular .plan-period {
    color: rgba(255, 255, 255, 0.85);
}

.plan-usd {
    font-size: 14px;
    color: #868e96;
    margin: 5px 0;
}

.plan-popular .plan-usd {
    color: rgba(255, 255, 255, 0.8);
}

.plan-billed {
    font-size: 12px;
    color: #868e96;
    margin: 3px 0;
}

.plan-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 20px;
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.plan-btn-popular {
    background: white;
    color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.plan-btn-popular:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.plan-feature-value {
    padding: 20px 25px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.plan-feature-value i.fa-check {
    color: #10b981;
    font-size: 20px;
}

.plan-feature-value i.fa-times {
    color: #dee2e6;
    font-size: 20px;
}

.plan-footer {
    padding: 30px 25px;
    background: white;
    border-top: 2px solid #e9ecef;
}

.plan-popular .plan-footer {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Guarantee Section */
.pricing-guarantee {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 15px;
    font-weight: 500;
}

.guarantee-item i {
    font-size: 24px;
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 1300px) {
    .pricing-table-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .pricing-table {
        min-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .pricing-table {
        grid-template-columns: 220px repeat(3, 1fr);
        min-width: 1000px;
    }
    
    .feature-item,
    .plan-feature-value {
        padding: 18px 15px;
        font-size: 13px;
    }
    
    .plan-price .amount {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }
    
    .pricing-title {
        font-size: 28px;
    }
    
    .pricing-subtitle {
        font-size: 15px;
    }
    
    .pricing-table-wrapper {
        border-radius: 12px;
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .pricing-table {
        min-width: 900px !important;
        grid-template-columns: 180px repeat(3, 1fr) !important;
        display: grid !important;
    }
    
    .feature-header,
    .plan-header {
        min-height: 240px;
        padding: 30px 15px;
    }
    
    .feature-item,
    .plan-feature-value {
        padding: 15px 12px;
        font-size: 12px;
        min-height: 50px;
    }
    
    .plan-name {
        font-size: 16px;
    }
    
    .plan-price .amount {
        font-size: 32px;
    }
    
    .plan-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    .guarantee-item {
        font-size: 13px;
    }
    
    .pricing-features-column {
        display: block !important;
    }
}

/* ===============================================
   Payment/Checkout Modal
   =============================================== */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.order-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
}

.order-summary h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-plan-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #10b981;
}

.plan-details h5 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.plan-details p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.plan-pricing {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.checkout-price {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 5px;
}

.checkout-period {
    font-size: 14px;
    color: #6c757d;
}

.price-breakdown {
    margin-top: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
}

.price-row.total {
    border-top: 2px solid #2c3e50;
    border-bottom: none;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.payment-form h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.payment-method-btn {
    padding: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.payment-method-btn i {
    font-size: 24px;
    color: #6c757d;
}

.payment-method-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.payment-method-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.payment-method-btn.active i {
    color: white;
}

.payment-method-form {
    animation: fadeInPayment 0.3s ease;
}

@keyframes fadeInPayment {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accepted-cards {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.accepted-cards img {
    height: 30px;
    opacity: 0.7;
}

.paypal-info {
    text-align: center;
    padding: 40px 20px;
}

.paypal-info i {
    color: #0070ba;
    margin-bottom: 20px;
}

.paypal-info p {
    color: #6c757d;
    font-size: 15px;
}

.payment-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    font-size: 14px;
    color: #1976d2;
    margin-top: 15px;
}

.billing-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.billing-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pay {
    margin-top: 20px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #10b981;
}

.security-badges i {
    font-size: 20px;
}

@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.faq-question:hover {
    background: var(--light);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition-base);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--gray);
    line-height: 1.8;
}

/* FAQ Preview Section */
.faq-preview {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-preview-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.faq-preview-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.faq-preview-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.faq-preview-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-preview-content .btn {
    background: white;
    color: #667eea;
    font-size: 18px;
    padding: 16px 40px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.faq-preview-content .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.faq-quick-links {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-quick-links h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quick-link i {
    font-size: 20px;
    color: #667eea;
    transition: color 0.3s ease;
}

.quick-link:hover i {
    color: white;
}

.quick-link span {
    font-weight: 500;
    font-size: 14px;
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-preview-content {
        padding: 40px 25px;
    }
    
    .faq-preview-content h3 {
        font-size: 24px;
    }
    
    .faq-preview-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-brand i {
    font-size: 2rem;
    color: var(--primary-light);
}

.footer-col p {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li a {
    color: var(--gray-light);
    transition: var(--transition-base);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: var(--spacing-xs);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-light);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--dark-light);
    text-align: center;
    color: var(--gray-light);
}

.footer-bottom i {
    color: var(--danger-color);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .generator-container {
        grid-template-columns: 1fr;
    }
    
    .preview-panel {
        position: static;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
    }
    
    .qr-preview-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .qr-types {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .style-options {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }
    
    .qr-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .config-panel,
    .preview-panel {
        padding: var(--spacing-md);
    }
}

/* === Utilities === */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.hidden { display: none !important; }

/* === Dashboard Settings Styles === */
.dashboard-section {
    width: 100%;
}

.settings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.settings-container h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-size: 1.8rem;
}

.settings-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.settings-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.3rem;
}

.settings-card h3 i {
    margin-right: var(--spacing-sm);
    color: var(--primary-color);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.form-control:read-only {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.plan-badge-large {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), #f59e0b);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-upgrade-inline {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-upgrade-inline:hover {
    background: #f59e0b;
}

.danger-zone {
    border: 2px solid #ef4444;
}

.danger-zone h3 {
    color: #ef4444;
}

.danger-zone h3 i {
    color: #ef4444;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Upgrade Plan Section */
.upgrade-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.upgrade-container h2 {
    text-align: center;
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.upgrade-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-color);
}

.pricing-card.current-plan {
    border-color: #10b981;
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05), white);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid #f3f4f6;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-xl);
}

.plan-features li {
    padding: var(--spacing-sm) 0;
    color: var(--text-primary);
}

.plan-features li i {
    margin-right: var(--spacing-sm);
    width: 20px;
}

.plan-features li .fa-check {
    color: #10b981;
}

.plan-features li .fa-times {
    color: #ef4444;
}

.btn-secondary {
    background: #6b7280;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-secondary:hover {
    background: #6b7280;
}

@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .settings-container,
    .upgrade-container {
        padding: var(--spacing-md);
    }
}

/* ================================================
   FILE UPLOAD STYLES
   ================================================ */

/* Source Toggle Buttons */
.source-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.source-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--gray-light);
    background: white;
    color: var(--dark);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.source-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.source-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

.source-btn i {
    font-size: 1.1em;
}

/* File Upload Wrapper */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 3px dashed var(--gray-light);
    border-radius: var(--radius-lg);
    background: var(--light);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: #f8f9ff;
}

.file-upload-label i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload-text {
    font-size: 1.1em;
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 5px;
}

.file-upload-name {
    font-size: 0.9em;
    color: var(--success-color);
    font-weight: 600;
    margin-top: 10px;
    display: none;
}

.file-upload-name.show {
    display: block;
}

.file-input:focus + .file-upload-label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.file-upload-label.has-file {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.file-upload-label.has-file i {
    color: var(--success-color);
}

/* Images Preview Grid */
.images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-preview-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid var(--gray-light);
    background: var(--light);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-base);
    font-size: 0.9em;
}

.image-preview-item:hover .image-preview-remove {
    opacity: 1;
}

.image-preview-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Drag and Drop Active State */
.file-upload-label.drag-over {
    border-color: var(--primary-color);
    background: #eef2ff;
    transform: scale(1.02);
}

/* Form Text Helper */
.form-text {
    display: block;
    margin-top: 8px;
    font-size: 0.875em;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .source-toggle {
        flex-direction: column;
    }
    
    .file-upload-label {
        padding: 30px 15px;
    }
    
    .file-upload-label i {
        font-size: 2.5em;
    }
    
    .images-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}

