/* ========================================
   3D Model Maker - Main Stylesheet
   ======================================== */

/* ========================================
   CSS Variables - Brand Theme
   ======================================== */
:root {
    /* Brand Colors */
    --color-coral: #ff6e61;
    --color-purple: #6b5b95;
    --color-green: #87af4b;
    --color-pink: #f7cbca;
    --color-blue: #93a9d2;

    /* Primary Theme (Purple-based) */
    --primary-color: #6b5b95;
    --primary-hover: #5a4a84;
    --primary-dark: #4a3d73;
    --primary-light: rgba(107, 91, 149, 0.1);

    /* Secondary & Accent */
    --accent-color: #ff6e61;
    --accent-hover: #ff5a4a;
    --secondary-color: #93a9d2;
    --secondary-hover: #7a94c4;

    /* Status Colors */
    --success-color: #87af4b;
    --success-hover: #759c3d;
    --error-color: #ff6e61;
    --warning-color: #f7cbca;

    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #7a7a9a;
    --text-light: #9ca3af;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f1f3f8;
    --bg-accent: rgba(107, 91, 149, 0.05);
    --bg-warm: rgba(255, 110, 97, 0.05);

    /* Border & Effects */
    --border-color: #e5e7eb;
    --border-light: #f0f1f4;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(107, 91, 149, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(107, 91, 149, 0.1);
    --shadow-lg: 0 12px 24px -4px rgba(107, 91, 149, 0.12);
    --shadow-xl: 0 24px 48px -8px rgba(107, 91, 149, 0.15);
    --shadow-glow: 0 0 40px rgba(107, 91, 149, 0.2);

    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Legacy aliases for compatibility */
    --brand-coral: #ff6e61;
    --brand-purple: #6b5b95;
    --brand-green: #87af4b;
    --brand-pink: #f7cbca;
    --brand-blue: #93a9d2;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ========================================
   Container
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo svg {
    color: var(--color-coral);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 5rem 0 6rem;
    background: linear-gradient(135deg, #f8f9fc 0%, rgba(107, 91, 149, 0.08) 50%, rgba(147, 169, 210, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(255, 110, 97, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(107, 91, 149, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-coral) 50%, var(--color-purple) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    text-align: center;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-purple) 0%, #8b7bb5 100%);
    color: white;
    box-shadow: var(--shadow-md), 0 4px 15px rgba(107, 91, 149, 0.3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--color-purple) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(107, 91, 149, 0.4);
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Coral accent button variant */
.btn-accent {
    background: linear-gradient(135deg, var(--color-coral) 0%, #ff8a7d 100%);
    color: white;
    box-shadow: var(--shadow-md), 0 4px 15px rgba(255, 110, 97, 0.3);
    border: none;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--color-coral) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(255, 110, 97, 0.4);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--color-purple);
    color: var(--color-purple);
    background-color: rgba(107, 91, 149, 0.05);
}

.btn-download {
    background: linear-gradient(135deg, var(--color-green) 0%, #9ec45e 100%);
    color: white;
    box-shadow: var(--shadow-md), 0 4px 15px rgba(135, 175, 75, 0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--success-hover) 0%, var(--color-green) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(135, 175, 75, 0.4);
    color: white;
}

.btn-icon {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.btn-icon:hover {
    background-color: var(--primary-light);
    color: var(--color-purple);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-lg);
}

.btn-large:hover {
    transform: translateY(-4px);
}

/* ========================================
   CTA Container
   ======================================== */
.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* ========================================
   Upload Interface
   ======================================== */
.upload-interface,
.text-interface {
    display: none;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.upload-interface.active,
.text-interface.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.upload-zone {
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-purple);
    background: linear-gradient(145deg, rgba(107, 91, 149, 0.03) 0%, rgba(147, 169, 210, 0.05) 100%);
    box-shadow: var(--shadow-md);
}

.upload-zone svg {
    margin: 0 auto 1rem;
    color: var(--color-purple);
}

.upload-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-link {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.upload-link:hover {
    text-decoration: underline;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   Text Input Interface
   ======================================== */
.text-input-container {
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
}

#textPrompt {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
    transition: var(--transition);
}

#textPrompt:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ========================================
   Loading State - Diamond Spinner Animation
   ======================================== */
.loading-state {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.loading-state.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

/* Diamond Spinner - Segmented ring with chase effect */
.diamond-spinner {
    width: 60px;
    --b: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 1px;
    background: conic-gradient(#0000 10%, var(--color-coral)) content-box;
    -webkit-mask:
        repeating-conic-gradient(#0000 0deg, #000 1deg 20deg, #0000 21deg 36deg),
        radial-gradient(farthest-side, #0000 calc(100% - var(--b) - 1px), #000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    animation: diamondSpin 1s infinite steps(10);
    margin-bottom: 2rem;
}

@keyframes diamondSpin {
    to { transform: rotate(1turn); }
}

/* Text Messages with Typewriter Effect */
.loading-messages {
    margin-bottom: 0.5rem;
    min-height: 80px;
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    min-height: 1.5em;
}

.loading-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 450px;
    margin: 0 auto;
    min-height: 1.5em;
}

/* Typewriter cursor effect - Diamond icon */
.typewriter-cursor {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/favicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 4px;
    vertical-align: middle;
    animation: cursorPulse 0.8s ease-in-out infinite;
}

@keyframes cursorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Mobile adjustments for loading */
@media (max-width: 480px) {
    .diamond-spinner {
        width: 50px;
        --b: 8px;
        margin-bottom: 1.5rem;
    }

    .loading-text {
        font-size: 1.1rem;
    }

    .loading-subtext {
        font-size: 0.875rem;
        padding: 0 1rem;
    }

    .typewriter-cursor {
        width: 14px;
        height: 14px;
        margin-left: 3px;
    }
}

/* ========================================
   Model Viewer Container
   ======================================== */
.model-viewer-container {
    display: none;
    max-width: 800px;
    margin: 2rem auto;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.model-viewer-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.viewer-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.model-viewer {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(147, 169, 210, 0.15) 100%);
    position: relative;
}

.download-options {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    justify-content: center;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: 6rem 0;
    background-color: var(--bg-primary);
    position: relative;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--border-radius-xl);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107, 91, 149, 0.2);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-coral) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.75rem;
    box-shadow: 0 8px 20px rgba(107, 91, 149, 0.3);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-purple);
    opacity: 0.3;
    transform: scale(1.2);
}

.step h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Trust Section
   ======================================== */
.trust {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(147, 169, 210, 0.08) 100%);
}

.trust h2 {
    text-align: center;
    margin-bottom: 3.5rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.trust-item {
    background-color: var(--bg-primary);
    padding: 2.25rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--color-purple) 0%, var(--color-coral) 100%);
    transition: height 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107, 91, 149, 0.15);
}

