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

:root {
    /* Colors - TaskHub Design Guide */
    --color-yellow: #FFD700;
    --color-yellow-light: #FFF9E6;
    --color-purple: #9333EA;
    --color-purple-light: #F3E8FF;
    --color-green: #10B981;
    --color-green-light: #D1FAE5;
    --color-dark: #1F2937;
    --color-dark-light: #374151;
    --color-gray: #6B7280;
    --color-gray-light: #F3F4F6;
    --color-white: #FFFFFF;
    --color-black: #000000;
    
    /* Typography - Inter font family (TaskHub style) */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Border Radius - Rounded corners (TaskHub style) */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    overflow-x: auto;
    width: 100%;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-dark);
    background-color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

body.page-loaded {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

/* Modern Navigation Bar */
.apple-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #1a1a1a;
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.apple-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0.5;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    position: relative;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.7;
}

.logo-text {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.01em;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    height: 100%;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    border-radius: 6px;
    margin: 0 2px;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.dropdown-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.8);
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-radius: 10px;
    padding: 6px 0;
    min-width: 260px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
    margin-top: 0;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-title {
    display: block;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--color-black);
    margin-bottom: 2px;
}

.dropdown-desc {
    display: block;
    font-size: 11px;
    color: var(--color-gray);
    line-height: 1.4;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
    position: relative;
    pointer-events: auto;
}

.hamburger-line {
    width: 100%;
    height: 2.5px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    box-shadow: -2px 0 24px rgba(0, 0, 0, 0.4);
    padding: 64px var(--spacing-md) var(--spacing-md);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    z-index: 10001;
    display: block;
    visibility: visible;
    min-height: 100vh;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    display: block;
}

/* Hide copy button when menu overlay is active */
body:has(.mobile-menu-overlay.active) #copyFromCalculatorBtn {
    display: none !important;
}

.mobile-nav-link {
    display: block;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 17px;
    font-weight: var(--font-weight-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
}

.mobile-nav-link:hover {
    color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.mobile-nav-section {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.mobile-nav-header {
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
    padding: 0;
    display: block;
    visibility: visible;
}

.mobile-nav-section .mobile-nav-link {
    padding-left: var(--spacing-sm);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 767px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        height: 48px;
    }
}

@media (min-width: 768px) {
    .mobile-menu-overlay {
        display: none;
    }
}

/* Main Content */
main {
    padding: var(--spacing-xl) 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

/* Hero Section - Consistent padding above H1 */
.hero-section {
    margin-bottom: var(--spacing-xl);
    padding-top: var(--spacing-lg);
}

.hero-section h1 {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--color-black);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 18px;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.hero-section .last-updated {
    font-size: 14px;
    color: var(--color-gray);
    margin-top: var(--spacing-sm);
}

.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Glass Panel - Updated to TaskHub Style */
.glass-panel {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
}

.two-column-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.insight-card {
    background: #f9fafb;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.country-brackets table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-sm);
}

.country-brackets th,
.country-brackets td {
    text-align: left;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-gray-light);
    font-size: 14px;
}

.country-brackets tr:last-child td {
    border-bottom: none;
}

.country-brackets {
    background: #fff;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.country-brackets h3 {
    margin-top: 0;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.difference-card {
    background: #f8fafc;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.example-card {
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.example-card h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.comparison-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    background: #fdfdfd;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}

.comparison-column ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.comparison-column li {
    margin-bottom: 6px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
}

.info-table th,
.info-table td {
    border: 1px solid var(--color-gray-light);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.info-table thead {
    background: #f4f6fb;
}

.info-table small {
    display: block;
    color: var(--color-gray);
    margin-top: 4px;
}

.choose-card {
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    background: #f9fafb;
    box-shadow: var(--shadow-sm);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    margin: 0 0 var(--spacing-xs);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    min-width: 220px;
    text-align: center;
}

/* Section Titles */
h1 {
    font-size: 80px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.015em;
    font-family: SF Pro Display, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
}

h2 {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    color: var(--color-black);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--color-black);
    letter-spacing: -0.01em;
}

h4 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--color-black);
    letter-spacing: -0.01em;
}

/* Form Groups */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-dark);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.01em;
}

/* Salary Input - Special Styling */
.salary-input-group {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-gray-light);
    transition: all 0.3s ease;
}

.salary-input-group:focus-within {
    border-color: var(--color-purple);
    box-shadow: 0 0 0 4px var(--color-purple-light), 0 8px 24px rgba(147, 51, 234, 0.15);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
}

.salary-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    letter-spacing: -0.02em;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.salary-label svg {
    color: var(--color-purple);
    flex-shrink: 0;
}

.salary-label span {
    white-space: nowrap;
    flex-shrink: 0;
}

.currency-select-inline {
    margin-left: var(--spacing-xs);
    padding: 6px 32px 6px 12px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    flex-shrink: 0;
    white-space: nowrap;
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
}

