/* ===========================================
   STEAM HESAP SATIŞ SİSTEMİ - ANA STİLLER
   Gaming Temalı Premium Tasarım
   =========================================== */

/* CSS Değişkenleri */
:root {
    /* Ana Renkler */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;

    /* Aksan Renkler */
    --accent-cyan: #22d3ee;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f97316;

    /* Nötr Renkler */
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    --bg-input: #16162a;

    /* Metin Renkleri */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Kenarlıklar */
    --border-color: rgba(99, 102, 241, 0.2);
    --border-glow: rgba(99, 102, 241, 0.5);

    /* Gölgeler */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Geçişler */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Köşe Yuvarlaklıkları */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Font */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset ve Temel Stiller */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animasyonlu Arka Plan */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Linkler */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-cyan);
}

/* Başlıklar */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================================
   NAVİGASYON
   =========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.navbar-brand .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* ===========================================
   BUTONLAR
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
}

/* ===========================================
   HERO BÖLÜMÜ
   =========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Parçacık Animasyonu */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===========================================
   ÜRÜN KARTLARI
   =========================================== */

.products-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.product-content {
    padding: 1.25rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
}

.product-price .currency {
    font-size: 1rem;
    font-weight: 600;
}

/* ===========================================
   FORM ELEMANLARI
   =========================================== */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-main);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ===========================================
   KARTLAR VE PANELLER
   =========================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===========================================
   AUTH SAYFALARI
   =========================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-secondary);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

/* ===========================================
   PANEL SAYFALARI
   =========================================== */

.panel-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.sidebar-link .icon {
    width: 20px;
    text-align: center;
}

.panel-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.panel-title {
    font-size: 1.75rem;
}

/* ===========================================
   TABLOLAR
   =========================================== */

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

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

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

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

/* Tablo hücreleri uzun metin düzeltmeleri */
.table td {
    word-break: break-word;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table th {
    white-space: nowrap;
}

/* İşlem butonları kolonu */
.table td:last-child {
    white-space: nowrap;
    max-width: none;
}

/* ===========================================
   BADGE'LER
   =========================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.badge-warning {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-info {
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
}

/* ===========================================
   MODAL
   =========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ===========================================
   ALERT / BİLDİRİMLER
   =========================================== */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: block;
    line-height: 1.6;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-warning {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--accent-orange);
}

.alert-info {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent-cyan);
}

/* ===========================================
   GUARD KOD GÖSTERME
   =========================================== */

