/* ==========================================================================
   UNISON Vision Board Builder - Premium Design System (CSS)
   ========================================================================== */

:root {
    /* Brand Palette - Strictly UNISON Corporate Colors */
    --navy-900: #0A2342;
    --navy-800: #0D2E52;
    --navy-700: #143F6D;
    --navy-tint: #E8EDF3;
    --gold-500: #F5A623;
    --gold-600: #E09415;
    --gold-tint: #FEF3DC;
    
    /* Vibrant UI Brand Gradients (Used purely inside Web controls) */
    --logo-grad: linear-gradient(135deg, #00D9C5 0%, #00BBDD 30%, #6688FF 60%, #CC44EE 100%);
    --gold-grad: linear-gradient(135deg, #F5A623 0%, #E09415 100%);
    --glass-bg: rgba(13, 46, 82, 0.45);
    --glass-border: rgba(245, 166, 35, 0.15);
    
    /* Standard Neutrals */
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    
    /* System Visual Settings */
    --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-active: 0 15px 40px -5px rgba(245, 166, 35, 0.15), 0 0 0 1px rgba(245, 166, 35, 0.3);
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --border-radius-sm: 6px;
    --transition-smooth: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Resets & Defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--navy-900);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Main window has no scroll; columns scroll independently */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Premium App Header */
.app-header {
    background-color: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    z-index: 100;
}

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

.back-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--gold-500);
    transform: translateX(-2px);
}

.header-separator {
    width: 1px;
    height: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.app-title-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--white);
}

.app-name {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--gray-200);
    opacity: 0.9;
}

.export-btn {
    background: var(--gold-grad);
    color: var(--navy-900);
    border: none;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.25);
    transition: var(--transition-smooth);
}

.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
    filter: brightness(1.05);
}