.currency-select-inline:hover {
    border-color: var(--color-purple);
    background-color: var(--color-purple-light);
}

.currency-select-inline:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px var(--color-purple-light);
}

.salary-input-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.currency-prefix {
    position: absolute;
    left: 32px;
    font-size: 16px;
    font-weight: var(--font-weight-normal);
    color: var(--color-gray);
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
}

.salary-input-group:focus-within .currency-prefix {
    color: var(--color-purple);
    font-weight: var(--font-weight-medium);
}

.currency-prefix.animating {
    animation: prefixBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes prefixBounce {
    0% {
        transform: translateY(-50%) scale(1);
    }
    30% {
        transform: translateY(-50%) scale(1.3);
        color: var(--color-yellow);
    }
    50% {
        transform: translateY(-50%) scale(1.15);
        color: var(--color-purple);
    }
    70% {
        transform: translateY(-50%) scale(1.05);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

.salary-input {
    width: 100% !important;
    padding: 28px 32px 28px 70px !important;
    font-size: 32px !important;
    font-weight: var(--font-weight-semibold) !important;
    background-color: var(--color-white) !important;
    border: 2px solid var(--color-purple) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--color-dark) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.1) !important;
    line-height: 1.2 !important;
    min-height: 72px !important;
    box-sizing: border-box !important;
    text-indent: 0 !important;
}

/* Magical Shine Effect */
.salary-input.magic-shine {
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: magicShine 1.5s ease-out;
    border-color: var(--color-yellow) !important;
    box-shadow: 
        0 0 0 4px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 80px rgba(147, 51, 234, 0.4),
        0 6px 20px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(255, 215, 0, 0.2) !important;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 250, 230, 1) 50%,
        rgba(255, 255, 255, 1) 100%
    ) !important;
}

.salary-input.magic-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 15%,
        rgba(255, 215, 0, 0.8) 30%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 215, 0, 0.8) 70%,
        rgba(255, 255, 255, 0.4) 85%,
        transparent 100%
    );
    animation: shimmerSweep 1.5s ease-out;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.salary-input.magic-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.2) 0%,
        rgba(147, 51, 234, 0.2) 50%,
        rgba(255, 215, 0, 0.2) 100%
    );
    animation: magicGlow 1.5s ease-out;
    z-index: 0;
    pointer-events: none;
}

@keyframes magicShine {
    0% {
        transform: scale(1);
        border-color: var(--color-purple);
    }
    20% {
        transform: scale(1.02);
        border-color: var(--color-yellow);
    }
    40% {
        transform: scale(1);
        border-color: var(--color-yellow);
    }
    100% {
        transform: scale(1);
        border-color: var(--color-purple);
    }
}

@keyframes shimmerSweep {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes magicGlow {
    0%, 100% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
}

/* Sparkle Effect for Container */
.salary-input-group.magic-sparkle {
    position: relative;
    animation: sparkleContainer 1.5s ease-out;
}

.salary-input-group.magic-sparkle::before,
.salary-input-group.magic-sparkle::after {
    content: '✨';
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: sparkleFloat 1.5s ease-out;
    pointer-events: none;
    z-index: 10;
}

.salary-input-group.magic-sparkle::before {
    top: 10px;
    left: 20px;
    animation-delay: 0.2s;
}

.salary-input-group.magic-sparkle::after {
    top: 10px;
    right: 20px;
    animation-delay: 0.4s;
}

@keyframes sparkleContainer {
    0% {
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(147, 51, 234, 0.4),
            inset 0 0 20px rgba(255, 215, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1.2);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
}

.salary-input::placeholder {
    color: var(--color-gray) !important;
    font-weight: var(--font-weight-normal) !important;
    font-size: 28px !important;
    opacity: 0.5 !important;
}

.salary-input:focus {
    outline: none;
    border-color: var(--color-purple);
    background-color: var(--color-white);
    box-shadow: 
        0 0 0 4px var(--color-purple-light),
        0 8px 24px rgba(147, 51, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.salary-input:hover:not(:focus) {
    border-color: var(--color-purple);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

/* Salary input typing animation */
.salary-input.typing-animation {
    animation: salaryTyping 0.3s ease-out;
}

@keyframes salaryTyping {
    0% {
        transform: scale(1) translateY(-1px);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
        box-shadow: 
            0 0 0 4px var(--color-yellow-light),
            0 12px 32px rgba(255, 215, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.7);
        border-color: var(--color-yellow);
    }
    100% {
        transform: scale(1) translateY(-1px);
    }
}

.salary-input.value-changed {
    animation: salaryValueChange 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes salaryValueChange {
    0% {
        transform: scale(1) translateY(-1px);
    }
    25% {
        transform: scale(1.03) translateY(-3px);
        box-shadow: 
            0 0 0 6px var(--color-purple-light),
            0 0 30px rgba(147, 51, 234, 0.4),
            0 12px 36px rgba(147, 51, 234, 0.3);
        border-color: var(--color-purple);
    }
    50% {
        transform: scale(1.015) translateY(-2px);
        box-shadow: 
            0 0 0 5px var(--color-yellow-light),
            0 0 25px rgba(255, 215, 0, 0.3),
            0 10px 30px rgba(255, 215, 0, 0.2);
        border-color: var(--color-yellow);
    }
    75% {
        transform: scale(1.008) translateY(-1.5px);
    }
    100% {
        transform: scale(1) translateY(-1px);
    }
}

.period-select-wrapper {
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.period-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-dark);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.01em;
}

.period-select {
    width: 100%;
    padding: 18px 44px 18px 20px !important;
    font-size: 18px !important;
    font-weight: var(--font-weight-medium) !important;
    background-color: var(--color-white) !important;
    border: 2px solid var(--color-gray-light) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--color-dark) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer;
}

.period-select:focus {
    outline: none;
    border-color: var(--color-purple) !important;
    box-shadow: 0 0 0 3px var(--color-purple-light) !important;
}

.period-select:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px var(--color-purple-light);
}

.salary-hint {
    margin-top: var(--spacing-sm);
    font-size: 13px;
    color: var(--color-gray);
    font-style: italic;
    line-height: 1.5;
    opacity: 0.8;
}

.salary-input-group:focus-within .salary-hint {
    color: var(--color-purple);
    opacity: 1;
}

.form-group input,
.form-group select:not(.currency-select-inline):not(.currency-select-results) {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--color-gray-light);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    color: var(--color-dark);
    font-size: 16px;
    font-weight: var(--font-weight-normal);
    font-family: var(--font-family);
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-purple);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-purple-light);
}

