/* ========================================
   Taşköprü Döviz - Main Stylesheet
   ======================================== */

:root {
    --primary: #1a3a5c;
    --primary-light: #234b74;
    --accent: #d4a017;
    --accent-hover: #e6b422;
    --green: #1e8449;
    --red: #c0392b;
    --text: #2c3e50;
    --text-muted: #6b7c93;
    --bg-dark: #f4f6f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4f8;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Ticker Bar
   ======================================== */
.ticker-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    gap: 40px;
    font-size: 13px;
    font-weight: 500;
}

.ticker-content span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ticker-content .currency-code {
    color: #f7c948;
    font-weight: 700;
}

.ticker-content .rate-up {
    color: var(--green);
}

.ticker-content .rate-down {
    color: var(--red);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Header
   ======================================== */
.header {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.25);
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.header-contact {
    display: flex;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--primary);
}

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    background: var(--primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 87px;
    z-index: 999;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    justify-content: center;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--accent);
}

.nav-list li a i {
    font-size: 14px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #e8eef5 0%, #f4f6f9 50%, #e8eef5 100%);
    padding: 60px 0 50px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 58, 92, 0.05), transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.06), transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h3 {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-address {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 10px;
}

.hero-address i {
    color: var(--accent);
    margin-right: 5px;
}

.hero-notice {
    font-size: 13px;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 35px;
    padding: 8px 20px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    display: inline-block;
}

.hero-notice i {
    margin-right: 5px;
}

.hero-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 220px;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.hero-card:hover {
    background: #ffffff;
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.hero-card-flag {
    font-size: 32px;
}

.hero-card-name {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-card-rate {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 50px 0;
}

.section-dark {
    background: #eaf0f6;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.section-header h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.last-update {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.last-update i {
    color: var(--primary);
}

/* ========================================
   Side by Side Layout
   ======================================== */
.rates-side-by-side {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 25px;
    align-items: start;
}

.rates-col-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    padding: 10px 16px;
    background: #ffffff;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.rates-col-title i {
    color: var(--accent);
}

/* ========================================
   Rates Table
   ======================================== */
.rates-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.rates-table thead th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    padding: 14px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 3px solid var(--accent);
}

.rates-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.rates-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.rates-table tbody tr:last-child {
    border-bottom: none;
}

.rates-table tbody td {
    padding: 12px 20px;
    font-size: 14px;
    vertical-align: middle;
}

.rates-table .currency-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.currency-flag {
    font-size: 24px;
    line-height: 1;
}

.currency-info {
    display: flex;
    flex-direction: column;
}

.currency-code-cell {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.currency-name-cell {
    font-size: 11px;
    color: var(--text-muted);
}

.rate-value {
    font-weight: 600;
    font-family: 'Inter', monospace;
    font-size: 15px;
}

.change-positive {
    color: var(--green);
    font-weight: 600;
    font-size: 13px;
}

.change-negative {
    color: var(--red);
    font-weight: 600;
    font-size: 13px;
}

.change-neutral {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
}

.loading-cell {
    text-align: center;
    padding: 40px !important;
    color: var(--text-muted);
    font-size: 14px;
}

.loader {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Flash animation for rate updates */
.rate-flash-up {
    animation: flashGreen 0.6s ease;
}

.rate-flash-down {
    animation: flashRed 0.6s ease;
}

@keyframes flashGreen {
    0%, 100% { background: transparent; }
    50% { background: rgba(39, 174, 96, 0.15); }
}

@keyframes flashRed {
    0%, 100% { background: transparent; }
    50% { background: rgba(231, 76, 60, 0.15); }
}

/* ========================================
   Converter
   ======================================== */
.converter-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.converter-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.converter-field {
    flex: 1;
    min-width: 200px;
}

.converter-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.converter-field input,
.converter-field select {
    width: 100%;
    padding: 14px 16px;
    background: #f4f6f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    appearance: none;
}

.converter-field select {
    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='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.converter-field input:focus,
.converter-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.1);
}

.converter-swap {
    display: flex;
    align-items: center;
    padding-bottom: 5px;
}

.converter-swap button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.converter-swap button:hover {
    transform: rotate(180deg);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

.converter-result {
    margin-top: 25px;
    padding: 20px;
    background: #f4f6f9;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.result-text {
    font-size: 14px;
    color: var(--text-muted);
}

.result-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.result-detail {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================
   Why Us
   ======================================== */
.why-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.why-us-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: -1px;
    transition: var(--transition);
}

.why-us-item:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.why-us-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 0;
}

.why-us-item:hover {
    background: #f8fafb;
}

.why-us-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #f0f4f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.why-us-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.why-us-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.why-us-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.why-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   Contact
   ======================================== */
.contact-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.contact-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: left;
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: #f4f6f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    float: right;
}

.contact-card-icon i {
    font-size: 22px;
    color: var(--primary);
}

.contact-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-card a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary);
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #1a3a5c;
    border-top: 3px solid var(--accent);
    padding: 50px 0 0;
    color: #ccd6e0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 24px;
    color: #f7c948;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 800;
    color: #f7c948;
}

.footer-col p {
    font-size: 13px;
    color: #a0b0c0;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    padding: 4px 0;
    font-size: 13px;
    color: #a0b0c0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li i {
    color: #f7c948;
    font-size: 12px;
}

.footer-col ul li a {
    color: #a0b0c0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #f7c948;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #a0b0c0;
}

