/* GÜMRÜKTE.ORG - Ultra Modern Luxury CSS (100% Mobile Fluid & Responsive) */
:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: #1f293d;
    --bg-card-hover: #26334d;
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.3);
    --accent-teal: #06b6d4;
    --accent-teal-glow: rgba(6, 182, 212, 0.25);
    --accent-green: #10b981;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --border-color: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.25);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    width: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    white-space: nowrap;
}

.brand-logo .badge-gov {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    font-size: 0.6rem;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-logo span.gold {
    color: var(--accent-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
    white-space: nowrap;
}

.admin-link-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 35px 0 25px 0;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(245, 158, 11, 0.12) 0%, rgba(11, 15, 25, 0) 70%);
    width: 100%;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--accent-gold);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 12px;
    word-break: break-word;
}

.hero-title span {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 24px auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
    width: 100%;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.stat-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-info h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.stat-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Category Filter & Search */
.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    background: var(--bg-secondary);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    width: 100%;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.cat-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 7px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1 1 auto;
    text-align: center;
}

.cat-btn.active, .cat-btn:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px 14px 10px 36px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    outline: none;
}

.search-box input:focus {
    border-color: var(--accent-gold);
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .card-image-wrap img {
    transform: scale(1.06);
}

.badge-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-timer {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(8px);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

@keyframes countPulseAnim {
    0% { transform: scale(1); color: #fff; }
    50% { transform: scale(1.35); color: var(--accent-gold); text-shadow: 0 0 12px rgba(245, 158, 11, 0.9); }
    100% { transform: scale(1); color: #fff; }
}

.count-pulse {
    display: inline-block;
    animation: countPulseAnim 0.6s ease-in-out;
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 0.72rem;
    color: var(--accent-teal);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.35;
    word-break: break-word;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: rgba(17, 24, 39, 0.6);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    gap: 4px;
}

.market-price {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.market-price span {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 600;
}

.raffle-price {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.progress-section {
    margin-bottom: 14px;
}

.progress-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    gap: 4px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #f59e0b);
    border-radius: 4px;
}

.btn-join {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 11px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-join:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 20px 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    outline: none;
}

.ticket-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px dashed var(--accent-green);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 12px;
}

.ticket-number {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-green);
    letter-spacing: 1px;
    margin: 6px 0;
}

/* Floating Live Support Widget */
.chat-widget-btn {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #d97706);
    color: #000;
    border: none;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    cursor: pointer;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.chat-unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-window {
    position: fixed;
    bottom: 76px;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: 360px;
    height: 440px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 990;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-header {
    background: var(--bg-card);
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.chat-messages {
    flex-grow: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-primary);
}

.chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--accent-gold);
    color: #000;
}

.chat-msg.admin {
    align-self: flex-start;
    background: var(--bg-card);
    color: #fff;
    border: 1px solid var(--border-color);
}

.chat-footer {
    padding: 10px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 6px;
}

.chat-footer input {
    flex-grow: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    outline: none;
}

.chat-footer button {
    background: var(--accent-gold);
    color: #000;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0 16px 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 40px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
}

/* Mobile Layout Overrides */
@media (max-width: 600px) {
    .nav-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .brand-logo {
        font-size: 1.15rem;
    }
    .nav-actions {
        width: 100%;
        justify-content: center;
    }
    .hero-title {
        font-size: 1.4rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .brand-logo .badge-gov {
        display: none;
    }
}