.form-group input::placeholder {
    color: var(--color-gray);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231F2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group select option {
    padding: 12px;
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* Shine Animation for Currency Select */
.shine-animation {
    position: relative;
    overflow: hidden;
    animation: currencyUpdate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    will-change: transform, border-color, box-shadow;
}

.shine-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.7) 20%,
        rgba(147, 51, 234, 0.7) 50%,
        rgba(255, 215, 0, 0.7) 80%,
        transparent 100%
    );
    animation: shineSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
    border-radius: var(--radius-md);
    filter: blur(1px);
}

.shine-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.3) 0%,
        rgba(147, 51, 234, 0.2) 50%,
        rgba(255, 215, 0, 0.3) 100%
    );
    animation: glowPulse 1.4s ease-in-out;
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-md);
    opacity: 0.8;
}

@keyframes currencyUpdate {
    0% {
        transform: scale(1) translateY(0);
        border-color: var(--color-gray-light);
    }
    15% {
        transform: scale(1.03) translateY(-1px);
        border-color: var(--color-yellow);
    }
    30% {
        transform: scale(1.01) translateY(0);
        border-color: var(--color-purple);
    }
    45% {
        transform: scale(1.02) translateY(-0.5px);
        border-color: var(--color-yellow);
    }
    60% {
        transform: scale(1) translateY(0);
        border-color: var(--color-purple);
    }
    100% {
        transform: scale(1) translateY(0);
        border-color: var(--color-gray-light);
    }
}

@keyframes shineSweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    20% {
        opacity: 1;
        transform: scale(1.02);
    }
    40% {
        opacity: 0.6;
        transform: scale(1);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.01);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Enhanced styling during shine animation */
.shine-animation {
    border-color: var(--color-yellow) !important;
    box-shadow: 
        0 0 0 3px rgba(255, 215, 0, 0.5),
        0 0 25px rgba(255, 215, 0, 0.4),
        0 4px 15px rgba(147, 51, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    background-color: var(--color-yellow) !important;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    color: var(--color-black) !important;
    animation: currencyUpdate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), yellowFill 1.2s ease-in-out !important;
}

@keyframes yellowFill {
    0% {
        background-color: var(--color-yellow) !important;
        color: var(--color-black) !important;
    }
    50% {
        background-color: var(--color-yellow) !important;
        color: var(--color-black) !important;
    }
    100% {
        background-color: var(--color-gray-light) !important;
        color: var(--color-dark) !important;
    }
}

/* Input with Select */
.input-with-select {
    display: flex;
    gap: var(--spacing-xs);
    align-items: stretch;
    width: 100%;
}

.input-with-select input:not(.salary-input) {
    flex: 1 1 auto;
    min-width: 150px;
}

.input-with-select select:not(.period-select) {
    flex: 0 0 auto;
    min-width: 110px;
    max-width: 140px;
}

/* Input with Unit */
.input-with-unit {
    display: flex;
    align-items: center;
    position: relative;
}

.input-with-unit input {
    padding-right: 44px;
}

.input-with-unit .unit {
    position: absolute;
    right: 16px;
    color: var(--color-gray);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

/* Buttons - TaskHub Style */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-md);
}