.trust-item:hover::before {
    height: 100%;
}

.trust-item svg {
    color: var(--color-purple);
    margin-bottom: 1.25rem;
}

.trust-item:nth-child(2) svg { color: var(--color-coral); }
.trust-item:nth-child(3) svg { color: var(--color-green); }
.trust-item:nth-child(4) svg { color: var(--color-blue); }

.trust-item h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.trust-item p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Use Cases Section
   ======================================== */
.use-cases {
    padding: 6rem 0;
    background-color: var(--bg-primary);
    position: relative;
}

.use-cases h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.use-cases .section-subtitle {
    text-align: center;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.use-case {
    padding: 2.25rem;
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--border-radius-xl);
    transition: var(--transition);
    border: 2px solid var(--border-light);
    text-align: center;
}

.use-case:hover {
    border-color: var(--color-purple);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.use-case h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.use-case p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(247, 203, 202, 0.08) 100%);
}

.faq h2 {
    text-align: center;
    margin-bottom: 3.5rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(107, 91, 149, 0.2);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1.75rem;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(107, 91, 149, 0.03);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--color-purple);
}

.faq-question[aria-expanded="true"] svg,
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--color-coral);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.75rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   About / Mission Section
   ======================================== */
.about-mission {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.about-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-coral) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(107, 91, 149, 0.3);
}

.mission-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.mission-lead {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mission-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mission-content .btn {
    margin-top: 1rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-purple) 0%, #8b7bb5 50%, var(--color-blue) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: white;
    color: var(--color-purple);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
    background: var(--color-pink);
    color: var(--color-purple);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.875rem;
}

/* ========================================
   Section CTA Links
   ======================================== */
.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.section-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   Professional Footer (site-footer)
   ======================================== */