/* Master Layout Structure */
.app-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Sidebar Controls panel */
.sidebar-panel {
    width: 420px;
    background-color: rgba(10, 35, 66, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* Collapsible Neuroscience Guide Panel */
.collapsible-card {
    background: rgba(13, 46, 82, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.collapsible-card:hover {
    border-color: rgba(245, 166, 35, 0.15);
}

.collapsible-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

.trigger-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.trigger-title i {
    color: var(--gold-500);
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.collapsible-card.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}

.collapsible-card.collapsed .collapsible-content {
    max-height: 0;
    padding: 0 1.25rem;
    opacity: 0;
    pointer-events: none;
}

.guide-intro {
    font-size: 0.85rem;
    color: var(--gray-300);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.guide-list {
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.guide-list li {
    font-size: 0.82rem;
    color: var(--gray-400);
    line-height: 1.45;
}

.guide-list strong {
    color: var(--white);
    font-weight: 500;
}

/* Standard Control Cards */
.controls-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.section-title i {
    color: var(--gold-500);
}

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

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

/* Aspect Ratio Switches UI */
.aspect-toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.aspect-option {
    background: rgba(10, 35, 66, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 0.75rem;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
    text-align: left;
}

.aspect-option i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.aspect-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-300);
}

.aspect-dims {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 0.1rem;
}

.aspect-option.active {
    background: rgba(245, 166, 35, 0.08);
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.aspect-option.active .aspect-name {
    color: var(--gold-500);
}

.aspect-option:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(10, 35, 66, 0.6);
}

/* Custom form inputs */
.form-input {
    width: 100%;
    background-color: rgba(10, 35, 66, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 0.65rem 0.85rem;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.25);
}

.setting-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--gray-400);
    margin-top: 0.35rem;
}

/* Grid layout pre-selectors styled like tabs */
.layout-grid-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.layout-opt {
    background: rgba(10, 35, 66, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 0.4rem;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.layout-icon {
    width: 1.5rem;
    height: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    display: flex;
    gap: 1px;
    background: transparent;
}

/* Small layout wireframe representations inside button */
.focus-icon::before {
    content: '';
    width: 100%;
    margin: 2px;
    border: 1px solid rgba(255,255,255,0.4);
}
.quad-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.quad-icon::before, .quad-icon::after {
    content: '';
    border: 1px solid rgba(255,255,255,0.3);
}
.minimal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.minimal-icon::before {
    content: '';
    width: 60%;
    height: 2px;
    background-color: rgba(255,255,255,0.4);
}

.layout-opt.active {
    background: rgba(245, 166, 35, 0.08);
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.layout-opt.active .layout-icon {
    border-color: var(--gold-500);
}

.layout-opt:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Dynamic Card editing list item controllers */
.card-customizer-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-editor-box {
    background: rgba(10, 35, 66, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1rem;
}

.card-editor-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-500);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editor-field {
    margin-bottom: 0.75rem;
}

.editor-field:last-child {
    margin-bottom: 0;
}

.editor-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-300);
    margin-bottom: 0.3rem;
}

/* Writing Coach Dynamic helper instructions */
.coach-prompt-box {
    background: rgba(245, 166, 35, 0.05);
    border-left: 2px solid var(--gold-500);
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
    color: var(--gold-500);
    font-style: italic;
    border-radius: 0 4px 4px 0;
    margin-top: 0.35rem;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
}

.coach-prompt-box i {
    width: 0.8rem;
    height: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: var(--border-radius-sm);
    padding: 0.55rem;
    color: var(--gray-300);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.file-upload-btn:hover {
    border-color: var(--gold-500);
    background: rgba(245, 166, 35, 0.05);
    color: var(--gold-500);
}

.file-upload-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

/* Preset smart buttons templates styling */
.smart-templates-block {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.template-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tmpl-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    text-align: left;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.tmpl-btn i {
    color: var(--gold-500);
    width: 0.9rem;
    height: 0.9rem;
}

.tmpl-btn:hover {
    background: rgba(245, 166, 35, 0.08);
    border-color: rgba(245, 166, 35, 0.3);
    color: var(--white);
}

/* Right-side Preview panel Zone */
.preview-panel {
    flex: 1;
    background-color: #051325; /* Dark charcoal preview frame contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    overflow: hidden;
}

.canvas-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    position: relative;
    overflow: hidden;
}

/* The Live Rendering Vision Board Canvas Object - Fixed Resolution Previews scaled by JS Fit Engine */
.preview-canvas {
    background-color: var(--navy-900);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    display: grid;
    position: absolute; /* Floating centered absolute mockup card */
    overflow: hidden;
    transform-origin: center center;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 16:9 Desktop aspect setup scale ratio constraint */
.preview-canvas.ratio-desktop {
    width: 900px;
    height: 506.25px;
    min-width: 900px;
    min-height: 506.25px;
    gap: 1.25rem;
    padding: 2.25rem;
}

/* 9:16 Mobile aspect setup scale ratio constraint */
.preview-canvas.ratio-mobile {
    width: 360px;
    height: 640px;
    min-width: 360px;
    min-height: 640px;
    gap: 1.25rem;
    padding: 1.75rem;
}

/* Vision Board Grid Card Items inside canvas */
.canvas-card {
    background: var(--navy-800);
    border: 2px solid var(--gold-500); /* Dynamic default Navy Gold styling boundary */
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Grid card card title text styles */
.canvas-card-title {
    font-family: 'Outfit', sans-serif;
    color: var(--gold-500);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    z-index: 2;
}

/* Grid card card main message text styles */
.canvas-card-body {
    font-size: 1.15rem;
    color: var(--white);
    line-height: 1.45;
    z-index: 2;
}

/* If Card is purely an Image, show overlay grid styles to keep text readable */
.canvas-card.has-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,35,66,0.2) 0%, rgba(10,35,66,0.85) 100%);
    z-index: 1;
}

/* ==========================================================================
   Canvas Typography Pairings & Mood Configurations
   ========================================================================== */

/* 1. Disruptor Vibe (Syne + DM Sans) */
.mood-disruptor .canvas-card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}
.mood-disruptor .canvas-card-body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
}

/* 2. Classic Vibe (Cinzel + Montserrat) */
.mood-classic .canvas-card-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}
.mood-classic .canvas-card-body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* 3. Tech Vibe (Space Grotesk + JetBrains Mono) */
.mood-tech .canvas-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}
.mood-tech .canvas-card-body {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.95rem;
}

