/* ValleyMC Green Theme for the store */

:root {
    /* Green Valley Color Palette */
    --galaxy-bg-primary: #0f2e1a;   /* dark forest green — hero/footer surfaces */
    --galaxy-bg-secondary: #143620;
    --galaxy-bg-tertiary: #1b4d27;
    --galaxy-accent: #16A34A; /* Green accent */
    --galaxy-gradient-start: #15803D; /* Dark green start */
    --galaxy-gradient-end: #4ADE80; /* Light green end */
    --galaxy-text-primary: #163B22;  /* dark green text — for the light page surfaces */
    --galaxy-text-secondary: #4B6B54;
    --galaxy-text-muted: #16A34A;
    --galaxy-border: #86efac;
    --galaxy-card-bg: rgba(255, 255, 255, 0.85);
    --galaxy-glass: rgba(22, 163, 74, 0.07);
    --valley-page-bg-start: #EAF4EA; /* customizable in /painel/customize */
    --valley-page-bg-end: #D6E8D8;

    /* Legacy support */
    --primary-color: var(--galaxy-accent);
    --secondary-color: var(--galaxy-bg-tertiary);
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: var(--galaxy-accent);
    --dark-color: var(--galaxy-bg-secondary);
    --light-color: #ffffff;
}

/* Base Styles */
html {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, var(--valley-page-bg-start) 0%, var(--valley-page-bg-end) 100%);
    color: var(--galaxy-text-primary);
    min-height: 100vh;
    position: relative;
    /* overflow-x on html is enough; keeping on body can block iOS y-scroll */
    overflow-x: clip;
}

main {
    border: none !important;
}

/* Galaxy Navigation */
.navbar {
    background: rgba(10, 22, 14, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--galaxy-border);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
}

/* Dropdown Menu Overlay Fix */
.dropdown-menu {
    z-index: 1060 !important;
    background: rgba(14, 32, 20, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    min-width: 200px !important;
}

.dropdown-menu .dropdown-item {
    color: var(--galaxy-text-secondary) !important;
    transition: all 0.3s ease !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    margin: 2px 4px !important;
}

.dropdown-menu .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.3), rgba(22, 163, 74, 0.15)) !important;
    color: #fff !important;
    transform: translateX(5px) !important;
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.4) !important;
}

.dropdown-menu .dropdown-item:active {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.5), rgba(34, 197, 94, 0.3)) !important;
    color: #fff !important;
}

.dropdown-menu .dropdown-item i {
    width: 16px !important;
    text-align: center !important;
}

/* Ensure dropdown toggle has proper positioning */
.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: 0.1em;
}

/* Fix dropdown positioning on home page */
.navbar .dropdown {
    position: relative !important;
}

.navbar .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    transform: translateY(0) !important;
}

/* Ensure navbar has proper z-index */
.navbar {
    z-index: 1030 !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--galaxy-accent), #86EFAC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.navbar-brand:hover {
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.8);
}


.cart-count {
    font-size: 0.75rem;
    background: linear-gradient(45deg, var(--galaxy-gradient-start), var(--galaxy-gradient-end)) !important;
    color: white !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    border: none;
    font-weight: bold;
}

/* Galaxy Product Cards */
.product-card {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(74, 222, 128, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
    background: linear-gradient(45deg, transparent, rgba(22, 163, 74, 0.1), transparent);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 80px rgba(22, 163, 74, 0.3);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.product-card .card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--galaxy-text-primary), var(--galaxy-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--success-color) !important;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.product-card .btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.product-card .btn:hover::before {
    left: 100%;
}

/* Product Actions - Hover Effect */
.product-actions {
    position: relative;
    overflow: hidden;
}

.product-card .card-img-top {
    position: relative;
}

.product-card .card-img-top .hover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: auto;
    cursor: pointer;
    min-width: 80px;
}
.product-card:hover .card-img-top .hover-btn,
.product-card .card-img-top .hover-btn:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.product-actions .btn {
    margin-bottom: 0.25rem;
}