.guard-code-display {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.guard-code {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
    margin-bottom: 0.5rem;
}

.guard-code-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guard-code-timer {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===========================================
   FOOTER
   =========================================== */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===========================================
   RESPONSIVE - YENİ SİSTEM
   =========================================== */

/* Mobil Menü Butonu - Ana Sayfa */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobil Sidebar Toggle - Panel Sayfaları */
.mobile-panel-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
}

.mobile-panel-toggle:active {
    transform: scale(0.95);
}

/* Mobil Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================== */
/* TABLET: 769px - 1024px                      */
/* =========================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 1.5rem;
    }

    .sidebar {
        width: 70px;
        padding: 1rem 0.5rem;
    }

    .sidebar-header {
        justify-content: center;
    }

    .sidebar-title,
    .sidebar-subtitle,
    .sidebar-link span:not(.icon) {
        display: none;
    }

    .sidebar-link {
        justify-content: center;
        padding: 0.875rem;
    }

    .sidebar-link .icon {
        font-size: 1.25rem;
    }

    .panel-content {
        margin-left: 70px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================== */
/* MOBİL: 768px ve altı                        */
/* =========================================== */
@media (max-width: 768px) {
    /* Reset zoom ve ölçek */
    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    * {
        -webkit-tap-highlight-color: transparent;
    }

    body {
        overflow-x: hidden;
        touch-action: pan-y;
    }

    /* Particle efektlerini mobilde gizle */
    .particles,
    body::before {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .container {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
    }

    /* ===== NAVBAR MOBİL ===== */
    .navbar {
        height: 56px;
        padding: 0;
    }

    .navbar .container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-brand {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .navbar-brand .icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .navbar-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        z-index: 1001;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav .nav-link {
        display: block;
        padding: 1rem;
        text-align: center;
        background: var(--bg-input);
        border-radius: var(--radius-sm);
        color: var(--text-primary);
    }

    .navbar-nav #auth-nav,
    .navbar-nav .user-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .navbar-nav .btn {
        width: 100%;
        justify-content: center;
    }

    .user-greeting {
        text-align: center;
        padding: 0.75rem;
        background: var(--bg-input);
        border-radius: var(--radius-sm);
    }

    /* Body padding for fixed navbar */
    body {
        padding-top: 56px;
    }

    /* Panel sayfalarında navbar padding kaldır */
    body:has(.panel-layout) {
        padding-top: 0;
    }

    /* ===== SIDEBAR MOBİL ===== */
    .mobile-overlay {
        display: block;
    }

    .mobile-panel-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 1.5rem 1rem;
        overflow-y: auto;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-title,
    .sidebar-subtitle,
    .sidebar-link span:not(.icon) {
        display: block;
    }

    .sidebar-header {
        justify-content: flex-start;
        margin-bottom: 1rem;
    }

    .sidebar-link {
        justify-content: flex-start;
        padding: 1rem;
        gap: 0.75rem;
    }

    .sidebar-link .icon {
        font-size: 1.25rem;
        width: 24px;
        text-align: center;
    }

    /* ===== PANEL CONTENT MOBİL ===== */
    .panel-layout {
        display: block;
    }

    .panel-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 80px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .panel-header {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .panel-title {
        font-size: 1.25rem;
    }

    /* ===== HERO MOBİL ===== */
    .hero {
        padding: 1.5rem 0 2rem;
        min-height: auto;
        background: var(--bg-dark);
    }

    .hero-content {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* ===== STATS SECTION MOBİL ===== */
    .stats-section {
        padding: 2rem 0 !important;
    }

    .stats-section .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }

    .stats-section .products-grid > div {
        padding: 0.5rem;
    }

    .stats-section .products-grid div[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }

    /* ===== PRODUCTS MOBİL ===== */
    .products-section {
        padding: 2rem 0;
    }

    .products-grid:not(.stats-section .products-grid) {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .product-image {
        height: 180px;
    }

    /* ===== DASHBOARD CARDS MOBİL ===== */
    #page-dashboard .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    #page-dashboard .products-grid .card {
        padding: 1rem;
    }

    #page-dashboard .products-grid .card div[style*="2rem"] {
        font-size: 1.25rem !important;
    }

    /* ===== CARDS & TABLES MOBİL ===== */
    .card {
        padding: 1rem;
    }

    .table-wrapper {
        margin: 0 -1rem;
        padding: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 0.8rem;
        min-width: 600px;
    }

    .table th,
    .table td {
        padding: 0.625rem 0.5rem;
        white-space: nowrap;
    }

    .table td {
        max-width: none;
    }

    /* Tablo içindeki butonlar */
    .table .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .table .badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    /* ===== FORMS MOBİL ===== */
    .form-control {
        font-size: 16px; /* iOS zoom önleme */
        padding: 0.875rem 1rem;
        width: 100%;
        max-width: 100%;
    }

    select.form-control {
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        padding-right: 2.5rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }

    /* Filter card mobil */
    .card .d-flex.align-center {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .card .form-group {
        margin-bottom: 0;
        width: 100%;
    }

    /* ===== AUTH PAGES MOBİL ===== */
    .auth-container {
        padding: 1rem;
        padding-top: 2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    /* ===== MODAL MOBİL ===== */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal {
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 85vh;
    }

    /* ===== TOAST MOBİL ===== */
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    /* ===== FOOTER MOBİL ===== */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =========================================== */
/* KÜÇÜK MOBİL: 480px ve altı                  */
/* =========================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .panel-content {
        padding: 0.75rem;
        padding-top: 75px;
    }

    .panel-title {
        font-size: 1.1rem;
    }

    #page-dashboard .products-grid {
        grid-template-columns: 1fr !important;
    }

    .mobile-panel-toggle {
        width: 46px;
        height: 46px;
        top: 10px;
        left: 10px;
    }

    .guard-code {
        font-size: 1.75rem;
        letter-spacing: 0.2rem;
    }
}

/* Slide Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   ANİMASYONLAR
   =========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

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

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--accent-green);
}

.text-danger {
    color: #ef4444;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.d-none {
    display: none;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

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

.justify-between {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.justify-between>* {
    min-width: 0;
    word-break: break-word;
}

.justify-between>span:first-child {
    flex-shrink: 0;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.w-100 {
    width: 100%;
}

/* ===========================================
   INPUT + BUTON GRUPLARI (Hizalama)
   =========================================== */

/* Input ve buton yan yana */
.input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.input-group .form-control {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group .btn {
    flex-shrink: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border-left: 1px solid var(--border-color);
}

.input-group .btn:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* Form içi flex düzeni */
.form-group .d-flex {
    display: flex;
    align-items: stretch;
}

.form-group .d-flex .form-control {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-group .d-flex .btn:first-of-type {
    border-radius: 0;
}

.form-group .d-flex .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.form-group .d-flex .btn:only-of-type {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Butonları eşit boyutta tut */
.form-group .d-flex .btn-sm {
    padding: 0.5rem 0.75rem;
    min-width: 44px;
}

/* ===========================================
   MODAL İÇİ DÜZENLEMELER
   =========================================== */

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body .alert {
    margin-bottom: 1rem;
}

.modal-body .alert:last-child {
    margin-bottom: 0;
}

/* Guard kod display düzenlemesi */
.guard-code-display {
    text-align: center;
    padding: 2rem;
}

/* ===========================================
   TOAST BİLDİRİMLERİ
   =========================================== */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3000;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast-success {
    border-left: 4px solid var(--accent-green);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-warning {
    border-left: 4px solid var(--accent-orange);
}

.toast-info {
    border-left: 4px solid var(--primary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}