@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

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

:root {
    --dark-bg: #0a0a0a;
    --card-bg: rgba(26, 26, 26, 0.95);
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --border: rgba(255, 255, 255, 0.1);
    
    /* Tab-specific colors */
    --emt-primary: #00aaff;
    --billing-primary: #4caf50;
    --prepayment-primary: #ff9800;
    --smartproducts-primary: #9c27b0;
    --sme-primary: #ff5722;
    --vulnerable-primary: #e91e63;
    --export-primary: #8bc34a;
    --homemini-primary: #00d9ff;
    --ev-primary: #7c4dff;
    --electroverse-primary: #ff6b6b;
    --industry-primary: #26c6da;
    --business-primary: #ffa726;
    --kmt-primary: #66bb6a;
    --tools-primary: #42a5f5;
    --forms-primary: #ab47bc;
    --quicklinks-primary: #ffd700;
    --emails-primary: #ff4757;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 170, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 152, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(139, 195, 74, 0.1) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(40px, -40px) rotate(180deg); }
}

.social-icons-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 50px;
    opacity: 0.1;
    animation: float 25s infinite ease-in-out;
    color: var(--text-secondary);
}

.floating-icon:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.floating-icon:nth-child(2) { left: 80%; top: 10%; animation-delay: 4s; }
.floating-icon:nth-child(3) { left: 70%; top: 70%; animation-delay: 2s; }
.floating-icon:nth-child(4) { left: 15%; top: 80%; animation-delay: 6s; }
.floating-icon:nth-child(5) { left: 50%; top: 50%; animation-delay: 3s; }
.floating-icon:nth-child(6) { left: 30%; top: 40%; animation-delay: 5s; }
.floating-icon:nth-child(7) { left: 60%; top: 30%; animation-delay: 1s; }
.floating-icon:nth-child(8) { left: 40%; top: 90%; animation-delay: 7s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    25% { transform: translateY(-40px) rotate(8deg); opacity: 0.15; }
    50% { transform: translateY(-60px) rotate(-8deg); opacity: 0.08; }
    75% { transform: translateY(-40px) rotate(5deg); opacity: 0.12; }
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out;
}

.header h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff85, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1.5px;
}

.header .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
}

.header .brand-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    font-size: 36px;
    color: var(--text-secondary);
    animation: fadeIn 1.2s ease-out;
}

.tab-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 50px;
    animation: fadeIn 1s ease-out;
}

.tab-button {
    background: var(--surface);
    color: var(--text);
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-button:hover::before {
    opacity: 1;
}

.tab-button i {
    font-size: 20px;
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: currentColor;
}

/* Individual tab colors */
.tab-emt:hover, .tab-emt.active { background: var(--emt-primary); border-color: var(--emt-primary); }
.tab-billing:hover, .tab-billing.active { background: var(--billing-primary); border-color: var(--billing-primary); }
.tab-prepayment:hover, .tab-prepayment.active { background: var(--prepayment-primary); border-color: var(--prepayment-primary); }
.tab-smartproducts:hover, .tab-smartproducts.active { background: var(--smartproducts-primary); border-color: var(--smartproducts-primary); }
.tab-sme:hover, .tab-sme.active { background: var(--sme-primary); border-color: var(--sme-primary); }
.tab-vulnerable:hover, .tab-vulnerable.active { background: var(--vulnerable-primary); border-color: var(--vulnerable-primary); }
.tab-export:hover, .tab-export.active { background: var(--export-primary); border-color: var(--export-primary); }
.tab-homemini:hover, .tab-homemini.active { background: var(--homemini-primary); border-color: var(--homemini-primary); }
.tab-ev:hover, .tab-ev.active { background: var(--ev-primary); border-color: var(--ev-primary); }
.tab-electroverse:hover, .tab-electroverse.active { background: var(--electroverse-primary); border-color: var(--electroverse-primary); }
.tab-industry:hover, .tab-industry.active { background: var(--industry-primary); border-color: var(--industry-primary); }
.tab-business:hover, .tab-business.active { background: var(--business-primary); border-color: var(--business-primary); }
.tab-kmt:hover, .tab-kmt.active { background: var(--kmt-primary); border-color: var(--kmt-primary); }
.tab-tools:hover, .tab-tools.active { background: var(--tools-primary); border-color: var(--tools-primary); }
.tab-forms:hover, .tab-forms.active { background: var(--forms-primary); border-color: var(--forms-primary); }
.tab-quicklinks:hover, .tab-quicklinks.active { background: var(--quicklinks-primary); border-color: var(--quicklinks-primary); color: #000; }
.tab-emails:hover, .tab-emails.active { background: var(--emails-primary); border-color: var(--emails-primary); }

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.content-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 14px;
}

.content-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

.content-card p {
    line-height: 1.7;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.content-card ul, .content-card ol {
    margin-left: 20px;
    margin-bottom: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.content-card li {
    margin-bottom: 8px;
}

.content-card strong {
    color: var(--text);
    font-weight: 700;
}

/* Email-specific styles - FIX for overflow */
.email-template {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    max-width: 100%;
    overflow: hidden;
}

.email-template h4 {
    color: var(--emails-primary);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
}

.email-content {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--emails-primary);
    padding: 16px;
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;
}

.email-content::-webkit-scrollbar {
    height: 6px;
}

.email-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.email-content::-webkit-scrollbar-thumb {
    background: var(--emails-primary);
    border-radius: 3px;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid currentColor;
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box {
    background: rgba(255, 152, 0, 0.1);
    border: 2px solid #ff9800;
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
}

.info-box {
    background: rgba(0, 170, 255, 0.1);
    border: 2px solid #00aaff;
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.category-section h4 {
    color: #00ff85;
    margin-bottom: 12px;
    font-size: 16px;
}

.category-section ul {
    margin-left: 0;
    list-style: none;
}

.category-section li {
    padding-left: 20px;
    position: relative;
}

.category-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00ff85;
}

.sub-tab-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.sub-tab-navigation .tab-button {
    padding: 14px 28px;
    min-width: 200px;
    border-radius: 16px;
    font-size: 15px;
}

code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    color: #00ff85;
    font-size: 13px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.reason-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
}

.reason-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.reason-card.positive {
    border-left: 4px solid #4caf50;
}

.reason-card.negative {
    border-left: 4px solid #f44336;
}

.welcome-card {
    border-left: 6px solid #00ff85;
}

@media (max-width: 1024px) {
    .tab-navigation {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .header h1 { font-size: 32px; }
    .header .subtitle { font-size: 16px; }
    .tab-navigation {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .tab-button { 
        padding: 12px 16px; 
        font-size: 14px; 
    }
    .tab-button i { font-size: 18px; }
    .content-card { padding: 24px; }
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

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