/* ============ RESET & VARIABLES - STUDIO DARK THEME ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: #0B0D10;
    color: #E9EEF5;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

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;
}

:root {
    --primary: #40E0FF;
    --primary-dark: #00B8D4;
    --primary-light: rgba(64, 224, 255, 0.15);
    --primary-glow: rgba(64, 224, 255, 0.25);
    --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;
    --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);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .container { padding: 0 24px; }
}

/* ===== 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;
}

.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;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(21, 26, 33, 0.6);
    border-radius: 60px;
    border: 1px solid #273140;
    backdrop-filter: blur(8px);
    padding: 4px 8px;
}

@media (max-width: 1200px) {
    .nav-desktop { display: none; }
}

.nav-link {
    color: #9AA5B5;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #40E0FF;
    background: rgba(64, 224, 255, 0.1);
    border-color: rgba(64, 224, 255, 0.2);
    transform: translateY(-1px);
}

.nav-dropdown { position: relative; }

.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 {
    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: var(--transition);
}

.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;
    border-bottom: 1px solid #273140;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.auth-btn {
    background: transparent;
    border: 1px solid #273140;
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #9AA5B5;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    height: 44px;
}

.auth-btn:hover {
    background: rgba(64, 224, 255, 0.1);
    border-color: rgba(64, 224, 255, 0.2);
    color: #40E0FF;
    transform: translateY(-1px);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 60px;
    padding: 3px 3px 3px 10px;
    height: 44px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cyan-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-weight: 600;
    font-size: 0.8rem;
}

.user-email {
    font-size: 0.7rem;
    color: #9AA5B5;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none;
}

@media (min-width: 768px) {
    .user-email { display: inline; }
}

.sign-out-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #6B7A8F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sign-out-btn:hover {
    color: #FF5252;
    transform: scale(1.1);
}

/* Ko-fi Button */
.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;
    animation: cupFill 2s ease-in-out infinite alternate;
}

.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;
}

@keyframes cupFill {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(1.05); }
}

@keyframes steam {
    0% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-5px); opacity: 0.4; }
    100% { transform: translateY(-10px); opacity: 0; }
}

.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-link:hover .kofi-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
    transform: translateX(-50%) scale(1);
}

/* Mobile Menu Button */
.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);
    cursor: pointer;
}

.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 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #151A21;
    z-index: 1001;
    transition: right 0.3s ease;
    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);
}

.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;
    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;
}

.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;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Header */
@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; }
    .auth-btn { padding: 6px 12px; height: 40px; font-size: 0.75rem; }
    .user-profile { padding: 2px 2px 2px 8px; height: 40px; }
    .user-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
    .sign-out-btn { width: 32px; height: 32px; }
}

@media (max-width: 480px) {
    .auth-btn span { display: none; }
    .auth-btn i { font-size: 0.9rem; margin: 0; }
    .auth-btn { padding: 6px 10px; height: 36px; }
    .user-profile { padding: 2px; height: 36px; }
    .user-avatar { width: 28px; height: 28px; font-size: 0.7rem; }
    .sign-out-btn { width: 28px; height: 28px; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: #151A21;
    padding: 8px 16px;
    border-bottom: 1px solid #273140;
    font-size: 0.7rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.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 .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;
}

@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;
}

