/* ============ brand-analyzer.css - Brand Sentiment Analyzer Styles ============ */
/* ============ RESET & VARIABLES - STUDIO DARK THEME ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #40E0FF;
    --primary-dark: #00B8D4;
    --primary-light: rgba(64, 224, 255, 0.15);
    --primary-glow: rgba(64, 224, 255, 0.25);
    --secondary: #40E0FF;
    --accent: #00B8D4;
    --warning: #FFB74D;
    --danger: #FF5252;
    --success: #4CAF50;
    --info: #40E0FF;
    --surface-0: #0B0D10;
    --surface-1: #151A21;
    --surface-2: #1E2630;
    --surface-3: #273140;
    --text-primary: #E9EEF5;
    --text-secondary: #C0C8D2;
    --text-tertiary: #9AA5B5;
    --text-muted: #6B7A8F;
    --border: #273140;
    --border-strong: #3A4A60;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(64, 224, 255, 0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --cyan-gradient: linear-gradient(135deg, #40E0FF, #00B8D4);
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: #0B0D10;
    color: #E9EEF5;
    line-height: 1.5;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(64, 224, 255, 0.03) 0%, transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(64, 224, 255, 0.03) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section-padding { padding: 30px 0; }
@media (min-width: 768px) { .section-padding { padding: 60px 0; } }

h1 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -0.5px; font-weight: 800; color: #E9EEF5; margin-bottom: 12px; word-wrap: break-word; }
h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.3px; font-weight: 700; color: #E9EEF5; margin-bottom: 10px; word-wrap: break-word; }
h3 { font-size: 1rem; font-weight: 700; color: #E9EEF5; margin-bottom: 8px; word-wrap: break-word; }
p { font-size: 0.85rem; color: #9AA5B5; line-height: 1.5; margin-bottom: 16px; word-wrap: break-word; }

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; letter-spacing: -1px; }
    h2 { font-size: 2rem; letter-spacing: -0.5px; }
    h3 { font-size: 1.2rem; }
    p { font-size: 1rem; }
}
@media (min-width: 1024px) { h1 { font-size: 3rem; } }

.text-gradient {
    background: var(--cyan-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ HEADER STYLES ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 13, 16, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #273140;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    padding: 4px 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--cyan-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(64, 224, 255, 0.3);
    transition: var(--transition);
}

.logo-link:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 30px rgba(64, 224, 255, 0.5);
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #E9EEF5;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.brand-name span {
    color: #40E0FF;
    font-weight: 800;
    position: relative;
}

.brand-name span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.logo-link:hover .brand-name span::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============ DESKTOP NAVIGATION ============ */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0 auto;
    padding: 4px 8px;
    background: rgba(21, 26, 33, 0.6);
    border-radius: 60px;
    border: 1px solid #273140;
    backdrop-filter: blur(8px);
}

@media (max-width: 1200px) { .nav-desktop { display: none; } }

.nav-link {
    color: #9AA5B5;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 0.8rem;
    color: #6B7A8F;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #40E0FF;
    background: rgba(64, 224, 255, 0.1);
    border-color: rgba(64, 224, 255, 0.2);
    transform: translateY(-1px);
}

.nav-link:hover i {
    color: #40E0FF;
    transform: scale(1.1);
}

.nav-link.active {
    background: var(--cyan-gradient);
    color: #0B0D10;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
}

.nav-link.active i { color: #0B0D10; }

.nav-dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #151A21;
    border-radius: 16px;
    padding: 8px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #273140;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #9AA5B5;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dropdown-menu a i {
    width: 18px;
    color: #40E0FF;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: rgba(64, 224, 255, 0.1);
    color: #40E0FF;
    transform: translateX(4px);
}

.dropdown-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #40E0FF;
    padding: 8px 12px 4px;
    margin-top: 4px;
    border-bottom: 1px solid #273140;
}

.dropdown-group-title:first-of-type { margin-top: 0; }

/* ============ ACTION BUTTONS ============ */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kofi-link {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid #273140;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
}

