/* ========================================
   UGC AI - Complete Styles
   ======================================== */

/* CSS Variables */
:root {
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);

    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --header-height: 64px;

    --transition: all 0.2s ease;
}

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

/* Base */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Typography */
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h5 { font-size: 1rem; font-weight: 600; line-height: 1.5; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.text-gray { color: var(--gray-500); }
.text-light { color: var(--gray-400); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }

/* Grid */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm { max-width: 600px; }
.container-md { max-width: 800px; }
.container-lg { max-width: 1000px; }

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--gray-800);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--black);
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Form Elements
   ======================================== */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--black);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--error);
    margin-top: 0.375rem;
}

.form-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 4px;
    gap: 4px;
}

.toggle-option {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}

.toggle-option.active {
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow-sm);
}

.toggle-option:hover:not(.active) {
    color: var(--black);
}

/* Checkbox & Radio */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
}

.checkbox-label input,
.radio-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--black);
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.switch input:checked + .switch-slider {
    background: var(--black);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(20px);
}

/* ========================================
   Cards
   ======================================== */

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ========================================
   Badges
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-700);
}

.badge-success {
    background: var(--success-light);
    color: #15803d;
}

.badge-warning {
    background: var(--warning-light);
    color: #b45309;
}

.badge-error {
    background: var(--error-light);
    color: #dc2626;
}

.badge-info {
    background: var(--info-light);
    color: #1d4ed8;
}

.badge-popular {
    background: var(--black);
    color: var(--white);
}

/* ========================================
   Landing Page
   ======================================== */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-logo svg {
    width: 28px;
    height: 28px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.navbar-nav a:hover {
    color: var(--black);
}

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

.navbar-mobile-toggle {
    display: none;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-visual {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.hero-visual img,
.hero-visual video {
    width: 100%;
    display: block;
}

/* Hero Showcase - Before/After */
.hero-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 800px;
}

.showcase-before,
.showcase-after {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.showcase-label {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.showcase-image {
    width: 200px;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(8px); opacity: 0.7; }
}

.showcase-video {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 200px;
    height: 400px;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 8px;
    box-shadow: var(--shadow-xl), 0 0 0 2px rgba(255,255,255,0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: var(--gray-900);
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.play-overlay:hover {
    background: rgba(0,0,0,0.4);
}

.play-overlay svg {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: transform 0.2s;
}

.play-overlay:hover svg {
    transform: scale(1.1);
}

/* Features Section */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    margin: 0 auto 1.25rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-grid::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gray-200);
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
}

.step-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Pricing Section */
.pricing-section {
    background: var(--gray-50);
}

.credit-explainer {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
}

.credit-explainer h4 {
    margin-bottom: 1rem;
}

.credit-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.credit-item {
    font-size: 0.9375rem;
}

.credit-example {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--black);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
    content: "POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.pricing-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-price .period {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.pricing-credits {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.pricing-features li::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
}

/* Credit Packs */
.credit-packs {
    text-align: center;
}

.credit-packs h4 {
    margin-bottom: 1.5rem;
}

.packs-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pack-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    text-align: center;
    min-width: 140px;
    transition: var(--transition);
}

.pack-card:hover {
    border-color: var(--black);
}

.pack-credits {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pack-price {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* FAQ Section */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-bottom: 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--gray-200);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-600);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--black);
}

.footer-copy {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ========================================
   Auth Pages
   ======================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gray-50);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.auth-logo svg {
    width: 32px;
    height: 32px;
}

.auth-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.auth-footer a {
    color: var(--black);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   App Layout (Sidebar)
   ======================================== */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease;
    z-index: 100;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.sidebar-logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.sidebar-logo-icon svg {
    width: 16px;
    height: 16px;
}

.sidebar-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--gray-100);
    color: var(--black);
}

.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .sidebar-toggle {
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: var(--gray-100);
    color: var(--black);
}

