/* ==================== */
/* CrossKit - Main CSS */
/* Optimized Stylesheet */
/* ==================== */

/* ==================== */
/* CSS Variables System */
/* ==================== */
:root {
    /* Primary Colors */
    --primary-50: #f0f5ff;
    --primary-100: #e0ebff;
    --primary-200: #c7d7fe;
    --primary-300: #a4bcfd;
    --primary-400: #7b95fa;
    --primary-500: #667eea;
    --primary-600: #5a67d8;
    --primary-700: #4c51bf;
    --primary-800: #434190;
    --primary-900: #3c366b;
    
    /* Secondary Colors */
    --secondary-50: #fff0f6;
    --secondary-100: #ffdeeb;
    --secondary-200: #fcc2d7;
    --secondary-300: #faa2c1;
    --secondary-400: #f783ac;
    --secondary-500: #f06595;
    --secondary-600: #e64980;
    
    /* Status Colors */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-500: #10b981;
    --success-600: #059669;
    
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    
    --error-50: #fef2f2;
    --error-100: #fee2e2;
    --error-500: #ef4444;
    --error-600: #dc2626;
    
    --info-50: #eff6ff;
    --info-100: #dbeafe;
    --info-500: #3b82f6;
    --info-600: #2563eb;
    
    /* Neutral Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-light: rgba(102, 126, 234, 0.1);
    --border-focus: rgba(102, 126, 234, 0.3);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 2rem;        /* 32px */
    --font-size-4xl: 2.5rem;      /* 40px */
    --font-size-5xl: 3rem;        /* 48px */
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --spacing-xs: 0.25rem;        /* 4px */
    --spacing-sm: 0.5rem;         /* 8px */
    --spacing-md: 1rem;           /* 16px */
    --spacing-lg: 1.5rem;         /* 24px */
    --spacing-xl: 2rem;           /* 32px */
    --spacing-2xl: 3rem;          /* 48px */
    --spacing-3xl: 4rem;          /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;        /* 6px */
    --radius-md: 0.5rem;          /* 8px */
    --radius-lg: 0.75rem;         /* 12px */
    --radius-xl: 1rem;            /* 16px */
    --radius-2xl: 1.5rem;         /* 24px */
    --radius-full: 9999px;
    
    /* Box Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 4px 12px rgba(102, 126, 234, 0.25);
    --shadow-primary-lg: 0 12px 32px rgba(102, 126, 234, 0.4);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-400) 0%, var(--secondary-600) 100%);
    --gradient-warm: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
    
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
    --z-tooltip: 700;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* ==================== */
/* Layout Components */
/* ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 1024px;
}

/* ==================== */
/* Header Styles */
/* ==================== */
header {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-md) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

header.scrolled {
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-lg);
}

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

.logo {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-extrabold);
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo i {
    font-size: var(--font-size-2xl);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-2xl);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.language-switch {
    display: flex;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xs);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-xs);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.nav-toggle {
    display: none;
    font-size: var(--font-size-2xl);
    cursor: pointer;
    padding: var(--spacing-sm);
}

/* ==================== */
/* Button Styles */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    letter-spacing: 0.3px;
    min-height: 48px;
    min-width: 48px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-600);
    transform: translateY(-3px);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.btn-gradient::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.6s ease;
}

.btn-gradient:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary-lg);
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-block {
    width: 100%;
}

.btn-dashboard {
    background: var(--gradient-warm);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 25px;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xs);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-dashboard::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;
}

