* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

:root {
    --primary: #e82127;
    --primary-dark: #c41e22;
    --dark: #171a20;
    --light: #f4f4f4;
    --gray: #f0f0f0;
    --gray-dark: #e0e0e0;
    --text: #333;
    --text-light: #666;
    --success: #2ecc71;
    --error: #e74c3c;
}

/* Error and Success Messages */
.error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.success-message {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: white;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    border-bottom: 1px solid var(--gray-dark);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #e60000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.logo, .logo span {
    background: linear-gradient(90deg, #ff6666, #e60000, #cc0000, #e60000, #ff6666);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Language Selector - Fixed position bottom left */
.lang-selector {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    list-style: none;
}

.lang-btn {
    background: white;
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-btn:hover {
    background: var(--gray);
}

.lang-btn .lang-code {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.lang-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 5px;
    background: white;
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    min-width: 100px;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: left;
}

.lang-dropdown button:hover {
    background: var(--gray);
}

.lang-dropdown button:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-dropdown .lang-code {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.nav-links a.btn-primary {
    color: white;
}

.nav-links a.btn-primary:hover {
    color: white;
    transform: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:focus {
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: var(--text);
    border: 2px solid var(--gray-dark);
}

.btn-outline:hover {
    background: var(--gray);
    color: var(--text);
}

/* Hero */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

/* Hero with background image (first hero section) */
.hero-bg {
    background:
        linear-gradient(135deg, rgba(248, 249, 250, 0.85) 0%, rgba(233, 236, 239, 0.9) 100%),
        url('/images/background_image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #ff6666, #e60000, #cc0000, #e60000, #ff6666);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Features */
.features {
    padding: 80px 20px;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 30px;
    background: var(--gray);
    border-radius: 12px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.feature p {
    color: var(--text-light);
}

.features-disclaimer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 40px;
    font-style: italic;
}

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
    background: var(--gray);
    border-top: 1px solid var(--gray-dark);
}

.footer-logo {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    min-height: 28px;
    max-height: 28px;
    border-radius: 6px;
    object-fit: cover;
    margin-top: 15px;
    flex-shrink: 0;
}

footer p {
    font-size: 0.85rem;
    color: #666;
    margin: 5px 0;
}

footer a {
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
}

footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
        position: relative;
        z-index: 1000;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--gray-dark);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links .btn {
        width: 100%;
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 60px 20px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .features h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .features-grid {
        gap: 20px;
    }

    .feature {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .lang-selector {
        margin: 10px auto 0;
    }

    .lang-dropdown {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: white;
    padding: 20px;
    z-index: 9998;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Contact Section (Public) */
.contact-section {
    padding: 60px 20px;
    background: var(--gray);
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

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

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    width: 100%;
}

.contact-status {
    text-align: center;
    margin-top: 15px;
}

/* Usage Stats */
.usage-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.usage-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.usage-label {
    font-size: 0.9rem;
    color: #666;
}

.usage-value {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 3px;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-fill.warning {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.usage-fill.danger {
    background: linear-gradient(90deg, #f44336, #E57373);
}

.usage-note {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
}

