/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Purple/Pink Theme Colors from Hostinger */
    --primary-purple: #6c5ce7;
    --dark-purple: #5f4fd8;
    --light-purple: #a29bfe;
    --pink: #ff6b9d;
    --pink-dark: #ff4d7a;
    --pink-light: #ff8db3;
    --light-pink: #ffeaa7;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --border-color: #dfe6e9;
    --success: #00b894;
    --danger: #d63031;
    --shadow: rgba(108, 92, 231, 0.1);
    --shadow-hover: rgba(108, 92, 231, 0.2);
    --pink-shadow: rgba(255, 107, 157, 0.3);
    --pink-shadow-hover: rgba(255, 107, 157, 0.4);
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    direction: rtl;
}

body[dir="ltr"] {
    direction: ltr;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body[dir="ltr"] button,
body[dir="ltr"] .lang-toggle,
body[dir="ltr"] .city-btn,
body[dir="ltr"] .swap-btn,
body[dir="ltr"] select,
body[dir="ltr"] .input-group select {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Money Background Animation */
.money-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.money-object {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.08;
    color: var(--primary-purple);
    font-weight: 700;
    animation: floatMoney 20s infinite linear;
    user-select: none;
}

.money-object:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
    font-size: 3rem;
}

.money-object:nth-child(2) {
    left: 15%;
    animation-delay: 2s;
    animation-duration: 22s;
    font-size: 2.8rem;
}

.money-object:nth-child(3) {
    left: 25%;
    animation-delay: 4s;
    animation-duration: 28s;
    font-size: 2.5rem;
}

.money-object:nth-child(4) {
    left: 35%;
    animation-delay: 1s;
    animation-duration: 24s;
    font-size: 3.2rem;
}

.money-object:nth-child(5) {
    left: 45%;
    animation-delay: 3s;
    animation-duration: 26s;
    font-size: 2.6rem;
}

.money-object:nth-child(6) {
    left: 55%;
    animation-delay: 5s;
    animation-duration: 23s;
    font-size: 3rem;
}

.money-object:nth-child(7) {
    left: 65%;
    animation-delay: 2.5s;
    animation-duration: 27s;
    font-size: 2.7rem;
}

.money-object:nth-child(8) {
    left: 75%;
    animation-delay: 4.5s;
    animation-duration: 25s;
    font-size: 3.1rem;
}

.money-object:nth-child(9) {
    left: 85%;
    animation-delay: 1.5s;
    animation-duration: 24s;
    font-size: 2.9rem;
}

.money-object:nth-child(10) {
    left: 10%;
    animation-delay: 3.5s;
    animation-duration: 26s;
    font-size: 2.4rem;
}

.money-object:nth-child(11) {
    left: 20%;
    animation-delay: 0.5s;
    animation-duration: 28s;
    font-size: 3.3rem;
}

.money-object:nth-child(12) {
    left: 30%;
    animation-delay: 2.2s;
    animation-duration: 23s;
    font-size: 2.7rem;
}

.money-object:nth-child(13) {
    left: 40%;
    animation-delay: 4.2s;
    animation-duration: 25s;
    font-size: 3rem;
}

.money-object:nth-child(14) {
    left: 50%;
    animation-delay: 1.2s;
    animation-duration: 27s;
    font-size: 2.8rem;
}

.money-object:nth-child(15) {
    left: 60%;
    animation-delay: 3.2s;
    animation-duration: 24s;
    font-size: 3.1rem;
}

.money-object:nth-child(16) {
    left: 70%;
    animation-delay: 5.2s;
    animation-duration: 26s;
    font-size: 2.6rem;
}

.money-object:nth-child(17) {
    left: 80%;
    animation-delay: 0.8s;
    animation-duration: 22s;
    font-size: 2.9rem;
}

.money-object:nth-child(18) {
    left: 90%;
    animation-delay: 2.8s;
    animation-duration: 29s;
    font-size: 3.2rem;
}

.money-object:nth-child(19) {
    left: 12%;
    animation-delay: 4.8s;
    animation-duration: 23s;
    font-size: 2.5rem;
}

.money-object:nth-child(20) {
    left: 22%;
    animation-delay: 1.8s;
    animation-duration: 25s;
    font-size: 3rem;
}

@keyframes floatMoney {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: var(--primary-purple);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo img {
    height: 64px;
    width: auto;
    display: block;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-menu-link {
    color: var(--white) !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    display: inline-block;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s ease-in-out infinite;
}

.header-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.header-menu-link:hover::before {
    left: 100%;
}

.header-menu-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    animation: none;
}

.header-menu-link:visited {
    color: var(--white) !important;
}

.header-menu-link:active {
    color: var(--white) !important;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2),
                    0 0 10px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.4),
                    0 0 20px rgba(255, 255, 255, 0.2),
                    0 0 30px rgba(255, 255, 255, 0.1);
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

body[dir="ltr"] .footer-brand {
    justify-content: flex-start;
}

.footer-logo {
    height: 64px;
    width: auto;
    display: block;
}

.header-controls {
    display: flex;
    gap: 1rem;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
    text-align: center;
}

.hero-section .section-title {
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: right;
}

body[dir="ltr"] .hero-content {
    text-align: left;
}

/* Hero section language switching - JavaScript will handle display */
.hero-section .content-ar {
    display: inline;
}

.hero-section .content-en {
    display: none;
}

.hero-section .hero-content .content-ar {
    display: block;
}

.hero-section .hero-content .content-en {
    display: none;
}

.hero-content p {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-content {
        font-size: 0.95rem;
    }
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

/* City Selector */
.city-selector-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
}

.city-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.city-btn {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.city-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow);
    border-color: var(--primary-purple);
}