.btn-primary:hover {
    background-color: #FFE44D;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: var(--spacing-md);
}

.button-group .btn-primary,
.button-group .btn-secondary {
    flex: 1;
    margin-top: 0;
}

/* Secondary Button */
.btn-secondary {
    width: 100%;
    padding: 16px 24px;
    background-color: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--color-gray-light);
    border-color: var(--color-purple);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary.copied {
    background-color: var(--color-green-light);
    border-color: var(--color-green);
    color: var(--color-green);
}

/* Reset Button - Cool Animation */
.btn-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--color-purple-light) 0%, rgba(255, 215, 0, 0.1) 100%);
    color: var(--color-purple);
    border: 2px solid var(--color-purple);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.15);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-reset::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-reset:hover {
    background: linear-gradient(135deg, var(--color-purple) 0%, rgba(147, 51, 234, 0.9) 100%);
    color: var(--color-white);
    border-color: var(--color-purple);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
}

.btn-reset:hover::before {
    width: 200px;
    height: 200px;
}

.btn-reset:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.2);
}

.btn-reset .reset-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-reset:hover .reset-icon {
    transform: rotate(360deg);
}

.btn-reset:active .reset-icon {
    transform: rotate(360deg) scale(0.9);
}

/* Reset button animation on click */
.btn-reset.animating {
    animation: resetPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes resetPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(147, 51, 234, 0.15);
    }
    25% {
        transform: scale(1.05) translateY(-3px);
        box-shadow: 0 12px 32px rgba(147, 51, 234, 0.4);
    }
    50% {
        transform: scale(0.98) translateY(-1px);
        box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
    }
    75% {
        transform: scale(1.02) translateY(-2px);
        box-shadow: 0 10px 28px rgba(147, 51, 234, 0.35);
    }
    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 2px 8px rgba(147, 51, 234, 0.15);
    }
}

/* Shimmer effect on reset button */
.btn-reset::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.btn-reset:hover::after {
    left: 100%;
}

/* Results Section */
.results-section {
    margin-top: 0;
}

.results-section:not(.hidden) {
    display: block;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.results-header h2 {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.currency-select-results {
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    width: 100px;
    min-width: 100px;
}

.currency-select-results:hover {
    border-color: var(--color-purple);
    background-color: var(--color-purple-light);
}

.currency-select-results:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px var(--color-purple-light);
}

.summary-card {
    background-color: var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: var(--spacing-sm);
}

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

.summary-item.highlight {
    background-color: var(--color-green-light);
    margin: var(--spacing-sm) calc(-1 * var(--spacing-md));
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-bottom: none;
}

.summary-item .label {
    color: var(--color-dark);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    flex: 0 0 auto;
    min-width: 120px;
}

.summary-item .value {
    color: var(--color-dark);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    transition: transform 0.1s ease-out;
    display: inline-block;
    text-align: right;
    flex: 1 1 auto;
}

.summary-item.highlight .value {
    color: var(--color-green);
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    transition: transform 0.1s ease-out;
    display: inline-block;
}

.summary-item .converted {
    color: var(--color-gray);
    font-size: 12px;
    margin-left: 8px;
    font-weight: var(--font-weight-normal);
    flex: 0 0 auto;
}

/* Display Period Selector */
.display-period-selector {
    margin-bottom: var(--spacing-md);
}

.display-period-selector label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.radio-group {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.radio-label:hover {
    background-color: var(--color-gray-light);
    border-color: var(--color-purple);
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--color-purple);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--color-purple);
}

.radio-label span {
    font-weight: var(--font-weight-medium);
}

/* Breakdown Table */
.breakdown-table {
    margin-top: var(--spacing-lg);
}

.breakdown-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.breakdown-table th {
    background-color: var(--color-gray-light);
    padding: 12px 16px;
    text-align: left;
    color: var(--color-dark);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-table th:nth-child(2),
.breakdown-table th:nth-child(3) {
    text-align: right;
}

.breakdown-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-gray-light);
    color: var(--color-dark);
    font-size: 14px;
    font-weight: var(--font-weight-normal);
}

.breakdown-table td:nth-child(2),
.breakdown-table td:nth-child(3) {
    text-align: right;
}

.breakdown-table tr:last-child td {
    border-bottom: none;
}

.breakdown-table tr.highlight {
    background-color: var(--color-green-light);
}

.breakdown-table tr.highlight td {
    color: var(--color-green);
    font-weight: var(--font-weight-semibold);
}

.breakdown-table .converted {
    color: var(--color-gray);
    font-size: 12px;
    font-weight: var(--font-weight-normal);
}

/* Tax Brackets Info */
.tax-brackets-info {
    margin-top: var(--spacing-lg);
}

.brackets-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.bracket-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.bracket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bracket-range {
    color: var(--color-dark);
    font-weight: var(--font-weight-medium);
    font-size: 14px;
}

.bracket-rate {
    color: var(--color-purple);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}