.text-gradient {
    background: linear-gradient(135deg, #0B0D10, #000000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== LEGAL SHIELD BANNER ===== */
.legal-shield-banner {
    background: rgba(64, 224, 255, 0.1);
    border: 1px solid #40E0FF;
    border-radius: 60px;
    padding: 12px 24px;
    margin: 20px auto;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    color: #40E0FF;
    flex-wrap: wrap;
    text-align: center;
    animation: pulse-legal 2s infinite;
}

@keyframes pulse-legal {
    0% { box-shadow: 0 0 0 0 rgba(64, 224, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(64, 224, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(64, 224, 255, 0); }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 16px;
}

@media (min-width: 768px) {
    .main-content { padding: 40px 24px; }
}

/* ===== TRUST BAR ===== */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0 30px;
}

@media (min-width: 640px) {
    .trust-bar { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #151A21;
    border-radius: 40px;
    border: 1px solid #273140;
    font-size: 0.75rem;
    font-weight: 600;
    color: #E9EEF5;
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-2px);
    border-color: #40E0FF;
}

.trust-item i { color: #40E0FF; }

/* ===== PROJECT AUDITOR ===== */
.project-auditor {
    background: #151A21;
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #40E0FF;
    position: relative;
    overflow: hidden;
}

.project-auditor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cyan-gradient);
}

.auditor-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .auditor-header { flex-direction: row; align-items: center; justify-content: space-between; }
}

.auditor-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auditor-title i { font-size: 1.5rem; color: #40E0FF; }

/* ===== CERTIFICATE BUTTONS - PREMIUM STYLE ===== */
.certificate-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.certificate-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.certificate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.certificate-btn:hover::before {
    left: 100%;
}

.certificate-btn.gold {
    background: linear-gradient(135deg, #40E0FF, #00B8D4);
    color: #0B0D10;
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
}

.certificate-btn.gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 224, 255, 0.4);
    background: linear-gradient(135deg, #00B8D4, #40E0FF);
}

.certificate-btn.purple {
    background: linear-gradient(135deg, #1E2630, #151A21);
    color: #40E0FF;
    border: 1px solid #40E0FF;
}

.certificate-btn.purple:hover {
    transform: translateY(-2px);
    background: rgba(64, 224, 255, 0.1);
    box-shadow: 0 4px 15px rgba(64, 224, 255, 0.2);
    border-color: #40E0FF;
}

.certificate-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.certificate-btn:hover i {
    transform: scale(1.1);
}

/* ===== PROJECT FONTS ===== */
.project-fonts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0;
}

@media (min-width: 640px) {
    .project-fonts { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .project-fonts { grid-template-columns: repeat(3, 1fr); }
}

.project-font-item {
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.project-font-item:hover {
    transform: translateY(-2px);
    border-color: #40E0FF;
}

.project-font-icon {
    width: 40px;
    height: 40px;
    background: var(--cyan-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-size: 1rem;
}

.project-font-details { flex: 1; min-width: 0; }
.project-font-name { font-weight: 700; color: #E9EEF5; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-font-status { font-size: 0.7rem; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.status-safe { color: #4CAF50; }
.project-font-remove { color: #6B7A8F; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.project-font-remove:hover { color: #FF5252; transform: scale(1.2); }

/* ===== ADD FONT INPUT - PREMIUM STYLE ===== */
.add-font-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

@media (min-width: 480px) {
    .add-font-input { flex-direction: row; }
}

.add-font-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #273140;
    border-radius: 40px;
    font-size: 0.9rem;
    min-height: 44px;
    background: #1E2630;
    color: #E9EEF5;
}

.add-font-input input:focus {
    outline: none;
    border-color: #40E0FF;
}

.add-font-btn {
    background: linear-gradient(135deg, #40E0FF, #00B8D4);
    color: #0B0D10;
    border: none;
    padding: 14px 24px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.25);
}

.add-font-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.add-font-btn:hover::before {
    left: 100%;
}

.add-font-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 224, 255, 0.4);
    background: linear-gradient(135deg, #00B8D4, #40E0FF);
}

.add-font-btn:active {
    transform: translateY(0);
}

.add-font-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.add-font-btn:hover i {
    transform: scale(1.1);
}

/* ===== UPLOAD ZONE ===== */
.upload-zone {
    background: #1E2630;
    border: 2px dashed #273140;
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: #40E0FF;
    background: rgba(64, 224, 255, 0.05);
}

.upload-icon { font-size: 2.5rem; color: #40E0FF; margin-bottom: 12px; }
.upload-text { font-size: 0.9rem; color: #E9EEF5; margin-bottom: 8px; }
.upload-formats { font-size: 0.7rem; color: #6B7A8F; }

.uploaded-file-info {
    background: #151A21;
    border: 1px solid #273140;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.uploaded-file-icon {
    width: 40px;
    height: 40px;
    background: rgba(64, 224, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #40E0FF;
    font-size: 1.2rem;
}

.uploaded-file-details { flex: 1; }
.uploaded-file-name { font-weight: 600; color: #E9EEF5; margin-bottom: 4px; }
.uploaded-file-meta { font-size: 0.7rem; color: #6B7A8F; }
.uploaded-file-clear { background: transparent; border: none; color: #6B7A8F; cursor: pointer; padding: 8px; transition: var(--transition); }
.uploaded-file-clear:hover { color: #FF5252; transform: scale(1.2); }

/* ===== PROVIDER TOGGLE ===== */
.provider-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 20px 0;
}

@media (min-width: 640px) {
    .provider-toggle { grid-template-columns: repeat(4, 1fr); }
}

.provider-toggle .provider-btn {
    padding: 12px 8px;
    border: 1px solid #273140;
    border-radius: 40px;
    background: #1E2630;
    color: #9AA5B5;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.75rem;
}

.provider-toggle .provider-btn.active {
    background: var(--cyan-gradient);
    color: #0B0D10;
    border-color: #40E0FF;
}

.provider-badge {
    display: none;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 4px;
}

@media (min-width: 480px) {
    .provider-badge { display: inline-block; }
}

/* ===== INDUSTRY SELECTOR ===== */
.industry-selector {
    margin: 30px 0 20px;
    padding: 16px;
    background: #151A21;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
}

.industry-selector h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #40E0FF;
}

.industry-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #273140;
    border-radius: 40px;
    font-size: 0.9rem;
    background: #1E2630;
    color: #E9EEF5;
    cursor: pointer;
    margin-bottom: 12px;
    min-height: 44px;
}

.industry-selector select:focus {
    outline: none;
    border-color: #40E0FF;
}

.industry-advice {
    background: rgba(64, 224, 255, 0.05);
    border-left: 4px solid #40E0FF;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* ===== SEARCH CONTAINER ===== */
.search-container {
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
}

.search-box {
    background: #151A21;
    padding: 4px;
    border-radius: 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #273140;
    position: relative;
}

@media (min-width: 640px) {
    .search-box { flex-direction: row; padding: 4px 4px 4px 20px; }
}

.search-box i {
    display: none;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7A8F;
}

@media (min-width: 640px) {
    .search-box i { display: block; }
}

.search-box input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    outline: none;
    font-size: 0.9rem;
    border-radius: 60px;
    background: transparent;
    min-height: 44px;
    color: #E9EEF5;
}

.search-box input::placeholder { color: #6B7A8F; }

.btn-search {
    background: var(--cyan-gradient);
    color: #0B0D10;
    border: none;
    padding: 14px 20px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
}

.btn-search:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(64, 224, 255, 0.4);
}

.btn-search:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== SEARCH DROPDOWN ===== */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #151A21;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-dropdown.active { display: block; animation: slideDown 0.3s ease; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #273140;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #E9EEF5;
}

.dropdown-item:hover {
    background: rgba(64, 224, 255, 0.1);
    transform: translateX(4px);
}

.font-category {
    font-size: 0.7rem;
    background: rgba(64, 224, 255, 0.1);
    padding: 4px 8px;
    border-radius: 30px;
    color: #40E0FF;
    margin-left: auto;
}

.variable-badge {
    background: var(--cyan-gradient);
    color: #0B0D10;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== SEARCH EXAMPLES ===== */
.search-examples {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.example-tag {
    padding: 8px 14px;
    background: #151A21;
    border: 1px solid #273140;
    border-radius: 40px;
    color: #40E0FF;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.8rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.example-tag:hover {
    background: var(--cyan-gradient);
    color: #0B0D10;
    border-color: #40E0FF;
    transform: translateY(-2px);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.loading-overlay.active { display: block; }

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #1E2630;
    border-top-color: #40E0FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    background: #151A21;
    border-radius: var(--radius-xl);
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed #273140;
    margin-top: 30px;
}

.empty-state i {
    font-size: 3rem;
    color: #40E0FF;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #E9EEF5;
}

.instruction-steps {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1E2630;
    padding: 12px 20px;
    border-radius: 40px;
    border: 1px solid #273140;
}

/* ===== LICENSE CARD ===== */
.license-card {
    background: #151A21;
    border-radius: var(--radius-xl);
    padding: 20px;
    border: 1px solid #273140;
    animation: slideUp 0.5s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .license-card { padding: 40px; }
}

.license-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cyan-gradient);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(64, 224, 255, 0.1);
    color: #40E0FF;
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.provider-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(64, 224, 255, 0.05);
    padding: 8px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
    border: 1px solid #273140;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.status-header h2 {
    font-size: 1.8rem;
    margin: 0;
    word-break: break-word;
}

@media (min-width: 768px) {
    .status-header h2 { font-size: 2.5rem; }
}

.safety-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.safe-bg { background: #4CAF50; box-shadow: 0 0 15px #4CAF50; }
.warning-bg { background: #FFB74D; box-shadow: 0 0 15px #FFB74D; }
.danger-bg { background: #FF5252; box-shadow: 0 0 15px #FF5252; }

#safetyBanner {
    padding: 10px 16px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

/* ===== FONT META GRID ===== */
.font-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

@media (min-width: 640px) {
    .font-meta-grid { grid-template-columns: repeat(4, 1fr); }
}

.meta-item {
    background: #1E2630;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #273140;
    transition: var(--transition);
}

.meta-item:hover {
    transform: translateY(-2px);
    border-color: #40E0FF;
}

.meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #6B7A8F;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.meta-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: #40E0FF;
}

/* ===== ADD TO PROJECT BUTTON - PREMIUM STYLE ===== */
.add-to-project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #40E0FF, #00B8D4);
    color: #0B0D10;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin: 15px 0;
    min-height: 52px;
    box-shadow: 0 4px 15px rgba(64, 224, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.add-to-project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.add-to-project-btn:hover::before {
    left: 100%;
}

.add-to-project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64, 224, 255, 0.4);
    background: linear-gradient(135deg, #00B8D4, #40E0FF);
}

.add-to-project-btn:active {
    transform: translateY(0);
}

.add-to-project-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.add-to-project-btn:hover i {
    transform: scale(1.1);
}

@media (min-width: 480px) {
    .add-to-project-btn {
        width: auto;
        min-width: 200px;
    }
}

/* ===== CDN SECTION ===== */
.cdn-section {
    background: #1E2630;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin: 20px 0;
    border: 1px solid #273140;
}

.cdn-section h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #40E0FF;
}

.cdn-code {
    background: #0B0D10;
    color: #E9EEF5;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.75rem;
    margin: 8px 0;
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    border: 1px solid #273140;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #273140;
    color: #E9EEF5;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: #40E0FF;
    color: #0B0D10;
}

.css-rule {
    background: #151A21;
    padding: 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.75rem;
    border-left: 4px solid #40E0FF;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid #273140;
}

.css-rule code { color: #E9EEF5; }
.css-rule .copy-mini { background: transparent; border: none; color: #40E0FF; cursor: pointer; padding: 8px; min-height: 40px; transition: var(--transition); }
.css-rule .copy-mini:hover { color: #00B8D4; transform: scale(1.2); }

/* ===== LICENSE DEEP LINK - PREMIUM STYLE ===== */
.license-deep-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1E2630, #151A21);
    border-radius: 60px;
    margin: 20px 0;
    flex-wrap: wrap;
    border: 1px solid #273140;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.license-deep-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(64, 224, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.license-deep-link:hover::before {
    opacity: 1;
}

.license-deep-link:hover {
    border-color: #40E0FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 224, 255, 0.15);
}

.license-deep-link i {
    color: #40E0FF;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.license-deep-link:hover i {
    transform: scale(1.1);
}

.license-deep-link a {
    color: #E9EEF5;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    word-break: break-word;
}

.license-deep-link a:hover {
    color: #40E0FF;
}

.license-deep-link a i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.license-deep-link a:hover i {
    transform: translateX(3px);
}

.third-party-badge {
    background: linear-gradient(135deg, #40E0FF, #00B8D4);
    color: #0B0D10;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: auto;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.license-deep-link:hover .third-party-badge {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(64, 224, 255, 0.3);
}

@media (max-width: 640px) {
    .license-deep-link {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        border-radius: 24px;
    }
    
    .license-deep-link a {
        justify-content: center;
    }
    
    .third-party-badge {
        margin-left: 0;
    }
}

/* ===== SPECIMEN AREA ===== */
.specimen-area {
    background: #1E2630;
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    margin: 20px 0;
    border: 1px solid #273140;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contrast-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.contrast-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #273140;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E2630;
    color: #E9EEF5;
}

.contrast-btn.light { background: #1E2630; color: #E9EEF5; }
.contrast-btn.dark { background: #0B0D10; color: #E9EEF5; }
.contrast-btn.blue { background: #40E0FF; color: #0B0D10; }
.contrast-btn.green { background: #4CAF50; color: #0B0D10; }
.contrast-btn.reset { background: #1E2630; color: #40E0FF; border: 1px solid #40E0FF; }

.contrast-btn:hover { transform: scale(1.15); box-shadow: var(--shadow-lg); }

.wcag-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #1E2630;
    border-radius: 40px;
    font-size: 0.7rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
    border: 1px solid #273140;
}

.wcag-pass { color: #4CAF50; display: flex; align-items: center; gap: 4px; }
.wcag-fail { color: #FF5252; display: flex; align-items: center; gap: 4px; }

.contrast-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.contrast-ratio-display { font-weight: 700; color: #E9EEF5; }
.contrast-level { padding: 4px 12px; border-radius: 30px; background: rgba(76, 175, 80, 0.1); color: #4CAF50; border: 1px solid #4CAF50; }
.contrast-level.fail { background: rgba(255, 82, 82, 0.1); color: #FF5252; border-color: #FF5252; }

.specimen-text {
    font-size: 2rem;
    line-height: 1.2;
    word-break: break-word;
    margin-bottom: 16px;
    font-weight: 400;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

@media (min-width: 768px) {
    .specimen-text { font-size: 3rem; min-height: 120px; }
}

.specimen-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.specimen-input {
    padding: 12px 16px;
    border: 1px solid #273140;
    border-radius: 40px;
    width: 100%;
    max-width: 300px;
    font-size: 0.9rem;
    min-height: 44px;
    background: #1E2630;
    color: #E9EEF5;
}

.weight-control {
    background: #1E2630;
    border-radius: 40px;
    padding: 12px 16px;
    margin: 12px 0;
    border: 1px solid #273140;
}

.weight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.weight-label { font-weight: 600; color: #9AA5B5; display: flex; align-items: center; gap: 4px; font-size: 0.8rem; }
.weight-value { background: rgba(64, 224, 255, 0.1); color: #40E0FF; padding: 4px 10px; border-radius: 30px; font-weight: 700; font-size: 0.8rem; }

.weight-slider {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #273140, #40E0FF);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
}

.weight-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #E9EEF5;
    border: 2px solid #40E0FF;
    border-radius: 50%;
    cursor: pointer;
}

/* ===== SCORE SECTION ===== */
.score-section { margin: 25px 0; }
.score-title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; color: #40E0FF; }
.score-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 640px) {
    .score-grid { grid-template-columns: repeat(4, 1fr); }
}

.score-item {
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid #273140;
    transition: var(--transition);
}

.score-item.allowed { background: rgba(76, 175, 80, 0.05); border-left: 4px solid #4CAF50; }
.score-item.warning { background: rgba(255, 183, 77, 0.05); border-left: 4px solid #FFB74D; }
.score-item.danger { background: rgba(255, 82, 82, 0.05); border-left: 4px solid #FF5252; }

.score-label { font-size: 0.65rem; text-transform: uppercase; color: #6B7A8F; letter-spacing: 0.5px; }
.score-value { font-weight: 700; font-size: 0.8rem; color: #E9EEF5; display: flex; align-items: center; gap: 4px; }

/* ===== TRADEMARK SECTION ===== */
.trademark-section {
    background: rgba(64, 224, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin: 20px 0;
    border: 1px solid #40E0FF;
}

.trademark-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.trademark-header i { font-size: 1.5rem; color: #40E0FF; }
.trademark-header h4 { font-size: 1.1rem; color: #40E0FF; }

.trademark-content {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.trademark-badge {
    background: #40E0FF;
    color: #0B0D10;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
}

.trademark-note { font-size: 0.85rem; line-height: 1.5; color: #9AA5B5; }
.trademark-note strong { color: #40E0FF; }

/* ===== FOUNDRY LINKS - PREMIUM STYLE ===== */
.foundry-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 25px 0;
}

@media (min-width: 480px) {
    .foundry-links { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .foundry-links { grid-template-columns: repeat(4, 1fr); }
}

.foundry-btn {
    padding: 14px 16px;
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 60px;
    color: #E9EEF5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    min-height: 52px;
    position: relative;
    overflow: hidden;
}

.foundry-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.foundry-btn:hover::before {
    left: 100%;
}

.foundry-btn:hover {
    background: rgba(64, 224, 255, 0.1);
    border-color: #40E0FF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(64, 224, 255, 0.2);
}

.foundry-btn i {
    font-size: 1.1rem;
    color: #40E0FF;
    transition: transform 0.2s ease;
}

.foundry-btn:hover i {
    transform: scale(1.15);
}

.foundry-btn.primary {
    background: linear-gradient(135deg, #40E0FF, #00B8D4);
    color: #0B0D10;
    border: none;
    box-shadow: 0 4px 15px rgba(64, 224, 255, 0.25);
}

.foundry-btn.primary i {
    color: #0B0D10;
}

.foundry-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64, 224, 255, 0.4);
    background: linear-gradient(135deg, #00B8D4, #40E0FF);
}

.affiliate-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #0B0D10;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 30px;
    font-weight: 700;
    margin-left: 6px;
    transition: all 0.2s ease;
}

.foundry-btn.primary .affiliate-badge {
    background: #0B0D10;
    color: #40E0FF;
}

.foundry-btn:hover .affiliate-badge {
    transform: scale(1.05);
}

/* ===== EXPORT SECTION ===== */
.export-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 25px 0;
    padding: 16px;
    background: #1E2630;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
}

@media (min-width: 640px) {
    .export-section { grid-template-columns: repeat(3, 1fr); }
}

.export-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    min-height: 44px;
    background: #1E2630;
    color: #40E0FF;
    border: 1px solid #40E0FF;
}

.export-btn:hover {
    background: var(--cyan-gradient);
    color: #0B0D10;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(64, 224, 255, 0.3);
}

/* ===== NOT FOUND CARD ===== */
.not-found-card {
    background: #151A21;
    border-radius: var(--radius-xl);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #273140;
    margin-top: 20px;
}

.not-found-card i {
    font-size: 2.5rem;
    color: #6B7A8F;
    margin-bottom: 16px;
}

.suggestion-list {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0;
}

/* ===== INFO GRID ===== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 30px 0;
}

@media (min-width: 640px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .info-grid { grid-template-columns: repeat(3, 1fr); }
}

.info-card {
    background: #151A21;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: #40E0FF;
}

.info-card i { font-size: 1.5rem; color: #40E0FF; margin-bottom: 12px; }
.info-card h3 { font-size: 1rem; margin-bottom: 8px; }
.info-card p { font-size: 0.8rem; margin: 0; color: #9AA5B5; }

/* ===== LICENSE EDUCATION ===== */
.license-education {
    background: #151A21;
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    margin: 30px 0;
    border: 1px solid #273140;
}

.license-education h3 { font-size: 1.2rem; margin-bottom: 20px; }

.scenario-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .scenario-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .scenario-grid { grid-template-columns: repeat(3, 1fr); }
}

.scenario-card {
    padding: 16px;
    background: #1E2630;
    border-radius: 12px;
    border: 1px solid #273140;
    transition: var(--transition);
}

.scenario-card:hover {
    transform: translateY(-2px);
    border-color: #40E0FF;
}

.scenario-card h4 { font-size: 1rem; margin-bottom: 8px; }
.scenario-card .desktop { color: #40E0FF; }
.scenario-card .web { color: #4CAF50; }
.scenario-card .app { color: #FFB74D; }
.scenario-card p { font-size: 0.8rem; margin: 0; color: #9AA5B5; }

/* ===== LEGAL DISCLAIMER ===== */
.legal-disclaimer {
    background: rgba(64, 224, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin: 30px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.8rem;
    border: 1px solid #273140;
}

.legal-disclaimer i { color: #40E0FF; font-size: 1.2rem; flex-shrink: 0; }
.legal-disclaimer strong { color: #40E0FF; }

/* ===== PROJECTS LIST ===== */
.projects-list {
    margin: 30px 0;
    padding: 16px;
    background: #151A21;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
}

.projects-list h4 { font-size: 1rem; margin-bottom: 16px; }

.project-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.saved-project-card {
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    transition: var(--transition);
}

.saved-project-card:hover {
    transform: translateY(-2px);
    border-color: #40E0FF;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.project-icon {
    width: 40px;
    height: 40px;
    background: rgba(64, 224, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #40E0FF;
}

.project-details h5 { font-weight: 700; font-size: 0.9rem; color: #E9EEF5; }
.project-details small { color: #6B7A8F; font-size: 0.7rem; }

.project-actions {
    display: flex;
    gap: 4px;
}

.project-actions button {
    background: transparent;
    border: none;
    color: #6B7A8F;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.project-actions button:hover {
    background: rgba(64, 224, 255, 0.1);
    color: #40E0FF;
    transform: scale(1.1);
}

/* ===== AUTH MODAL - EXACT MATCH TO INDEX.HTML ===== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 16px;
}

.auth-modal-overlay.active { display: flex; }

.auth-modal {
    background: #151A21;
    border-radius: 32px;
    width: 100%;
    max-width: 500px;
    padding: 32px;
    border: 1px solid #273140;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid #273140;
    color: #9AA5B5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #40E0FF;
    color: #0B0D10;
    transform: rotate(90deg);
}

.gradient-text {
    background: linear-gradient(135deg, #40E0FF, #00B8D4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.text-center { text-align: center; }
.text-muted { color: #6B7A8F; }
.mb-4 { margin-bottom: 16px; }

.provider-btn {
    width: 100%;
    padding: 12px;
    border-radius: 60px;
    border: 1px solid #273140;
    background: #1E2630;
    color: #E9EEF5;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-height: 44px;
}

.provider-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.provider-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #40E0FF, #00B8D4);
    color: #0B0D10;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
}

.google-confirm-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 16px;
}

.confirm-google-btn {
    width: 100%;
    padding: 12px;
    border-radius: 60px;
    background: linear-gradient(135deg, #40E0FF, #00B8D4);
    color: #0B0D10;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-height: 48px;
}

.confirm-google-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
}

.cancel-google-btn {
    width: 100%;
    padding: 12px;
    border-radius: 60px;
    background: #1E2630;
    border: 1px solid #FF5252;
    color: #FF5252;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-height: 48px;
}

.cancel-google-btn:hover {
    background: #FF5252;
    color: #0B0D10;
    transform: translateY(-2px);
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: #6B7A8F;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #273140;
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* Form Field Styles */
.auth-form .form-field {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9AA5B5;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 60px;
    border: 1px solid #273140;
    background: #1E2630;
    color: #E9EEF5;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #40E0FF;
    box-shadow: 0 0 0 3px rgba(64, 224, 255, 0.1);
}

.auth-form input::placeholder {
    color: #6B7A8F;
    opacity: 0.5;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6B7A8F;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: #40E0FF;
}

.remember-me-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.remember-me-wrapper input {
    width: 18px;
    height: 18px;
    accent-color: #40E0FF;
    cursor: pointer;
    margin: 0;
}

.remember-me-wrapper label {
    font-size: 0.8rem;
    color: #9AA5B5;
    cursor: pointer;
    margin: 0;
    display: inline;
}

#forgotPasswordLink {
    color: #40E0FF;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

#forgotPasswordLink:hover {
    text-decoration: underline;
}

.auth-switch {
    text-align: center;
    color: #6B7A8F;
    font-size: 0.85rem;
    margin-top: 16px;
}

.auth-switch a {
    color: #40E0FF;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.security-badge {
    margin-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #6B7A8F;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.security-badge i {
    color: #40E0FF;
}

.email-verification-banner {
    background: rgba(255, 183, 77, 0.1);
    border: 1px solid #FFB74D;
    border-radius: 40px;
    padding: 8px 16px;
    margin-top: 16px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.email-verification-banner i {
    color: #FFB74D;
}

.resend-verification-btn {
    background: transparent;
    border: 1px solid #40E0FF;
    color: #40E0FF;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.resend-verification-btn:hover {
    background: #40E0FF;
    color: #0B0D10;
    transform: scale(1.05);
}

.email-verification-note {
    font-size: 0.7rem;
    color: #6B7A8F;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: rgba(64, 224, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Password Strength */
.strength-bar-container {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #273140;
    transition: all 0.2s ease;
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.7rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6B7A8F;
}

.requirement-met {
    color: #4CAF50;
}

.strength-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.password-tip-box {
    margin-top: 12px;
    padding: 8px;
    background: rgba(64, 224, 255, 0.05);
    border-radius: 8px;
    font-size: 0.7rem;
    color: #9AA5B5;
}

/* Modal specific */
#resetPasswordForm h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #E9EEF5;
}

#resetPasswordForm p {
    font-size: 0.85rem;
    color: #9AA5B5;
    margin-bottom: 20px;
}

/* Mobile Responsive for Auth Modal */
@media (max-width: 560px) {
    .auth-modal {
        padding: 24px 20px;
    }
    
    .remember-me-wrapper label {
        font-size: 0.7rem;
    }
    
    .provider-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .auth-form input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .form-field {
        margin-bottom: 16px;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SAVE AUDIT MODAL ===== */
.save-audit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(12px);
}

.save-audit-modal.active { display: flex; }

.save-audit-content {
    background: #151A21;
    border-radius: var(--radius-xl);
    padding: 30px 20px;
    max-width: 400px;
    width: 100%;
    border: 1px solid #40E0FF;
    max-height: 90vh;
    overflow-y: auto;
}

.save-audit-content input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #273140;
    border-radius: 40px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    background: #1E2630;
    color: #E9EEF5;
}

.save-audit-buttons {
    display: flex;
    gap: 10px;
}

.save-audit-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
}

.save-audit-btn.primary { background: #40E0FF; color: #0B0D10; }
.save-audit-btn.secondary { background: #1E2630; color: #9AA5B5; border: 1px solid #273140; }

/* ===== LOGOUT MODAL ===== */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}

.logout-modal-overlay.active { display: flex; }

.logout-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #151A21;
    border-radius: 32px;
    border: 1px solid #273140;
    padding: 32px;
    overflow: hidden;
}

.logout-modal-content { position: relative; z-index: 1; }

.logout-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.logout-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FF5252, #FF1744);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px -5px rgba(255, 82, 82, 0.5);
}

.logout-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    background: var(--cyan-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logout-modal-description {
    text-align: center;
    color: #9AA5B5;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.logout-user-card {
    background: linear-gradient(145deg, #1E2630, #151A21);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #273140;
}

.logout-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cyan-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-weight: 700;
    font-size: 1.2rem;
}

.logout-user-info { flex: 1; }
.logout-user-name { font-weight: 700; color: #E9EEF5; margin-bottom: 4px; }
.logout-user-email { font-size: 0.8rem; color: #9AA5B5; }

.logout-session-info {
    background: #1E2630;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    border: 1px solid #273140;
}

.logout-session-item { display: flex; align-items: center; gap: 8px; color: #9AA5B5; font-size: 0.9rem; }
.logout-session-value { color: #E9EEF5; font-weight: 600; font-size: 0.9rem; }

.logout-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.logout-btn-cancel, .logout-btn-confirm {
    flex: 1;
    padding: 14px;
    border-radius: 60px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.logout-btn-cancel {
    background: #1E2630;
    color: #9AA5B5;
    border: 1px solid #273140;
}

.logout-btn-confirm {
    background: linear-gradient(135deg, #FF5252, #FF1744);
    color: white;
}

.logout-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6B7A8F;
    font-size: 0.75rem;
    padding-top: 12px;
    border-top: 1px solid #273140;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    transform: translateY(100px);
    background: var(--cyan-gradient);
    color: #0B0D10;
    padding: 14px 20px;
    border-radius: 60px;
    font-size: 0.85rem;
    z-index: 9999;
    transition: transform 0.3s ease;
    text-align: center;
}

@media (min-width: 768px) {
    .toast {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100px);
        min-width: 300px;
    }
}

.toast.show { transform: translateY(0); }
@media (min-width: 768px) {
    .toast.show { transform: translateX(-50%) translateY(0); }
}
.toast.error { background: linear-gradient(135deg, #FF5252, #FF1744); color: white; }
.toast.info { background: linear-gradient(135deg, #40E0FF, #00B8D4); color: #0B0D10; }

/* ===== UTILITIES ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== MOBILE RESPONSIVE - CENTER ALL TEXT ===== */
@media (max-width: 768px) {
    .hero-content, .tool-header, .legal-shield-banner, .empty-state, .not-found-card,
    .info-card, .license-education, .legal-disclaimer, .certificate-actions,
    .auditor-header, .project-auditor, .industry-selector, .provider-toggle,
    .search-container, .trust-bar, .projects-list, .license-card {
        text-align: center;
    }
    
    .trust-bar {
        justify-content: center;
    }
    
    .trust-item {
        justify-content: center;
    }
    
    .certificate-actions {
        justify-content: center;
    }
    
    .certificate-btn {
        width: 100%;
        justify-content: center;
    }
    
    .provider-toggle .provider-btn {
        justify-content: center;
    }
    
    .industry-advice {
        text-align: left;
    }
    
    .info-card {
        text-align: center;
    }
    
    .info-card i {
        display: inline-block;
        margin-bottom: 12px;
    }
    
    .scenario-card {
        text-align: center;
    }
    
    .scenario-card h4 {
        text-align: center;
    }
    
    .license-education h3 {
        text-align: center;
    }
    
    .trademark-section {
        text-align: center;
    }
    
    .trademark-content {
        justify-content: center;
    }
    
    .trademark-badge {
        width: auto;
        justify-content: center;
    }
    
    .foundry-btn {
        justify-content: center;
    }
    
    .export-section {
        grid-template-columns: 1fr;
    }
    
    .export-btn {
        width: 100%;
        justify-content: center;
    }
    
    .score-grid {
        grid-template-columns: 1fr;
    }
    
    .font-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .instruction-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        width: 100%;
        justify-content: center;
    }
    
    .project-fonts {
        grid-template-columns: 1fr;
    }
    
    .project-font-item {
        justify-content: center;
        text-align: center;
    }
    
    .project-font-details {
        text-align: left;
    }
    
    .specimen-text {
        font-size: 1.5rem;
    }
    
    .contrast-controls {
        justify-content: center;
    }
    
    .contrast-btn {
        width: 40px;
        height: 40px;
    }
    
    .weight-control {
        text-align: center;
    }
    
    .weight-header {
        justify-content: center;
        gap: 12px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        text-align: center;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .auth-modal {
        padding: 24px 20px;
    }
    
    .google-confirm-container {
        width: 100%;
    }
    
    .confirm-google-btn, .cancel-google-btn {
        width: 100%;
    }
    
    .add-to-project-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .specimen-text {
        font-size: 1.2rem;
    }
    
    .contrast-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .legal-shield-banner {
        font-size: 0.75rem;
        padding: 10px 16px;
    }
    
    .tool-header h1 {
        font-size: 1.4rem;
    }
    
    .tool-header p {
        font-size: 0.8rem;
    }
    
    .breadcrumb {
        font-size: 0.6rem;
    }
    
    .header-badge {
        font-size: 0.55rem;
    }
    
    .trust-item {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .foundry-links {
        grid-template-columns: 1fr;
    }
}

/* ===== ACCESSIBILITY ===== */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid #40E0FF;
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .legal-shield-banner { animation: none; }
    .add-to-project-btn::before, .certificate-btn::before, .foundry-btn::before {
        display: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header, .nav-desktop, .mobile-menu-btn, .action-buttons, .breadcrumb,
    .provider-toggle, .industry-selector, .project-auditor, .add-to-project-btn,
    .export-section, .foundry-links, .info-grid, .license-education, .trust-bar,
    .legal-disclaimer, .toast, .contrast-controls, .weight-control, .auth-modal-overlay,
    .logout-modal-overlay, .save-audit-modal, .mobile-menu, .mobile-menu-overlay {
        display: none !important;
    }
    .license-card { box-shadow: none; border: 1px solid #000; background: white; }
    .specimen-area { break-inside: avoid; }
    body { background: white; color: black; }
}