.kofi-link:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #40E0FF;
    background: var(--cyan-gradient);
    box-shadow: 0 5px 20px rgba(64, 224, 255, 0.4);
}

.coffee-cup {
    position: relative;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cup-body {
    position: relative;
    width: 18px;
    height: 16px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: cupFill 2s ease-in-out infinite alternate;
}

.cup-body::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 12px;
    background: linear-gradient(135deg, #FFE55C, #FFB347);
    border-radius: 0 0 6px 6px;
    opacity: 0.8;
}

.cup-handle {
    position: absolute;
    top: 2px;
    right: -5px;
    width: 5px;
    height: 8px;
    border: 2px solid #FFD700;
    border-left: none;
    border-radius: 0 4px 4px 0;
    opacity: 0.8;
}

.coffee-liquid {
    position: absolute;
    top: -2px;
    left: 2px;
    width: 14px;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #A0522D);
    border-radius: 2px;
    animation: liquidWave 2s ease-in-out infinite;
}

.coffee-steam {
    position: absolute;
    top: -8px;
    left: 5px;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kofi-link:hover .coffee-steam { opacity: 1; }

.coffee-steam span {
    width: 2px;
    height: 8px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 1px;
    animation: steam 1.5s ease-in-out infinite;
}

.coffee-steam span:nth-child(1) { animation-delay: 0s; }
.coffee-steam span:nth-child(2) { animation-delay: 0.3s; }
.coffee-steam span:nth-child(3) { animation-delay: 0.6s; }

.kofi-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--cyan-gradient);
    color: #0B0D10;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 15px rgba(64, 224, 255, 0.4);
    pointer-events: none;
    z-index: 10;
}

.kofi-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #40E0FF;
    border-radius: 2px;
}

.kofi-link:hover .kofi-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
    transform: translateX(-50%) scale(1);
}

.kofi-link::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--cyan-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.kofi-link:hover::after { opacity: 0.5; }

@keyframes cupFill {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(1.05); }
}

@keyframes liquidWave {
    0%, 100% { transform: translateX(0) scaleX(1); }
    25% { transform: translateX(1px) scaleX(1.05); }
    75% { transform: translateX(-1px) scaleX(0.95); }
}

@keyframes steam {
    0% { transform: translateY(0) scaleX(1); opacity: 0.8; }
    50% { transform: translateY(-5px) scaleX(1.5); opacity: 0.4; }
    100% { transform: translateY(-10px) scaleX(2); opacity: 0; }
}

/* ============ MOBILE MENU ============ */
.mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid #273140;
    display: none;
    align-items: center;
    justify-content: center;
    color: #40E0FF;
    transition: var(--transition);
    flex-shrink: 0;
    cursor: pointer;
}

.mobile-menu-btn i { font-size: 1.1rem; }

.mobile-menu-btn:hover {
    background: var(--cyan-gradient);
    color: #0B0D10;
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
}

@media (max-width: 1200px) { .mobile-menu-btn { display: flex; } }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #151A21;
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 20px 20px;
    border-left: 1px solid #273140;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active { right: 0; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid #273140;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #40E0FF;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--cyan-gradient);
    color: #0B0D10;
    transform: rotate(90deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
}

.mobile-menu-overlay.active { display: block; }

.nav-links-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 30px;
}

.nav-link-mobile {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #9AA5B5;
    text-decoration: none;
    border-radius: 12px;
    min-height: 48px;
    transition: var(--transition);
}

.nav-link-mobile:hover {
    background: rgba(64, 224, 255, 0.1);
    color: #40E0FF;
}

.nav-link-mobile.active {
    background: rgba(64, 224, 255, 0.15);
    color: #40E0FF;
}

@media (max-width: 768px) {
    .header-container { padding: 10px 16px; }
    .brand-name { font-size: 1.1rem; }
    .logo-icon { width: 36px; height: 36px; font-size: 1rem; }
    .kofi-link { width: 40px; height: 40px; }
    .mobile-menu-btn { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .header-container { padding: 8px 12px; }
    .brand-name { font-size: 1rem; }
    .logo-icon { width: 32px; height: 32px; font-size: 0.9rem; }
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    background: #151A21;
    padding: 8px 16px;
    border-bottom: 1px solid #273140;
    font-size: 0.7rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
}

.breadcrumb::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .breadcrumb { padding: 12px 24px; font-size: 0.85rem; }
}