/* Category Sidebar */
.category-list {
    position: sticky;
    top: 20px;
}

.category-item {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--galaxy-text-secondary);
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--galaxy-glass);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(22, 163, 74, 0.1);
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-item:hover::before {
    left: 100%;
}

.category-item:hover,
.category-item.active {
    background: linear-gradient(45deg, rgba(74, 222, 128, 0.1), rgba(74, 222, 128, 0.2));
    color: var(--galaxy-accent);
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.2);
    border-color: rgba(22, 163, 74, 0.3);
}

.category-item i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--galaxy-accent);
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, var(--galaxy-gradient-start), var(--galaxy-gradient-end));
    border: none;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    border: none;
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #bd2130);
    border: none;
}

.btn-purple {
    background: linear-gradient(45deg, var(--galaxy-gradient-start), var(--galaxy-gradient-end));
    border: none;
    color: white;
}

.btn-purple:hover {
    background: linear-gradient(45deg, var(--galaxy-gradient-end), var(--galaxy-gradient-start));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--galaxy-bg-secondary);
    border-bottom: 2px solid var(--galaxy-border);
    font-weight: 600;
    color: #ffffff;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Toast notifications */
.toast {
    border-radius: 10px;
}

/* =============================================
   FOOTER STYLES
   ============================================= */
footer {
    background: rgba(8, 28, 16, 0.92);
    border-top: 1px solid rgba(22, 163, 74, 0.25);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 163, 74,0.6), rgba(74, 222, 128,0.8), rgba(22, 163, 74,0.6), transparent);
}

footer .container {
    position: relative;
    z-index: 1;
}

/* Footer brand name */
.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #22C55E, #4ADE80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer section headings */
.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #22C55E;
    margin-bottom: 1rem;
}

/* Footer link list */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.footer-links a .fas {
    font-size: 0.6rem;
    color: #15803D;
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: #e2e8f0;
    gap: 0.75rem;
}

.footer-links a:hover .fas {
    transform: translateX(3px);
}

/* Footer server card */
.footer-server-card {
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 16px;
    padding: 1rem 1.2rem;
}

/* Server rotation */
.server-rotation-container {
    position: relative;
    min-height: 52px;
}

.server-slide {
    display: none;
}

.server-slide.active {
    display: block;
}

.server-badge {
    margin-bottom: 2px;
}

.server-description {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

/* Footer IP copy button */
.footer-ip-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.9rem;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.footer-ip-btn:hover {
    background: rgba(22, 163, 74, 0.2);
    border-color: rgba(22, 163, 74, 0.55);
    color: #fff;
    box-shadow: 0 0 18px rgba(22, 163, 74, 0.25);
}

.footer-ip-btn .fas.fa-server {
    color: #22C55E;
}

.footer-ip-btn .fa-copy {
    color: #64748b;
    font-size: 0.8rem;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(22, 163, 74, 0.15);
}

/* Social links */
.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    transition: all 0.25s ease;
    color: #64748b !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
    text-decoration: none;
}