.bracket-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-gray);
    font-weight: var(--font-weight-normal);
}

/* Loading */
.loading {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--color-gray);
    font-size: 14px;
    font-weight: var(--font-weight-normal);
}

.hidden {
    display: none !important;
}

/* Footer - TaskHub Style */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

footer .container {
    text-align: center;
    padding: 0;
}

footer p {
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--color-gray);
}

/* Bottom Navigation - TaskHub Style */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-light);
    padding: 8px 0;
    z-index: 1000;
    display: none !important;
    justify-content: space-around;
    align-items: center;
    height: 72px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    color: var(--color-gray);
    text-decoration: none;
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    flex: 1;
    font-family: inherit;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item.active {
    color: var(--color-purple);
}

.bottom-nav .nav-item svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav .nav-item span {
    font-size: 11px;
    font-weight: var(--font-weight-medium);
}

/* Optional Inputs Section */
.optional-inputs {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-gray-light);
}

.optional-inputs h3 {
    font-size: 16px;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
}

/* Tooltip */
.tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-light);
    color: var(--color-gray);
    text-align: center;
    font-size: 11px;
    line-height: 16px;
    cursor: help;
    margin-left: 6px;
    font-weight: var(--font-weight-medium);
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
    }
    
    .calculator-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
        align-items: start;
    }
    
    .input-section {
        position: sticky;
        top: 80px;
        align-self: start;
    }
    
    .results-section {
        align-self: start;
    }
    
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    body {
        overflow-x: auto;
        width: 100%;
    }
    
    html {
        overflow-x: auto;
        width: 100%;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
        max-width: 100%;
    }
    
    main {
        padding: var(--spacing-sm) 0;
        padding-bottom: calc(var(--spacing-sm) + 80px); /* Add space for bottom nav */
    }
    
    .glass-panel {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .salary-input-group {
        padding: var(--spacing-sm);
    }
    
    .calculator-wrapper {
        display: block;
    }
    
    .input-section {
        position: static;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    h2 {
        font-size: 22px;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section {
        margin-bottom: var(--spacing-md);
        padding-top: var(--spacing-md);
    }
    
    .hero-section h1 {
        font-size: 24px;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section .lead {
        font-size: 16px;
    }
    
    .section-header-with-flag {
        margin-bottom: var(--spacing-sm);
    }
    
    .form-group {
        margin-bottom: var(--spacing-xs);
    }
    
    .salary-input-group {
        margin-bottom: var(--spacing-sm);
    }
    
    .summary-card {
        padding: var(--spacing-xs);
    }
    
    .salary-input {
        padding: 18px 16px 18px 50px !important;
        font-size: 24px !important;
        min-height: 60px !important;
    }
    
    .currency-prefix {
        left: 20px;
        font-size: 14px;
    }
    
    .salary-label {
        font-size: 16px;
        margin-bottom: var(--spacing-xs);
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .salary-label span {
        font-size: 14px;
    }
    
    .salary-input-container {
        margin-bottom: var(--spacing-sm);
    }
    
    .section-header-with-flag {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .flag-pole-widget {
        width: auto;
        flex-shrink: 0;
    }
    
    .period-select {
        padding: 14px 32px 14px 16px !important;
        font-size: 16px !important;
    }
    
    .form-group input,
    .form-group select:not(.currency-select-inline):not(.currency-select-results) {
        padding: 12px 12px;
        font-size: 14px;
    }
    
    .summary-item {
        padding: 8px 0;
    }
    
    .summary-item .label {
        font-size: 13px;
        min-width: 100px;
    }
    
    .summary-item .value {
        font-size: 16px;
    }
    
    .summary-item.highlight .value {
        font-size: 20px;
    }
    
    .breakdown-table th,
    .breakdown-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .bracket-item {
        padding: var(--spacing-xs);
    }
    
    .currency-select-inline {
        padding: 4px 28px 4px 8px;
        font-size: 12px;
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
    }
    
    .btn-primary {
        padding: 14px 20px;
        font-size: 14px;
        margin-top: var(--spacing-sm);
    }
    
    header {
        padding: var(--spacing-xs) 0;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    .optional-inputs {
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
    }
    
    .optional-inputs h3 {
        font-size: 14px;
        margin-bottom: var(--spacing-xs);
    }
    
    .results-header {
        margin-bottom: var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .results-header h2 {
        font-size: 20px;
    }
    
    .radio-group {
        gap: 6px;
    }
    
    .radio-label {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Comparison Page Styles */
.compare-wrapper {
    margin-top: var(--spacing-sm);
}

.compare-input-section {
    margin-bottom: var(--spacing-lg);
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* Magic paste animation for compare input section */
.compare-input-section.magic-paste {
    animation: magicPaste 0.5s ease-out;
    border-color: var(--color-yellow) !important;
    box-shadow: 
        0 0 0 4px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 80px rgba(147, 51, 234, 0.4),
        0 6px 20px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(255, 215, 0, 0.2) !important;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 250, 230, 1) 30%,
        rgba(255, 255, 255, 1) 60%,
        rgba(230, 240, 255, 1) 100%
    ) !important;
}

.compare-input-section.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    border-color: var(--color-purple) !important;
    box-shadow: 
        0 0 0 4px var(--color-purple-light),
        0 4px 12px rgba(147, 51, 234, 0.3) !important;
}

@keyframes magicPaste {
    0% {
        transform: scale(1);
        border-color: var(--color-gray-light);
    }
    10% {
        transform: scale(1.02);
        border-color: var(--color-yellow);
    }
    30% {
        transform: scale(1);
        border-color: var(--color-purple);
    }
    50% {
        transform: scale(1.01);
        border-color: var(--color-yellow);
    }
    100% {
        transform: scale(1);
        border-color: var(--color-gray-light);
    }
}

/* Sparkle animation for paste effect */
@keyframes sparklePop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Magic shine for salary input in compare page */
#compareSalary.magic-shine {
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: magicShine 0.5s ease-out;
    border-color: var(--color-yellow) !important;
    box-shadow: 
        0 0 0 4px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 80px rgba(147, 51, 234, 0.4),
        0 6px 20px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(255, 215, 0, 0.2) !important;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 250, 230, 1) 50%,
        rgba(255, 255, 255, 1) 100%
    ) !important;
}

#compareSalary.magic-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 15%,
        rgba(255, 215, 0, 0.8) 30%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 215, 0, 0.8) 70%,
        rgba(255, 255, 255, 0.4) 85%,
        transparent 100%
    );
    animation: shimmerSweep 0.5s ease-out;
    z-index: -1;
    pointer-events: none;
}

.comparison-results {
    margin-top: var(--spacing-lg);
}

.comparison-results.hidden {
    display: none;
}

.country-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .country-comparison {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
}

@media (min-width: 1024px) {
    .country-comparison {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

@media (min-width: 1400px) {
    .country-comparison {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }
    
    body:has(.compare-wrapper) .container {
        max-width: 1400px;
    }
}

.country-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.country-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-purple);
}

.country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-gray-light);
    min-width: 0;
    gap: var(--spacing-xs);
}