.city-btn.active {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: var(--white);
    border-color: var(--pink);
    box-shadow: 0 4px 15px var(--pink-shadow);
}

.date-selector {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(255, 107, 157, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(108, 92, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: dateSelectorFadeIn 0.5s ease-out;
}

.date-selector:hover {
    border-color: rgba(108, 92, 231, 0.2);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.1);
}

.date-selector label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    margin: 0;
}

.date-selector label::before {
    content: '📅';
    font-size: 1.3rem;
    filter: grayscale(0.3);
    transition: transform 0.3s ease;
}

.date-selector:hover label::before {
    transform: scale(1.1) rotate(5deg);
}

.date-label-text {
    display: inline-block;
}

.date-input-wrapper {
    position: relative;
    display: inline-block;
}

/* Animation for date selector appearance */
@keyframes dateSelectorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-selector {
    animation: dateSelectorFadeIn 0.5s ease-out;
}

.date-selector input[type="date"] {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.date-selector input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--pink) 100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.date-selector input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
}

.date-selector input[type="date"]:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 15px var(--shadow);
    transform: translateY(-2px);
}

.date-selector input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15), 0 4px 15px var(--shadow);
    transform: translateY(-2px);
}

/* For Firefox */
.date-selector input[type="date"]::-moz-focus-inner {
    border: 0;
}

/* Responsive design for date selector */
@media (max-width: 768px) {
    .date-selector {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .date-selector label {
        font-size: 1rem;
    }
    
    .date-selector input[type="date"] {
        width: 100%;
        min-width: auto;
    }
}

/* Currency Section */
.currency-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
}

.table-container {
    overflow-x: auto;
}

.currency-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.currency-table thead {
    background: var(--primary-purple);
    color: var(--white);
}

.currency-table th {
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    font-size: 1.1rem;
}

body[dir="ltr"] .currency-table th {
    text-align: left;
}

.currency-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

body[dir="ltr"] .currency-table td {
    text-align: left;
}

.currency-table tbody tr {
    transition: background-color 0.3s ease;
}

.currency-table tbody tr:hover {
    background-color: var(--light-bg);
}

