/* CSS Variables for theming */
:root {
    /* Light theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #333333;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --accent: #667eea;
    --accent-hover: #5a67d8;
    --header-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --chart-bg: #ffffff;
}

[data-theme="dark"] {
    /* Dark theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #475569;
    --shadow: rgba(0, 0, 0, 0.3);
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --header-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --card-bg: #1e293b;
    --input-bg: #334155;
    --chart-bg: #1e293b;
}

/* Outline button styles */
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .btn-outline:hover {
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.4);
}

/* Dark mode specific overrides */
[data-theme="dark"] .section-header h2 {
    color: #f8fafc !important;
}

[data-theme="dark"] .currency-code {
    color: #f8fafc !important;
}

[data-theme="dark"] .chart-header h4 {
    color: #f8fafc !important;
}

[data-theme="dark"] .hero h1 {
    color: #f8fafc !important;
}

[data-theme="dark"] .logo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .logo:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .logo h1 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .logo i {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--header-gradient);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.logo::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;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.logo:hover::before {
    left: 100%;
}

.logo i {
    font-size: 2rem;
    color: #ffffff;
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo:hover i {
    transform: rotate(180deg) scale(1.1);
    animation-duration: 0.5s;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes textShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glowPulse {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(96, 165, 250, 0.4),
                     0 0 20px rgba(96, 165, 250, 0.3),
                     0 0 30px rgba(96, 165, 250, 0.2);
    }
    50% { 
        text-shadow: 0 0 15px rgba(96, 165, 250, 0.6),
                     0 0 30px rgba(96, 165, 250, 0.4),
                     0 0 45px rgba(96, 165, 250, 0.3);
    }
}

.logo h1 {
    font-family: 'Rajdhani', 'Orbitron', 'Share Tech Mono', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    position: relative;
    text-transform: none;
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover h1 {
    transform: scale(1.05);
    animation: textShimmer 2s linear infinite, glowPulse 1.5s ease-in-out infinite;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.4s ease;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.logo:hover h1::after {
    width: 100%;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

.nav-link {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 1.1rem;
    font-feature-settings: 'liga' 1, 'kern' 1;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.8;
    border-bottom-color: white;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    font-family: 'Rajdhani', 'Orbitron', monospace;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: white;
    color: #2c3e50;
}

/* Theme toggle button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle i::before {
    content: "\f185"; /* fa-sun */
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
    text-transform: none;
    font-feature-settings: 'liga' 1, 'kern' 1, 'dlig' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-ligatures: common-ligatures;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.last-updated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0 auto 1rem auto;
    width: fit-content;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
    text-transform: none;
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Currency Filter */
.currency-filter {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 200px;
    text-transform: uppercase;
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-input::placeholder {
    text-transform: none;
    color: var(--text-muted);
}

.filter-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

/* Currency card highlight animation */
@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 4px 6px var(--shadow), 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4), 0 0 0 8px rgba(102, 126, 234, 0);
    }
}

.rate-card.highlight {
    animation: highlightPulse 1.5s ease-in-out 2;
    border: 2px solid var(--accent);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

[data-theme="dark"] .rate-card.highlight {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] .filter-input:focus {
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.section-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.btn-outline.active {
    background: #3498db;
    color: white;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #718096;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 2rem;
    background: #fed7d7;
    color: #c53030;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-message i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Rates Grid */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.rate-card {
    background: var(--card-bg);
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.rate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

.currency-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.chart-button-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
    padding-top: 0;
}

.rate-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    text-align: right;
    min-width: 120px;
}

.rate-date {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.5rem;
}

.rate-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
}

.currency-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
}

.currency-chart {
    width: 100%;
    height: 40px;
    margin-top: 0.5rem;
    position: relative;
}

.currency-chart canvas {
    border-radius: 4px;
}

/* Chart Toggle Button */
.chart-toggle-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    width: fit-content;
}

.chart-toggle-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .chart-toggle-btn:hover {
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.4);
}

.chart-toggle-btn i {
    font-size: 0.9rem;
}

/* Chart Container */
.chart-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease, background-color 0.3s ease;
    background: var(--chart-bg);
    border-radius: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    padding: 0;
}