/* 4. Organic Vibe (Outfit + Cormorant) */
.mood-organic .canvas-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}
.mood-organic .canvas-card-body {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.3;
}

/* ==========================================================================
   Canvas Layouts Configurations
   ========================================================================== */

/* Layout Preset A: Focus Layout Grid */
.layout-focus {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.layout-focus .canvas-card:nth-child(1) { grid-area: 1 / 1 / 2 / 3; }
.layout-focus .canvas-card:nth-child(2) { grid-area: 1 / 3 / 2 / 5; }

/* Large Centered Core Focus card */
.layout-focus .canvas-card:nth-child(3) { 
    grid-area: 2 / 2 / 3 / 4; 
    border-width: 3px;
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.15);
}
.layout-focus .canvas-card:nth-child(3) .canvas-card-body {
    font-size: 1.45rem;
}

.layout-focus .canvas-card:nth-child(4) { grid-area: 2 / 1 / 3 / 2; }
.layout-focus .canvas-card:nth-child(5) { grid-area: 2 / 4 / 3 / 5; }
.layout-focus .canvas-card:nth-child(6) { grid-area: 3 / 1 / 4 / 3; }
.layout-focus .canvas-card:nth-child(7) { grid-area: 3 / 3 / 4 / 5; }

/* Mobile adaptation for Focus layout to scale down cards */
.ratio-mobile.layout-focus {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 1fr);
}
.ratio-mobile.layout-focus .canvas-card {
    grid-area: auto !important;
}
/* Hide secondary columns in mobile view to keep layout beautiful on tall frames */
.ratio-mobile.layout-focus .canvas-card:nth-child(n+6) {
    display: none;
}

/* Layout Preset B: Symmetric Quadrant Grid */
.layout-quad {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.layout-quad .canvas-card {
    grid-area: auto !important;
    display: flex !important;
}
.layout-quad .canvas-card:nth-child(n+5) {
    display: none;
}
.ratio-mobile.layout-quad {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
}

/* Layout Preset C: Minimalist Split */
.layout-minimal {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: 4rem;
}
.layout-minimal .canvas-card {
    grid-area: auto !important;
    display: flex !important;
    border-width: 3px;
    align-items: center;
    text-align: center;
}
.layout-minimal .canvas-card:nth-child(1) .canvas-card-body {
    font-size: 2rem;
}
.layout-minimal .canvas-card:nth-child(n+2) {
    display: none;
}
.ratio-mobile.layout-minimal {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: 2.25rem;
}
.ratio-mobile.layout-minimal .canvas-card:nth-child(1) .canvas-card-body {
    font-size: 1.45rem;
}

/* ==========================================================================
   Modals & Verification Forms Styling
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 19, 37, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Enable scrollbar on overflow viewport height */
    padding: 2rem 1rem; /* Provide spacing margins when modal scrolls */
}

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

.modal-card {
    background: var(--navy-800);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 520px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: auto; /* Flexbox masterclass: centers when small, allows scrolling without cutoffs when large */
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--gold-500);
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.25);
    color: var(--gold-500);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.modal-header p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

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

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

/* Text area with dynamic sliding heights */
.text-slide-group {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-bottom 0.4s ease;
}

.text-slide-group.active {
    max-height: 150px;
    opacity: 1;
    margin-bottom: 1.25rem;
}

.textarea-custom {
    resize: none;
    height: 80px;
    font-family: inherit;
}

.modal-submit-btn {
    width: 100%;
    background: var(--gold-grad);
    color: var(--navy-900);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.8rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
    transition: var(--transition-smooth);
}

.modal-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
    filter: brightness(1.05);
}

