/* ================================================================
   GAMING ZONE — PREMIUM OVERHAUL v2
   Reusable utility classes for world-class Cyber-Glass aesthetic
   #060814 · #2b50bc · #22d3ee · #a855f7 · #ff0055
   ================================================================ */

/* ══════════════════════════════════════════════
   1. GLASS CARD SYSTEM
   ══════════════════════════════════════════════ */
.gz-glass-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(6, 8, 20, 0.8));
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(34, 211, 238, 0.06);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.gz-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.1), transparent);
    z-index: 1;
}

.gz-glass-card:hover {
    border-color: rgba(34, 211, 238, 0.15);
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(34, 211, 238, 0.05),
        0 0 60px rgba(43, 80, 188, 0.03);
}

/* Glass card with animated gradient border */
.gz-glass-card-glow {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(6, 8, 20, 0.8));
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid transparent;
}

.gz-glass-card-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.15), rgba(43, 80, 188, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.gz-glass-card-glow:hover::after {
    opacity: 0.8;
}

.gz-glass-card-glow:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(34, 211, 238, 0.06);
}

/* ══════════════════════════════════════════════
   2. ANIMATED GRADIENT BORDER
   ══════════════════════════════════════════════ */
.gz-glow-border {
    position: relative;
}

.gz-glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #22d3ee, #2b50bc, #a855f7, #22d3ee);
    background-size: 300% 300%;
    animation: gz-border-rotate 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
    opacity: 0.5;
    z-index: -1;
}

@keyframes gz-border-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ══════════════════════════════════════════════
   3. HOVER LIFT EFFECTS
   ══════════════════════════════════════════════ */
.gz-hover-lift {
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s ease;
}

.gz-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(34, 211, 238, 0.06);
}

.gz-hover-lift-sm {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.3s ease;
}

.gz-hover-lift-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* ══════════════════════════════════════════════
   4. GRADIENT TEXT
   ══════════════════════════════════════════════ */
.gz-gradient-text {
    background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gz-gradient-text-blue {
    background: linear-gradient(135deg, #22d3ee 0%, #2b50bc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gz-gradient-text-white {
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ══════════════════════════════════════════════
   5. STATUS INDICATORS & CHIPS
   ══════════════════════════════════════════════ */
.gz-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    animation: gz-pulse 2s ease-in-out infinite;
}

.gz-pulse-dot-success {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.gz-pulse-dot-danger {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes gz-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.gz-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.gz-chip-default {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.gz-chip-default:hover {
    background: rgba(34, 211, 238, 0.06);
    border-color: rgba(34, 211, 238, 0.2);
    color: #e2e8f0;
}

.gz-chip-active {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.1);
}

.gz-chip-cyan {
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: #22d3ee;
}

.gz-chip-violet {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.gz-chip-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.gz-chip-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.gz-chip-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* ══════════════════════════════════════════════
   6. PREMIUM FORM INPUTS
   ══════════════════════════════════════════════ */
.gz-input-premium {
    width: 100%;
    padding: 14px 18px;
    background: rgba(6, 8, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: #f1f5f9;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
}

.gz-input-premium::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.gz-input-premium:hover {
    border-color: rgba(43, 80, 188, 0.2);
    background: rgba(6, 8, 20, 0.7);
}

.gz-input-premium:focus {
    border-color: #22d3ee;
    box-shadow:
        0 0 0 3px rgba(34, 211, 238, 0.08),
        0 0 20px rgba(34, 211, 238, 0.08),
        inset 0 0 15px rgba(34, 211, 238, 0.02);
    background: rgba(6, 8, 20, 0.8);
}

/* Textarea variant */
textarea.gz-input-premium {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Select variant */
select.gz-input-premium {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 44px;
    cursor: pointer;
}

[dir="rtl"] select.gz-input-premium {
    background-position: left 14px center;
    padding-right: 18px;
    padding-left: 44px;
}

/* Form label */
.gz-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin-bottom: 8px;
}

/* ══════════════════════════════════════════════
   7. PREMIUM BUTTONS
   ══════════════════════════════════════════════ */
.gz-btn-holographic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #22d3ee 0%, #2b50bc 50%, #a855f7 100%);
    background-size: 200% 100%;
    animation: gz-holo-shift 4s ease infinite;
    color: #ffffff;
    box-shadow:
        0 6px 25px rgba(34, 211, 238, 0.25),
        0 0 40px rgba(43, 80, 188, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'Outfit', sans-serif;
}

.gz-btn-holographic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.gz-btn-holographic:hover::before {
    left: 100%;
}

.gz-btn-holographic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 35px rgba(34, 211, 238, 0.4),
        0 0 50px rgba(168, 85, 247, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: gz-holo-shift 2s ease infinite;
}

@keyframes gz-holo-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Ghost/Outline Button */
.gz-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.gz-btn-ghost:hover {
    background: rgba(34, 211, 238, 0.06);
    border-color: rgba(34, 211, 238, 0.3);
    color: #22d3ee;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Danger Button */
.gz-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gz-btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Success Button */
.gz-btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.gz-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
    filter: brightness(1.1);
}

/* ══════════════════════════════════════════════
   8. SECTION HEADERS
   ══════════════════════════════════════════════ */
.gz-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.gz-section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.1);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.gz-section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #ffffff;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.gz-section-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #22d3ee, #a855f7);
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4), 0 0 30px rgba(168, 85, 247, 0.2);
}

/* ══════════════════════════════════════════════
   9. PREMIUM TABLE
   ══════════════════════════════════════════════ */
.gz-table-premium {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.gz-table-premium thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.gz-table-premium th {
    background: rgba(6, 8, 20, 0.8);
    backdrop-filter: blur(10px);
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.08);
    text-align: start;
    white-space: nowrap;
}

.gz-table-premium td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    font-size: 0.9rem;
    vertical-align: middle;
}

.gz-table-premium tbody tr {
    transition: all 0.25s ease;
}

.gz-table-premium tbody tr:hover {
    background: rgba(34, 211, 238, 0.02);
}

.gz-table-premium tbody tr:hover td {
    color: #ffffff;
}

/* Table wrapper with scroll */
.gz-table-wrapper {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    overflow: hidden;
}

.gz-table-wrapper-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gz-table-wrapper-scroll::-webkit-scrollbar {
    height: 4px;
}

.gz-table-wrapper-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gz-table-wrapper-scroll::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.2);
    border-radius: 10px;
}