.chart-container.expanded {
    max-height: 500px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    opacity: 1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.chart-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.chart-loading i {
    color: #3b82f6;
}

.chart-content {
    position: relative;
    height: 200px;
    min-height: 200px;
    width: 100%;
}

.chart-content canvas {
    width: 100% !important;
    height: 200px !important;
    border-radius: 8px;
}

.chart-error {
    display: none;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #ef4444;
    font-size: 0.9rem;
    background: #fef2f2;
    border: 1px dashed #fecaca;
    border-radius: 0.5rem;
    text-align: center;
}

.currency-cell .fi {
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.currency-code {
    flex-shrink: 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Flag icon sizing to match currency code and rate */
.currency-cell .fi {
    font-size: 1.75rem;
    margin-right: 0.5rem;
}

.rate-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.rate-change {
    font-size: 0.8rem;
    font-weight: 500;
}

.rate-change.positive {
    color: #38a169;
}

.rate-change.negative {
    color: #e53e3e;
}

.rate-date {
    font-size: 0.8rem;
    color: #718096;
}

/* Calculator Section */
.calculator-section {
    margin-bottom: 4rem;
}

.calculator-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.calculator-form {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.input-group select option {
    padding: 0.5rem;
    font-size: 1rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.currency-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.swap-btn {
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    margin-top: 2.25rem; /* Offset for label height */
    align-self: start;
}

.swap-btn:hover {
    background: #cbd5e0;
    transform: rotate(180deg);
}

/* Calculation Result */
.calculation-result {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.result-display {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
}

.from-amount,
.to-amount {
    text-align: center;
}

.amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
}

.currency {
    display: block;
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.equals {
    text-align: center;
    color: #718096;
    font-size: 1.2rem;
}

.exchange-rate {
    text-align: center;
    color: #4a5568;
}

/* Kiosks Section */
.kiosks-section {
    padding: 2rem 0;
}

.kiosks-loading, .kiosks-error {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.kiosks-loading i, .kiosks-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.kiosks-error {
    color: var(--danger);
}

.kiosks-map-container {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

.exchange-points-map {
    height: 400px;
    width: 100%;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.kiosks-list {
    display: grid;
    gap: 1.5rem;
}

.city-group {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.city-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.city-header i {
    color: var(--accent);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.city-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.companies-grid {
    display: grid;
    gap: 1rem;
}

.company-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.company-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

.company-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.company-name i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.exchange-points-count {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.exchange-points-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .exchange-points-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.exchange-point-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.exchange-point-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.exchange-point-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.exchange-point-name i {
    color: var(--accent);
    margin-right: 0.5rem;
    width: 16px;
}

.exchange-point-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.exchange-point-detail i {
    color: var(--text-muted);
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.map-toggle-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.map-toggle-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Map placeholder styling */
.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.map-placeholder-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.map-header i {
    font-size: 2rem;
    color: var(--accent);
}

.map-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.map-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-item i {
    color: var(--accent);
    width: 16px;
}

.map-cities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.map-city-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.map-city-item i {
    color: var(--accent);
    width: 12px;
}

.map-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.map-note i {
    color: var(--accent);
}

/* Map popup styling */
.map-popup {
    font-family: inherit;
    min-width: 200px;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.popup-header i {
    color: var(--accent);
    font-size: 1.1rem;
}

.popup-header strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popup-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.popup-row i {
    color: var(--text-muted);
    width: 14px;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.popup-row span {
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Ensure map container has proper sizing */
.kiosks-map {
    height: 400px;
    width: 100%;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
}

.leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.4;
}

.leaflet-popup-tip {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .map-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .map-cities {
        grid-template-columns: 1fr;
    }
    
    .exchange-points-map {
        height: 300px;
    }
}

/* Contact Section */
.contact-section {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.contact-section .section-header {
    margin-top: 3rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    max-width: 400px;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.contact-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.contact-info {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.contact-topics {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    text-align: left;
}

.contact-topics li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--text-secondary);
    position: relative;
    font-size: 0.95rem;
}

.contact-topics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        padding: 1.5rem;
    }
}

/* About Section */
.about-section {
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.about-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.about-content p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
}

.feature i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: nowrap;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -2px 0 10px var(--shadow);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 1rem;
    }
    
    [data-theme="dark"] .nav {
        background: var(--bg-secondary);
    }

    .nav.active {
        right: 0;
    }

    /* Add overlay when menu is open */
    .nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 5rem 1rem 2rem;
        align-items: stretch;
    }

    .nav ul li {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }
    
    [data-theme="dark"] .nav ul li {
        border-bottom-color: var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1rem;
        color: #1e293b;
        font-size: 1.1rem;
    }
    
    [data-theme="dark"] .nav-link {
        color: var(--text-primary);
    }

    .nav-link:hover,
    .nav-link.active {
        background: #f1f5f9;
    }
    
    [data-theme="dark"] .nav-link:hover,
    [data-theme="dark"] .nav-link.active {
        background: var(--bg-tertiary);
    }

    .language-switcher {
        display: flex;
        justify-content: center;
        padding: 1rem;
        gap: 0.5rem;
    }

    .theme-toggle {
        margin: 1rem auto;
        display: block;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .currency-filter {
        width: 100%;
    }

    .filter-input {
        width: 100%;
    }

    .nav ul {
        gap: 1rem;
    }

    .rates-grid {
        grid-template-columns: 1fr;
    }

    .currency-selector {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .swap-btn {
        justify-self: center;
        margin-top: 1rem;
        align-self: center;
    }

    .result-display {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .calculator-card,
    .about-content {
        padding: 1.5rem;
    }

    .calculation-result {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Legal Pages Styles */
.legal-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.legal-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.legal-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--text-secondary);
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-content a:hover {
    border-bottom-color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-creator {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.footer-creator a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-creator a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Google AdSense Styles */
.ad-container {
    margin: 2rem auto;
    text-align: center;
    max-width: 100%;
}

.ad-banner {
    margin: 2rem 0;
    padding: 1rem;
}

.ad-sidebar {
    max-width: 300px;
    margin: 1rem auto;
    padding: 1rem;
}

.ad-container ins {
    display: block;
    margin: 0 auto;
}

/* Responsive ad styling */
@media (max-width: 768px) {
    .ad-container {
        margin: 1rem auto;
        padding: 0.5rem;
    }
    
    .ad-banner {
        margin: 1rem 0;
    }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 2px solid var(--accent);
    box-shadow: 0 -4px 12px var(--shadow);
    padding: 1rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent-banner.visible {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1 1 auto;
}

.cookie-consent-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cookie-consent-link:hover {
    opacity: 0.8;
}

.cookie-consent-accept {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-consent-accept:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.cookie-consent-accept:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-consent-text {
        text-align: center;
    }
    
    .cookie-consent-accept {
        width: 100%;
    }
}