.social-links a:hover {
    color: #fff !important;
    background: rgba(22, 163, 74, 0.25);
    border-color: rgba(22, 163, 74, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card .card-img-top {
        height: 150px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .category-list {
        position: static;
        margin-bottom: 2rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Quantity input styling */
.input-group .btn {
    border-radius: 0;
}

.input-group .form-control {
    border-radius: 0;
}

.input-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.input-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* QR Code styling */
#qrcode {
    margin: 20px auto;
    width: 256px;
    height: 256px;
}

/* Admin panel specific styles */
.admin-card {
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Status badges */
.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-approved {
    background-color: #17a2b8;
}

.status-delivered {
    background-color: #28a745;
}

.status-cancelled {
    background-color: #dc3545;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Error states */
.error-border {
    border-color: var(--danger-color) !important;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success states */
.success-border {
    border-color: var(--success-color) !important;
}

.success-message {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Galaxy Hero Section */
.galaxy-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--galaxy-bg-primary) 0%, var(--galaxy-bg-secondary) 100%);
    border-radius: 0 0 50px 50px;
    margin-bottom: 3rem;
}

.galaxy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(74, 222, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(250, 204, 21, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 10%, rgba(135, 206, 235, 0.1) 0%, transparent 50%);
    animation: galaxy-float 20s ease-in-out infinite;
}

@keyframes galaxy-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-gradient-blue {
    background: linear-gradient(45deg, var(--galaxy-accent), #86EFAC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-orange {
    background: linear-gradient(45deg, var(--galaxy-gradient-start), var(--galaxy-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.floating-animation {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.min-vh-50 {
    min-height: 50vh;
}

/* Galaxy Category Items */
.category-item {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--galaxy-text-secondary);
    display: block;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-item:hover::before {
    left: 100%;
}

.category-item:hover,
.category-item.active {
    background: linear-gradient(45deg, rgba(74, 222, 128, 0.1), rgba(74, 222, 128, 0.2));
    color: var(--galaxy-accent);
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.2);
}

.category-item i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--galaxy-accent);
}

/* Galaxy Server Info Cards */
.server-info-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.server-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(74, 222, 128, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.server-info-card:hover::before {
    opacity: 1;
}

.server-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.2);
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--galaxy-glass);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.server-info-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(21, 128, 61, 0.795);
}

/* Text Muted Class for Gray Stars */
.text-muted {
    color: #515152c2 !important;
}

/* Ban Warning Bar Animation */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Enhanced Testimonial Cards */
.testimonial-card {
    background: var(--galaxy-card-bg);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(22, 163, 74, 0.3);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    margin-top: 15px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(22, 163, 74, 0.3);
    border-color: #16A34A;
}

/* Enhanced Author Section - Top */
.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #16A34A;
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.4);
}

.author-info h6 {
    color: var(--galaxy-text-primary);
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

/* Enhanced Rating Stars - Below author */
.rating {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 15px;
}

.rating .fas.fa-star {
    font-size: 1.2rem;
    color: #16A34A;
    text-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
}

.rating .fas.fa-star.text-muted {
    color: #6c7b95;
}

.purple-star {
    color: #16A34A !important;
    text-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
}

/* Product Name - In place of evaluation */
.product-name {
    font-size: 1rem;
    color: var(--galaxy-text-primary);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Enhanced Testimonial Text - Inside purple box */
.testimonial-text {
    background: rgba(22, 163, 74, 0.1);
    border: 2px solid rgba(22, 163, 74, 0.3);
    border-radius: 15px;
    padding: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--galaxy-text-primary);
    text-align: center;
    font-style: italic;
    position: relative;
    margin-top: 10px;
}

.testimonial-text::before {
    content: '"';
    font-size: 1.5rem;
    color: #16A34A;
    position: absolute;
    top: 5px;
    left: 10px;
    opacity: 0.6;
}

.testimonial-text::after {
    content: '"';
    font-size: 1.5rem;
    color: #16A34A;
    position: absolute;
    bottom: -5px;
    right: 10px;
    opacity: 0.6;
}

/* Server Rotation Styles */
.server-rotation-container {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.server-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translateX(0);
}

.server-slide.leaving {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    transform: translateX(-100%);
}

.server-badge {
    margin-bottom: 5px;
}

.server-description {
    margin: 0;
    font-size: 0.9rem;
    color: white;
}

/* Purchase Notification Popup - Fixed Bottom Left */
.purchase-notification-popup {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    z-index: 99999 !important;
    max-width: 320px;
    width: auto;
    min-width: 260px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.3), 0 0 20px rgba(16, 185, 129, 0.3);
    transform: translateX(-150%);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    display: none;
}




.purchase-notification-popup.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.purchase-notification-popup.hide {
    transform: translateX(-150%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}



.purchase-notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.purchase-notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}


.purchase-notification-text {
    flex: 1;
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.purchase-notification-text strong {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.purchase-notification-text .coupon-info {
    display: none;
}

.purchase-notification-text .countdown {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}



.purchase-notification-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #059669;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.purchase-notification-close:hover {
    background: #fff;
    transform: scale(1.1);
    color: #047857;
}



/* Pulse animation for the popup */
@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 10px 50px rgba(16, 185, 129, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.3), 0 0 30px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 15px 60px rgba(16, 185, 129, 0.8), 0 0 0 3px rgba(255, 255, 255, 0.4), 0 0 40px rgba(16, 185, 129, 0.6);
    }
}

.purchase-notification-popup.show.pulse {
    animation: pulse-green 2s ease-in-out infinite;
}


/* Debug visibility - temporary highlight */
.purchase-notification-popup {
    /* Uncomment below to debug position */
    /* outline: 3px solid red; */
}

/* Debug mode - always show for testing */
.purchase-notification-popup.debug-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    outline: 3px solid yellow;
    animation: none !important;
}



