/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #0a0a23;
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

body.light-theme {
    background: #f5f6f5;
    color: #1b1b32;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Background Effects */
.security-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1), rgba(10, 10, 35, 0.8));
    z-index: -1;
}

.security-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.security-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: float 10s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-100vh); opacity: 0.2; }
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 35, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 35, 1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #00d4ff;
    transform: translateX(5px);
}

.nav-item {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.dropdown-item:hover, .dropdown-item.active {
    color: #00d4ff;
    transform: translateX(5px);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-toggle {
    position: relative;
}

.language-btn {
    background: none;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: #00d4ff;
    color: #0a0a23;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.language-dropdown a {
    display: block;
    padding: 0.5rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.language-dropdown a:hover {
    color: #00d4ff;
}

.theme-toggle {
    background: none;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #00d4ff;
    color: #0a0a23;
}

.cta-button {
    background: #00d4ff;
    color: #0a0a23;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #00aaff;
    transform: translateY(-2px);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1200;
    position: relative;
}

.nav-toggle:hover {
    color: #00d4ff;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: #0a0a0f;
    border-right: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1200;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

body.light-theme .mobile-nav {
    background: #f5f7fa;
    color: #1a1a2e;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1201;
}

.mobile-nav-logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-close {
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

body.light-theme .mobile-close {
    color: #1a1a2e;
}

.mobile-close:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-nav-menu {
    padding: 25px;
    background: inherit;
}

.mobile-nav-item {
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

body.light-theme .mobile-nav-item {
    background: rgba(26, 26, 46, 0.03);
    border-color: rgba(26, 26, 46, 0.08);
}

.mobile-nav-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.mobile-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    transition: all 0.3s ease;
    min-height: 56px;
}

body.light-theme .mobile-nav-link {
    color: #1a1a2e;
}

.mobile-nav-link.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
    font-weight: 600;
}

.mobile-nav-link:hover {
    color: #00d4ff;
    padding-left: 25px;
}

.mobile-nav-link i {
    font-size: 16px;
    opacity: 0.7;
    margin-right: 12px;
}

body.light-theme .mobile-nav-link i {
    color: #1a1a2e;
}

.mobile-dropdown-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

body.light-theme .mobile-dropdown-toggle {
    color: rgba(26, 26, 46, 0.8);
}

.mobile-dropdown-toggle:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
}

.mobile-dropdown-toggle.active {
    color: #00d4ff;
    transform: rotate(180deg);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    margin: 0 -20px -16px -20px;
    padding: 0 20px;
}

body.light-theme .mobile-dropdown {
    background: rgba(26, 26, 46, 0.1);
}

.mobile-dropdown.active {
    max-height: 500px;
    padding: 16px 20px;
}

.mobile-dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    display: block;
    padding: 12px 24px;
    margin: 8px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

body.light-theme .mobile-dropdown-item {
    color: rgba(26, 26, 46, 0.9);
}

.mobile-dropdown-item:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    border-left-color: #00d4ff;
    padding-left: 29px;
}

.mobile-dropdown-item.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
    border-left-color: #00d4ff;
    font-weight: 600;
}

.mobile-nav-controls {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    background: inherit;
}

body.light-theme .mobile-nav-controls {
    border-top-color: rgba(26, 26, 46, 0.1);
}

/* Agreement Container */
.agreement-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(10, 10, 35, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.agreement-title {
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    text-align: center;
    margin-bottom: 1rem;
}

.agreement-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #cccccc;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #00d4ff;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.agreement-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    scrollbar-width: thin;
    scrollbar-color: #00d4ff #0a0a23;
}

.agreement-scroll::-webkit-scrollbar {
    width: 8px;
}

.agreement-scroll::-webkit-scrollbar-track {
    background: #0a0a23;
}

.agreement-scroll::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;
}

.policy-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.highlight-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.policy-list {
    list-style: none;
    padding-left: 1rem;
}

.policy-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 1.2rem;
}