/* Verification Pending (Step 2) Modal Elements */
.verification-spinner {
    width: 4rem;
    height: 4rem;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.15);
    color: var(--gold-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.verification-spinner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--gold-500);
    border-radius: 50%;
    animation: rotate-spin 2s linear infinite;
}

.spin-icon {
    font-size: 1.5rem;
}

@keyframes rotate-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.verification-instructions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(10,35,66,0.3);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.instruct-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--gray-300);
    line-height: 1.45;
}

.instruct-num {
    background-color: var(--gold-500);
    color: var(--navy-900);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.waiting-prompt {
    font-size: 0.85rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.waiting-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gold-500);
    animation: pulsing-dot 1.5s infinite ease-in-out;
}

@keyframes pulsing-dot {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

.simulation-alert {
    background: rgba(0, 217, 197, 0.05);
    border: 1px solid rgba(0, 217, 197, 0.2);
    color: #00D9C5;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.78rem;
    display: flex;
    gap: 0.75rem;
    line-height: 1.45;
}

.simulation-alert i {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Simulated Email Client (Inbox Mock Panel)
   ========================================================================== */

.sim-inbox-panel {
    position: fixed;
    top: 70px;
    right: -420px; /* Hidden offscreen by default */
    width: 420px;
    height: calc(100vh - 70px);
    background-color: #f8f9fa;
    color: #2c3e50;
    border-left: 1px solid #e2e8f0;
    z-index: 1100; /* Elevated above modal-overlay (z-index 1000) to ensure perfect visibility */
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}

.sim-inbox-panel.active {
    right: 0;
}

.inbox-header {
    background-color: var(--navy-900);
    color: var(--white);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gold-500);
}

.inbox-title {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inbox-hint {
    background-color: var(--gold-500);
    color: var(--navy-900);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.inbox-body {
    flex: 1;
    overflow-y: auto;
    background-color: #f1f5f9;
    padding: 1.25rem;
}

.empty-inbox {
    text-align: center;
    padding: 6rem 2rem;
    color: #94a3b8;
}

.empty-inbox i {
    width: 4rem;
    height: 4rem;
    stroke-width: 1px;
    margin-bottom: 1rem;
}

.empty-inbox p {
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Simulated Transactional Verification Mail */
.sim-email {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.email-meta {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.email-meta strong {
    color: #334155;
}

.email-body {
    padding: 2rem;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.6;
}

.email-body p {
    margin-bottom: 1rem;
}

.email-brand-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.email-brand-icon {
    width: 1.75rem;
    height: 1.75rem;
    background: var(--navy-900);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    font-weight: 800;
    font-size: 1rem;
}

.email-brand-text {
    font-weight: 800;
    color: var(--navy-900);
    font-size: 1.15rem;
}

.email-verify-btn {
    background-color: var(--navy-900);
    color: var(--gold-500);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(10,35,66,0.15);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.email-verify-btn:hover {
    background-color: var(--gold-600);
    color: var(--navy-900);
}

.email-lead-summary {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.78rem;
}

.email-lead-summary strong {
    display: block;
    color: #475569;
    margin-bottom: 0.5rem;
}

.email-lead-summary ul {
    padding-left: 1.25rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ==========================================================================
   Fluid Responsiveness Mechanics (Media Queries)
   ========================================================================== */

/* Tablet Viewports Adjustment */
@media (max-width: 1024px) {
    .app-header {
        padding: 1rem;
    }
    
    .sidebar-panel {
        width: 340px;
        padding: 1rem;
    }

    .preview-canvas.ratio-desktop {
        max-width: 100%;
    }
}

/* Absolute Mobile & Smartphone Layout Adapters */
@media (max-width: 768px) {
    body {
        overflow-y: auto; /* Allow master screen scroll in mobile stacked state */
        height: auto;
    }

    .header-instruction-text {
        display: none !important;
    }

    .app-header {
        height: auto;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        position: static;
    }

    .header-left {
        flex-direction: column;
        gap: 0.35rem;
        align-items: center;
    }

    .header-separator {
        display: none;
    }

    .export-btn {
        width: 100%;
        justify-content: center;
    }

    .app-layout {
        flex-direction: column-reverse; /* Canvas at the top, controls underneath */
        overflow: visible;
        height: auto;
    }

    .preview-panel {
        height: 480px; /* Absolute fixed viewport for live preview canvas */
        padding: 1rem;
        position: sticky;
        top: 0;
        z-index: 200;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .canvas-wrapper {
        align-items: flex-start;
    }

    .preview-canvas.ratio-desktop {
        max-width: 100%;
        padding: 1rem;
        gap: 0.5rem;
    }

    .preview-canvas.ratio-mobile {
        max-height: 100%;
        padding: 1rem;
        gap: 0.5rem;
    }

    .sidebar-panel {
        width: 100%;
        height: auto;
        overflow-y: visible;
        padding: 1rem;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .modal-card {
        padding: 1.5rem;
        max-width: 90%;
    }

    .sim-inbox-panel {
        width: 100%;
        right: -100%;
        top: 0;
        height: 100%;
    }
}

/* ==========================================================================
   Feedback Drawer Styling
   ========================================================================== */
.feedback-drawer-card {
    background: rgba(13, 46, 82, 0.2);
    border: 1px solid rgba(245, 166, 35, 0.1);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.feedback-drawer-card:hover {
    border-color: rgba(245, 166, 35, 0.25);
}

.feedback-trigger-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--gray-300);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
}

.feedback-trigger-btn i {
    color: var(--gold-500);
}

.drawer-chevron {
    transition: transform 0.3s ease;
}

.feedback-drawer-card.collapsed .drawer-chevron {
    transform: rotate(-90deg);
}

.feedback-drawer-content {
    padding: 0 1rem 1rem;
    max-height: 350px;
    opacity: 1;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}

.feedback-drawer-card.collapsed .feedback-drawer-content {
    max-height: 0;
    padding: 0 1rem;
    opacity: 0;
    pointer-events: none;
}

.feedback-intro-text {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: 0.6rem;
    line-height: 1.45;
}

.feedback-success-msg {
    padding: 1rem;
    font-size: 0.8rem;
    color: #00D9C5;
    background: rgba(0, 217, 197, 0.05);
    border-top: 1px solid rgba(0, 217, 197, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.feedback-success-msg i {
    flex-shrink: 0;
}

/* ==========================================================================
   Brand Strategy Animations & UI Styles
   ========================================================================== */

/* Idea 1: Success Watermark Logo positioning inside downloaded canvas */
/* Note: Drawn natively in Canvas exporter app.js, styling not required in CSS */

/* Idea 2: Pulse glow keyframe for Step 3 Modal Hero Banner logo */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(0, 217, 197, 0.55)) drop-shadow(0 0 30px rgba(204, 68, 238, 0.35));
    }
    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 25px rgba(0, 217, 197, 0.75)) drop-shadow(0 0 45px rgba(204, 68, 238, 0.55));
    }
}

/* Idea 3: Premium Dynamic Compilation Loader Screen Overlay */
.render-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 19, 37, 0.95);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.loader-content-card {
    background: var(--navy-800);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.loader-logo-wrap {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.loader-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: loader-pulse 2s infinite ease-in-out;
}

@keyframes loader-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
}

.loader-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.loader-typewriter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--gold-500);
    margin-bottom: 1.75rem;
    letter-spacing: 0.5px;
    overflow: hidden;
    border-right: 2px solid var(--gold-500);
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
    width: 17ch;
    animation: typing 2.5s steps(17) infinite, blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 17ch }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--gold-500); }
}