.breadcrumb a {
    color: #40E0FF;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb span { color: #273140; margin: 0 4px; }
.breadcrumb .current { color: #40E0FF; font-weight: 600; }

/* ============ TOOL HEADER ============ */
.tool-header {
    background: var(--cyan-gradient);
    padding: 24px 16px;
    border-bottom: 1px solid #273140;
    color: #0B0D10;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) { .tool-header { padding: 40px 24px; } }

.tool-header h1 {
    color: #0B0D10;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

@media (min-width: 768px) { .tool-header h1 { font-size: 2.5rem; } }

.tool-header p {
    color: rgba(0, 0, 0, 0.8);
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.85rem;
}

@media (min-width: 768px) { .tool-header p { font-size: 1rem; } }

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 12px;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #0B0D10;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .header-badge { padding: 8px 16px; font-size: 0.8rem; }
}

/* ============ MAIN CONTENT ============ */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) { .main-content { padding: 40px 24px; } }

/* ============ ANALYZER GRID ============ */
.analyzer-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

@media (min-width: 1024px) {
    .analyzer-grid {
        display: grid;
        grid-template-columns: 380px 1fr;
        gap: 40px;
        align-items: start;
    }
}

/* ============ INPUT CARD ============ */
.input-card {
    background: #151A21;
    border-radius: var(--radius-xl);
    border: 1px solid #273140;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    transition: var(--transition);
    width: 100%;
    order: 1;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .input-card {
        padding: 32px;
        position: sticky;
        top: 100px;
        order: 0;
    }
}

.input-card:hover { box-shadow: var(--shadow-xl); }

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-header i {
    font-size: 1.3rem;
    color: #40E0FF;
    background: rgba(64, 224, 255, 0.1);
    padding: 10px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.card-header h2 {
    font-size: 1.1rem;
    margin: 0;
    color: #E9EEF5;
}

@media (min-width: 768px) { .card-header h2 { font-size: 1.3rem; } }

/* ============ EXAMPLE PILLS ============ */
.example-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.example-pill {
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 0.7rem;
    color: #9AA5B5;
    cursor: pointer;
    transition: var(--transition);
}

.example-pill i {
    color: #40E0FF;
    margin-right: 4px;
    font-size: 0.6rem;
}

.example-pill:hover {
    border-color: #40E0FF;
    color: #40E0FF;
    transform: translateY(-2px);
}

/* ============ FORM ELEMENTS ============ */
.brand-textarea {
    width: 100%;
    height: 120px;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
    background: #1E2630;
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 20px;
    box-sizing: border-box;
    outline: none;
    transition: var(--transition);
    color: #E9EEF5;
}

@media (min-width: 768px) {
    .brand-textarea { height: 140px; font-size: 0.95rem; margin-bottom: 24px; }
}

.brand-textarea:focus {
    border-color: #40E0FF;
    box-shadow: 0 0 0 3px rgba(64, 224, 255, 0.2);
}

.brand-textarea::placeholder { color: #6B7A8F; }

/* ============ NEGATIVE CONSTRAINT ============ */
.negative-constraint {
    margin: 16px 0;
    padding: 12px;
    background: #1E2630;
    border-radius: var(--radius-md);
    border-left: 3px solid #FF5252;
}

.negative-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #FF5252;
    margin-bottom: 8px;
}

.negative-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 40px;
    border: 1px solid #273140;
    background: #151A21;
    color: #E9EEF5;
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition);
}

.negative-input:focus {
    border-color: #FF5252;
    box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.2);
}

/* ============ SLIDERS ============ */
.slider-group { margin-bottom: 18px; }

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.slider-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #9AA5B5;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.slider-label i {
    color: #40E0FF;
    font-size: 0.6rem;
}

