:root {
    --primary: #22c55e;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --border: #e2e8f0;
    --primary-soft: rgba(34,197,94,0.12);
    --primary-glow: rgba(34,197,94,0.25);
}

/* RESET */
* {
    box-sizing: border-box;
}

/* LOGO */
.logo img {
    max-width: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* BACKGROUND */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    z-index: -1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial;
    background: var(--bg);
    color: var(--text);
    margin: 0;
}

/* CONTAINER */
.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

/* TITLE */
h1 {
    font-weight: 600;
    margin-bottom: 20px;
}

/* INPUT */
input {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    display: block;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    font-size: 16px;
}

/* BANK SELECT */
.bank-select {
    margin-top: 15px;
}

.bank-select select {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 16px;
    background: white;
    color: var(--text);
    cursor: pointer;
}

/* SELECTED BANK */
.selected-bank {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 20px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.selected-bank img {
    max-width: 110px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.selected-bank span {
    font-weight: 600;
    font-size: 18px;
}

/* TABLE */
.table-wrapper {
    overflow-x: auto;
    margin-top: 25px;
    border-radius: 15px;
    background: var(--card);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f1f5f9;
    padding: 14px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

tr:hover td {
    background: #f8fafc;
}

/* BEST ROW */
tr.best td {
    background: var(--primary-soft) !important;
}

tr.best td:first-child {
    border-left: 3px solid var(--primary);
}

/* BEST NET */
tr.best-net td {
    background: rgba(59,130,246,0.12) !important;
}

tr.best-net td:first-child {
    border-left: 3px solid #3b82f6;
}

/* ðŸ”¥ TABS FIX + MODERN */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    color: #334155;
    font-weight: 700;
    /* ðŸ”¥ dÃ¼zeltildi */
    font-size: 15px;
    /* ðŸ”¥ font-size fix */
    transition: 0.25s;
}

/* hover */
.tab:hover {
    background: #cbd5e1;
}

/* active */
.tab.active {
    background: var(--primary);
    color: white;
    font-weight: 800;
    box-shadow: 0 0 12px var(--primary-glow);
    transform: translateY(-1px);
}

/* MOBILE */
@media (max-width: 768px) {
    input {
        font-size: 14px;
    }

    th, td {
        font-size: 14px;
    }

    .selected-bank img {
        max-width: 80px;
        max-height: 50px;
    }

    .selected-bank span {
        font-size: 16px;
    }
}


/* 🔥 GRADIENT BORDER EFFECT */

.table-wrapper {
    position: relative;
    border: none; /* eski border kaldırıldı */
    z-index: 0;
}


.table-wrapper::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;

    /* 🔥 primary + random renkler */
    background: linear-gradient(120deg,
        var(--primary),
        #3b82f6,
        #a855f7,
        var(--primary)
    );

    background-size: 300% 300%;
    animation: borderFlow 6s linear infinite;

    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    z-index: -1;
}

/* ✨ glow */

.table-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: linear-gradient(120deg,
        var(--primary),
        #3b82f6,
        #a855f7,
        var(--primary)
    );

    filter: blur(12px);
    opacity: 0.25;
    z-index: -2;
}

/* 🎬 animasyon */
@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