/* Mobile responsive */
@media (max-width: 576px) {
    .purchase-notification-popup {
        bottom: 15px !important;
        left: 10px !important;
        right: 10px !important;
        max-width: none;
        width: auto;
        transform: translateX(-120%);
        padding: 10px 12px;
    }
    
    .purchase-notification-popup.show {
        transform: translateX(0) !important;
    }
    
    .purchase-notification-popup.hide {
        transform: translateX(-120%) !important;
    }
    
    .purchase-notification-avatar {
        width: 36px;
        height: 36px;
    }
    
    .purchase-notification-text {
        font-size: 0.85rem;
    }
}

/* Coupon/Rocket floating icon - Mobile fixes */
.rocket-animation,
.coupon-icon-animation {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force coupon icon to show on all devices including mobile */
@media (max-width: 768px) {
    .rocket-animation,
    .coupon-icon-animation {
        position: fixed !important;
        bottom: 80px !important;
        right: 15px !important;
        left: auto !important;
        z-index: 99999 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .rocket-animation *,
    .coupon-icon-animation * {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #rocket,
    #coupon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .rocket-notification,
    .coupon-notification {
        z-index: 99999 !important;
    }
}

@media (max-width: 576px) {
    .rocket-animation,
    .coupon-icon-animation {
        bottom: 70px !important;
        right: 10px !important;
    }
}

/* ==== MOBILE SCROLLBAR FIX - Proper handling ===== */
/* Fix for mobile scrollbar expanding issue */
html {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Proper mobile viewport fix - critical for preventing scrollbar expansion */
@supports (padding: env(safe-area-inset-top)) {
    html {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* Mobile responsive fixes - allow vertical scroll, prevent horizontal */
@media (max-width: 992px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
        width: 100%;
    }
    
    /* Ensure touch scrolling works on mobile */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix container overflow */
    .container {
        max-width: 100% !important;
        padding-left: max(12px, env(safe-area-inset-left)) !important;
        padding-right: max(12px, env(safe-area-inset-right)) !important;
    }
    
    /* Fix row overflow - allow vertical only */
    .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
        overflow-x: hidden;
    }
    
    /* Fix column overflow */
    [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure cards don't overflow */
    .card {
        max-width: 100% !important;
        overflow-x: hidden;
        word-wrap: break-word;
    }
    
    /* Fix product items */
    .product-item {
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    /* Fix images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Main content overflow fix */
    main.container {
        overflow-x: hidden;
    }
}

/* Hide scrollbar completely on mobile (optional - for cleaner look) */
@media (max-width: 768px) {
    /* Chrome, Safari and Opera */
    html::-webkit-scrollbar {
        display: none;
    }
    
    /* IE, Edge and Firefox */
    html {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}
