@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #F8FAFC;
    color: #1E293B;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; }

/* ÜST ADMİN BAKIM MODU UYARI ÇUBUĞU */
.maintenance-banner {
    background-color: #DC2626;
    color: #FFFFFF;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ÜST MENÜ (NAVBAR) */
.navbar {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    color: #0F172A;
    letter-spacing: -0.5px;
}

.logo-container img {
    height: 42px;
    width: 42px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

.logo-fallback {
    height: 42px;
    width: 42px;
    background-color: #E11D48;
    color: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-coupon-btn {
    background-color: #FFF1F2;
    color: #E11D48 !important;
    border: 1px solid #FECDD3;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.nav-coupon-btn:hover {
    background-color: #FFE4E6;
    transform: translateY(-1px);
}

.nav-link-item {
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link-item:hover {
    color: #E11D48;
    background-color: #F1F5F9;
}

.btn-primary {
    background-color: #E11D48;
    color: #FFFFFF !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.2);
}

.btn-primary:hover {
    background-color: #BE123C;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: #F8FAFC;
    color: #0F172A !important;
    border: 1px solid #CBD5E1;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background-color: #E2E8F0;
}

/* ANA KONTEYNER */
.container {
    max-width: 1140px;
    width: 100%;
    margin: 30px auto;
    padding: 0 18px 80px 18px;
    flex: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
}

.section-header p {
    color: #64748B;
    font-size: 0.95rem;
}

/* KUPON KARTLARI */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.coupon-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
}

.stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}
.stripe.red { background-color: #EF4444; }
.stripe.green { background-color: #10B981; }

.card-content {
    padding: 18px 20px 16px 26px;
    flex-grow: 1;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.badge {
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge.pink { background-color: #FFF1F2; color: #E11D48; }
.badge.blue { background-color: #EFF6FF; color: #2563EB; }
.badge.green { background-color: #ECFDF5; color: #059669; }
.badge.reddish { background-color: #FEF2F2; color: #DC2626; }
.badge.purple { 
    background-color: #5B21B6; 
    color: #FFFFFF; 
    margin-left: auto;
    padding: 4px 12px;
    box-shadow: 0 2px 6px rgba(91, 33, 182, 0.3);
}

.middle-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-box {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    flex-shrink: 0;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.15);
}
.icon-box.red { background: linear-gradient(135deg, #FB7185, #E11D48); color: #FFFFFF; }
.icon-box.green { background: linear-gradient(135deg, #34D399, #059669); color: #FFFFFF; }
.icon-box.blue { background: linear-gradient(135deg, #60A5FA, #2563EB); color: #FFFFFF; }

.text-content h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
    line-height: 1.3;
}

.text-content p {
    font-size: 0.86rem;
    color: #64748B;
    font-weight: 500;
}

.bottom-bar {
    border-top: 1px solid #F1F5F9;
    padding: 13px 20px 13px 26px;
    background-color: #FFFFFF;
}

.layout-1 {
    display: flex;
    align-items: center;
}
.layout-1 > div {
    flex: 1;
    text-align: center;
}
.layout-1 .left-stat {
    border-right: 1px solid #F1F5F9;
}
.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0F172A;
}
.stat-label {
    font-size: 0.78rem;
    color: #94A3B8;
    font-weight: 500;
}

.layout-2 {
    text-align: center;
}
.layout-2 .price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}
.green-dot {
    width: 9px;
    height: 9px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.layout-2 .stat-label {
    font-size: 0.8rem;
    color: #94A3B8;
}
.text-green { color: #059669 !important; font-weight: 700; }

/* FORMLAR (Giriş & Kayıt) */
.form-container {
    max-width: 460px;
    width: 100%;
    margin: 10px auto;
    background: #FFFFFF;
    padding: 34px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 24px;
}
.form-header img {
    height: 58px;
    width: 58px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}
.form-header h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0F172A;
}
.form-header p {
    font-size: 0.88rem;
    color: #64748B;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 16px;
}
.form-group.row {
    display: flex;
    gap: 12px;
}
.form-group.row > div {
    flex: 1;
}

label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0F172A;
    background-color: #FFFFFF;
    outline: none;
    transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: #E11D48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 17px;
    height: 17px;
    accent-color: #E11D48;
    flex-shrink: 0;
    cursor: pointer;
}
.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.45;
}

.btn-block {
    width: 100%;
    padding: 13px;
    font-size: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748B;
}
.form-footer a {
    color: #E11D48;
    font-weight: 700;
}

/* UYARI VE HUKUKİ KUTULAR */
.alert {
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-error {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}
.alert-pending {
    background-color: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
}
.alert-success {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.legal-warning-box {
    background-color: #FFF1F2;
    border: 1px solid #FECDD3;
    border-left: 4px solid #E11D48;
    color: #881337;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    line-height: 1.55;
}
.legal-warning-box strong {
    display: block;
    color: #E11D48;
    font-size: 0.86rem;
    margin-bottom: 4px;
}

/* SHOPIER ÖDEME KUTUSU */
.shopier-box {
    background-color: #F8FAFC;
    border: 2px dashed #CBD5E1;
    padding: 18px;
    border-radius: 12px;
    margin-top: 15px;
    margin-bottom: 18px;
    text-align: center;
}
.shopier-box p {
    font-size: 0.86rem;
    color: #334155;
    margin-bottom: 12px;
}
.btn-shopier {
    background-color: #10B981;
    color: #FFFFFF !important;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
    transition: all 0.2s;
}
.btn-shopier:hover {
    background-color: #059669;
    transform: translateY(-1px);
}
.shopier-support {
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 12px;
    margin-bottom: 0 !important;
}
.shopier-support a {
    color: #0088cc;
    font-weight: 700;
}

/* ADMİN PANELİ */
.admin-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    padding: 20px 24px;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-maintenance-on {
    background-color: #F59E0B;
    color: #FFFFFF;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
}
.btn-maintenance-off {
    background-color: #10B981;
    color: #FFFFFF;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.stat-card {
    background: #FFFFFF;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-card-info h4 {
    font-size: 0.82rem;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 4px;
}
.stat-card-info span {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0F172A;
}
.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 10px;
    overflow-x: auto;
}
.tab-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748B;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.tab-btn.active {
    background: #E11D48;
    color: #FFFFFF;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.admin-card {
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    padding: 22px;
    margin-bottom: 22px;
}
.admin-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}
.admin-table th, .admin-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.88rem;
}
.admin-table th {
    background-color: #F8FAFC;
    font-weight: 700;
    color: #475569;
    font-size: 0.78rem;
    text-transform: uppercase;
}
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}
.status-pending { background: #FEF3C7; color: #92400E; }
.status-approved { background: #D1FAE5; color: #065F46; }
.status-rejected { background: #FEE2E2; color: #991B1B; }

.action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-small {
    padding: 6px 11px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-accept { background-color: #10B981; }
.btn-reject { background-color: #EF4444; }
.btn-edit { background-color: #3B82F6; }
.btn-delete { background-color: #64748B; }

/* MODAL PENCERE */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #64748B;
    cursor: pointer;
}

/* SAĞ ALT CANLI DESTEK (TELEGRAM) */
.live-support {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0088cc;
    color: #FFFFFF !important;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.35);
    transition: all 0.2s;
    z-index: 1000;
}
.live-support:hover {
    transform: translateY(-2px);
    background-color: #0077b5;
}
.live-support i {
    font-size: 1.2rem;
}

/* MOBİL UYUMLULUK (TELEFON EKRANLARI İÇİN ÖZEL KURALLAR) */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .logo-container {
        justify-content: center;
    }
    .nav-links {
        justify-content: center;
        gap: 8px;
    }
    .nav-coupon-btn, .nav-link-item, .btn-primary, .btn-outline {
        font-size: 0.84rem;
        padding: 8px 12px;
    }
    .container {
        margin: 18px auto;
        padding: 0 12px 85px 12px;
    }
    .form-container {
        padding: 22px 18px;
    }
    .coupons-grid {
        grid-template-columns: 1fr;
    }
    .form-group.row {
        flex-direction: column;
        gap: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .admin-top-bar {
        flex-direction: column;
        text-align: center;
    }
    .live-support {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}