.percentage {
    font-size: 0.7rem;
    font-weight: 700;
    color: #40E0FF;
    background: rgba(64, 224, 255, 0.1);
    padding: 3px 8px;
    border-radius: 30px;
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #40E0FF 0%, #40E0FF 50%, #273140 50%, #273140 100%);
    border-radius: 10px;
    appearance: none;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #40E0FF;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #E9EEF5;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

/* ============ INDUSTRY SECTION ============ */
.industry-section { margin: 20px 0; }

.industry-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #9AA5B5;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

.industry-scroll {
    display: flex;
    overflow-x: auto;
    padding: 4px 0 12px;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: #40E0FF #273140;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.industry-scroll::-webkit-scrollbar { height: 3px; }
.industry-scroll::-webkit-scrollbar-track { background: #273140; border-radius: 10px; }
.industry-scroll::-webkit-scrollbar-thumb { background: #40E0FF; border-radius: 10px; }

.industry-pill {
    padding: 8px 16px;
    border-radius: 40px;
    background: #1E2630;
    border: 1px solid #273140;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    color: #9AA5B5;
    flex-shrink: 0;
}

.industry-pill:hover {
    border-color: #40E0FF;
    color: #40E0FF;
    transform: translateY(-2px);
}

.industry-pill.active {
    background: var(--cyan-gradient);
    color: #0B0D10;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* ============ ANALYZE BUTTON ============ */
.btn-analyze {
    width: 100%;
    background: var(--cyan-gradient);
    color: #0B0D10;
    padding: 16px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    margin: 20px 0 16px;
    box-shadow: 0 8px 20px rgba(64, 224, 255, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-analyze:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(64, 224, 255, 0.4);
}

.btn-analyze:active { transform: translateY(0); }
.btn-analyze.loading { opacity: 0.7; pointer-events: none; }
.btn-analyze.loading i { animation: spin 1s linear infinite; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============ FEATURE TAGS ============ */
.feature-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 12px;
}

.feature-tag {
    background: rgba(64, 224, 255, 0.1);
    color: #40E0FF;
    padding: 8px;
    border-radius: var(--radius-md);
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.feature-tag i { font-size: 0.7rem; flex-shrink: 0; }
.feature-tag:hover {
    background: var(--cyan-gradient);
    color: #0B0D10;
    transform: translateX(5px);
}

/* ============ LOADING OVERLAY ============ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 13, 16, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

.loading-overlay.active { display: flex; }

.ai-thinking {
    text-align: center;
    max-width: 400px;
    padding: 32px;
    background: #151A21;
    border-radius: var(--radius-xl);
    border: 1px solid #273140;
    width: 90%;
}

.ai-thinking i {
    font-size: 3.5rem;
    color: #40E0FF;
    margin-bottom: 16px;
    animation: pulse 1.5s ease infinite;
}

.ai-thinking h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #E9EEF5;
}

.ai-thinking p {
    color: #9AA5B5;
    margin-bottom: 24px;
}

.scanning-words {
    background: #1E2630;
    border-radius: 40px;
    padding: 12px 16px;
    margin: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.scanning-word {
    background: rgba(64, 224, 255, 0.1);
    color: #40E0FF;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    animation: wordPop 0.3s ease;
}

@keyframes wordPop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #1E2630;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--cyan-gradient);
    transition: width 0.1s linear;
    animation: progress 3s ease-out forwards;
}

.scanning-text {
    font-size: 0.8rem;
    color: #40E0FF;
    font-weight: 600;
    animation: blink 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes progress {
    0% { width: 0%; }
    20% { width: 35%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

/* ============ PREVIEW SECTION ============ */
.preview-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 2;
    width: 100%;
}

@media (min-width: 1024px) { .preview-section { order: 0; } }

/* ============ PREVIEW CANVAS ============ */
.preview-canvas {
    background: #151A21;
    border-radius: var(--radius-lg);
    padding: 40px 16px;
    text-align: center;
    color: #E9EEF5;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #273140;
    transition: var(--transition);
    cursor: pointer;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .preview-canvas { padding: 80px 30px; min-height: 320px; }
}

.preview-canvas:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 0 2px #40E0FF;
}

.preview-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(64, 224, 255, 0.15), transparent 70%);
    pointer-events: none;
}

#fontTag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #40E0FF;
    font-weight: 700;
    background: rgba(21, 26, 33, 0.9);
    padding: 4px 10px;
    border-radius: 30px;
    border: 1px solid #273140;
    backdrop-filter: blur(10px);
    z-index: 10;
}

@media (min-width: 768px) {
    #fontTag { top: 20px; left: 20px; font-size: 0.65rem; padding: 6px 14px; }
}

.preview-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    background: rgba(21, 26, 33, 0.9);
    padding: 6px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid #273140;
    z-index: 10;
}

@media (min-width: 768px) {
    .preview-controls { bottom: 20px; right: 20px; gap: 6px; padding: 8px; }
}

.preview-control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #E9EEF5;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.preview-control-btn:hover {
    background: #40E0FF;
    color: #0B0D10;
    transform: scale(1.1);
}