.process-steps {
    margin-top: 1rem;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.step-number {
    background: #00d4ff;
    color: #0a0a23;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 1rem;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-weight: 600;
    color: #ffffff;
}

.step-desc {
    color: #cccccc;
    font-size: 0.9rem;
}

.timeline-box {
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

.refund-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.refund-method {
    display: flex;
    flex-direction: column;
}

.method-name {
    font-weight: 600;
    color: #00d4ff;
}

.method-time {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Checkbox Styles */
.checkbox-container {
    margin: 2rem 0;
    text-align: center;
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #00d4ff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox.checked {
    background: #00d4ff;
}

.custom-checkbox input {
    display: none;
}

.checkbox-label {
    font-size: 1rem;
    color: #cccccc;
}

.checkbox-label a {
    color: #00d4ff;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #00aaff;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-reject {
    background: #ff4d4d;
    color: #ffffff;
}

.btn-reject:hover {
    background: #e60000;
    transform: translateY(-2px);
}

.btn-accept {
    background: #00d4ff;
    color: #0a0a23;
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-accept.enabled {
    opacity: 1;
    cursor: pointer;
}

.btn-accept.enabled:hover {
    background: #00aaff;
    transform: translateY(-2px);
}

/* Footer Note */
.footer-note {
    text-align: center;
    color: #cccccc;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background: rgba(10, 10, 35, 0.95);
    padding: 2rem;
    margin-top: 2rem;
}

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

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-links a.active {
    color: #00d4ff;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: #00d4ff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #00aaff;
}

.footer-text {
    text-align: center;
    color: #cccccc;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Light Theme Adjustments */
body.light-theme .header {
    background: rgba(245, 246, 245, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active,
body.light-theme .dropdown-item:hover,
body.light-theme .dropdown-item.active,
body.light-theme .mobile-nav-link:hover,
body.light-theme .mobile-nav-link.active,
body.light-theme .mobile-dropdown-item:hover,
body.light-theme .mobile-dropdown-item.active,
body.light-theme .footer-links a:hover,
body.light-theme .footer-links a.active {
    color: #007bff;
}

body.light-theme .mobile-nav,
body.light-theme .dropdown-menu,
body.light-theme .language-dropdown {
    background: rgba(245, 246, 245, 0.95);
}

body.light-theme .mobile-nav-link,
body.light-theme .mobile-dropdown-item,
body.light-theme .footer-links a,
body.light-theme .agreement-container,
body.light-theme .agreement-scroll {
    color: #1b1b32;
}

body.light-theme .agreement-container {
    background: rgba(245, 246, 245, 0.95);
}

body.light-theme .section-title,
body.light-theme .highlight-box h4,
body.light-theme .method-name,
body.light-theme .checkbox-label a,
body.light-theme .footer-section h3,
body.light-theme .footer-social a {
    color: #007bff;
}

body.light-theme .agreement-scroll {
    scrollbar-color: #007bff #f5f6f5;
}

body.light-theme .agreement-scroll::-webkit-scrollbar-track {
    background: #f5f6f5;
}

body.light-theme .agreement-scroll::-webkit-scrollbar-thumb {
    background: #007bff;
}

body.light-theme .highlight-box,
body.light-theme .timeline-box {
    background: rgba(0, 123, 255, 0.1);
}

body.light-theme .policy-list li::before {
    color: #007bff;
}

body.light-theme .step-number {
    background: #007bff;
    color: #ffffff;
}

body.light-theme .btn-accept.enabled {
    background: #007bff;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-controls {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .agreement-container {
        margin: 1rem;
        padding: 1rem;
    }

    .agreement-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .agreement-scroll {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .agreement-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .mobile-nav {
        width: 90%;
        max-width: 320px;
    }

    .mobile-nav-header {
        padding: 15px 20px;
    }

    .mobile-nav-menu {
        padding: 20px;
    }

    .mobile-nav-controls {
        padding: 20px;
    }
}