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

:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #6b7280;
    --text-color: #374151;
    --text-light: #6b7280;
    --bg-color: #fafbfc;
    --bg-light: #f3f4f6;
    --border-color: #d1d5db;
    --error-color: #dc3545;
    --success-color: #28a745;
}

[data-theme="dark"] {
    --primary-color: #4a9eff;
    --primary-dark: #357abd;
    --secondary-color: #9ca3af;
    --text-color: #e5e7eb;
    --text-light: #9ca3af;
    --bg-color: #1a1a1a;
    --bg-light: #2d2d2d;
    --border-color: #404040;
    --error-color: #ff6b6b;
    --success-color: #51cf66;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-color);
    margin-left: 12px;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: var(--border-color);
}

/* Navigation */
.navbar {
    background: var(--bg-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-accent {
    color: var(--text-color);
}

.footer .brand-accent {
    color: var(--primary-color);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

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

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-link {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.btn-link {
    background: transparent;
    color: var(--text-color);
    padding: 12px 0;
}

.btn-link:hover {
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1556740758-90de374c12ad?w=1200&h=800&fit=crop') center/cover;
    opacity: 0.03;
    z-index: 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.crypto-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .crypto-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Trust Section */
.trust-section {
    padding: 60px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-label {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 32px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-logos-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.trust-logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: scroll-logos 30s linear infinite;
    will-change: transform;
}

.trust-logos:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 24px));
    }
}

/* Ensure animation works */
.trust-logos-wrapper {
    white-space: nowrap;
}

.trust-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
    width: 180px;
    height: 80px;
    padding: 12px;
    box-sizing: border-box;
}

.trust-logo:hover {
    opacity: 1;
}

.trust-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.2s;
    display: block;
}

.trust-logo:hover img {
    filter: grayscale(0%);
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section .container,
.hero .container,
.cta-section .container,
.auth-bg .container,
.footer .container {
    position: relative;
    z-index: 1;
}

.alt-section {
    background: var(--bg-light);
}

/* Background Sections */
.services-bg,
.contact-bg,
.terms-bg {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(0, 102, 204, 0.01) 100%);
    position: relative;
}

.about-bg {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.02) 0%, rgba(0, 102, 204, 0.05) 100%);
    position: relative;
}

.services-bg::before,
.contact-bg::before,
.terms-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    z-index: 0;
}

.services-bg::before {
    background: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=1200&h=800&fit=crop') center/cover;
}

.contact-bg::before {
    background: url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1200&h=800&fit=crop') center/cover;
}

.terms-bg::before {
    background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1200&h=800&fit=crop') center/cover;
}

.about-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=1200&h=800&fit=crop') center/cover;
    opacity: 0.03;
    z-index: 0;
}

.services-bg .container,
.about-bg .container,
.contact-bg .container,
.terms-bg .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
    line-height: 1.1;
    letter-spacing: -2px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    padding: 40px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-icon-large {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
}

.service-card h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* Flexibility Grid */
.flexibility-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.flex-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.flex-item.reverse {
    direction: rtl;
}

.flex-item.reverse > * {
    direction: ltr;
}

.flex-content h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
    line-height: 1.2;
}

.flex-content p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
}

.flex-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}

.feature-item {
    text-align: left;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.feature-item h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 600;
}

.feature-item p {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.7;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.mission-visual {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mission-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.value-item {
    padding: 32px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.value-item h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.value-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}


.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-text {
    background: var(--bg-color);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.terms-text h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
    margin-top: 32px;
}

.terms-text h3:first-child {
    margin-top: 0;
}

.terms-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.terms-text ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

.terms-text ul li {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.terms-updated {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0.02) 100%);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1556740758-90de374c12ad?w=1200&h=800&fit=crop') center/cover;
    opacity: 0.02;
    z-index: 0;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
    line-height: 1.2;
}

.cta-section p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Auth Section */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: var(--bg-light);
}

.auth-bg {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.auth-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1556740758-90de374c12ad?w=1200&h=800&fit=crop') center/cover;
    opacity: 0.03;
    z-index: 0;
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.auth-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 24px;
    display: block;
}

