/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3b4cf2;
    --primary-purple: #7b68ee;
    --dark-blue: #1a1d47;
    --light-blue: #f0f4ff;
    --gradient-primary: linear-gradient(135deg, #3b4cf2 0%, #7b68ee 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-dark: #1a1d47;
    --text-gray: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-large: 0 20px 25px rgba(0, 0, 0, 0.1);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Authentication Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    padding: 2rem;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 76, 242, 0.1);
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 0.5rem 0;
    color: var(--text-gray);
    font-size: 0.875rem;
}

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

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

/* Professional Crypto Prices Display */
.offline-prices {
    margin: 4rem 0;
    padding: 0;
    background: transparent;
    border: none;
}

.offline-prices h3 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    position: relative;
}

.offline-prices h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: 2px;
}

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

.price-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-blue) 0%, 
        var(--primary-purple) 50%, 
        var(--primary-blue) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.price-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(59, 76, 242, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 76, 242, 0.3);
}

.crypto-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.crypto-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    position: relative;
    overflow: hidden;
}

.crypto-icon.btc {
    background: linear-gradient(135deg, #f7931a 0%, #ff6b35 100%);
}

.crypto-icon.eth {
    background: linear-gradient(135deg, #627eea 0%, #3c3c3d 100%);
}

.crypto-icon.usdt {
    background: linear-gradient(135deg, #26a17b 0%, #50af95 100%);
}

.crypto-icon.bnb {
    background: linear-gradient(135deg, #f3ba2f 0%, #e8b923 100%);
}

.crypto-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.price-card:hover .crypto-icon::before {
    transform: translateX(100%);
}

.crypto-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.crypto-symbol {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.status-text {
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.price-item {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.price-item:hover {
    background: rgba(59, 76, 242, 0.05);
    border-color: rgba(59, 76, 242, 0.2);
    transform: translateY(-2px);
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.price-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.price-label.buy::before {
    background: #16a34a;
}

.price-label.sell::before {
    background: #dc2626;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Inter', monospace;
    letter-spacing: -0.5px;
}

.buy-price {
    color: #16a34a;
}

.sell-price {
    color: #dc2626;
}

.price-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    text-align: center;
}

.last-updated {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.update-icon {
    width: 12px;
    height: 12px;
    border: 2px solid var(--text-gray);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .offline-prices h3 {
        font-size: 2rem;
    }
    
    .prices-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .price-card {
        padding: 1.5rem;
    }
    
    .crypto-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Loading Animation */
@keyframes cardLoad {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-card {
    animation: cardLoad 0.6s ease-out forwards;
}

.price-card:nth-child(1) { animation-delay: 0.1s; }
.price-card:nth-child(2) { animation-delay: 0.2s; }
.price-card:nth-child(3) { animation-delay: 0.3s; }
.price-card:nth-child(4) { animation-delay: 0.4s; }

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(59, 76, 242, 0.3);
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.navbar {
    padding: 0.875rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: lowercase;
    letter-spacing: -0.025em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-dark);
}

.social-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-right: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #64748b;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--text-dark);
    background-color: #f8fafc;
    transform: translateY(-1px);
}

.social-link svg {
    transition: all 0.2s ease;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 4rem 0 1rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: lowercase;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-media h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer .social-links {
    display: flex;
    gap: 1rem;
    margin-right: 0;
}

.footer .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .social-link.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
}

.footer .social-link.instagram {
    background: linear-gradient(135deg, #e4405f 0%, #833ab4 50%, #f77737 100%);
    color: #ffffff;
}

.footer .social-link.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0e7aa8 100%);
    color: #ffffff;
}

.footer .social-link.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    color: #ffffff;
}

.footer .social-link.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006aa3 100%);
    color: #ffffff;
}

.footer .social-link.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
}

.footer .social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.link-group h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.link-group a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.link-group a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* Dashboard and Trading Styles */
.dashboard-content,
.trade-content {
    padding-top: 6rem;
    min-height: 100vh;
}

.dashboard-header,
.trade-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1,
.trade-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.verification-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 600px;
}

.verification-banner.verified {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid #16a34a;
}

.verification-banner.pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
}

.status-icon {
    font-size: 2rem;
}

.status-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.trading-options {
    margin: 3rem 0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.option-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.option-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.trade-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

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

.platform-card {
    display: block;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.verification-checklist {
    margin: 1.5rem 0;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: var(--light-blue);
}

.upload-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.user-greeting {
    color: var(--text-dark);
    font-weight: 500;
    margin-right: 1rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #333333;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #ffffff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    80%, 100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.btn-register {
    text-decoration: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    background: linear-gradient(135deg, #5b5af0 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: #f8fafc;
}

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

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: left;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-align: left;
    max-width: 600px;
}

.cta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    width: fit-content;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.cta-text {
    color: var(--text-gray);
    font-size: 1rem;
}

.cta-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

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

/* Hero Illustration */
.hero-illustration {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.crypto-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-large);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 10%;
    right: 20%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-blue);
}

.card-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.main-visual {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-large);
    animation: pulse 2s ease-in-out infinite;
}