.contrast-toggle-container {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    background: rgba(21, 26, 33, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid #273140;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .contrast-toggle-container { bottom: 20px; left: 20px; padding: 8px 16px; }
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #273140;
    transition: .2s;
    border-radius: 22px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #E9EEF5;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider-round { background-color: #40E0FF; }
input:checked + .slider-round:before { transform: translateX(22px); }

.contrast-label {
    color: #E9EEF5;
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 768px) { .contrast-label { font-size: 0.75rem; } }

.split-preview {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.split-left, .split-right {
    flex: 1;
    padding: 10px;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

.split-left { border-right: 2px dashed rgba(64, 224, 255, 0.3); }
.split-right { border-left: 2px dashed rgba(64, 224, 255, 0.3); }

#specimen {
    font-size: clamp(1.2rem, 5vw, 3.5rem);
    margin: 0;
    outline: none;
    line-height: 1.1;
    font-weight: 700;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    color: #E9EEF5;
}

@media (min-width: 768px) { #specimen { font-size: clamp(1.8rem, 7vw, 4.5rem); } }

.split-left #specimen, .split-right #specimen { font-size: clamp(1rem, 4vw, 2.5rem); }

/* ============ REPORT CARD ============ */
.report-card {
    background: #151A21;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
    padding: 20px;
    display: none;
    animation: slideUp 0.5s ease;
    box-shadow: var(--shadow-lg);
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) { .report-card { padding: 28px; } }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.report-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #273140;
    flex-wrap: wrap;
}

.report-header i {
    font-size: 1.5rem;
    color: #40E0FF;
    background: rgba(64, 224, 255, 0.1);
    padding: 12px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.report-header h3 {
    font-size: 1rem;
    margin: 0 0 2px;
    color: #E9EEF5;
}

@media (min-width: 768px) { .report-header h3 { font-size: 1.2rem; } }

.report-header p {
    color: #9AA5B5;
    margin: 0;
    font-size: 0.7rem;
}

/* ============ CONFIDENCE SCORE ============ */
.confidence-score {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(64, 224, 255, 0.05), #151A21);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid #273140;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.confidence-icon {
    width: 48px;
    height: 48px;
    background: var(--cyan-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.confidence-details { flex: 1; }

.confidence-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #E9EEF5;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.confidence-bar-container {
    width: 100%;
    height: 10px;
    background: #1E2630;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
}

.confidence-bar {
    height: 100%;
    background: var(--cyan-gradient);
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease-in-out;
}

.confidence-percentage {
    font-weight: 700;
    font-size: 1.4rem;
    color: #40E0FF;
    line-height: 1.2;
}

.confidence-label {
    font-size: 0.7rem;
    color: #9AA5B5;
}

.confidence-badge {
    background: #40E0FF;
    color: #0B0D10;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============ ARCHETYPE BADGE ============ */
.archetype-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(64, 224, 255, 0.1);
    padding: 8px 12px;
    border-radius: 40px;
    margin-bottom: 16px;
    border: 1px solid #273140;
    width: 100%;
    flex-wrap: wrap;
    box-sizing: border-box;
    position: relative;
}

.archetype-icon {
    width: 32px;
    height: 32px;
    background: var(--cyan-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-size: 1rem;
    flex-shrink: 0;
}

.archetype-text { flex: 1; min-width: 0; }

.archetype-label {
    font-size: 0.65rem;
    color: #9AA5B5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archetype-name {
    font-weight: 700;
    color: #40E0FF;
    font-size: 0.9rem;
}

/* ============ INFO ICON & TOOLTIP ============ */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #40E0FF;
    color: #0B0D10;
    font-size: 0.6rem;
    cursor: help;
    margin-left: 6px;
    position: relative;
    transition: var(--transition);
}

.info-icon:hover { transform: scale(1.1); background: #00B8D4; }

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #151A21;
    color: #E9EEF5;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    width: 240px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-xl);
    pointer-events: none;
    border: 1px solid #40E0FF;
    line-height: 1.5;
}

.info-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============ COLOR PALETTE ============ */
.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 16px 0;
}

.color-chip {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #E9EEF5;
    font-size: 0.5rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

@media (min-width: 480px) { .color-chip { font-size: 0.55rem; } }

.color-chip:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.color-chip span {
    background: rgba(0,0,0,0.3);
    padding: 2px 4px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

.color-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin: 4px 0 12px;
}

.color-format {
    font-size: 0.55rem;
    color: #9AA5B5;
    background: #1E2630;
    padding: 4px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.color-format:hover {
    background: #40E0FF;
    color: #0B0D10;
}

.color-format span {
    font-weight: 600;
    color: #40E0FF;
}

.color-format:hover span { color: #0B0D10; }

/* ============ FONT PAIRING SECTION ============ */
.font-pairing-section {
    background: #1E2630;
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid #273140;
}

.pairing-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #40E0FF;
    margin-bottom: 12px;
}

.pairing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pairing-card {
    background: #151A21;
    border-radius: var(--radius-sm);
    padding: 12px;
    border: 1px solid #273140;
    position: relative;
    padding-bottom: 35px;
}

.pairing-primary {
    font-size: 0.9rem;
    font-weight: 700;
    color: #E9EEF5;
    margin-bottom: 2px;
}

.pairing-secondary {
    font-size: 0.7rem;
    color: #40E0FF;
    font-weight: 500;
}

.pairing-desc {
    font-size: 0.6rem;
    color: #9AA5B5;
    margin-top: 4px;
}

.pairing-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(64, 224, 255, 0.1);
    color: #40E0FF;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.55rem;
}

/* ============ REPORT GRID ============ */
.report-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 640px) { .report-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .report-grid { grid-template-columns: repeat(4, 1fr); } }

.report-item {
    background: #1E2630;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid #273140;
}

.report-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.report-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #40E0FF;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-text {
    font-size: 0.8rem;
    color: #C0C8D2;
    margin: 0;
    line-height: 1.5;
}

/* ============ RADAR CHART ============ */
.radar-chart {
    width: 100%;
    height: 200px;
    background: #1E2630;
    border-radius: var(--radius-md);
    margin: 16px 0;
    position: relative;
    border: 1px solid #273140;
}

.radar-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#radarCanvas {
    width: 100%;
    height: 100%;
}

/* ============ COMPETITOR SECTION ============ */
.competitor-section { margin: 20px 0; width: 100%; }

.competitor-section h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #E9EEF5;
    flex-wrap: wrap;
}

.competitor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

@media (min-width: 480px) { .competitor-grid { grid-template-columns: repeat(3, 1fr); } }

.competitor-card {
    background: #151A21;
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid #273140;
    transition: var(--transition);
}

.competitor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #40E0FF;
}