.country-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-badge {
    padding: 6px 12px;
    background-color: var(--color-green-light);
    border: 1px solid var(--color-green);
    border-radius: var(--radius-md);
    color: var(--color-green);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
    white-space: nowrap;
}

.country-summary {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    min-width: 0;
    width: 100%;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    min-width: 0;
    gap: var(--spacing-xs);
}

.summary-row.small {
    font-size: 12px;
}

.summary-row .label {
    color: var(--color-dark);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    flex-shrink: 0;
    min-width: 0;
}

.summary-row .value {
    color: var(--color-dark);
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    text-align: right;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-row .value.large {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--color-green);
    letter-spacing: -0.01em;
}

.summary-row.checkbox-row {
    justify-content: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-green);
}

.comparison-chart {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.chart-container {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.chart-bar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.bar-label {
    color: var(--color-dark);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.bar-container {
    height: 30px;
    background-color: var(--color-gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-green) 0%, var(--color-purple) 100%);
    border-radius: var(--radius-md);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-value {
    color: var(--color-dark);
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
}

.tax-line-chart {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.tax-line-chart h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    letter-spacing: -0.5px;
}

.chart-tooltip {
    position: absolute;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 180px;
}

.tooltip-header {
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 12px;
}

.tooltip-row:last-child {
    margin-bottom: 0;
}

.tooltip-row span:first-child {
    color: rgba(255, 255, 255, 0.8);
}

.tooltip-row span:last-child {
    font-weight: var(--font-weight-semibold);
}

.data-point:hover {
    opacity: 0.8 !important;
    r: 8;
}

.line-chart-container,
#lineChartContainer {
    width: 100% !important;
    height: 500px !important;
    position: relative;
}

.tax-line-chart .chart-container {
    height: 550px;
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-light);
}

/* Chart.js legend styling */
.tax-line-chart canvas {
    max-height: 500px;
}

/* Chart.js custom legend styling */
.tax-line-chart .chartjs-legend {
    margin-bottom: var(--spacing-md);
}

.tax-line-chart .chartjs-legend li {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.tax-line-chart .chartjs-legend li:hover {
    opacity: 0.8;
}

/* Page Transition Animation */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-light) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Ensure overlay doesn't block clicks when hidden */
.page-transition-overlay:not(.active) {
    pointer-events: none !important;
    display: none !important;
}

/* Force buttons to always be clickable */
.btn-primary,
.btn-secondary,
#compareBtn,
#copyFromSingleBtn {
    position: relative;
    z-index: 10001 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.transition-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.transition-loader {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.loader-circle {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-yellow) 100%);
    animation: loaderBounce 1.4s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.loader-circle:nth-child(1) {
    animation-delay: 0s;
}

.loader-circle:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loaderBounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.2) translateY(-12px);
        opacity: 1;
    }
}