.eagle-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bitcoin-symbol {
    font-size: 4rem;
    color: var(--white);
    font-weight: bold;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-blue);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .social-links {
        display: none;
    }
    
    .btn-register {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        border-radius: 8px;
    }
    
    .logo-img {
        width: 55px;
        height: 55px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .crypto-visual {
        height: 300px;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .main-visual {
        width: 150px;
        height: 150px;
    }
    
    .bitcoin-symbol {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer .social-links {
        justify-content: flex-start;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* Tablet specific adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 0 32px;
    }
    
    .btn-register {
        padding: 0.7rem 1.4rem;
    }
}

/* Large mobile adjustments */
@media (max-width: 640px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .btn-register {
        padding: 0.55rem 1rem;
        font-size: 0.8125rem;
        border-radius: 7px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-register {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer .social-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .footer .social-link {
        width: 40px;
        height: 40px;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .nav-container {
        padding: 0 12px;
    }
    
    .btn-register {
        padding: 0.45rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
}

/* ===== Dashboard Layout ===== */
.dashboard-content {
    padding: 4rem 0;
    margin-top: 2rem;
}
.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.verification-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border: 1px dashed var(--primary-blue);
    border-radius: 12px;
    margin-bottom: 2rem;
    background: rgba(59, 76, 242, 0.05);
}
.verification-banner .status-icon {
    font-size: 1.75rem;
}
.verification-banner .status-text h3 {
    margin: 0 0 0.25rem 0;
}
.verification-banner.pending {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}
.verification-banner.verified {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}
.trading-options {
    margin-bottom: 3rem;
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.option-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.option-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: rgba(59,76,242,0.25);
}
.option-icon {
    font-size: 2rem;
}
.price-section {
    margin-bottom: 3rem;
}
.price-section h2 {
    margin-bottom: 1rem;
}
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}
.ticket-item {
    background: #fff;
    border: 1px solid rgba(226,232,240,0.6);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ticket-id {font-weight:600; color: var(--primary-blue); margin-right:0.5rem;}
.ticket-status {font-weight:600; text-transform:capitalize;}
.status-pending {color:#f59e0b;}
.status-active {color:#3b4cf2;}
.status-completed {color:#10b981;}
.status-expired {color:#ef4444;}

/* responsive fix */
@media(max-width:768px){
   .dashboard-header h1{font-size:1.5rem}
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    animation: modalFadeIn 0.3s ease-out forwards;
    /* Debug: Ensure modal is visible */
    visibility: visible;
}

@keyframes modalFadeIn {
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(30px);
    animation: modalSlideUp 0.3s ease-out forwards;
}

@keyframes modalSlideUp {
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--light-blue);
    color: var(--text-dark);
}

/* Action Selection Styles */
.action-selection {
    padding: 2rem;
}

.action-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.action-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.buy-card:hover {
    border-color: #10b981;
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
}

.sell-card:hover {
    border-color: #f59e0b;
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
}

.action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.buy-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.sell-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.action-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.action-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.action-arrow {
    color: var(--primary-blue);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.action-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Platform Selection Styles */
.platform-selection {
    padding: 0 2rem 2rem;
    animation: slideInRight 0.3s ease-out;
}

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

.selection-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.back-button {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.selection-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.platform-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.platform-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.p2p-card:hover {
    border-color: #8b5cf6;
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 100%);
}

.offline-card:hover {
    border-color: #06b6d4;
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    color: white;
    transition: all 0.3s ease;
}

.p2p-card .platform-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.offline-card .platform-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.platform-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.platform-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.platform-features {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 76, 242, 0.2);
}

/* Device Selection Styling */
.device-selection {
    animation: slideInRight 0.3s ease-out;
    padding: 0 2rem 2rem;
}

.device-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.device-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: left;
    min-height: 120px;
}

.device-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.device-card:hover::before {
    left: 100%;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.smartphone-card:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.desktop-card:hover {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, #faf0ff 0%, #f0e6ff 100%);
}

.device-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.smartphone-card .device-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.desktop-card .device-icon {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.device-icon svg {
    color: var(--white);
    transition: transform 0.3s ease;
}

.device-card:hover .device-icon {
    transform: scale(1.1);
}

.device-card:hover .device-icon svg {
    transform: scale(1.1);
}

.device-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.device-card p {
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Device Image Styles */
.device-image {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.device-card:hover .device-screenshot {
    transform: scale(1.05);
}

.device-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 2rem;
}

.device-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.device-card:hover .device-overlay {
    opacity: 1;
}

.device-content {
    flex: 1;
    padding-left: 1.5rem;
}

.device-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .action-selection {
        padding: 1.5rem;
    }
    
    .action-cards,
    .platform-cards,
    .device-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-card,
    .platform-card,
    .device-card {
        padding: 1.5rem 1rem;
    }
    
    .platform-selection,
    .device-selection {
        padding: 0 1.5rem 1.5rem;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
    }
    
    .platform-icon {
        width: 60px;
        height: 60px;
    }
    
    .action-card h3 {
        font-size: 1.125rem;
    }
    
    .platform-card h4 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 0.5rem;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .action-selection {
        padding: 1rem;
    }
    
    .platform-selection,
    .device-selection {
        padding: 0 1rem 1rem;
    }
    
    .action-card,
    .platform-card,
    .device-card {
        padding: 1.25rem 0.75rem;
    }
    
    .action-card p,
    .platform-card p {
        font-size: 0.8rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Focus and accessibility enhancements */
.lang-current:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 76, 242, 0.1);
}

.lang-item:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: -2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lang-current {
        border-color: #000;
        background: #fff;
    }
    
    .lang-dropdown {
        border-color: #000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .lang-item:hover {
        background: #f0f0f0;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lang-current,
    .lang-dropdown,
    .lang-item,
    .lang-arrow,
    .lang-check {
        transition: none;
        animation: none;
    }
    
    .language-selector.active .lang-arrow {
        transform: none;
    }
    
    .lang-current::before {
        display: none;
    }
    
    .lang-item:hover {
        animation: none;
        transform: none;
    }
}

/* Screen Reader Only Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Professional Language Switcher */
.language-selector {
    position: relative;
    margin: 0 auto 1rem;
    width: fit-content;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: space-between;
    user-select: none;
    font-family: inherit;
}

.lang-current::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 76, 242, 0.05), transparent);
    transition: left 0.5s ease;
}

.lang-current:hover::before {
    left: 100%;
}

.lang-current:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(59, 76, 242, 0.15);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
}

.lang-current:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(59, 76, 242, 0.2);
}

.language-selector.active .lang-current {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(59, 76, 242, 0.15);
    background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
}

.lang-flag {
    font-size: 1.25rem;
    line-height: 1;
    margin-right: 0.25rem;
}

.lang-name {
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.025em;
    flex: 1;
}

.lang-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.language-selector.active .lang-arrow {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(20px);
    min-width: 200px;
}

.language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown slide-in animation */
@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    outline: none;
}

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

.lang-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    transition: width 0.3s ease;
    z-index: 1;
}

.lang-item:hover {
    background: linear-gradient(135deg, #f8fafc, #f0f4ff);
    color: var(--primary-blue);
    transform: translateX(4px);
}

.lang-item:hover::before {
    width: 4px;
}

.lang-item.active {
    background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
    color: var(--primary-blue);
    font-weight: 600;
}

.lang-item.active::before {
    width: 4px;
}

.lang-item:focus {
    background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
    color: var(--primary-blue);
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(59, 76, 242, 0.2);
}

.lang-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

.lang-native {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 0.125rem;
}

.lang-english {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.lang-item:hover .lang-english {
    color: #7c3aed;
}

.lang-item.active .lang-english {
    color: #6366f1;
}

.lang-check {
    color: var(--primary-blue);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.lang-item.active .lang-check {
    opacity: 1;
    transform: scale(1);
}

/* Loading state styling */
.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Enhanced animations */
@keyframes langSelectorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.language-selector:focus-within .lang-current {
    animation: langSelectorPulse 2s infinite;
    border-color: var(--primary-blue);
}

/* Hover states with enhanced feedback */
.lang-item {
    will-change: transform, background-color;
}

.lang-item:hover {
    animation: itemHover 0.3s ease-out;
}

@keyframes itemHover {
    0% { transform: translateX(0); }
    50% { transform: translateX(6px); }
    100% { transform: translateX(4px); }
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .language-selector {
        margin: 0 auto 1.25rem;
    }
    
    .lang-current {
        padding: 0.75rem 1rem;
        min-width: 140px;
        font-size: 0.85rem;
    }
    
    .lang-flag {
        font-size: 1.125rem;
    }
    
    .lang-name {
        font-size: 0.85rem;
    }
    
    .lang-dropdown {
        left: -1rem;
        right: -1rem;
        border-radius: 12px;
        min-width: auto;
    }
    
    .lang-item {
        padding: 0.875rem 1rem;
    }
    
    .lang-native {
        font-size: 0.85rem;
    }
    
    .lang-english {
        font-size: 0.7rem;
    }
    
    /* Touch-friendly interactions */
    .lang-item:active {
        background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .language-selector {
        margin: 0 auto 1rem;
    }
    
    .lang-current {
        padding: 0.625rem 0.875rem;
        min-width: 120px;
        font-size: 0.8rem;
    }
    
    .lang-flag {
        font-size: 1rem;
    }
    
    .lang-dropdown {
        left: -1.5rem;
        right: -1.5rem;
    }
    
    .lang-item {
        padding: 0.75rem 0.875rem;
    }
} 