.sidebar-nav a.active {
    background: var(--gray-100);
    color: var(--black);
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar.collapsed .sidebar-nav a span {
    display: none;
}

.sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: 0.75rem;
}

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

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-100);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-user:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--gray-200);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info .name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .credits {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.sidebar.collapsed .user-info,
.sidebar.collapsed .sidebar-footer {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.2s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Main Header */
.main-header {
    height: var(--header-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--gray-50);
    color: var(--black);
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.credits-badge svg {
    width: 18px;
    height: 18px;
}

/* Main Body */
.main-body {
    flex: 1;
    padding: 1.5rem;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}

.mobile-overlay.show {
    display: block;
}

/* ========================================
   Dashboard
   ======================================== */

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credits-count {
    font-size: 1.125rem;
    font-weight: 600;
}

.credits-bar {
    width: 200px;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.credits-bar-fill {
    height: 100%;
    background: var(--black);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.stat-card .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.stat-card .icon svg {
    width: 20px;
    height: 20px;
}

.stat-card .label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.quick-action:hover {
    border-color: var(--black);
    box-shadow: var(--shadow-md);
}

.quick-action .icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.quick-action .icon svg {
    width: 28px;
    height: 28px;
}

.quick-action .title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quick-action .desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Activity List */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.activity-item:hover {
    border-color: var(--gray-300);
}

.activity-thumb {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-lg);
}

.empty-state svg {
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.empty-state h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* ========================================
   Create Page
   ======================================== */

.create-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

.create-form {
    max-width: none;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.progress-step.active {
    color: var(--black);
    font-weight: 500;
}

.progress-step.completed {
    color: var(--success);
}

.progress-step-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

.progress-step.active .progress-step-number {
    background: var(--black);
    color: var(--white);
}

.progress-step.completed .progress-step-number {
    background: var(--success);
    color: var(--white);
}

.progress-divider {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
}

/* Image Preview */
.image-preview {
    margin-top: 0.75rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
}

.image-preview img {
    max-height: 200px;
    width: auto;
    display: block;
}

.image-preview.empty {
    display: none;
}

/* Avatar Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.avatar-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.avatar-card:hover {
    border-color: var(--gray-400);
}

.avatar-card.selected {
    border-color: var(--black);
    background: var(--gray-50);
}

.avatar-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gray-200);
    margin: 0 auto 0.5rem;
    overflow: hidden;
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.avatar-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.avatar-check {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.avatar-card.selected .avatar-check {
    display: flex;
}

/* Summary Box */
.summary-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.summary-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.summary-row .label {
    color: var(--gray-500);
}

.summary-row .value {
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 1.125rem;
    font-weight: 600;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: var(--warning);
}

.char-counter.error {
    color: var(--error);
}

/* ========================================
   Loading Overlay
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-message {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.loading-submessage {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* ========================================
   Result Section
   ======================================== */

.result-section {
    display: none;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.result-section.show {
    display: block;
}

.result-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.result-icon svg {
    width: 32px;
    height: 32px;
}

.result-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.result-message {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.result-video {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--black);
}

.result-video video {
    width: 100%;
    display: block;
}

.result-script {
    text-align: left;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
   Gallery
   ======================================== */

.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}

.gallery-thumb {
    aspect-ratio: 1;
    background: var(--gray-100);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-type-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.gallery-info {
    padding: 1rem;
}

.gallery-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

.gallery-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.gallery-actions {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.gallery-checkbox {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-checkbox,
.gallery-checkbox.checked {
    opacity: 1;
}

.gallery-checkbox.checked {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.bulk-actions.hidden {
    display: none;
}

.bulk-count {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   Modal
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: var(--transition);
}

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

.modal-lg {
    max-width: 700px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 1.125rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1.5rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--black);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Preview Modal */
.preview-media {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--black);
    margin-bottom: 1rem;
}

.preview-media img,
.preview-media video {
    width: 100%;
    display: block;
}

.preview-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--gray-500);
}

/* Image Slider */
.image-slider {
    position: relative;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
}

.slider-slide img {
    width: 100%;
    display: block;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: var(--gray-300);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--black);
}

/* ========================================
   Billing
   ======================================== */

.plan-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.plan-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.plan-credits {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plan-credits-count {
    font-size: 1.5rem;
    font-weight: 700;
}

.plan-credits-bar {
    width: 150px;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.plan-credits-fill {
    height: 100%;
    background: var(--black);
    border-radius: var(--radius-full);
}

.plan-next {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Credit Packs Grid */
.packs-section {
    margin-bottom: 2rem;
}

.packs-section h3 {
    margin-bottom: 1rem;
}

.packs-row {
    display: flex;
    gap: 1rem;
}

.pack-item {
    flex: 1;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.pack-item:hover {
    border-color: var(--black);
}

.pack-amount {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pack-cost {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Transaction History */
.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.transactions-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    background: var(--gray-50);
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

.credit-positive {
    color: var(--success);
    font-weight: 500;
}

.credit-negative {
    color: var(--gray-600);
}

/* ========================================
   Settings
   ======================================== */

.settings-section {
    max-width: 600px;
}

.danger-zone {
    border: 1px solid var(--error-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: rgba(239,68,68,0.03);
}

.danger-zone h3 {
    color: var(--error);
    margin-bottom: 0.75rem;
}

.danger-zone p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* Notification Settings */
.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info {
    flex: 1;
}

.notification-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.notification-desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ========================================
   Toast Notifications
   ======================================== */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1100;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

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

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

.toast.warning {
    background: var(--warning);
    color: var(--black);
}

/* ========================================
   Response Box (API Debug)
   ======================================== */

.response-section {
    margin-top: 1.5rem;
    display: none;
}

.response-section.show {
    display: block;
}

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

.response-box {
    background: var(--gray-900);
    color: #22c55e;
    padding: 1rem;
    border-radius: var(--radius);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8125rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .create-layout {
        grid-template-columns: 1fr;
    }

    .summary-box {
        position: static;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid::before {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-showcase {
        flex-direction: column;
        gap: 1.5rem;
    }

    .showcase-arrow {
        transform: rotate(90deg);
    }

    .showcase-arrow svg {
        width: 32px;
        height: 32px;
    }

    .showcase-image {
        width: 160px;
        height: 220px;
    }

    .phone-frame {
        width: 160px;
        height: 320px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-mobile-toggle {
        display: flex;
    }

    /* App Layout Mobile */
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        width: var(--sidebar-width);
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .back-btn {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .avatar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .plan-credits {
        flex-direction: column;
    }

    .packs-row {
        flex-direction: column;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .modal {
        margin: 0.5rem;
    }
}

/* ========================================
   Utilities
   ======================================== */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.cursor-pointer { cursor: pointer; }

.select-none { user-select: none; }

.transition { transition: var(--transition); }