.disclaimer {
    font-size: 11px !important;
    margin-top: 5px;
    color: #f7c948 !important;
    font-weight: 500;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 58, 92, 0.4);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rates-side-by-side {
        grid-template-columns: 1fr;
    }

    .contact-cards-row {
        grid-template-columns: 1fr;
    }

    .why-us-layout {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .header-contact {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #1a3a5c;
        z-index: 2000;
        transition: var(--transition);
        padding-top: 60px;
    }

    .nav.open {
        left: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list li a {
        padding: 15px 25px;
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
    }

    .nav-list li a:hover,
    .nav-list li a.active {
        border-bottom-color: var(--border);
        border-left-color: var(--accent);
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-cards {
        flex-direction: column;
        align-items: center;
    }

    .hero-card {
        width: 100%;
        max-width: 300px;
    }

    .converter-row {
        flex-direction: column;
    }

    .converter-swap {
        justify-content: center;
        transform: rotate(90deg);
    }

    .converter-field {
        min-width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rates-table thead th,
    .rates-table tbody td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .rate-value {
        font-size: 13px;
    }

    .contact-cards-row {
        grid-template-columns: 1fr;
    }

    .why-us-layout {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        max-height: 300px;
        order: -1;
    }

    .contact-map iframe {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 16px;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .section {
        padding: 30px 0;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .converter-box {
        padding: 15px;
    }

    .converter-field input,
    .converter-field select {
        padding: 12px 14px;
        font-size: 14px;
    }

    .result-amount {
        font-size: 22px;
    }

    .rates-col-title {
        font-size: 14px;
        padding: 8px 12px;
    }

    .rates-table thead th,
    .rates-table tbody td {
        padding: 8px 10px;
        font-size: 11px;
    }

    .rate-value {
        font-size: 12px;
    }

    .currency-flag {
        font-size: 18px;
    }

    .currency-code-cell {
        font-size: 12px;
    }

    .currency-name-cell {
        font-size: 9px;
    }

    .why-us-item {
        padding: 20px 16px;
        gap: 14px;
    }

    .why-us-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .why-us-text h3 {
        font-size: 15px;
    }

    .why-us-text p {
        font-size: 13px;
    }

    .contact-card {
        padding: 20px 18px;
    }

    .contact-card-icon {
        width: 40px;
        height: 40px;
    }

    .contact-card h4 {
        font-size: 13px;
    }

    .contact-card p {
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer {
        padding: 30px 0 0;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 15px;
    }

    .ticker-bar {
        height: 35px;
    }

    .ticker-content {
        font-size: 12px;
    }
}

/* ========================================
   Overlay for mobile menu
   ======================================== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
}

.nav-overlay.active {
    display: block;
}

/* ========================================
   Canlı Piyasalar Page
   ======================================== */
.page-title-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 25px 0;
    color: #fff;
}

.page-title-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.page-title-bar h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.page-title-bar h2 i {
    margin-right: 8px;
    color: var(--accent);
}

.page-title-bar .last-update {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-title-bar .last-update span {
    color: #fff;
    font-weight: 600;
}

.refresh-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 8px;
}

.refresh-btn:hover {
    background: rgba(255,255,255,0.25);
}

.spin-active {
    animation: spin 0.5s ease;
}

/* Tabs */
.tab-section {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 130px;
    z-index: 998;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.tab-bar {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(26, 58, 92, 0.03);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* Piyasa Grid */
.piyasa-section {
    padding: 30px 0 50px;
}

.piyasa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.piyasa-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.piyasa-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 14px 20px;
    display: flex;
    align-items: center;
}

.piyasa-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.piyasa-card-header h3 i {
    color: var(--accent);
}

.altin-header {
    background: linear-gradient(135deg, #7d6608, #b8960c);
}

.parite-header {
    background: linear-gradient(135deg, #1a5c3a, #23744b);
}

.ziynet-header {
    background: linear-gradient(135deg, #5c1a3a, #84264f);
}

.piyasa-table-wrap {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.piyasa-table {
    width: 100%;
    border-collapse: collapse;
}

.piyasa-table thead th {
    background: #f4f6f9;
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1;
}

.piyasa-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.piyasa-table tbody tr:hover {
    background: #f8fafb;
}

.piyasa-table tbody td {
    padding: 10px 16px;
    font-size: 13px;
}

.piyasa-table td.num {
    font-weight: 600;
    font-family: 'Inter', monospace;
    text-align: right;
    white-space: nowrap;
}

.piyasa-symbol {
    display: flex;
    flex-direction: column;
}

.piyasa-symbol strong {
    font-size: 13px;
    color: var(--primary);
}

.piyasa-symbol small {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.piyasa-up {
    color: var(--green);
    font-weight: 600;
    font-size: 12px;
}

.piyasa-down {
    color: var(--red);
    font-weight: 600;
    font-size: 12px;
}

.piyasa-neutral {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .piyasa-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title-bar {
        padding: 18px 0;
    }

    .page-title-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title-bar h2 {
        font-size: 18px;
    }

    .tab-section {
        top: 57px;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 12px;
    }

    .piyasa-table tbody td,
    .piyasa-table thead th {
        padding: 8px 10px;
        font-size: 11px;
    }

    .piyasa-symbol strong {
        font-size: 12px;
    }

    .piyasa-symbol small {
        font-size: 9px;
    }

    .piyasa-table-wrap {
        max-height: 450px;
    }

    .piyasa-card-header {
        padding: 12px 16px;
    }

    .piyasa-card-header h3 {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .piyasa-table tbody td,
    .piyasa-table thead th {
        padding: 7px 8px;
        font-size: 10px;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 11px;
    }
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e8eef5;
}

::-webkit-scrollbar-thumb {
    background: #b0bec5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: var(--primary);
    color: #ffffff;
}
