/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --primary: #00bf9a;
    --primary-dark: #00997a;
    --primary-light: #4cdbbf;
    --primary-glow: rgba(0, 191, 154, 0.4);
    --dark-bg: #0a0a0a;
    --card-bg: #141414;
    --text-white: #f0f0f0;
    --radius: 16px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   GLOBAL IMPROVEMENTS
   ============================================ */
body {
    background: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 191, 154, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.shop-item .card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.shop-item .card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-glow), transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.shop-item .card:hover {
    border-color: var(--primary);
    transform: translateX(8px) scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 191, 154, 0.15);
}

.shop-item .card:hover::before {
    opacity: 1;
}

.shop-item .card-body {
    position: relative;
    z-index: 1;
}

/* Price tag glow */
.text-success {
    color: var(--primary) !important;
    text-shadow: 0 0 20px var(--primary-glow);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-success {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius);
    padding: 12px 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px var(--primary-glow);
}

.btn-success:active {
    transform: scale(0.97);
}

/* ============================================
   INPUTS
   ============================================ */
.form-control {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius) !important;
    color: white !important;
    padding: 14px 20px !important;
    transition: var(--transition) !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   HEADER / SHOP NAME
   ============================================ */
.shop-name {
    font-size: clamp(3rem, 10vw, 7rem);
    background: linear-gradient(135deg, var(--primary), #4dd0e1, var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   MODAL IMPROVEMENTS
   ============================================ */
.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-body {
    background: var(--card-bg) !important;
}

/* Payment method cards */
.modal-body .card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.modal-body .card:hover {
    background: rgba(0, 191, 154, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--dark-bg) !important;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 20px var(--primary-glow);
    transform: translateX(4px);
}

/* ============================================
   ANIMATED BORDER ON PRODUCTS
   ============================================ */
.shop-item .card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius);
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--primary), transparent);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.shop-item .card:hover::after {
    opacity: 0.5;
    animation: spinBorder 3s linear infinite;
}

@keyframes spinBorder {
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 768px) {
    .shop-item .card:hover {
        transform: translateX(0) scale(1.02);
    }
    
    .modal-content {
        margin: 12px;
    }
}

/* ============================================
   LOADING SKELETON ENHANCEMENT
   ============================================ */
.skeleton-box {
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: var(--radius) !important;
}

.skeleton-box::after {
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 191, 154, 0.15) 20%,
        rgba(0, 191, 154, 0.3) 60%,
        transparent 100%
    ) !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #4dd0e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-glow {
    box-shadow: 0 0 40px var(--primary-glow);
}

.border-glow {
    border-color: var(--primary) !important;
    box-shadow: inset 0 0 30px var(--primary-glow);
}