:root {
    --primary: #0b2a4a;
    --secondary: #123a63;
    --accent: #f57c00;
    --accent-dark: #d96d00;
    --light: #f4f6f8;
    --white: #ffffff;
    --text: #1c1c1c;
    --muted: #6b7280;
    --border: #e5e7eb;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--light);
    color: var(--text);
}

/* TOPBAR */
.topbar {
    background: var(--primary);
    color: #dddddd;
    font-size: 14px;
    padding: 8px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
}

.topbar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
}

.topbar a:hover {
    color: var(--accent);
}

/* NAVBAR */
.main-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.navbar-brand {
    color: var(--primary) !important;
    font-weight: 900;
    font-size: 24px;
}

.nav-link {
    color: var(--primary);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--accent);
}

.btn-promo {
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none !important;
    display: inline-block;
}

.btn-promo:hover {
    background: var(--accent-dark);
    color: #fff;
    text-decoration: none !important;
}

/* HERO */
.hero-corporate {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 110px 0;
}

.hero-label {
    background: rgba(245,124,0,0.15);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 900;
}

.hero-corporate h1 {
    font-size: 52px;
    font-weight: 900;
}

.hero-corporate p {
    color: #e2e8f0;
}

/* BUTTON */
.btn-primary {
    background: var(--accent);
    border: none;
    color: #fff;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* HERO CARD */
.hero-card {
    background: #ffffff;
    color: var(--primary) !important;
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid var(--accent);
}

.hero-card h4,
.hero-card p {
    color: var(--primary) !important;
}

/* SECTION */
.section-white {
    background: #ffffff;
    padding: 70px 0;
}

.section-gray {
    background: var(--light);
    padding: 70px 0;
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.section-title span {
    color: var(--accent);
    font-weight: 900;
}

.section-title h2 {
    color: var(--primary);
    font-weight: 900;
}

.section-title p {
    color: var(--muted);
}

/* CATEGORY */
.category-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: var(--text);
    transition: .25s;
}

.category-card:hover {
    transform: translateY(-5px);
    color: var(--text);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.category-icon {
    background: #ffe0cc;
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h4 {
    color: var(--primary);
    font-weight: 900;
}

.category-card p {
    color: var(--muted);
}

/* PROMO */
.promo-section {
    background: var(--primary);
    color: #fff;
    padding: 60px 0;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.promo-content span {
    color: var(--accent);
    font-weight: 900;
}

.promo-content p {
    color: #e2e8f0;
}

/* FOOTER */
footer {
    background: #081c33;
    color: #fff;
}

/* AUTH PAGES */
.auth-section {
    padding: 80px 0;
    background: var(--light);
}

.auth-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
}

.auth-left {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-left span {
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 16px;
}

.auth-left h1 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 18px;
}

.auth-left p {
    color: #e2e8f0;
    font-size: 17px;
    line-height: 1.7;
}

.auth-right {
    padding: 50px;
}

.auth-right h2 {
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 25px;
}

.auth-right label {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.auth-right .form-control {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #d7dde5;
}

.auth-right .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(245,124,0,0.15);
}

.auth-link {
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
}

.auth-link a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.auth-link a:hover {
    color: var(--accent-dark);
}

/* PROMOSYON KODU INPUT */
.promo-code-input {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    text-align: center;
}

/* USER DASHBOARD */
.user-dashboard-section {
    padding: 70px 0;
    background: var(--light);
}

.dashboard-welcome {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 18px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.dashboard-welcome span {
    color: var(--accent);
    font-weight: 900;
}

.dashboard-welcome h1 {
    font-weight: 900;
    margin: 12px 0;
}

.dashboard-welcome p {
    color: #e2e8f0;
    margin: 0;
}

.dashboard-points {
    background: #fff;
    color: var(--primary);
    min-width: 190px;
    text-align: center;
    border-radius: 16px;
    padding: 25px;
}

.dashboard-points small {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.dashboard-points strong {
    display: block;
    font-size: 46px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin: 10px 0;
}

.dashboard-points span {
    color: var(--primary);
    font-weight: 800;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 25px;
}

.dashboard-actions a {
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    text-align: center;
    padding: 18px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-weight: 800;
    transition: .25s;
}

.dashboard-actions a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
}

.dashboard-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    height: 100%;
}

.dashboard-card h3 {
    color: var(--primary);
    font-weight: 900;
    font-size: 22px;
    margin-bottom: 20px;
}

.dashboard-list-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.dashboard-list-item:last-child {
    border-bottom: none;
}

.dashboard-list-item strong {
    display: block;
    color: var(--primary);
}

.dashboard-list-item small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.dashboard-list-item span {
    color: var(--accent);
    font-weight: 900;
    white-space: nowrap;
}

.empty-text {
    color: var(--muted);
    margin: 0;
}

/* ADMIN LAYOUT */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--light);
}

.admin-sidebar {
    width: 270px;
    background: var(--primary);
    color: #fff;
    padding: 28px 20px;
    flex-shrink: 0;
}

.admin-logo {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 35px;
}

.admin-logo span {
    display: block;
    color: var(--accent);
    font-size: 13px;
    margin-top: 4px;
}

.admin-menu a {
    display: block;
    color: #dbe4ef;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 5px;
}

.admin-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.admin-menu .logout-link {
    background: var(--accent);
    color: #fff;
    margin-top: 25px;
}

.admin-content {
    flex: 1;
    padding: 35px;
}

.admin-page-title,
.admin-card,
.admin-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.admin-page-title {
    padding: 28px;
    margin-bottom: 25px;
}

.admin-page-title h1 {
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 6px;
}

.admin-page-title p {
    color: var(--muted);
    margin: 0;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.admin-stat-card {
    padding: 24px;
}

.admin-stat-card span {
    display: block;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 12px;
}

.admin-stat-card strong {
    color: var(--primary);
    font-size: 34px;
    font-weight: 900;
}

.admin-card {
    padding: 26px;
    height: 100%;
}

.admin-card h3 {
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .auth-box {
        grid-template-columns: 1fr;
    }

    .auth-left,
    .auth-right {
        padding: 35px 25px;
    }

    .auth-left h1 {
        font-size: 30px;
    }

    .promo-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-corporate h1 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        padding: 28px;
    }

    .dashboard-points {
        width: 100%;
    }

    .admin-content {
        padding: 20px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* CODE DETAIL BEYAZ ÇERÇEVE KESİN DÜZELTME */
.admin-card.code-detail-box {
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 18px !important;
    margin-bottom: 18px !important;
    display: block !important;
}

.admin-card.code-detail-box .code-detail-buttons {
    margin-bottom: 12px !important;
}

.admin-card.code-detail-box .code-detail-info {
    margin: 0 !important;
}

.admin-card.code-detail-box .code-detail-info div {
    padding: 8px 12px !important;
    margin: 0 !important;
}

/* CODE DETAIL INLINE INFO */
.code-detail-info {
    display: flex !important;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.code-detail-info span {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
}

/* CODE DETAIL TOP */
.code-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.code-detail-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.code-detail-info {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.code-detail-info span {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
}