.btn-dashboard:hover {
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.btn-dashboard:hover::before {
    left: 100%;
}

.btn-dashboard i {
    margin-right: 8px;
    font-size: var(--font-size-sm);
    animation: pulse 2s infinite;
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.trust-badges i {
    font-size: 1.1rem;
}

.hero h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: 0.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-extrabold);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    opacity: 0.95;
    margin-bottom: 2rem;
    font-weight: var(--font-weight-medium);
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.no-credit {
    font-size: 0.95rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.quick-tools {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.quick-tool {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-tool:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.quick-tool i {
    font-size: 1.8rem;
    transition: transform var(--transition-fast);
}

.quick-tool:hover i {
    transform: scale(1.1);
}

.quick-tool span {
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
}

/* ==================== */
/* Tool Grid Layout */
/* ==================== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.tool-card:hover::before {
    opacity: 1;
}

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

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.2);
}

.tool-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transition: transform var(--transition-normal);
    position: relative;
}

.tool-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(16px);
    opacity: 0.5;
    z-index: -1;
}

.tool-card:hover .tool-icon {
    transform: rotate(5deg) scale(1.1);
}

.tool-icon i {
    color: white;
    font-size: 32px;
}

.tool-card h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-primary), #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-lg);
}

.new-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    animation: badgePulse 2s infinite;
    vertical-align: middle;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.tool-card-highlight {
    background: linear-gradient(135deg, #fff 0%, #f8f4ff 100%);
    border: 2px solid var(--primary-400);
    position: relative;
    overflow: hidden;
}

.tool-card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600), var(--secondary-500));
    animation: gradientMove 3s ease infinite;
}

.tool-card .tool-benefit {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.benefit-tag {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.tool-card:hover .benefit-tag {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ==================== */
/* Tool Page Layout */
/* ==================== */
.tool-page {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    min-height: 100vh;
}

.tool-page-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.tool-page-header::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.tool-page-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.tool-page-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    margin-bottom: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.usage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-top: 20px;
    box-shadow: var(--shadow-primary);
}

.usage-badge::before {
    content: '⚡';
}

/* ==================== */
/* Breadcrumb Navigation */
/* ==================== */
.breadcrumb-nav {
    margin-bottom: 24px;
}

.breadcrumb-nav a {
    color: var(--primary-600);
    text-decoration: none;
    font-size: var(--font-size-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

/* ==================== */
/* Tool Form Styles */
/* ==================== */
.tool-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1), 0 8px 40px rgba(102, 126, 234, 0.08);
    margin-bottom: 28px;
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: #374151;
    margin-bottom: 10px;
    font-size: var(--font-size-sm);
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafbfc;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control-file {
    width: 100%;
    padding: 20px;
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-lg);
    cursor: pointer;
    background: #fafbfc;
    transition: all var(--transition-normal);
    text-align: center;
}

.form-control-file:hover {
    border-color: var(--primary-500);
    background: rgba(102, 126, 234, 0.02);
}

.form-control-file.dragover {
    border-color: var(--primary-500);
    background: rgba(102, 126, 234, 0.08);
    transform: scale(1.01);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
}

.form-group.text-center {
    text-align: center;
}

.tool-content {
    margin-bottom: 28px;
}

.tool-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    padding: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
}

.subtab-btn {
    padding: 14px 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--font-size-sm);
    letter-spacing: 0.3px;
}

.subtab-btn:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary-600);
}

.subtab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