.competitor-brand {
    font-weight: 700;
    font-size: 0.7rem;
    color: #E9EEF5;
    margin-bottom: 2px;
}

.competitor-font {
    font-size: 0.6rem;
    color: #9AA5B5;
}

/* ============ LEGIBILITY SCORE ============ */
.legibility-score {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1E2630;
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid #273140;
    flex-wrap: wrap;
}

.circular-progress {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(#4CAF50 0deg, #4CAF50 345deg, #273140 345deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.circular-progress::before {
    content: '';
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #151A21;
}

.progress-value {
    position: relative;
    font-weight: 700;
    font-size: 1.1rem;
    color: #E9EEF5;
    z-index: 1;
}

.legibility-details { flex: 1; }

.legibility-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #E9EEF5;
    margin-bottom: 4px;
}

.legibility-desc {
    font-size: 0.7rem;
    color: #9AA5B5;
}

.wcag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
    background: #1E2630;
    border: 1px solid #273140;
}

/* ============ MOCKUPS SECTION ============ */
.mockups-section { margin: 20px 0; width: 100%; }

.mockups-section h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #E9EEF5;
    flex-wrap: wrap;
}

.mockup-tabs {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    width: 100%;
}

.mockup-tab {
    padding: 8px 16px;
    border-radius: 40px;
    background: #1E2630;
    border: 1px solid #273140;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    color: #9AA5B5;
    flex-shrink: 0;
}

