/*
 * ╔══════════════════════════════════════════════╗
 * ║   OR6.NET - Modern CSS                       ║
 * ║   Mobile-first, Bootstrap 5 compatible       ║
 * ║   Developed by Kececi                        ║
 * ╚══════════════════════════════════════════════╝
 */

/* Bootstrap Primary Color Override - AMBER/YELLOW */
.text-primary { color: #d97706 !important; }
.bg-primary { background-color: #d97706 !important; }
.bg-primary.bg-opacity-10 { background-color: rgba(217,119,6,.1) !important; }
.btn-primary { background-color: #d97706 !important; border-color: #d97706 !important; }
.btn-primary:hover { background-color: #b45309 !important; border-color: #b45309 !important; }
.btn-outline-primary { color: #d97706 !important; border-color: #d97706 !important; }
.btn-outline-primary:hover { background-color: #d97706 !important; color: #fff !important; }
.border-primary { border-color: #d97706 !important; }
a { color: #b45309; }
a:hover { color: #92400e; }

/* Root variables - YELLOW / AMBER color palette */
:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --primary-light: #fffbeb;
    --secondary: #64748b;
    --accent: #2563eb;
    --success: #10b981;
    --danger: #ef4444;
    --light: #fffdf7;
    --dark: #1c1917;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
}

/* BODY */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gray-700);
    background: var(--gray-50);
    font-size: 0.95rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* LINKS */
a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }

/* ============================
   NAVBAR - Modern sticky navbar
   ============================ */
.site-navbar {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-navbar .navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-navbar .navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.site-navbar .nav-link {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.15);
}

/* Navbar search */
.navbar-search {
    position: relative;
    flex-shrink: 0;
}
.navbar-search .form-control {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: 0.4rem 0.75rem 0.4rem 2.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    width: 200px;
    transition: all 0.3s;
}
.navbar-search .form-control::placeholder { color: rgba(255,255,255,.6); }
.navbar-search .form-control:focus {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.4);
    width: 260px;
    box-shadow: none;
    color: #fff;
}
.navbar-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.6);
    font-size: 0.85rem;
    z-index: 2;
    pointer-events: none;
}

/* Mega dropdown */
.mega-dropdown {
    min-width: 320px;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-dropdown .dropdown-item {
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    transition: all 0.15s;
}
.mega-dropdown .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.mega-dropdown .dropdown-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        background: rgba(0,0,0,.15);
        border-radius: var(--radius);
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    .site-navbar .nav-link {
        padding: 0.6rem 0.75rem;
    }
    .navbar-search {
        margin-top: 0.5rem;
    }
    .navbar-search .form-control {
        width: 100% !important;
        background: rgba(255,255,255,.2);
    }
    .navbar-search .form-control:focus {
        width: 100% !important;
    }
    .mega-dropdown {
        min-width: auto;
        box-shadow: none;
        background: rgba(255,255,255,.1);
        border-radius: var(--radius-sm);
    }
    .mega-dropdown .dropdown-item {
        color: rgba(255,255,255,.85);
        padding: 0.5rem 0.75rem;
    }
    .mega-dropdown .dropdown-item:hover {
        background: rgba(255,255,255,.1);
        color: #fff;
    }
    .mega-dropdown .dropdown-item i {
        color: rgba(255,255,255,.7);
    }
}

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
    background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #92400e 100%);
    color: white;
    padding: 3.5rem 0 3rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.hero-section .lead {
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero-search {
    max-width: 560px;
    margin: 0 auto;
}

.hero-search .input-group {
    background: rgba(255,255,255,.15);
    border-radius: 50px;
    padding: 4px;
    backdrop-filter: blur(10px);
    flex-wrap: nowrap;
}

.hero-search .form-control {
    background: white;
    border: none;
    border-radius: 50px 0 0 50px !important;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    box-shadow: none;
    color: var(--dark);
    min-width: 0;
    flex: 1;
}

.hero-search .form-control:focus {
    box-shadow: none;
    outline: none;
}

.hero-search .btn {
    border-radius: 0 50px 50px 0 !important;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    background: #fbbf24;
    color: #1c1917;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-search .btn:hover {
    background: #f59e0b;
    color: #1c1917;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
}

.hero-stat {
    text-align: center;
    flex-shrink: 0;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem 1.5rem;
    }
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .hero-section .lead {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    .hero-search {
        max-width: 100%;
    }
    .hero-search .form-control {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    .hero-search .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .hero-stat-value {
        font-size: 1.2rem;
    }
    .hero-stat-label {
        font-size: 0.7rem;
    }
}

/* ============================
   LIVE MARKET TICKER (Homepage)
   ============================ */
.market-section {
    padding: 2rem 0 0.5rem;
}

.market-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.market-section .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-section .section-title i {
    color: var(--accent);
}

.market-section .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-section .live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Market Cards Grid */
.market-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.market-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: block;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: transform 0.3s ease;
    transform: scaleX(0);
}

.market-card:hover::before {
    transform: scaleX(1);
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.market-card.gold::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.market-card.usd::before { background: linear-gradient(90deg, #10b981, #059669); }
.market-card.eur::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.market-card.btc::before { background: linear-gradient(90deg, #f97316, #ea580c); }

.market-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.market-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.market-card.gold .market-card-icon { background: #fffbeb; color: #d97706; }
.market-card.usd .market-card-icon { background: #ecfdf5; color: #059669; }
.market-card.eur .market-card-icon { background: #eff6ff; color: #2563eb; }
.market-card.btc .market-card-icon { background: #fff7ed; color: #ea580c; }

.market-card-change {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.market-card-change.up {
    color: #059669;
    background: #ecfdf5;
}

.market-card-change.down {
    color: #dc2626;
    background: #fef2f2;
}

.market-card-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.market-card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.market-card-sub {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Extended Market Table */
.market-table-section {
    margin-top: 1rem;
}

.market-table-wrap {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.market-table-wrap .table {
    margin: 0;
    font-size: 0.85rem;
}

.market-table-wrap .table thead th {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.7rem 1rem;
    white-space: nowrap;
}

.market-table-wrap .table tbody td {
    padding: 0.65rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.market-table-wrap .table tbody tr:hover {
    background: var(--primary-light);
}

.market-table-wrap .table tbody tr:last-child td {
    border-bottom: none;
}

.market-coin-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-coin-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.market-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.market-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s;
    text-decoration: none !important;
}

.market-link-btn.gold-btn {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}
.market-link-btn.gold-btn:hover {
    background: #fef3c7;
    border-color: #fcd34d;
    transform: translateY(-1px);
}

.market-link-btn.doviz-btn {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.market-link-btn.doviz-btn:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    transform: translateY(-1px);
}

.market-link-btn.crypto-btn {
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.market-link-btn.crypto-btn:hover {
    background: #ffedd5;
    border-color: #fdba74;
    transform: translateY(-1px);
}

/* Market shimmer loading */
.market-shimmer {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    height: 20px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.market-shimmer.price-shimmer { width: 120px; height: 28px; margin-bottom: 4px; }
.market-shimmer.name-shimmer { width: 80px; height: 14px; }
.market-shimmer.sub-shimmer { width: 100px; height: 14px; margin-top: 6px; }

/* Market update indicator */
.market-updated {
    font-size: 0.72rem;
    color: var(--gray-400);
    text-align: right;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}

@media (max-width: 991.98px) {
    .market-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .market-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .market-card {
        padding: 1rem 0.85rem;
    }
    .market-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .market-card-price {
        font-size: 1.1rem;
    }
    .market-card-name {
        font-size: 0.72rem;
    }
    .market-card-sub {
        font-size: 0.72rem;
    }
    .market-links {
        gap: 0.5rem;
    }
    .market-link-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
    }
}

/* ============================
   CARDS - General
   ============================ */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    padding: 0.85rem 1.25rem;
}

/* ============================
   CATEGORY CARDS (Homepage)
   ============================ */
.category-card {
    text-align: center;
    padding: 1.75rem 1rem;
    cursor: pointer;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card i {
    font-size: 2.2rem;
    color: var(--primary);
    transition: all 0.3s;
    display: block;
    margin-bottom: 0.5rem;
}

.category-card:hover i {
    transform: scale(1.15);
    color: var(--primary-dark);
}

.category-card h6 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.3;
}

.category-card .calc-count {
    font-size: 0.72rem;
    color: var(--gray-400);
    margin-top: 0.3rem;
}

@media (max-width: 576px) {
    .category-card {
        padding: 1.25rem 0.5rem;
    }
    .category-card i {
        font-size: 1.6rem;
    }
    .category-card h6 {
        font-size: 0.75rem;
    }
}

/* ============================
   CATEGORY SECTION (Homepage list)
   ============================ */
.category-section {
    margin-bottom: 1.75rem;
}

.category-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 0.85rem 1.25rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.category-section .section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-section .section-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.category-section .section-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: var(--primary-light);
    border-radius: 50px;
    transition: all 0.15s;
}

.category-section .section-link:hover {
    background: var(--primary);
    color: white;
}

/* Calculator item in category list */
.calc-grid {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

.calc-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.15s;
    gap: 0.75rem;
}

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

.calc-item:hover {
    background: var(--primary-light);
    padding-left: 1.5rem;
}

.calc-item i {
    font-size: 1.05rem;
    color: var(--primary);
    min-width: 22px;
    text-align: center;
    transition: transform 0.2s;
}

.calc-item:hover i {
    transform: scale(1.1);
}

.calc-item .title {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--gray-700);
}

.calc-item:hover .title {
    color: var(--primary);
}

.calc-item .calc-arrow {
    margin-left: auto;
    color: var(--gray-300);
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.2s;
}

.calc-item:hover .calc-arrow {
    opacity: 1;
    color: var(--primary);
    transform: translateX(3px);
}

/* ============================
   CALCULATOR FORM PAGE
   ============================ */
.calc-form-container {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.calc-form-container .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-bottom: 0.4rem;
}

.calc-form-container .form-control,
.calc-form-container .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--gray-300);
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    transition: all 0.15s;
}

.calc-form-container .form-control:focus,
.calc-form-container .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Hesapla / Sifirla buttons */
.btn-calculate {
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 0.75rem 2.25rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(217,119,6,.3);
}

.btn-calculate:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(217,119,6,.4);
}

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

.btn-reset {
    background: var(--gray-100);
    color: var(--gray-500);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.15s;
}

.btn-reset:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Result box */
#calcResult {
    display: none;
}
#calcResult.show {
    display: block;
}

.result-box {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-top: 1.5rem;
    position: relative;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success), #34d399);
    border-radius: var(--radius) var(--radius) 0 0;
}

.result-box .result-title {
    font-weight: 700;
    color: #065f46;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.result-box .result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.result-box .result-detail {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Result table */
.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.result-table th {
    background: var(--primary);
    color: white;
    padding: 0.65rem 0.85rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.82rem;
}

.result-table td {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--gray-100);
}

.result-table tr:nth-child(even) {
    background: var(--gray-50);
}

.result-table tr:hover {
    background: var(--primary-light);
}

/* ============================
   ARTICLE CONTENT
   ============================ */
.article-content {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.article-content h2 {
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p {
    line-height: 1.8;
    color: var(--gray-600);
}

.article-content ul, .article-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.35rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ============================
   FAQ SECTION
   ============================ */
.faq-section {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.faq-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--dark);
}

.faq-item {
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 0;
}

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

.faq-question {
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    transition: color 0.15s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 0.8rem;
    color: var(--gray-400);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.faq-question.active::after {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding-top: 0.75rem;
    color: var(--gray-500);
    line-height: 1.7;
    font-size: 0.92rem;
}

.faq-answer.show {
    display: block;
}

/* ============================
   DYNAMIC ROWS
   ============================ */
.dynamic-rows-container {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1rem 0.75rem;
}

.dynamic-rows-container > .form-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: block;
}

.dynamic-rows-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dynamic-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.6rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dynamic-row:hover {
    border-color: var(--gray-300);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.dynamic-row:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.dynamic-row .form-control,
.dynamic-row .form-select {
    font-size: 0.85rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
    background: #fff;
}

.dynamic-row .form-control:focus,
.dynamic-row .form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.btn-remove-row {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #ef4444;
    font-size: 0.85rem;
    transition: all 0.15s;
    flex-shrink: 0;
    cursor: pointer;
}

.btn-remove-row:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
    transform: scale(1.1);
}

.btn-add-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px dashed #93c5fd;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    width: 100%;
}

.btn-add-row:hover {
    background: #dbeafe;
    border-color: var(--primary);
    color: var(--primary-dark);
    border-style: solid;
}

.btn-add-row:active {
    transform: scale(0.98);
}

.btn-add-row i {
    font-size: 1rem;
}

/* ============================
   SIDEBAR
   ============================ */
.sidebar .card {
    border-radius: var(--radius);
    overflow: hidden;
}

.sidebar .card-header {
    background: var(--gray-50);
    border-bottom: 2px solid var(--primary-light);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    padding: 0.75rem 1rem;
}

.sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-100);
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    transition: all 0.15s;
}

.sidebar .list-group-item:last-child {
    border-bottom: none;
}

.sidebar .list-group-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 1.15rem;
}

/* ============================
   BREADCRUMB
   ============================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.breadcrumb-item a {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--gray-400);
}

/* ============================
   RADIO GROUP
   ============================ */
.radio-group {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
    font-size: 0.88rem;
    background: white;
}

.radio-group input[type="radio"] {
    accent-color: var(--primary);
}

.radio-group label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.radio-group label:hover {
    border-color: var(--gray-300);
}

/* ============================
   FORM HEADING
   ============================ */
.form-heading {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--primary-light);
    margin-bottom: 0.75rem;
}

/* ============================
   SEARCH HIGHLIGHT
   ============================ */
.search-highlight {
    background: #fef08a;
    padding: 0.1rem 0.25rem;
    border-radius: 3px;
}

/* ============================
   HOMEPAGE ARTICLE (SEO)
   ============================ */
.homepage-article {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.homepage-article h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #f59e0b;
    display: inline-block;
}

.homepage-article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.homepage-article p {
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.homepage-article ul {
    padding-left: 1.25rem;
}

.homepage-article li {
    margin-bottom: 0.4rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================
   POPULAR TOOLS STRIP (Footer)
   ============================ */
.popular-tools-strip {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.75rem 0;
}

.popular-tools-strip h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.popular-tools-strip .tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    transition: all 0.15s;
    font-weight: 500;
}

.popular-tools-strip .tool-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,.7);
    padding: 3rem 0 0;
}

.site-footer h5, .site-footer h6 {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.site-footer p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.site-footer a {
    color: rgba(255,255,255,.6);
    transition: color 0.15s;
}

.site-footer a:hover {
    color: white;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-links li a {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
}

.site-footer .footer-links li a::before {
    content: '›';
    font-size: 1rem;
    color: #f59e0b;
    font-weight: 700;
    line-height: 1;
}

.site-footer .footer-links li a:hover {
    padding-left: 3px;
}

.site-footer .social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.site-footer .social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    font-size: 0.9rem;
    padding: 0;
    transition: all 0.2s;
    color: rgba(255,255,255,.6);
}

.site-footer .social-links a:hover {
    background: #d97706;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,.4);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 0;
    }
    .site-footer .row > div {
        margin-bottom: 1.5rem;
    }
}

/* ============================
   FOOTER CATEGORIES GRID
   ============================ */
.footer-categories {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: 2rem 0;
}

.footer-categories h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    text-align: center;
}

.footer-cat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.5rem;
    text-align: center;
    transition: all 0.2s;
    height: 100%;
}

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

.footer-cat-card i {
    font-size: 1.25rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
}

.footer-cat-card span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gray-700);
    display: block;
    line-height: 1.2;
    word-break: break-word;
}

