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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #171926 0%, #1a171d 50%, #403941 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: float 20s infinite linear;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(10px); }
    66% { transform: translateY(5px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.6s ease-out 0.2s both;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

header h1 {
    color: #2c3e50;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

header h1 i {
    color: #3498db;
    margin-right: 15px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.3));
}

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

header p {
    color: #7f8c8d;
    font-size: 1.2rem;
    font-weight: 400;
}

main {
    flex: 1;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    animation: slideInUp 0.6s ease-out 0.4s both;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.destination-checker-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f4 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scaleIn 0.5s ease-out 0.6s both;
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.destination-checker-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.destination-checker-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.destination-checker-section h2 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.destination-checker-section h2 i {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.destination-checker-section p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.destination-checker-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: end;
}

.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.arrow-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
    opacity: 0.2;
}

.arrow-icon:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.arrow-icon:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

.check-specific-btn {
    align-self: center;
    padding: 18px 40px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    max-width: 350px;
    position: relative;
    overflow: hidden;
}

.check-specific-btn::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;
}

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

.check-specific-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(46, 204, 113, 0.4);
}

.check-specific-btn:active {
    transform: translateY(-1px) scale(1);
}

.specific-result {
    margin-top: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 4px solid transparent;
    position: relative;
    animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.specific-result.visa-free {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.specific-result.visa-on-arrival {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf5 100%);
}

.specific-result.visa-required {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.specific-result.eta {
    border-left-color: #9b59b6;
    background: linear-gradient(135deg, #ffffff 0%, #faf8ff 100%);
}

.specific-result h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.visa-result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-item {
    background: rgba(248, 249, 250, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
}

.result-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.result-value {
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 500;
}

.section-divider {
    text-align: center;
    margin: 3rem 0;
    position: relative;
    animation: fadeIn 0.8s ease-out 0.8s both;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.3), transparent);
}

.section-divider span {
    background: white;
    padding: 0 2rem;
    color: #7f8c8d;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-section {
    margin-bottom: 2rem;
    animation: slideInLeft 0.6s ease-out 1s both;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-section h2 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-section h2 i {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.search-section p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.search-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(225, 232, 237, 0.8);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 
        0 0 0 4px rgba(52, 152, 219, 0.1),
        0 8px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
    background: white;
}

.input-group input::placeholder {
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.input-group input:focus::placeholder {
    opacity: 0.7;
    transform: translateY(-2px);
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(225, 232, 237, 0.8);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left-color: #3498db;
    transform: translateX(5px);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(225, 232, 237, 0.8);
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.filter-group select:hover {
    border-color: #3498db;
}

.search-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.search-btn::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;
}

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

.search-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.4);
}

.search-btn:active {
    transform: translateY(-1px) scale(1);
}

.loading {
    text-align: center;
    padding: 4rem;
    display: none;
}

.loading i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #7f8c8d;
    font-size: 1.2rem;
    font-weight: 500;
}

.error-message {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #fff5f5, #fef2f2);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    margin-bottom: 2rem;
    display: none;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message i {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite alternate;
}

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

.error-message p {
    color: #c53030;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

#retry-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

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

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.results-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

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

.results-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(248, 249, 250, 0.8);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.view-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 600;
    color: #7f8c8d;
}

.view-btn.active,
.view-btn:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

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

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.country-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.02), rgba(46, 204, 113, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.country-card:hover::before {
    opacity: 1;
}

.country-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.country-card.visa-free {
    border-left-color: #27ae60;
}

.country-card.visa-free:hover {
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
}

.country-card.visa-on-arrival {
    border-left-color: #f39c12;
}

.country-card.visa-on-arrival:hover {
    box-shadow: 0 20px 40px rgba(243, 156, 18, 0.15);
}

.country-card.visa-required {
    border-left-color: #e74c3c;
}

.country-card.visa-required:hover {
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.15);
}

.country-card.eta {
    border-left-color: #9b59b6;
}

.country-card.eta:hover {
    box-shadow: 0 20px 40px rgba(155, 89, 182, 0.15);
}

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

.country-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.country-region {
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visa-status {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.visa-status.visa-free {
    background: linear-gradient(135deg, #d5f4e6, #c8f7dc);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.visa-status.visa-on-arrival {
    background: linear-gradient(135deg, #fdeaa7, #fce59a);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.visa-status.visa-required {
    background: linear-gradient(135deg, #fadbd8, #f5c6cb);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.visa-status.eta {
    background: linear-gradient(135deg, #e8daef, #d7bde2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.country-details {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.country-details p {
    margin-bottom: 0.8rem;
}

.country-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.country-card.list-view {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    margin-bottom: 0;
}

.country-card.list-view .country-header {
    flex: 1;
    margin-bottom: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 12px 20px;
    border: 2px solid rgba(225, 232, 237, 0.8);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #2c3e50;
}

.page-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

#page-info {
    color: #7f8c8d;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    margin: 5% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: #95a5a6;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 249, 250, 0.8);
}

.close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.1) rotate(90deg);
}

.modal-country-info {
    margin-top: 1rem;
}

.modal-country-info h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(225, 232, 237, 0.5);
    transition: all 0.3s ease;
}

.info-row:hover {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.info-row strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.info-description {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.info-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 243, 205, 0.3);
    border-radius: 8px;
    border-left: 3px solid #f39c12;
}

.info-note em {
    color: #d68910;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
    font-size: 1.2rem;
    font-weight: 500;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    animation: fadeIn 1s ease-out 1.2s both;
}

footer a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding: 2rem 1.5rem;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    main {
        padding: 2rem;
    }
    
    .destination-checker-section,
    .search-section {
        padding: 2rem;
    }
    
    .input-pair {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .arrow-icon {
        transform: rotate(90deg);
        margin: 1rem auto;
    }
    
    .filters {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 2rem;
    }
    
    .modal-country-info h2 {
        font-size: 1.8rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .country-card.list-view {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .destination-checker-section,
    .search-section,
    main {
        padding: 1.5rem;
    }
    
    .country-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .visa-result-details {
        grid-template-columns: 1fr;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

/* Staggered animations for country cards */
.country-card:nth-child(1) { animation-delay: 0.1s; }
.country-card:nth-child(2) { animation-delay: 0.2s; }
.country-card:nth-child(3) { animation-delay: 0.3s; }
.country-card:nth-child(4) { animation-delay: 0.4s; }
.country-card:nth-child(5) { animation-delay: 0.5s; }
.country-card:nth-child(6) { animation-delay: 0.6s; }
.country-card:nth-child(7) { animation-delay: 0.7s; }
.country-card:nth-child(8) { animation-delay: 0.8s; }
.country-card:nth-child(9) { animation-delay: 0.9s; }
.country-card:nth-child(10) { animation-delay: 1s; }
.country-card:nth-child(11) { animation-delay: 1.1s; }
.country-card:nth-child(12) { animation-delay: 1.2s; }

/* Additional result styles */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

.registration-info,
.visa-application,
.destination-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.registration-info h4,
.visa-application h4,
.destination-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 243, 205, 0.3);
    border-radius: 12px;
    border-left: 4px solid #f39c12;
}

.disclaimer p {
    color: #d68910;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.disclaimer i {
    margin-top: 2px;
    flex-shrink: 0;
}