* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-ebony: #0c0a1a;
    --royal-purple: #2d1b4e;
    --imperial-violet: #4a2a6b;
    --majestic-gold: #d4af37;
    --soft-gold: #ffdb7c;
    --royal-pink: #c85cb8;
    --royal-blue: #4158d0;
    
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    --text-primary: #1a1a2e;
    --text-muted: #4a5568;
    --accent-primary: #d4af37;
    --accent-secondary: #c85cb8;
    --accent-gradient: linear-gradient(135deg, #d4af37, #c85cb8, #4a2a6b);
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --input-focus: #d4af37;
    --chat-user: linear-gradient(135deg, #d4af37, #c85cb8);
    --chat-assistant: #f8fafc;
    --header-bg: #ffffff;
    --code-bg: #f1f5f9;
    --code-color: #4a2a6b;
    --badge-bg: linear-gradient(135deg, #d4af37, #c85cb8);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --footer-gradient: linear-gradient(145deg, #0f0c29, #1a1033, #2b1b47);
    --footer-text: #fffbee;
    --footer-glow: rgba(212, 175, 55, 0.4);
}

[data-theme="dark"] {
    --bg-color: #0f0c29;
    --card-bg: #1a1a2e;
    --card-border: #2d2d4a;
    --card-shadow: 0 20px 30px -10px rgba(0,0,0,0.5);
    --text-primary: #ffffff;
    --text-muted: #cbd5e0;
    --accent-primary: #ffdb7c;
    --accent-secondary: #c85cb8;
    --accent-gradient: linear-gradient(135deg, #ffdb7c, #c85cb8, #6b46c1);
    --border-color: #2d2d4a;
    --input-bg: #16213e;
    --input-border: #2d2d4a;
    --input-focus: #ffdb7c;
    --chat-user: linear-gradient(135deg, #d4af37, #c85cb8);
    --chat-assistant: #16213e;
    --header-bg: #1a1a2e;
    --code-bg: #16213e;
    --code-color: #ffdb7c;
    --badge-bg: linear-gradient(135deg, #d4af37, #c85cb8);
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.08);
    --footer-gradient: linear-gradient(145deg, #0a0718, #140f24, #1f1a30);
    --footer-glow: rgba(255, 215, 0, 0.3);
}

body {
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding: clamp(8px, 2vw, 16px) clamp(8px, 3vw, 24px) 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    font-size: clamp(14px, 1.2vw, 16px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.2s ease;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 20px);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(8px, 1.5vw, 16px);
    background: var(--header-bg);
    padding: clamp(10px, 1.8vw, 16px) clamp(16px, 3vw, 28px);
    border-radius: clamp(20px, 3vw, 40px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.header h1 {
    font-size: clamp(18px, 3.5vw, 32px);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 14px);
    letter-spacing: -0.02em;
}

.header h1 i {
    background: linear-gradient(145deg, #d4af37, #c85cb8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9em;
    filter: drop-shadow(0 2px 4px rgba(212,175,55,0.3));
}

.theme-toggle {
    padding: clamp(8px, 1.2vw, 12px) clamp(14px, 2vw, 24px);
    border: none;
    border-radius: 40px;
    background: linear-gradient(135deg, #d4af37, #c85cb8);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    font-size: clamp(12px, 1.1vw, 14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.theme-toggle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212,175,55,0.5);
}

/* Cards */
.card {
    background: var(--card-bg);
    padding: clamp(16px, 2.5vw, 28px) clamp(16px, 2.5vw, 28px);
    border-radius: clamp(20px, 3vw, 32px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.card:hover {
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card h2 {
    margin-bottom: clamp(16px, 2.5vw, 24px);
    color: var(--text-primary);
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 14px);
    flex-wrap: wrap;
    letter-spacing: -0.01em;
}

.card h2 i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9em;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: clamp(8px, 1.5vw, 16px);
    margin-bottom: clamp(12px, 2vw, 20px);
    flex-wrap: wrap;
}

.input-group input,
.input-group select {
    flex: 1 1 200px;
    padding: clamp(12px, 2vw, 18px) clamp(16px, 2.5vw, 24px);
    border-radius: 50px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}

/* Buttons */
.primary-btn, .scrape-btn {
    padding: clamp(12px, 2vw, 18px) clamp(20px, 3vw, 32px);
    border: none;
    border-radius: 50px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: clamp(14px, 1.2vw, 16px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 14px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(74,42,107,0.4);
    background-size: 200% auto;
    position: relative;
    overflow: hidden;
}

.primary-btn::before, .scrape-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.primary-btn:hover::before, .scrape-btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-btn:hover, .scrape-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -5px rgba(74,42,107,0.6);
}

.scrape-btn {
    width: 100%;
    margin-top: clamp(8px, 1.5vw, 16px);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    margin-top: clamp(16px, 2.5vw, 24px);
}

.loading-spinner {
    width: clamp(32px, 4vw, 40px);
    height: clamp(32px, 4vw, 40px);
    border: 3px solid var(--border-color);
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto clamp(8px, 1.2vw, 12px);
}

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

.loading p {
    color: #d4af37;
    font-weight: 500;
    font-size: clamp(13px, 1.1vw, 15px);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Preview Content */
.preview-content {
    background: var(--input-bg);
    padding: clamp(16px, 2.5vw, 24px);
    border-radius: clamp(16px, 2.5vw, 24px);
    max-height: 600px !important; /* Force maximum height with !important */
    overflow: auto !important;
    font-size: clamp(12px, 1vw, 14px);
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    line-height: 1.6;
}

/* Export Grid */
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100px, 100%), 1fr));
    gap: clamp(6px, 1vw, 12px);
    margin-top: clamp(16px, 2.5vw, 24px);
}

.export-btn {
    padding: clamp(10px, 1.5vw, 16px) clamp(8px, 1.2vw, 14px);
    border: none;
    border-radius: 40px;
    background: linear-gradient(135deg, #d4af37, #c85cb8);
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 0.8vw, 8px);
    cursor: pointer;
    font-size: clamp(11px, 1vw, 14px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.export-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(212,175,55,0.5);
}

/* Toggle Container */
.toggle-container {
    display: flex;
    gap: clamp(8px, 1.2vw, 16px);
    margin-bottom: clamp(16px, 2.5vw, 24px);
    background: var(--input-bg);
    padding: clamp(6px, 1vw, 10px);
    border-radius: 60px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.toggle-btn {
    flex: 1;
    padding: clamp(12px, 1.8vw, 18px) clamp(12px, 2vw, 20px);
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: clamp(12px, 1.1vw, 14px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 12px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toggle-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
    transform: scale(1.02);
}

/* Chat Containers */
.chat-container {
    background: var(--input-bg);
    padding: clamp(16px, 2.5vw, 24px);
    border-radius: clamp(20px, 3vw, 28px);
    max-height: 1200px !important; /* Force maximum height with !important */
    overflow-y: auto !important;
    border: 1px solid var(--border-color);
    margin-bottom: clamp(16px, 2.5vw, 24px);
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.8vw, 20px);
    scroll-behavior: smooth;
}

.message {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

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

.message-content {
    display: inline-block;
    padding: clamp(12px, 1.8vw, 18px) clamp(16px, 2.2vw, 24px);
    border-radius: 24px;
    max-width: 85%;
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.6;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.message-text {
    margin-bottom: clamp(8px, 1.2vw, 12px);
}

.download-buttons {
    display: flex;
    gap: clamp(6px, 1vw, 10px);
    margin-top: clamp(8px, 1.2vw, 12px);
    padding-top: clamp(8px, 1.2vw, 12px);
    border-top: 1px solid rgba(212,175,55,0.2);
    flex-wrap: wrap;
}

.download-btn {
    padding: clamp(6px, 1vw, 10px) clamp(8px, 1.2vw, 14px);
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(200,80,192,0.1));
    color: var(--accent-primary);
    font-size: clamp(10px, 0.9vw, 12px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 0.6vw, 8px);
    transition: all 0.3s ease;
    border: 1px solid rgba(212,175,55,0.3);
    backdrop-filter: blur(4px);
    font-weight: 500;
}

.download-btn:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.3), rgba(200,80,192,0.3));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(212,175,55,0.4);
    color: var(--text-primary);
}

.download-btn i {
    font-size: clamp(10px, 0.9vw, 12px);
}

.user .message-content {
    background: linear-gradient(135deg, #d4af37, #c85cb8);
    color: white;
    border-bottom-right-radius: 8px;
    margin-left: auto;
}

.assistant .message-content {
    background: var(--chat-assistant);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 8px;
}

/* Typing Indicator */
.typing {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    padding: clamp(8px, 1.2vw, 12px) 0;
}

.typing span {
    width: clamp(6px, 1vw, 8px);
    height: clamp(6px, 1vw, 8px);
    background: linear-gradient(135deg, #d4af37, #c85cb8);
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.4s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Model Badge */
.model-badge {
    display: inline-block;
    padding: clamp(4px, 0.8vw, 8px) clamp(10px, 1.5vw, 16px);
    background: var(--accent-gradient);
    color: white;
    border-radius: 40px;
    font-size: clamp(10px, 0.9vw, 12px);
    font-weight: 600;
    margin-left: clamp(6px, 1vw, 12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Chat Sections */
.chat-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

.chat-section.active { display: block; }

/* Mode Header */
.mode-header {
    background: linear-gradient(135deg, var(--input-bg), var(--card-bg));
    border-radius: clamp(16px, 2.5vw, 24px);
    padding: clamp(12px, 2vw, 20px) clamp(16px, 2.5vw, 24px);
    margin-bottom: clamp(16px, 2.5vw, 24px);
    border-left: 5px solid #d4af37;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.mode-header h2 {
    margin: 0 0 clamp(4px, 0.8vw, 8px) 0;
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 600;
}

.mode-header p {
    margin: 0;
    font-size: clamp(12px, 1vw, 14px);
    opacity: 0.75;
}

/* Notification */
.export-notification {
    position: fixed;
    bottom: clamp(15px, 3vw, 30px);
    right: clamp(15px, 3vw, 30px);
    background: var(--success);
    color: white;
    padding: clamp(12px, 1.8vw, 18px) clamp(20px, 2.5vw, 30px);
    border-radius: 50px;
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 600;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--input-bg); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #d4af37, #c85cb8); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #c85cb8, #d4af37); }

/* FOOTER - ULTRA PROFESSIONAL */
.footer {
    margin-top: clamp(20px, 4vw, 40px);
    padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 80px);
    background: var(--footer-gradient);
    color: var(--footer-text);
    border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0;
    box-shadow: 
        0 -20px 30px -10px rgba(0,0,0,0.3),
        0 0 0 1px rgba(212,175,55,0.2) inset,
        0 0 30px rgba(212,175,55,0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.2), transparent 70%);
    filter: blur(60px);
    animation: floatGlow1 15s infinite alternate ease-in-out;
    z-index: 0;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle at 70% 70%, rgba(200,80,192,0.2), transparent 70%);
    filter: blur(60px);
    animation: floatGlow2 18s infinite alternate-reverse ease-in-out;
    z-index: 0;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(5%, 5%) scale(1.1); opacity: 0.5; }
    100% { transform: translate(10%, 10%) scale(1.2); opacity: 0.7; }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(-5%, -5%) scale(1.1); opacity: 0.5; }
    100% { transform: translate(-10%, -10%) scale(1.2); opacity: 0.7; }
}

.footer * { position: relative; z-index: 2; }

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    margin-bottom: clamp(24px, 4vw, 48px);
    padding-bottom: clamp(20px, 3vw, 40px);
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

.footer-logo {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    background: linear-gradient(145deg, #fff, #ffe68f, #ffb7c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 20px);
    text-shadow: 0 2px 10px rgba(212,175,55,0.3);
    letter-spacing: -0.02em;
}

#footerBrand {
    background: linear-gradient(145deg, #fff, #ffe68f, #ffb7c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.footer-logo i {
    font-size: clamp(28px, 4vw, 48px);
    background: linear-gradient(145deg, #fbbf24, #ff8c00, #ff6ec7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px gold) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: crownFloat 3s infinite alternate ease-in-out;
}

@keyframes crownFloat {
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px gold); }
    100% { transform: translateY(-5px) scale(1.05); filter: drop-shadow(0 0 20px #ffdb7c); }
}

.footer-tagline {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 24px);
}

.footer-tagline span {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(212,175,55,0.15));
    padding: clamp(8px, 1.2vw, 14px) clamp(16px, 2vw, 28px);
    border-radius: 50px;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 500;
    border: 1px solid rgba(212,175,55,0.3);
    backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.footer-tagline span:hover {
    background: linear-gradient(145deg, rgba(212,175,55,0.3), rgba(255,215,0,0.2));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.3);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(10px, 1.8vw, 24px);
    margin: clamp(20px, 3vw, 40px) 0;
}

.footer-badge {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(212,175,55,0.12));
    padding: clamp(8px, 1.2vw, 14px) clamp(18px, 2.2vw, 32px);
    border-radius: 50px;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 500;
    border: 1px solid rgba(212,175,55,0.25);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
}

.footer-badge:hover {
    background: linear-gradient(145deg, rgba(212,175,55,0.4), rgba(255,215,0,0.3));
    border-color: #ffdb7c;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(212,175,55,0.4);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
    gap: clamp(20px, 3vw, 50px);
    margin: clamp(24px, 4vw, 48px) 0;
}

.footer-column h4 {
    font-size: clamp(14px, 1.2vw, 18px);
    margin-bottom: clamp(16px, 2vw, 24px);
    background: linear-gradient(145deg, #fff8e7, #ffe49e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ffd966, #ff9f4b, #ff6ec7);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.footer-column:hover h4::after {
    width: 100%;
}

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

.footer-column ul li {
    margin-bottom: clamp(10px, 1.5vw, 18px);
}

.footer-column ul li a {
    color: rgba(255,255,240,0.9);
    text-decoration: none;
    font-size: clamp(13px, 1.1vw, 15px);
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    transition: all 0.3s ease;
    padding: clamp(4px, 0.8vw, 8px) 0;
}

.footer-column ul li a:hover {
    color: #fff;
    transform: translateX(10px);
    text-shadow: 0 2px 8px rgba(212,175,55,0.5);
}

.footer-column ul li a i {
    color: #d4af37;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.footer-column ul li a:hover i {
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(12px, 2vw, 24px);
    margin: clamp(24px, 4vw, 48px) 0;
}

.footer-social a {
    width: clamp(40px, 5vw, 56px);
    height: clamp(40px, 5vw, 56px);
    font-size: clamp(16px, 2vw, 22px);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(212,175,55,0.12));
    border: 1px solid rgba(212,175,55,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--footer-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
}

.footer-social a:hover {
    background: linear-gradient(145deg, #d4af37, #ffdb7c);
    color: #1a1033;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 20px 30px rgba(212,175,55,0.5);
    border-color: #ffd700;
}

.footer-extra {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(12px, 2vw, 24px);
    margin: clamp(24px, 4vw, 48px) 0;
    padding: clamp(20px, 3vw, 40px) 0;
    border-top: 1px solid rgba(212,175,55,0.15);
    border-bottom: 1px solid rgba(212,175,55,0.15);
}

.footer-extra-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: clamp(13px, 1.1vw, 15px);
    padding: clamp(8px, 1.2vw, 14px) clamp(18px, 2.5vw, 32px);
    border-radius: 50px;
    background: linear-gradient(145deg, rgba(0,0,0,0.2), rgba(212,175,55,0.1));
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    font-weight: 500;
    border: 1px solid rgba(212,175,55,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.footer-extra-link:hover {
    background: rgba(212,175,55,0.2);
    color: #fff;
    transform: translateY(-3px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212,175,55,0.3);
}

.footer-copyright {
    text-align: center;
    font-size: clamp(12px, 1vw, 14px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 32px);
    padding-top: clamp(20px, 3vw, 40px);
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

.footer-copyright span {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
}

.footer-copyright i {
    color: #d4af37;
}

/* Ultra Responsive Breakpoints */
@media (max-width: 1200px) {
    .footer { padding: clamp(30px, 5vw, 60px) clamp(25px, 4vw, 50px); }
}

@media (max-width: 992px) {
    .footer-main { flex-direction: column; text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-tagline { justify-content: center; }
    .footer-column { text-align: center; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
    .footer-column ul li a { justify-content: center; }
}

@media (max-width: 768px) {
    body { padding: 12px 16px 0; }
    .footer { padding: 30px 20px; }
    .footer-links { grid-template-columns: 1fr; gap: 30px; }
    .footer-extra { flex-direction: column; align-items: center; }
    .footer-copyright { flex-direction: column; gap: 10px; }
    .export-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
    .export-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-badges { flex-direction: column; align-items: center; }
    .footer-social a { width: 45px; height: 45px; font-size: 18px; }
    .toggle-container { flex-direction: column; border-radius: 40px; }
    .toggle-btn { width: 100%; }
}

@media (max-width: 380px) {
    .export-grid { grid-template-columns: 1fr; }
    .footer-extra-link { width: 100%; justify-content: center; }
    .footer-copyright span { justify-content: center; }
}

/* Print Styles */
@media print {
    .footer { background: white; color: black; }
    .footer * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
