/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c8102e;
    --primary-dark: #a00d24;
    --gold: #d4a531;
    --gold-light: #f0d060;
    --dark: #0a0a0a;
    --dark-2: #141414;
    --dark-3: #1e1e1e;
    --gray-100: #f7f7f8;
    --gray-200: #e8e8ea;
    --gray-400: #9a9aa0;
    --gray-600: #5a5a60;
    --white: #ffffff;
    --green: #22c55e;
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--white);
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: background 0.3s;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand-nokta { color: var(--dark); }
.brand-doviz { color: var(--primary); }

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.navbar-menu a {
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar-menu a:hover {
    color: var(--dark);
    background: rgba(0,0,0,0.05);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f5 50%, #f0f2f6 100%);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: none;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: none;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 140px 0 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(200, 16, 46, 0.06);
    border: 1px solid rgba(200, 16, 46, 0.12);
    padding: 8px 18px;
    border-radius: 24px;
    margin-bottom: 24px;
}

.hero-badge svg {
    stroke: var(--primary);
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title-sub {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    color: var(--gray-400);
}

.hero-nokta {
    background: linear-gradient(135deg, var(--primary), #ff4060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero right - info cards */
.hero-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-info-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.hic-1 { background: var(--white); }
.hic-2 { background: var(--white); }
.hic-3 { background: var(--white); }

.hic-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}

.hic-1 .hic-icon { background: rgba(200,16,46,0.08); color: var(--primary); }
.hic-2 .hic-icon { background: rgba(212,165,49,0.1); color: var(--gold); }
.hic-3 .hic-icon { background: rgba(0,0,0,0.05); color: var(--dark); }

.hic-label {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}

.hic-desc {
    font-size: 13px;
    color: var(--gray-400);
}

/* Hero stats bar */
.hero-stats-bar {
    position: relative;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 28px 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.03);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.stat-label {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(0,0,0,0.08);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-decoration: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid rgba(0,0,0,0.15);
}

.btn-outline:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.3);
}

.btn-white {
    background: var(--white);
    color: var(--dark);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
}

.nav-phone {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* ========== SECTION COMMON ========== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

.tag-dot-gold {
    background: var(--gold);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.title-accent {
    color: var(--primary);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto;
}

/* ========== RATES SECTION ========== */
.rates-section {
    padding: 100px 0;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.rates-section .section-title {
    color: var(--dark);
}

.section-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.decor-line {
    position: absolute;
    background: linear-gradient(180deg, transparent, rgba(200,16,46,0.05), transparent);
}

.decor-line-1 {
    width: 1px;
    height: 100%;
    left: 15%;
}

.decor-line-2 {
    width: 1px;
    height: 100%;
    right: 15%;
}

.rates-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

.rates-card-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200,16,46,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.rates-footer {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 8px;
}

.tabs {
    display: flex;
    background: var(--gray-100);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    background: none;
    position: relative;
}

.tab:hover {
    color: var(--dark);
    background: rgba(0,0,0,0.03);
}

.tab.active {
    color: var(--dark);
    background: var(--white);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.tab svg {
    opacity: 0.5;
}

.tab.active svg {
    opacity: 1;
    stroke: var(--primary);
}

.rate-table {
    padding: 8px 20px 20px;
}

.rate-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 4px;
    border-radius: var(--radius);
    transition: background 0.15s;
}

.rate-row:hover:not(.rate-header) {
    background: var(--gray-100);
}

.rate-header {
    padding: 12px 20px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-radius: 0;
}

.rate-header .rate-cell {
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rate-cell {
    flex: 1;
    font-weight: 600;
}

.name-cell {
    flex: 1.3;
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
}

.bid-cell {
    text-align: right;
    color: #16a34a;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.ask-cell {
    text-align: right;
    color: var(--primary);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.rates-disclaimer {
    text-align: center;
    padding: 16px 20px;
    font-size: 12px;
    color: var(--gray-400);
    border-top: 1px solid rgba(0,0,0,0.06);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px;
    color: var(--gray-400);
    font-size: 14px;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== ABOUT ========== */
.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.fi-gold { background: rgba(212,165,49,0.08) !important; color: var(--gold) !important; }
.fi-dark { background: var(--dark) !important; color: var(--white) !important; border-radius: 12px; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag,
.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.06);
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--primary);
}

.feature strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.feature p {
    font-size: 13px;
    color: var(--gray-400);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image-area {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.about-img-bg {
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(200,16,46,0.06), rgba(212,165,49,0.06));
    border-radius: 32px;
    border: 1px solid rgba(200,16,46,0.08);
}

.about-card-stack {
    position: relative;
    width: 100%;
    min-height: 360px;
    padding: 20px;
}

.about-card {
    position: absolute;
    width: 200px;
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: scale(1.05);
}

.about-card svg {
    margin-bottom: 8px;
    opacity: 0.6;
}

.card-number {
    display: block;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 2px;
}

.card-text {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.7;
}

.card-1 {
    top: 20px;
    left: 20px;
    background: var(--dark);
    color: var(--white);
    z-index: 3;
}

.card-1 .card-number { color: var(--primary); }
.card-1 svg { stroke: var(--primary); }

.card-2 {
    top: 120px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    z-index: 2;
}

.card-3 {
    bottom: 20px;
    left: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    z-index: 1;
}

.card-3 svg { stroke: var(--dark); }

/* ========== SERVICES ========== */
.services-section {
    padding: 100px 0;
    background: var(--white);
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

.services-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 48px 48px;
    pointer-events: none;
}

.services-section .section-tag {
    color: var(--primary);
}

.services-section .section-title {
    color: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s;
}

.service-card:hover {
    background: var(--gray-100);
    transform: translateY(-4px);
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.12);
    border-radius: 14px;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200,16,46,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.si-gold {
    background: rgba(212,165,49,0.12) !important;
    color: var(--gold) !important;
}

.service-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-400);
    background: var(--gray-100);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 4px 12px;
    border-radius: 6px;
}

/* ========== CTA SECTION ========== */
.cta-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.cta-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ci-primary {
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* ========== CONTACT ========== */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-tag,
.contact-info .section-title {
    text-align: left;
}

.contact-desc {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.06);
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary);
    font-weight: 600;
}

.contact-map {
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-200);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 60px 0 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-tcmb {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(200, 16, 46, 0.06);
    padding: 4px 12px;
    border-radius: 6px;
    margin-top: 8px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-contact p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--primary);
    font-weight: 600;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
}

/* ========== ADMIN STYLES ========== */
.admin-body {
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.admin-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.admin-panel {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.admin-header h2 {
    font-size: 20px;
    color: #333;
}

.rate-group {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.rate-group legend {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    padding: 0 8px;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 8px;
    font-size: 13px;
    color: #666;
    border-bottom: 2px solid #eee;
}

.admin-table td {
    padding: 8px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-panel .section-title {
    font-size: 18px;
    color: #333;
    margin: 24px 0 4px;
}

.admin-panel .section-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.input-small {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
}

.input-field {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 12px;
}

.admin-panel .btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.admin-panel .btn-primary:hover {
    background: var(--primary-dark);
}

.btn-save {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.btn-logout {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-box h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

.error-msg {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 12px;
}

.success-msg {
    background: #d4edda;
    color: #155724;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.divider {
    border: none;
    border-top: 2px solid #eee;
    margin: 30px 0;
}

.config-table { font-size: 13px; }
.config-table td { padding: 6px 4px; }
.checkbox-big { width: 18px; height: 18px; cursor: pointer; }
.input-medium { width: 140px; padding: 5px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.input-select { padding: 5px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.input-tiny { width: 50px; padding: 5px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; text-align: center; }
.row-disabled { opacity: 0.45; }
.ws-code { color: #999; font-weight: 400; }

/* Admin page tabs */
.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}
.admin-tab {
    padding: 10px 24px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.admin-tab:hover { color: #333; }
.admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Mode select in rate adjustments */
.mode-select { width: 80px; padding: 5px 4px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.adj-inputs { display: inline-block; }
.adj-result { font-weight: 700; color: #1a7f37; }
.adj-result .input-small {
    font-weight: 700;
    color: #1a7f37;
    border: 1px dashed #b0d4b0;
    background: #f6fff6;
}
.ref-row .adj-result .input-small {
    color: #b7914c;
    border-color: #e0c88a;
    background: #fffdf5;
}

/* Referans satırı (GAUTRY) - diğerlerinden ayrı renk */
.ref-row { background: #fff8e1; }
.ref-row td { border-bottom-color: #ffe082; }
.ref-row .adj-result { color: #b7914c; font-weight: 800; }

/* GAUTRY reference box */
.gautry-ref-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.gautry-val {
    font-weight: 700;
    color: #b7914c;
}

/* ========== KAYNAK SEÇİCİ ========== */
.source-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 8px 14px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.source-label {
    font-size: 13px;
    font-weight: 700;
    color: #666;
}
.source-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.source-option:hover { border-color: #aaa; }
.source-option.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.source-option input[type="radio"] { display: none; }

.admin-top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.admin-top-bar .source-selector,
.admin-top-bar .refresh-setting {
    margin-bottom: 0;
}
.refresh-setting {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.refresh-input {
    width: 70px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #fff;
    text-align: center;
}
.refresh-input:focus {
    outline: none;
    border-color: var(--primary);
}
.refresh-save {
    padding: 5px 14px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.refresh-save:hover {
    filter: brightness(1.1);
}

/* ========== HIZLI AYAR ========== */
.quick-group { border: none; padding: 0; margin-bottom: 12px; }
.quick-group legend { margin-bottom: 6px; }

.quick-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}

.quick-name {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    min-width: 0;
}

.quick-fields {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.quick-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.quick-field label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quick-input {
    width: 90px;
    padding: 8px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    background: #fafafa;
    transition: border-color 0.2s;
}
.quick-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

@media (max-width: 768px) {
    .quick-row { gap: 8px; padding: 8px 0; }
    .quick-name { font-size: 14px; }
    .quick-input { width: 80px; font-size: 16px; padding: 10px 6px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .navbar-menu.open {
        display: flex;
    }

    .navbar-menu a {
        padding: 12px 16px;
        font-size: 16px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 120px 0 40px;
    }

    .hero-right {
        display: none;
    }

    .hero-bg-overlay {
        background: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-title-sub {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat-num {
        font-size: 18px;
    }

    .stat-divider {
        display: none;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tab {
        font-size: 13px;
        padding: 14px 8px;
        gap: 6px;
    }

    .tab svg {
        width: 16px;
        height: 16px;
    }

    .rate-row {
        padding: 14px 12px;
    }

    .name-cell {
        font-size: 13px;
    }

    .bid-cell, .ask-cell {
        font-size: 14px;
    }

    .rate-table {
        padding: 8px 12px 16px;
    }

    /* ===== ADMIN PANEL MOBİL ===== */
    .admin-container { padding: 10px; }
    .admin-panel { padding: 14px; border-radius: 6px; }
    .admin-header h2 { font-size: 18px; }

    .admin-tabs { gap: 0; }
    .admin-tab { padding: 10px 14px; font-size: 15px; }

    .rate-group { padding: 8px; overflow-x: visible; }
    .rate-group legend { font-size: 16px; }

    .section-title { font-size: 18px !important; }
    .section-desc { font-size: 14px !important; }

    .login-box { margin: 40px 16px; padding: 24px 20px; }

    /* Oran tablosu → kart görünümü */
    .admin-table thead { display: none; }
    .admin-table { min-width: 0; }

    .admin-table .rate-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 0;
        background: #fff;
    }
    .admin-table .rate-card.ref-row { background: #fff8e1; border-color: #ffe082; }

    .admin-table .rate-card td {
        display: flex;
        flex-direction: column;
        padding: 6px 10px;
        border-bottom: none;
        font-size: 15px;
    }

    .admin-table .rate-card td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 2px;
    }

    /* İsim satırı: tam genişlik */
    .admin-table .rate-card .cell-name {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 10px 10px;
        font-size: 16px;
        background: #f8f8f8;
        border-radius: 8px 8px 0 0;
        border-bottom: 1px solid #eee;
    }
    .admin-table .rate-card.ref-row .cell-name {
        background: #fff3d0;
    }

    /* Mod satırı: tam genişlik */
    .admin-table .rate-card .cell-mod {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-top: 1px solid #f0f0f0;
    }

    /* Çift sütunlar yan yana */
    .admin-table .rate-card .cell-pair { }
    .admin-table .rate-card td[data-label="ALB Alış"],
    .admin-table .rate-card td[data-label="ALB Satış"] { font-size: 17px; font-weight: 700; }

    .admin-table .rate-card .input-small { width: 100%; font-size: 15px; padding: 8px; }
    .admin-table .rate-card .mode-select { width: auto; font-size: 15px; padding: 6px 8px; }
    .admin-table .rate-card .adj-inputs { width: 100%; }
    .admin-table .rate-card .adj-inputs .input-small { width: 100%; }

    .input-medium { width: 110px; font-size: 12px; }
    .input-tiny { width: 40px; font-size: 12px; }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .about-card-stack {
        width: 260px;
        height: 300px;
    }

    .about-card {
        width: 180px;
        padding: 24px;
    }

    .card-number {
        font-size: 28px;
    }

    /* ===== ADMIN PANEL KÜÇÜK EKRAN ===== */
    .admin-container { padding: 6px; }
    .admin-panel { padding: 10px; }
    .admin-header { flex-direction: column; gap: 8px; align-items: flex-start; }

    .admin-tabs { flex-wrap: wrap; }
    .admin-tab { padding: 8px 12px; font-size: 12px; flex: 1; text-align: center; }

    .admin-table .rate-card td { padding: 5px 8px; font-size: 12px; }
    .admin-table .rate-card .cell-name { padding: 6px 8px; }

    .config-table { min-width: 520px; }
    .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .config-table td, .config-table th { padding: 5px 3px; font-size: 11px; }
}