/* ==================== */
/* Tool Result Styles */
/* ==================== */
.tool-result {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1), 0 8px 40px rgba(102, 126, 234, 0.08);
    border: 1px solid var(--border-light);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-result h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-result h3::before {
    content: '✓';
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: var(--gradient-success);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.summary-item {
    text-align: center;
    padding: 28px 24px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.summary-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.summary-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    display: block;
    margin-bottom: 12px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.3px;
}

.summary-value {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-breakdown {
    background: linear-gradient(135deg, #fafbfc, var(--bg-secondary));
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid #e5e7eb;
}

.result-breakdown h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-breakdown h4::before {
    content: '📊';
}

.breakdown-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.breakdown-item:hover {
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.breakdown-item.total {
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--primary-600);
    font-size: var(--font-size-base);
}

.breakdown-item.total:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
}

/* ==================== */
/* Batch & Optimization Items */
/* ==================== */
.batch-item,
.optimization-item {
    background: linear-gradient(135deg, #fafbfc, var(--bg-secondary));
    padding: 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.batch-item:hover,
.optimization-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
}

.batch-item h4,
.optimization-item h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: #374151;
    margin-bottom: 12px;
}

.original-title {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: 12px;
}

.optimized-title {
    color: var(--primary-600);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

/* ==================== */
/* File Upload Area */
/* ==================== */
.upload-area {
    border: 3px dashed #d1d5db;
    border-radius: var(--radius-xl);
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: linear-gradient(135deg, #fafbfc, var(--bg-secondary));
}

.upload-area:hover {
    border-color: var(--primary-500);
    background: rgba(102, 126, 234, 0.03);
    transform: scale(1.01);
}

.upload-area.dragover {
    border-color: var(--primary-500);
    background: rgba(102, 126, 234, 0.08);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 56px;
    color: var(--text-muted);
    margin-bottom: 16px;
    transition: transform var(--transition-normal), color var(--transition-fast);
}

.upload-area:hover .upload-icon {
    color: var(--primary-500);
    transform: translateY(-4px);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-tertiary), #e2e8f0);
    border-radius: var(--radius-xl);
    border: 1px solid #cbd5e1;
}

.file-size {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.file-name-display {
    margin-top: 16px;
}

/* ==================== */
/* Progress Bar */
/* ==================== */
.transcription-progress {
    margin-bottom: 24px;
}

.progress-bar-container {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s;
    border-radius: 4px;
}

/* ==================== */
/* Transcription Text Area */
/* ==================== */
.transcription-text {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-lg);
    min-height: 120px;
    border: 1px solid var(--border-color);
}

.transcription-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.transcription-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* ==================== */
/* Waybill Info */
/* ==================== */
.waybill-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.waybill-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* ==================== */
/* Keyword Styles */
/* ==================== */
.keyword-item {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.keyword-item:hover {
    border-color: var(--primary-300);
    background: rgba(102, 126, 234, 0.05);
}

.keyword-text {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.keyword-metrics {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== */
/* Usage Info */
/* ==================== */
.usage-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.usage-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.usage-bar-container span {
    color: #374151;
    font-size: var(--font-size-sm);
}

.upgrade-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

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

/* ==================== */
/* Feedback Modal */
/* ==================== */
.feedback-float-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: var(--gradient-primary);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
}

.feedback-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.feedback-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.feedback-modal-content {
    position: relative;
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.feedback-modal-header h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.feedback-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: color var(--transition-fast);
}

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

.feedback-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: calc(var(--z-modal) + 1);
}

.feedback-success-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.feedback-success-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon i {
    color: white;
    font-size: 40px;
}

/* ==================== */
/* Sections */
/* ==================== */

/* Social Proof */
.social-proof {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.proof-content {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.proof-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1rem;
    max-width: 450px;
    flex: 1;
    min-width: 300px;
    transition: all var(--transition-normal);
}

.proof-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.proof-avatar {
    font-size: 3rem;
    color: var(--primary-500);
    flex-shrink: 0;
}

.proof-text p {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-style: italic;
    font-size: var(--font-size-sm);
}

.proof-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Features */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: var(--font-size-4xl);
    margin-bottom: 3rem;
    color: #1a1a2e;
    font-weight: var(--font-weight-extrabold);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-500);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
    font-weight: var(--font-weight-bold);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

/* Tools Section */
.tools {
    padding: 80px 0;
    background: white;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-500);
    transform: scale(1.05);
    background: linear-gradient(135deg, #fff 0%, #f8f4ff 100%);
}

.pricing-card.featured .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
    font-weight: var(--font-weight-bold);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-600);
    margin-bottom: 1rem;
}

.pricing-card .period {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.savings-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
}

.limited-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
    color: white;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    padding-left: 0;
}

.pricing-card li {
    padding: 0.5rem 0;
    color: #444;
    font-size: var(--font-size-sm);
}

.pricing-card li::before {
    content: '✓';
    color: var(--success-500);
    margin-right: 0.5rem;
}

/* Dashboard */
.dashboard {
    padding: 100px 0 50px;
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

.sidebar {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: calc(70px + 1rem);
    height: fit-content;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar a {
    color: #333;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: color var(--transition-fast);
}

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

.main-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

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

.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card .number {
    font-size: 2rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-600);
}

.stat-card .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Blog */
.blog {
    padding: 100px 0 50px;
}

.blog-filters {
    margin-bottom: 2rem;
    text-align: right;
}

.blog-filters select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.blog-filters select:focus {
    outline: none;
    border-color: var(--primary-500);
}

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

.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-medium);
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
    line-height: 1.4;
    font-weight: var(--font-weight-bold);
}