/* ══════════════════════════════════════════════
   10. PREMIUM BADGES
   ══════════════════════════════════════════════ */
.gz-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.gz-badge:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.gz-badge-new {
    background: rgba(43, 80, 188, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(43, 80, 188, 0.25);
}

.gz-badge-active, .gz-badge-delivered, .gz-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.gz-badge-pending, .gz-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.gz-badge-rejected, .gz-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.gz-badge-info {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.gz-badge-violet {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

/* ══════════════════════════════════════════════
   11. DIVIDERS & DECORATIVE
   ══════════════════════════════════════════════ */
.gz-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.1), transparent);
    border: none;
    margin: 30px 0;
}

.gz-divider-vertical {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.15), transparent);
}

/* ══════════════════════════════════════════════
   12. SCAN LINE ANIMATION (Admin aesthetic)
   ══════════════════════════════════════════════ */
.gz-scan-line {
    position: relative;
    overflow: hidden;
}

.gz-scan-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.03), transparent);
    animation: gz-scan 8s linear infinite;
    pointer-events: none;
}

@keyframes gz-scan {
    0% { top: -40px; }
    100% { top: 100%; }
}

/* ══════════════════════════════════════════════
   13. SHIMMER / LOADING SKELETON
   ══════════════════════════════════════════════ */
.gz-shimmer {
    position: relative;
    overflow: hidden;
}

.gz-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(34, 211, 238, 0.04),
        transparent);
    animation: gz-shimmer-slide 2s ease-in-out infinite;
}

@keyframes gz-shimmer-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ══════════════════════════════════════════════
   14. ICON BOXES
   ══════════════════════════════════════════════ */
.gz-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gz-icon-box-cyan {
    background: rgba(34, 211, 238, 0.08);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.12);
}

.gz-icon-box-violet {
    background: rgba(168, 85, 247, 0.08);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.12);
}

.gz-icon-box-blue {
    background: rgba(43, 80, 188, 0.08);
    color: #60a5fa;
    border: 1px solid rgba(43, 80, 188, 0.12);
}

.gz-icon-box-success {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.gz-icon-box-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.gz-icon-box-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.12);
}

/* ══════════════════════════════════════════════
   15. EMPTY STATES
   ══════════════════════════════════════════════ */
.gz-empty-state {
    text-align: center;
    padding: 60px 30px;
}

.gz-empty-icon {
    font-size: 3.5rem;
    color: rgba(34, 211, 238, 0.15);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.1));
}

.gz-empty-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.gz-empty-text {
    color: #64748b;
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════
   16. UTILITY COLORS
   ══════════════════════════════════════════════ */
.text-debit { color: #ef4444 !important; }
.text-credit { color: #22c55e !important; }

/* ══════════════════════════════════════════════
   17. REDUCED MOTION
   ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .gz-glass-card,
    .gz-glass-card-glow,
    .gz-hover-lift,
    .gz-hover-lift-sm,
    .gz-btn-holographic,
    .gz-btn-ghost,
    .gz-btn-danger,
    .gz-btn-success {
        transition-duration: 0.01ms !important;
    }

    .gz-pulse-dot,
    .gz-btn-holographic,
    .gz-shimmer::after,
    .gz-scan-line::after,
    .gz-glow-border::after {
        animation: none !important;
    }
}