.mockup-tab.active {
    background: var(--cyan-gradient);
    color: #0B0D10;
    border-color: #40E0FF;
}

.mockup-container {
    background: #1E2630;
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    margin: 8px 0;
    border: 1px solid #273140;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    width: 100%;
    box-sizing: border-box;
}

.phone-mockup {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 9 / 19;
    background: #1e1e1e;
    border-radius: 36px;
    padding: 12px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.phone-mockup:hover { transform: translateY(-10px) scale(1.02); }

.phone-screen {
    background: #151A21;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #273140;
}

.phone-header {
    background: var(--primary);
    padding: 12px;
    color: #0B0D10;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.phone-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    color: #E9EEF5;
}

.bag-mockup {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #1E2630, #151A21);
    border-radius: 12px 12px 40px 40px;
    position: relative;
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: #E9EEF5;
    text-transform: uppercase;
    padding: 20px;
    text-align: center;
    border: 1px solid #273140;
    transition: transform 0.3s ease;
}

.bag-mockup:hover { transform: translateY(-10px) scale(1.02); }

.bag-handle {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 25px;
    background: #273140;
    border-radius: 15px 15px 0 0;
}

.bag-handle::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: #1E2630;
    border-radius: 5px;
}

.card-mockup {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 16 / 10;
    background: #151A21;
    border-radius: 16px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid #273140;
    transition: transform 0.3s ease;
}

.card-mockup:hover { transform: translateY(-10px) scale(1.02); }

.card-logo {
    width: 40px;
    height: 40px;
    background: var(--cyan-gradient);
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-size: 1.2rem;
}

.card-company {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #E9EEF5;
}