.loader-bar-bg {
    width: 100%;
    height: 6px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 100px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00D9C5, var(--gold-500));
    border-radius: 100px;
    transition: width 0.1s linear;
}

/* Idea 4: Smart Automation Brand Coach (Floating U Trigger) */
.brand-coach-trigger {
    position: fixed;
    bottom: 2rem;
    left: 2rem; /* Placed left to stand out opposite to control sidebar */
    width: 2.6rem;
    height: 2.6rem;
    background: var(--navy-800);
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.25);
    transition: var(--transition-smooth);
    animation: coach-float 3s infinite ease-in-out;
}

@keyframes coach-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.brand-coach-trigger:hover {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 12px 30px rgba(245, 166, 35, 0.4);
    background: var(--navy-700);
}

.coach-trigger-logo {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 217, 197, 0.35));
}

.coach-pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-ring 3s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Floating Coach Drawer Window Panel */
.brand-coach-drawer {
    position: fixed;
    bottom: 6.5rem;
    left: -340px; /* Hidden offscreen by default */
    width: 320px;
    background: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gold-500);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 450;
    overflow: hidden;
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.brand-coach-drawer.active {
    left: 2rem; /* Slides in neatly above the trigger */
}

.coach-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.coach-close-btn:hover {
    color: var(--gold-500);
}