.transition-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 2s ease-in-out infinite;
}

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

/* Navigation link active state for Apple navbar */
.apple-navbar .nav-link.active,
.apple-navbar .mobile-nav-link.active {
    opacity: 1;
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 1);
}

@keyframes navLinkExpand {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Smooth page content fade */
main {
    animation: pageFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced transition for mobile */
@media (max-width: 767px) {
    .page-transition-overlay {
        background: linear-gradient(135deg, var(--color-white) 0%, var(--color-purple-light) 100%);
    }
    
    .loader-circle {
        width: 10px;
        height: 10px;
    }
}
/* Shake Animation for Error */
.salary-input.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    border-color: var(--color-purple) !important;
    box-shadow: 
        0 0 0 4px var(--color-purple-light),
        0 4px 12px rgba(147, 51, 234, 0.3) !important;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background-color: var(--color-white);
    border: 2px solid var(--color-purple);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: 
        0 4px 12px rgba(147, 51, 234, 0.2),
        0 0 0 4px var(--color-purple-light);
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-purple) 0%, var(--color-yellow) 100%);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-purple-light);
    border-radius: var(--radius-full);
    color: var(--color-purple);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
}

.toast-message {
    flex: 1;
    color: var(--color-dark);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: var(--color-gray);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--color-dark);
}

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