.currency-name {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.currency-flag {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.currency-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: var(--white);
    padding: 2px;
    flex-shrink: 0;
}

.price {
    font-weight: 600;
    color: var(--text-dark);
}

.change {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.change-arrow {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.change.positive {
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--success);
}

.change.negative {
    background-color: rgba(214, 48, 49, 0.1);
    color: var(--danger);
}

.change.neutral {
    background-color: rgba(99, 110, 114, 0.1);
    color: var(--text-light);
}

/* Gold Section */
.gold-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
}

.gold-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.gold-table thead {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: var(--white);
}

.gold-table th {
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    font-size: 1.1rem;
}

body[dir="ltr"] .gold-table th {
    text-align: left;
}

.gold-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

body[dir="ltr"] .gold-table td {
    text-align: left;
}

.gold-table tbody tr {
    transition: background-color 0.3s ease;
}

.gold-table tbody tr:hover {
    background-color: var(--light-bg);
}

/* Calculator Section */
.calculator-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
}

.calculator-card {
    max-width: 700px;
    margin: 0 auto;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto 1.5fr;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: end;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.swap-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.swap-btn {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    border: none;
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--pink-shadow);
}

.swap-btn:hover {
    background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 100%);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 15px var(--pink-shadow-hover);
}

.calculator-result {
    background: var(--primary-purple);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
}

.result-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 45px;
    height: 45px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: rgba(0, 184, 148, 0.3);
    border-color: rgba(0, 184, 148, 0.5);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 50%, var(--pink) 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.9) 0%, rgba(255, 77, 122, 0.9) 50%, rgba(255, 141, 179, 0.9) 100%);
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: right;
}

body[dir="ltr"] .footer-section {
    text-align: left;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-description {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    display: inline-block;
}

.footer-link:hover {
    opacity: 1;
    transform: translateX(-5px);
    padding-right: 0.5rem;
}

body[dir="ltr"] .footer-link:hover {
    transform: translateX(5px);
    padding-right: 0;
    padding-left: 0.5rem;
}

.footer-link-inline {
    color: inherit;
    text-decoration: underline;
    transition: color 0.3s ease;
    opacity: 0.95;
}

.footer-link-inline:hover {
    color: var(--primary-purple);
    opacity: 1;
}

body[dir="ltr"] .footer-link-inline:hover {
    color: var(--primary-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body[dir="ltr"] .footer-bottom {
    text-align: left;
}

.footer-text {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-date {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Calculator Info */
.calculator-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* All Cities Prices Section */
.all-cities-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
}

.cities-prices-content {
    margin-top: 1.5rem;
}

.city-price-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.city-price-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.city-price-title {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-weight: 700;
}

.city-currencies {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.currency-text-line {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.currency-text-line strong {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Chart Section */
.chart-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
}

.chart-container {
    margin-top: 1.5rem;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.chart-controls label {
    font-weight: 600;
    color: var(--text-dark);
}

.chart-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.chart-select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
}

body[dir="ltr"] .chart-select {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Gold Text Section */
.gold-text-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
}

.gold-text-content {
    margin-top: 1.5rem;
}

.text-content-area {
    min-height: 200px;
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    background: var(--light-bg);
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.text-content-area:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.text-content-area:empty:before {
    content: attr(data-placeholder);
    color: var(--text-light);
    opacity: 0.6;
}

.text-content-area p {
    margin-bottom: 1rem;
}

.text-content-area p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .header-menu-link {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .city-buttons {
        flex-direction: column;
    }

    .city-btn {
        width: 100%;
    }

    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .swap-btn-container {
        padding: 0;
    }

    .swap-btn {
        transform: rotate(90deg);
    }

    .swap-btn:hover {
        transform: rotate(270deg) scale(1.1);
    }


    .currency-table {
        font-size: 0.9rem;
    }

    .currency-table th,
    .currency-table td {
        padding: 0.75rem 0.5rem;
    }


    .result-value {
        font-size: 2rem;
    }
    
    .result-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .copy-btn {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-menu-link {
        font-size: 0.85rem;
        padding: 0.35rem 0.8rem;
    }
    
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 1rem 0;
    }

    .city-selector-section,
    .currency-section,
    .gold-section,
    .calculator-section,
    .all-cities-section,
    .gold-text-section {
        padding: 1.5rem;
    }
    
    .gold-prices-list {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.currency-section,
.gold-section,
.calculator-section,
.chart-section,
.all-cities-section,
.gold-text-section {
    animation: fadeIn 0.5s ease-out;
}