.coach-header {
    background-color: var(--navy-900);
    border-bottom: 1px solid rgba(245, 166, 35, 0.15);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--white);
}

.coach-body {
    padding: 1.25rem;
}

/* Make sure mobile stacking wraps floating elements safely */
@media (max-width: 768px) {
    .brand-coach-trigger {
        bottom: 1rem;
        left: 1rem;
        width: 2.25rem;
        height: 2.25rem;
    }
    .coach-trigger-logo {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .brand-coach-drawer {
        bottom: 4.5rem;
        left: -105%;
        width: calc(100vw - 2rem);
    }
    
    .brand-coach-drawer.active {
        left: 1rem;
    }
}

/* ==========================================================================
   Three-Tab Sidebar & Interactive Free-Form Collage Builder Styles
   ========================================================================== */

/* Tab navigation container */
.sidebar-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    background: rgba(10, 35, 66, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-400);
    padding: 0.6rem 0.4rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.tab-btn i {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
}

.tab-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.tab-btn.active {
    background: var(--gold-grad);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

/* Tab content panel visibility rules */
.tab-content-panel {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.tab-content-panel.active {
    display: flex;
}

/* Selected styles sub-panels */
#imageStylesPanel, #textStylesPanel {
    animation: slide-down-fade 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slide-down-fade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Unicode Emoji Panel Styles */
.emoji-categories {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
    overflow-x: auto;
    gap: 0.3rem;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.emoji-categories::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Edge */
}

.category-tab {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.category-tab.active {
    background: rgba(245, 166, 35, 0.08);
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: var(--gold-500);
    border-radius: 2px;
}

.emoji-scroll-grid {
    height: 180px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
    padding-right: 0.2rem;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.emoji-scroll-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Edge */
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Interactive Free-Form Canvas Drag & Rotate smart objects */
.canvas-element {
    position: absolute;
    box-sizing: border-box;
    cursor: move;
    user-select: none;
    touch-action: none; /* Prevents default browser panning during dragging */
}

/* Selected Element Bounding Box Highlight */
.canvas-element.selected {
    outline: 1px solid var(--gold-500);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.25);
}

.element-content {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    white-space: normal;
}

/* Dashed drag-border for text container elements */
.canvas-element.type-text-container {
    padding: 8px; /* Safe padding border grab zone to drag text */
    border: 1px dashed rgba(245, 166, 35, 0.2); /* Soft dashed outline */
    border-radius: 4px;
    cursor: move; /* Move cursor on the border grab zone */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover highlights the grab border */
.canvas-element.type-text-container:hover {
    border-color: var(--gold-500);
}

/* Solid outline when selected */
.canvas-element.type-text-container.selected {
    border: 1px solid var(--gold-500) !important;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.25);
}

.element-content.type-text {
    font-family: inherit;
    font-size: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    outline: none;
    cursor: text; /* Clicking text immediately enters edit mode */
    user-select: text;
}

.element-content.type-text[contenteditable="true"] {
    cursor: text;
}

.element-content.type-text:focus {
    outline: 1px dashed var(--gold-500);
    cursor: text;
}

/* Top Circular Rotation Handle */
.rotate-handle {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--gold-500);
    border: 2px solid var(--navy-900);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
}

.rotate-handle::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 14px;
    background-color: var(--gold-500);
    z-index: -1;
}

/* Proportional Scale Handle in Bottom-Right Corner */
.resize-handle {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    background-color: var(--gold-500);
    border: 2px solid var(--navy-900);
    cursor: se-resize;
    z-index: 100;
}

/* Theme Swatch Active Indicator */
.theme-swatch {
    transition: var(--transition-smooth);
}
.theme-swatch:hover {
    transform: scale(1.08);
}

/* ==========================================================================
   Typography Mood Pairings for Free-Form Text Elements
   ========================================================================== */

/* 1. Disruptor Vibe (Syne) */
.mood-disruptor .element-content.type-text { font-family: 'Syne', sans-serif; }

/* 2. Classic Vibe (Cinzel) */
.mood-classic .element-content.type-text { font-family: 'Cinzel', serif; }

/* 3. Tech Vibe (Space Grotesk) */
.mood-tech .element-content.type-text { font-family: 'Space Grotesk', sans-serif; }

/* 4. Organic Vibe (Outfit) */
.mood-organic .element-content.type-text { font-family: 'Outfit', sans-serif; }

/* 5. Optimist Mindset (Poppins) */
.mood-optimist .element-content.type-text { font-family: 'Poppins', sans-serif; }

/* 6. Luxury Dreamer (Playfair Display) */
.mood-luxury .element-content.type-text { font-family: 'Playfair Display', serif; }

/* 7. Executive Prestige (Libre Baskerville) */
.mood-prestige .element-content.type-text { font-family: 'Libre Baskerville', serif; }

/* 8. High Ambition Builder (Oswald) */
.mood-ambition .element-content.type-text { font-family: 'Oswald', sans-serif; }

/* 9. Happy Warmth Vibe (Quicksand) */
.mood-warmth .element-content.type-text { font-family: 'Quicksand', sans-serif; }

/* 10. Determined Achiever (Arvo) */
.mood-determined .element-content.type-text { font-family: 'Arvo', serif; }

/* 11. Creative Visionary (Josefin Sans) */
.mood-artistic .element-content.type-text { font-family: 'Josefin Sans', sans-serif; }

/* 12. Intellectual Goal (Alegreya) */
.mood-scholarly .element-content.type-text { font-family: 'Alegreya', serif; }

/* 13. Pure Inspiration Mood (Pacifico) */
.mood-inspirational .element-content.type-text { font-family: 'Pacifico', cursive; }

/* 14. Clean Minimalist (Inter) */
.mood-minimalist .element-content.type-text { font-family: 'Inter', sans-serif; }

/* ==========================================================================
   15. Express AI Automator Panel Custom Styling
   ========================================================================== */

#autoImageThumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.auto-thumbnail-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: visible;
}

.auto-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Circular thumbnail frames */
    border: 2px solid var(--gold-500);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.auto-thumbnail-wrap:hover .auto-thumbnail {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 166, 35, 0.35);
}

/* Custom Scrollbar for Goals Input Container */
#autoGoalsInputContainer::-webkit-scrollbar {
    width: 4px;
}

#autoGoalsInputContainer::-webkit-scrollbar-track {
    background: rgba(10, 35, 66, 0.3);
    border-radius: 2px;
}

#autoGoalsInputContainer::-webkit-scrollbar-thumb {
    background: rgba(245, 166, 35, 0.3);
    border-radius: 2px;
}

#autoGoalsInputContainer::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500);
}

/* Responsive fixes and improvements for Automator inputs */
#autoGoalsInputContainer .form-input {
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#autoGoalsInputContainer .form-input:focus {
    transform: translateX(3px);
    border-color: var(--gold-500);
}