.toast.fade-out {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@media (max-width: 767px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Flag Pole Animation */
.section-header-with-flag {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.section-header-with-flag h2 {
    margin-bottom: 0;
}

.flag-pole-widget {
    position: relative;
    width: 60px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Simple Pole */
.pole {
    width: 4px;
    height: 60px;
    background-color: var(--color-gray);
    border-radius: 4px 4px 0 0;
    position: relative;
    z-index: 2;
}

/* Flags Container */
.flags-track {
    position: absolute;
    left: 50%;
    top: 0;
    width: 40px;
    height: 60px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.flag-item {
    position: absolute;
    left: 2px; /* Offset from pole */
    top: 0;
    font-size: 28px;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(100%); /* Start hidden at bottom */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Active State - Flag Raised */
.flag-item.active {
    opacity: 1;
    transform: translateY(0); /* Move to top */
    top: 0;
}

/* Animation for changing flags */
.flag-item.lowering {
    opacity: 0;
    transform: translateY(100%);
}

/* Flag images for browsers that don't support flag emojis (Windows) */
.flag-item.flag-replaced {
    font-size: inherit;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flag-item .flag-img {
    width: 28px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
}

.faq-section h2 {
    margin-bottom: var(--spacing-lg);
    font-size: 28px;
    font-weight: var(--font-weight-bold);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    border-bottom: 1px solid var(--color-gray-light);
    padding-bottom: var(--spacing-md);
}

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

.faq-question {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    position: relative;
    padding-right: var(--spacing-lg);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--color-purple);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: var(--spacing-sm);
}

.faq-answer p {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.faq-answer a {
    color: var(--color-purple);
    text-decoration: underline;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-yellow-light) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cta-box h2 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.cta-box p {
    color: var(--color-gray);
    margin-bottom: var(--spacing-lg);
}

.cta-box .btn-primary,
.cta-box .btn-secondary {
    margin: var(--spacing-xs);
    display: inline-block;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-yellow-light) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cta-section h2 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.cta-section p {
    color: var(--color-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.cta-section .btn-primary {
    margin: var(--spacing-md) 0;
    display: inline-block;
    width: auto;
    padding: 16px 32px;
}

.cta-section .btn-secondary {
    margin: var(--spacing-md) 0;
    display: inline-block;
    width: auto;
    padding: 16px 32px;
}

/* Blog List Styles */
.blog-list {
    margin: var(--spacing-xl) 0;
}

.blog-list h2 {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
    color: var(--color-dark);
}

.blog-list h2:first-child {
    margin-top: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.blog-card {
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-purple);
}

.blog-card h3 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card h3 a:hover {
    color: var(--color-purple);
}

.blog-card p {
    color: var(--color-gray);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.6;
    font-size: 15px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 14px;
    color: var(--color-gray);
    margin-top: var(--spacing-sm);
}

.blog-meta span {
    display: inline-block;
}

.blog-footer {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: space-between;
    align-items: flex-start;
}

.blog-tags,
.blog-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: 14px;
    color: var(--color-gray);
}

.blog-tags span,
.blog-share span {
    font-weight: var(--font-weight-semibold);
    color: var(--color-black);
}

.blog-tags a,
.blog-share a {
    text-decoration: none;
    color: var(--color-dark);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: var(--font-weight-medium);
}

.blog-tags a:hover,
.blog-share a:hover {
    border-color: var(--color-gray-light);
    background: #f8fafc;
}

@media (max-width: 640px) {
    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Article Styles for Country Pages */
article {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

article h1 {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
}

article .lead {
    font-size: 20px;
    color: var(--color-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

article section {
    margin-bottom: var(--spacing-xl);
}

article h2 {
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-lg);
    color: var(--color-dark);
}

article h3 {
    font-size: 22px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
    color: var(--color-dark);
}

article ul,
article ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

article li {
    margin-bottom: var(--spacing-xs);
    color: var(--color-gray);
}

article li strong {
    color: var(--color-dark);
    font-weight: var(--font-weight-semibold);
}

article p {
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--color-gray);
}

article a {
    color: var(--color-purple);
    text-decoration: underline;
}

/* Social Share Buttons */
.social-share {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--color-gray-light);
    border-radius: var(--radius-lg);
}

.social-share h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.share-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-white);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-twitter {
    background-color: #1DA1F2;
}

.share-twitter:hover {
    background-color: #1a8cd8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-facebook {
    background-color: #1877F2;
}

.share-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-linkedin {
    background-color: #0077B5;
}

.share-linkedin:hover {
    background-color: #006399;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-copy {
    background-color: var(--color-gray);
}

.share-copy:hover {
    background-color: var(--color-dark-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer Styles */
footer {
    background-color: var(--color-gray-light);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-gray-light);
}

footer .container {
    text-align: center;
}

footer p {
    color: var(--color-gray);
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
}

.footer-links {
    margin: var(--spacing-md) 0;
}

.footer-links a {
    color: var(--color-purple);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-dark);
    text-decoration: underline;
}

.footer-trust {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-gray-light);
}

.footer-trust small {
    color: var(--color-gray);
    font-size: 12px;
}

/* FAQ Toggle JavaScript */
@media (max-width: 767px) {
    .faq-section {
        padding: var(--spacing-md);
    }
    
    .faq-section h2 {
        font-size: 24px;
    }
    
    .cta-box {
        padding: var(--spacing-lg);
    }
    
    article h1 {
        font-size: 28px;
    }
    
    article .lead {
        font-size: 18px;
    }
}

/* ============================================
   SALARY BREAKDOWN PAGES STYLES
   ============================================ */

/* Hero Section for Salary Pages */
.hero-section {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 0.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .last-updated {
    font-size: 0.9rem;
    color: var(--color-green);
    font-weight: 500;
}

/* Salary Breakdown Card */
.salary-breakdown {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.salary-breakdown h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
}

.breakdown-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--color-gray-light);
    transition: transform 0.2s ease;
}

.breakdown-item:hover {
    transform: translateX(4px);
}

.breakdown-item .label {
    font-weight: 500;
    color: var(--color-dark);
}

.breakdown-item .value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-dark);
}

.breakdown-item.total {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-left: 4px solid var(--color-purple);
}

.breakdown-item.negative {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
}

.breakdown-item.negative .value {
    color: #DC2626;
}

.breakdown-item.total-deductions {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
}

.breakdown-item.total-deductions .value {
    color: #D97706;
    font-weight: 700;
}

.breakdown-item.net {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-left: 4px solid var(--color-green);
    padding: 1.25rem 1.5rem;
}

.breakdown-item.net .value.big {
    font-size: 1.75rem;
    font-weight: 700;
    color: #059669;
}

/* Effective Rate Section */
.effective-rate {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-gray-light);
    border-radius: var(--radius-md);
}

.effective-rate h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.effective-rate p {
    color: var(--color-gray);
    font-size: 1rem;
}

.effective-rate strong {
    color: var(--color-green);
    font-weight: 700;
}

/* Period Grid (Monthly, Weekly, etc.) */
.by-period {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.by-period h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
}

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

.period-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--color-gray-light);
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.period-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.period-card h3 {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.period-card .period-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.period-card .period-note {
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* Tax Calculation Table */
.tax-calculation {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.tax-calculation h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.tax-calculation p {
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.tax-calculation table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.tax-calculation th,
.tax-calculation td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-light);
}

.tax-calculation th {
    background: var(--color-gray-light);
    font-weight: 600;
    color: var(--color-dark);
}

.tax-calculation tr:hover {
    background: rgba(0,0,0,0.02);
}

.tax-calculation .total-row {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    font-weight: 700;
}

.tax-calculation .total-row td {
    border-bottom: none;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
}

.cta-section h2 {
    font-size: 1.75rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: var(--color-dark-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--color-purple);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: white;
    color: var(--color-dark);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--color-gray-light);
    transition: all 0.2s ease;
}

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

/* Responsive adjustments for salary pages */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .salary-breakdown,
    .by-period,
    .tax-calculation {
        padding: var(--spacing-md);
    }
    
    .breakdown-item .value.big {
        font-size: 1.5rem;
    }
    
    .period-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .period-card .period-amount {
        font-size: 1.35rem;
    }
    
    .cta-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}