.card-name { font-size: 0.8rem; color: #9AA5B5; margin-bottom: auto; }

.card-detail {
    font-size: 0.65rem;
    color: #6B7A8F;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

/* ============ ACTION BUTTONS GRID ============ */
.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 20px 0 12px;
    width: 100%;
}

@media (min-width: 480px) { .action-buttons-grid { grid-template-columns: repeat(4, 1fr); } }

.action-btn {
    padding: 12px 4px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    width: 100%;
    text-align: center;
}

.action-btn i { font-size: 0.75rem; flex-shrink: 0; }
.action-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-download { background: var(--cyan-gradient); color: #0B0D10; }
.btn-css { background: #1E2630; color: #40E0FF; border: 1px solid #273140; }
.btn-tailwind { background: #38BDF8; color: #0B0D10; }
.btn-share { background: #1E2630; color: #40E0FF; border: 1px solid #273140; }
.btn-pdf { background: #00B8D4; color: #0B0D10; }
.btn-kit { background: #40E0FF; color: #0B0D10; }
.btn-social { background: #4267B2; color: #E9EEF5; }
.btn-infographic { background: #FF6B6B; color: #0B0D10; }
.btn-wordmark { background: #9C27B0; color: #E9EEF5; }

/* ============ EXPORT AREA ============ */
.export-area {
    background: #151A21;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 20px 0;
    border: 2px dashed #40E0FF;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: none;
}

.export-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #40E0FF;
    color: #0B0D10;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============ SAVED ANALYSES ============ */
.saved-analyses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.saved-analysis-badge {
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 0.7rem;
    color: #9AA5B5;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.saved-analysis-badge i { color: #40E0FF; }
.saved-analysis-badge:hover { border-color: #40E0FF; color: #40E0FF; }

/* ============ SEO CONTENT ============ */
.seo-content {
    background: #151A21;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
    padding: 20px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .seo-content { padding: 30px; margin-top: 40px; }
}

.seo-content h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #E9EEF5;
}

.seo-content h3 {
    font-size: 0.95rem;
    margin: 16px 0 6px;
    color: #40E0FF;
}

.seo-content p {
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: #9AA5B5;
}

/* ============ DROPDOWN GROUP TITLE ============ */
.dropdown-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #40E0FF;
    padding: 8px 12px 4px;
    margin-top: 4px;
    border-bottom: 1px solid #273140;
}

.dropdown-group-title:first-of-type { margin-top: 0; }

/* ============ RESPONSIVE FIXES ============ */
@media (max-width: 767px) {
    .nav-link-mobile, .kofi-link, .mobile-menu-btn, .btn-analyze,
    .action-btn, .industry-pill, .preview-control-btn, .social-link,
    .newsletter-button, .newsletter-input, .archetype-badge,
    .color-chip, .contrast-toggle, .export-btn, .toggle-btn,
    .mockup-tab { min-height: 44px; }
}

@supports (padding: max(0px)) {
    .header-container, .container, .main-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ============ AUTH BUTTON STYLES - MATCHING HEADER DESIGN ============ */
.auth-btn {
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #1E2630;
    border: 1px solid #273140;
    color: #E9EEF5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
    height: 44px;
}

.auth-btn i {
    font-size: 0.8rem;
    color: #40E0FF;
    transition: var(--transition);
}

.auth-btn:hover {
    background: var(--cyan-gradient);
    border-color: transparent;
    color: #0B0D10;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
}

.auth-btn:hover i {
    color: #0B0D10;
}

/* On very small screens, hide the text and keep only icon */
@media (max-width: 480px) {
    .auth-btn span {
        display: none;
    }
    .auth-btn {
        padding: 8px;
        width: 44px;
        justify-content: center;
    }
    .auth-btn i {
        font-size: 1rem;
        margin: 0;
    }
}

/* User Profile Display - Matching header style */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 60px;
    padding: 3px 8px 3px 12px;
    transition: var(--transition);
    height: 44px;
}

.user-profile:hover {
    border-color: #40E0FF;
    background: rgba(64, 224, 255, 0.1);
}

.user-avatar-wrapper {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cyan-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid #1E2630;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #E9EEF5;
    line-height: 1.2;
}

.verification-warning {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    color: #FFB74D;
    background: rgba(255, 183, 77, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.verification-warning:hover {
    background: rgba(255, 183, 77, 0.2);
    transform: scale(1.02);
}

.verification-warning i {
    font-size: 0.6rem;
}

.sign-out-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9AA5B5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sign-out-btn:hover {
    color: #FF5252;
    transform: scale(1.1);
    background: rgba(255, 82, 82, 0.1);
}

/* Mobile responsive for user profile */
@media (max-width: 768px) {
    .auth-btn {
        height: 40px;
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    .user-profile {
        padding: 2px 6px 2px 10px;
        height: 40px;
    }
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .user-name {
        font-size: 0.75rem;
    }
    .sign-out-btn {
        width: 32px;
        height: 32px;
    }
}

/* Hide username on very narrow screens */
@media (max-width: 550px) {
    .user-name {
        display: none;
    }
    .user-profile {
        padding: 2px 6px;
    }
    .verification-warning {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-btn {
        padding: 6px 10px;
        height: 36px;
        font-size: 0.7rem;
    }
    .auth-btn span {
        display: none;
    }
    .auth-btn {
        width: 36px;
        padding: 0;
        justify-content: center;
    }
    .auth-btn i {
        font-size: 0.9rem;
        margin: 0;
    }
    .user-profile {
        padding: 2px;
        height: 36px;
    }
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .sign-out-btn {
        width: 28px;
        height: 28px;
    }
}