.blog-content p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tags .tag {
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    color: var(--primary-600);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
}

/* Blog Detail Modal */
#blogModal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#blogModal .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

#blogModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 1rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

#blogModal .close:hover {
    color: #333;
}

.blog-detail {
    padding: 2rem;
}

.blog-detail-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.blog-detail-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
    font-weight: var(--font-weight-extrabold);
}

.blog-detail-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.pagination button:hover:not(.active) {
    background: var(--bg-tertiary);
    border-color: var(--primary-300);
}

.pagination button.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.no-posts {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: white;
    padding: 3rem 0;
    margin-top: 50px;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

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

.footer-section li {
    padding: 0.3rem 0;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: var(--font-size-sm);
}

/* ==================== */
/* Forms */
/* ==================== */
.form-container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
    font-family: inherit;
}

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

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    min-height: 100px;
    transition: border-color var(--transition-fast);
    font-family: inherit;
}

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

/* ==================== */
/* Modal */
/* ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

/* ==================== */
/* Loading Spinner */
/* ==================== */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-500);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ==================== */
/* Messages */
/* ==================== */
.message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.message.success {
    background: var(--success-50);
    color: var(--success-600);
    border: 1px solid var(--success-100);
}

.message.error {
    background: var(--error-50);
    color: var(--error-600);
    border: 1px solid var(--error-100);
}

.message.warning {
    background: var(--warning-50);
    color: var(--warning-600);
    border: 1px solid var(--warning-100);
}

.message.info {
    background: var(--info-50);
    color: var(--info-600);
    border: 1px solid var(--info-100);
}

/* ==================== */
/* Limit Exceeded Modal */
/* ==================== */
.limit-modal {
    text-align: center;
    max-width: 450px;
}

.limit-icon {
    font-size: 4rem;
    color: var(--error-500);
    margin-bottom: 1rem;
}

.limit-message {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.limit-details {
    background: var(--error-50);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    border: 1px solid var(--error-100);
}

.limit-details p {
    margin: 0.5rem 0;
    color: #333;
    font-size: var(--font-size-sm);
}

/* ==================== */
/* Usage Bar */
/* ==================== */
.usage-bar {
    background: #eee;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.usage-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ==================== */
/* Tool Panel Styles (for legacy support) */
/* ==================== */
.tools-container {
    position: relative;
}

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: 1rem;
    color: #1a1a2e;
    font-weight: var(--font-weight-extrabold);
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

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

.result-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.result-value {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-600);
}

/* ==================== */
/* Animations */
/* ==================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* ==================== */
/* Selection Styles */
/* ==================== */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

/* ==================== */
/* Scrollbar Styles */
/* ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-300);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-400);
}

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-600);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .language-switch {
        padding: 0.2rem;
    }

    .lang-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .nav-toggle {
        display: block;
        font-size: 1.8rem;
        padding: 0.5rem;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .trust-badges {
        gap: 1rem;
    }

    .trust-badges span {
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }

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

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

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .quick-tools {
        gap: 0.75rem;
    }

    .quick-tool {
        padding: 0.75rem 1rem;
        min-width: 80px;
    }

    .quick-tool i {
        font-size: 1.5rem;
    }

    .quick-tool span {
        font-size: 0.8rem;
    }

    .proof-item {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }

    .proof-avatar {
        font-size: 2.5rem;
    }

    .tool-grid {
        gap: 1.25rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-card .btn-small {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

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

    .sidebar {
        position: static;
    }

    .pricing-card.featured {
        transform: none;
    }

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

    .blog-detail-header h2 {
        font-size: 1.5rem;
    }

    .blog-filters {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

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

    .quick-tools {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .quick-tool {
        min-width: auto;
    }

    .tool-page-header h1 {
        font-size: 1.75rem;
    }

    .tool-form {
        padding: 1.5rem;
    }

    .tool-result {
        padding: 1.5rem;
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 var(--spacing-md);
    }

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

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