.auth-card h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 700;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 16px;
    text-align: center;
}

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

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

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

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-light);
    color: var(--text-color);
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.auth-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-color) 0%, #0f172a 100%);
    color: #e5e7eb;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1556740758-90de374c12ad?w=1200&h=800&fit=crop') center/cover;
    opacity: 0.05;
    z-index: 0;
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f172a 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff;
}

.footer-section h3 {
    font-size: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.contact-item p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1.6;
}

.contact-form-wrapper {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    background: var(--bg-color);
    color: var(--text-color);
}

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

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    transition: all 0.3s;
}

.chat-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.5);
}

.chat-button.chat-active {
    background: var(--primary-dark);
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-popup.chat-open {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

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

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
}

.chat-form-group {
    margin-bottom: 16px;
}

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

.chat-form-group input,
.chat-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-light);
    color: var(--text-color);
    transition: all 0.2s;
}

.chat-form-group input:focus,
.chat-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.chat-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.chat-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.chat-form-actions .btn-full {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

.chat-success {
    text-align: center;
    padding: 40px 20px;
    color: var(--success-color);
}

.chat-success p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

[data-theme="dark"] .chat-button {
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

[data-theme="dark"] .chat-popup {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .section-title {
        font-size: 42px;
    }

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

    .flex-item {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 0;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 16px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links .btn-primary,
    .nav-links .btn-link {
        width: 100%;
        text-align: center;
        padding: 12px;
        margin-top: 8px;
    }

    .nav-links .theme-toggle {
        margin: 16px auto 0;
    }

    .logo-img {
        height: 32px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .section {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
        left: auto;
    }

    .chat-button {
        width: 56px;
        height: 56px;
    }

    .chat-popup {
        width: calc(100vw - 40px);
        right: 0;
        left: auto;
        max-width: 380px;
        bottom: 70px;
    }

    .trust-logos {
        gap: 40px;
    }

    .trust-logo {
        width: 140px;
        height: 70px;
        flex-shrink: 0;
    }
}

/* Transaction Reference Modal */
.txn-ref-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.txn-ref-modal-open {
    opacity: 1;
    visibility: visible;
}

.txn-ref-modal-content {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.txn-ref-modal-open .txn-ref-modal-content {
    transform: scale(1);
}

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

.txn-ref-modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.txn-ref-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.txn-ref-close:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

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

.txn-ref-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

.txn-ref-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-light);
    color: var(--text-color);
    transition: all 0.2s;
}

.txn-ref-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.txn-ref-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.txn-ref-form-actions button {
    flex: 1;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.txn-ref-submit {
    background: var(--primary-color);
    color: white;
}

.txn-ref-submit:hover {
    background: var(--primary-dark);
}

.txn-ref-cancel {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.txn-ref-cancel:hover {
    background: var(--border-color);
}

.txn-ref-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.txn-ref-loading {
    text-align: center;
    padding: 24px;
    color: var(--text-color);
}

.txn-ref-loading p {
    margin: 0;
    font-size: 16px;
}

.txn-ref-error {
    padding: 16px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    color: var(--error-color);
    margin-top: 16px;
    font-size: 14px;
}

.txn-ref-result {
    margin-top: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.txn-ref-result-content {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
}

.txn-ref-result-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 16px 0;
}

.txn-ref-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.txn-ref-detail-row:last-child {
    border-bottom: none;
}

.txn-ref-detail-row strong {
    color: var(--text-light);
    font-weight: 500;
    min-width: 100px;
}

.txn-ref-detail-row span {
    color: var(--text-color);
    text-align: right;
    word-break: break-word;
}

.txn-status-completed {
    color: var(--success-color);
    font-weight: 500;
}

.txn-status-pending {
    color: #ffc107;
    font-weight: 500;
}

.txn-status-failed,
.txn-status-cancelled {
    color: var(--error-color);
    font-weight: 500;
}

.txn-ref-section-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.txn-ref-notes {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-color);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

[data-theme="dark"] .txn-ref-modal-content {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.btn-view-receipt {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
}

.btn-view-receipt:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .txn-ref-modal-content {
        padding: 24px;
        max-width: 90%;
    }
    
    .txn-ref-modal-header h3 {
        font-size: 20px;
    }
    
    .txn-ref-detail-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .txn-ref-detail-row span {
        text-align: left;
    }
}

/* Receipt Modal */
.receipt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.receipt-modal-open {
    opacity: 1;
    visibility: visible;
}

.receipt-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.receipt-modal-open .receipt-modal-content {
    transform: scale(1);
}

.receipt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    border: none;
    color: #dc3545;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.receipt-close:hover {
    background: rgba(220, 53, 69, 0.2);
}

.receipt-brand {
    padding: 28px 40px 16px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .receipt-brand {
    border-bottom-color: var(--border-color);
}

.receipt-logo {
    height: 44px;
    width: auto;
    margin-bottom: 12px;
    display: inline-block;
}

.receipt-company-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.receipt-tagline {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.receipt-company-details {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.receipt-company-details p {
    margin: 0 0 4px 0;
}

.receipt-company-details p:last-child {
    margin-bottom: 0;
}

.receipt-header {
    padding: 32px 40px 28px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .receipt-header {
    border-bottom-color: var(--border-color);
}

.receipt-success-icon {
    margin: 0 auto 12px;
    width: 64px;
    height: 64px;
}

.receipt-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.receipt-body {
    padding: 32px 40px;
    flex: 1;
    overflow-y: auto;
    min-height: auto;
}

.receipt-info-card {
    background: linear-gradient(135deg, #eef2ff, #ecfeff);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
}

.receipt-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.receipt-details {
    margin-top: 8px;
}

.receipt-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

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

.receipt-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    min-width: 160px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.receipt-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    text-align: right;
    flex: 1;
    word-break: break-word;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 1;
}

.receipt-actions {
    padding: 24px 40px 36px;
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-download-receipt {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-download-receipt:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-print-receipt {
    padding: 14px 24px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print-receipt:hover {
    background: var(--bg-light);
}

[data-theme="dark"] .receipt-modal-content {
    background: var(--bg-color);
}

[data-theme="dark"] .receipt-brand {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .receipt-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .receipt-title {
    color: var(--text-color);
}

[data-theme="dark"] .receipt-info-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
}

[data-theme="dark"] .receipt-badge {
    background: linear-gradient(135deg, #4a9eff, #6366f1);
}

[data-theme="dark"] .receipt-label {
    color: var(--text-light);
}

[data-theme="dark"] .receipt-value {
    color: var(--text-color);
}

[data-theme="dark"] .receipt-detail-item {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .receipt-footer {
    color: var(--text-light);
}

[data-theme="dark"] .receipt-footer-name {
    color: var(--text-color);
}

[data-theme="dark"] .receipt-actions {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .btn-download-receipt:hover {
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.receipt-footer {
    padding: 20px 40px 12px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.receipt-footer-line {
    margin: 0 0 2px 0;
}

.receipt-footer-name {
    font-weight: 600;
    color: #111827;
}

.receipt-crypto-badge {
    font-weight: 600;
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: 0.3px;
}

[data-theme="dark"] .receipt-crypto-badge {
    color: #fbbf24;
}

@media (max-width: 768px) {
    .receipt-modal {
        padding: 10px;
    }
    
    .receipt-modal-content {
        max-width: 100%;
        margin: 10px auto;
    }
    
    .receipt-header {
        padding: 24px 20px 20px;
    }
    
    .receipt-body {
        padding: 20px;
    }
    
    .receipt-actions {
        padding: 16px 20px 20px;
        flex-direction: column;
    }
    
    .btn-download-receipt,
    .btn-print-receipt {
        width: 100%;
    }
    
    .receipt-detail-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .receipt-label {
        min-width: auto;
    }
    
    .receipt-value {
        text-align: left;
        justify-content: flex-start;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    
    .receipt-modal.receipt-modal-open,
    .receipt-modal.receipt-modal-open * {
        visibility: visible !important;
    }
    
    .receipt-modal {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        background: white !important;
        backdrop-filter: none !important;
        overflow: visible !important;
        z-index: 9999 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .receipt-modal-content {
        position: relative !important;
        box-shadow: none !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }
    
    .receipt-close,
    .receipt-actions {
        display: none !important;
    }
    
    .receipt-brand,
    .receipt-header,
    .receipt-body,
    .receipt-footer {
        page-break-inside: avoid !important;
    }
    
    @page {
        margin: 0.5cm;
        size: A4;
    }
}