.site-footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #12121f 100%);
    color: white;
    margin-top: 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-top {
    padding: 3rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.footer-brand a {
    display: block;
    transition: opacity 0.2s ease;
    background: transparent;
}

.footer-brand a:hover {
    opacity: 0.9;
}

.footer-brand img {
    height: 100px;
    width: auto;
    object-fit: contain;
    background: transparent;
}

.footer-brand svg {
    color: #ff6e61;
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-tagline {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    max-width: 300px;
}

.footer-contact-info {
    text-align: right;
}

.footer-contact-info p {
    margin: 0.25rem 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-contact-info a {
    color: #f7cbca;
}

.footer-contact-info a:hover {
    color: white;
    text-decoration: none;
}

.footer-main {
    padding: 3rem 2rem;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 0;
}

.site-footer .footer-section.about {
    padding-right: 2rem;
}

.site-footer .footer-section.about p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.site-footer .footer-section h4 {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.site-footer .footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ff6e61;
}

.site-footer .footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-section li {
    margin-bottom: 0.75rem;
}

.site-footer .footer-section a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer .footer-section a:hover {
    color: white;
    text-decoration: none;
    padding-left: 5px;
}

.footer-address {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.7;
    font-style: normal;
}

.footer-address strong {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.site-footer .footer-bottom {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    text-align: left;
}

.site-footer .footer-bottom p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-bottom-links a {
    color: #9ca3af;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ff6e61;
    text-decoration: none;
}

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

/* ========================================
   Responsive Design - Tablet (768px)
   ======================================== */
@media (max-width: 768px) {
    /* Hero adjustments */
    .hero {
        padding: 3.5rem 0 4rem;
    }

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

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

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero::before,
    .hero::after {
        opacity: 0.5;
    }

    /* CTA container */
    .cta-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .btn-large {
        padding: 1rem 2rem;
    }

    /* Grid layouts */
    .steps,
    .trust-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step,
    .trust-item,
    .use-case {
        padding: 2rem 1.5rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Model viewer */
    .model-viewer {
        height: 350px;
    }

    .download-options {
        flex-direction: column;
        padding: 1rem;
    }

    /* Sections */
    .how-it-works,
    .trust,
    .use-cases,
    .faq {
        padding: 4rem 0;
    }

    .cta-section {
        padding: 4rem 1rem;
    }

    /* About / Mission */
    .about-mission {
        padding: 4rem 1rem;
    }

    .mission-lead {
        font-size: 1rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1.25rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .footer-contact-info {
        text-align: center;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .site-footer .footer-section.about {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }

    .site-footer .footer-section.about p {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-main {
        padding: 2rem 1.5rem;
    }

    /* Section CTAs */
    .section-cta {
        margin-top: 2rem;
    }

    .section-cta .btn {
        width: auto;
        min-width: 200px;
    }
}

/* ========================================
   Responsive Design - Mobile (480px)
   ======================================== */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    /* Hero */
    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

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

    .hero-description {
        font-size: 0.9375rem;
    }

    /* Upload zone */
    .upload-zone {
        padding: 2rem 1rem;
        border-width: 2px;
    }

    .upload-text {
        font-size: 1rem;
    }

    /* Model viewer */
    .model-viewer {
        height: 280px;
    }

    .viewer-header {
        padding: 1rem;
    }

    .viewer-header h2 {
        font-size: 1.125rem;
    }

    /* Steps */
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.25rem;
    }

    .step-number::after {
        transform: scale(1.15);
    }

    /* Sections */
    .how-it-works,
    .trust,
    .use-cases,
    .faq {
        padding: 3rem 0;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    /* Use cases */
    .use-case-icon {
        font-size: 2.75rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .faq-answer p {
        padding: 0 1rem 1rem;
        font-size: 0.9375rem;
    }

    /* About / Mission section */
    .about-mission {
        padding: 3rem 1rem;
    }

    .mission-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .mission-content h2 {
        font-size: 1.5rem;
    }

    .mission-lead {
        font-size: 0.9375rem;
    }

    .mission-content p {
        font-size: 0.9375rem;
    }

    /* CTA section */
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Footer */
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .site-footer .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-address {
        text-align: center;
    }

    .footer-bottom-links {
        gap: 0.75rem;
    }

    .footer-bottom-links a {
        font-size: 0.75rem;
    }

    /* Section CTAs */
    .section-cta .btn {
        width: 100%;
        min-width: auto;
    }

    /* Buttons */
    .btn {
        font-size: 0.9375rem;
        padding: 0.875rem 1.25rem;
    }

    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
}

/* ========================================
   Extra Small Devices (360px and below)
   ======================================== */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

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

    .step,
    .trust-item,
    .use-case {
        padding: 1.5rem 1rem;
    }

    .faq-question {
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-purple);
    outline-offset: 2px;
}

/* ========================================
   Touch & Mobile Optimizations
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for touch devices */
    .btn {
        min-height: 48px;
    }

    .faq-question {
        min-height: 56px;
    }

    .nav a,
    .footer-section a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Disable hover effects on touch */
    .step:hover,
    .trust-item:hover,
    .use-case:hover,
    .faq-item:hover {
        transform: none;
    }

    /* Active states for touch feedback */
    .btn:active {
        transform: scale(0.98);
    }

    .step:active,
    .trust-item:active,
    .use-case:active {
        transform: scale(0.99);
    }
}

/* Smooth scrolling everywhere */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .site-footer .footer-bottom {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }

    .cta-section {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom));
    }
}

/* ========================================
   Navigation Right Section
   ======================================== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Usage Counter Badge
   ======================================== */
.usage-counter {
    display: flex;
    align-items: center;
}

.usage-badge {
    background: linear-gradient(135deg, var(--brand-purple) 0%, #8b7bb5 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.usage-badge.warning {
    background: linear-gradient(135deg, var(--brand-coral) 0%, #ff8a7d 100%);
}

.usage-badge.success {
    background: linear-gradient(135deg, var(--brand-green) 0%, #a4c76b 100%);
}

/* ========================================
   User Menu Dropdown
   ======================================== */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.user-menu-trigger:hover {
    background-color: var(--bg-secondary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 1rem;
}

.user-email {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-plan {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    color: var(--text-secondary);
}

.usage-info {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
}

.usage-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.usage-row:last-child {
    margin-bottom: 0;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: left;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-item.text-danger {
    color: var(--error-color);
}

.dropdown-item.text-danger:hover {
    background: #FEF2F2;
}

.dropdown-item.affiliate-link {
    background: linear-gradient(135deg, rgba(255, 110, 97, 0.08) 0%, rgba(107, 91, 149, 0.08) 100%);
    color: var(--color-coral);
    font-weight: 500;
    border-radius: 8px;
    margin: 0.25rem 0;
}

.dropdown-item.affiliate-link:hover {
    background: linear-gradient(135deg, rgba(255, 110, 97, 0.15) 0%, rgba(107, 91, 149, 0.15) 100%);
    color: var(--color-coral);
}

.dropdown-item.affiliate-link svg {
    color: var(--color-coral);
}

.dropdown-item.affiliate-link.is-affiliate {
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(135, 175, 75, 0.08) 0%, rgba(107, 91, 149, 0.08) 100%);
    color: var(--text-primary);
}

.dropdown-item.affiliate-link.is-affiliate:hover {
    background: linear-gradient(135deg, rgba(135, 175, 75, 0.15) 0%, rgba(107, 91, 149, 0.15) 100%);
}

.dropdown-item.affiliate-link.is-affiliate svg {
    color: var(--color-green);
}

.affiliate-earnings {
    width: 100%;
    margin-top: 4px;
    padding-left: 28px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-green);
}

/* ========================================
   Modal Styles
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-large {
    max-width: 900px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.modal-header h2 {
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    margin: 0;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.modal-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   Auth Forms
   ======================================== */
.auth-form {
    padding: 0 2rem 1rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: var(--error-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-link:hover {
    text-decoration: underline;
}

/* ========================================
   Pricing Grid
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.pricing-card {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--brand-purple);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--brand-purple);
    background: white;
}

.pricing-card.premium {
    background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-purple);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.pricing-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-price .period {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    flex-shrink: 0;
}

.pricing-features li.disabled {
    opacity: 0.5;
}

.pricing-features li strong {
    color: var(--text-primary);
}

.pricing-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0 2rem 2rem;
    margin: 0;
}

/* ========================================
   Upgrade Modal
   ======================================== */
.upgrade-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.upgrade-actions {
    padding: 0 2rem 2rem;
}

.upgrade-actions .btn-text {
    margin-top: 0.5rem;
}

/* ========================================
   Responsive Adjustments for New Components
   ======================================== */
@media (max-width: 768px) {
    .nav-right {
        gap: 0.5rem;
    }

    .auth-buttons {
        gap: 0.25rem;
    }

    .btn-text {
        padding: 0.5rem;
    }

    .usage-counter {
        display: none;
    }

    .user-dropdown {
        position: fixed;
        top: 70px;
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .user-info {
        padding: 1rem;
    }

    .user-email {
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .usage-info {
        padding: 0.75rem 1rem;
    }

    .usage-row {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .dropdown-item {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .modal-content {
        margin: 0.5rem;
    }

    .modal-content.modal-large {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-buttons .btn-text span {
        display: none;
    }

    .modal-header,
    .auth-form,
    .modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* User dropdown mobile refinements */
    .user-dropdown {
        top: 60px;
        right: 0.25rem;
        left: 0.25rem;
        border-radius: var(--border-radius);
        box-shadow: 0 8px 32px rgba(107, 91, 149, 0.25);
    }

    .user-info {
        padding: 0.875rem;
    }

    .user-email {
        font-size: 0.85rem;
        max-width: 100%;
    }

    .user-plan {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }

    .usage-info {
        padding: 0.625rem 0.875rem;
    }

    .usage-row {
        font-size: 0.75rem;
    }

    .dropdown-item {
        font-size: 0.85rem;
        padding: 0.75rem 0.875rem;
        min-height: 44px;
    }

    .dropdown-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
}