@media (max-width: 576px) {
    .footer-cat-card {
        padding: 0.6rem 0.3rem;
    }
    .footer-cat-card i {
        font-size: 1.1rem;
    }
    .footer-cat-card span {
        font-size: 0.65rem;
    }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .calc-form-container {
        padding: 1.25rem;
    }
    .result-box .result-value {
        font-size: 1.5rem;
    }
    .article-content,
    .faq-section,
    .homepage-article {
        padding: 1.25rem;
    }
    .site-footer {
        padding: 2rem 0 0;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.9rem;
    }
    .category-card {
        padding: 1rem 0.5rem;
    }
    .category-card i {
        font-size: 1.5rem;
    }
    .calc-item {
        padding: 0.6rem 1rem;
    }
    .dynamic-row {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .dynamic-row .form-control,
    .dynamic-row .form-select {
        min-width: 0;
        flex: 1 1 calc(50% - 0.4rem);
    }
    .btn-remove-row {
        margin-left: auto;
    }
}

/* ============================
   DEVELOPED BY KECECI - BRANDING
   ============================ */
.developer-credit {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 1rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.developer-credit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, #d97706, #eab308, #f59e0b, transparent);
    background-size: 200% 100%;
    animation: devCreditShine 3s linear infinite;
}
@keyframes devCreditShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.developer-credit .dev-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.developer-credit .dev-inner:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(217,119,6,0.3);
    transform: translateY(-1px);
}
.developer-credit .dev-icon {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.developer-credit .dev-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    letter-spacing: 0.03em;
}
.developer-credit .dev-text .dev-name {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    letter-spacing: 0.05em;
}
.developer-credit .dev-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* ============================
   HATA BİLDİR
   ============================ */
.report-bug-strip {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.btn-report-bug {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-report-bug:hover {
    background: #fff1f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-report-bug i.bi-bug {
    font-size: 1rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.btn-report-bug:hover i.bi-bug {
    color: #dc2626;
}

.btn-report-bug i.bi-chevron-right {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.5;
}

.btn-report-bug strong {
    color: #475569;
    font-weight: 600;
    transition: color 0.2s;
}

.btn-report-bug:hover strong {
    color: #dc2626;
}

/* Report Modal */
.report-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 1.1rem;
}

.report-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.report-type-option input[type="radio"] {
    display: none;
}

.report-type-option .rto-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.report-type-option .rto-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.report-type-option input[type="radio"]:checked + .rto-card {
    border-color: #d97706;
    background: #fffbeb;
    color: #92400e;
}

.report-type-option .rto-card i {
    font-size: 1rem;
}

/* ============================
   PRINT
   ============================ */
@media print {
    .site-navbar, .site-footer, .popular-tools-strip, .footer-categories,
    .faq-section, .breadcrumb, .btn-calculate, .btn-reset, .sidebar,
    .developer-credit, .report-bug-strip {
        display: none !important;
    }
    .result-box {
        border: 1px solid #000;
    }
}
