/* ============================================
   RUBY RED CLUB THEME - COMPLETE STYLE OVERRIDE
   ============================================ */

/* ---- GLOBAL ---- */
[data-bs-theme="dark"] body,
body {
    background-color: #050505 !important;
    color: #e5e7eb !important;
    font-family: 'Inter', sans-serif !important;
}

.page {
    background-color: transparent !important;
}

.page-wrapper {
    background-color: transparent !important;
}

/* Background Glow Effects - Matching Ruby Red Next.js */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -2;
    background: url('https://i.imgur.com/AIQ1i78.png') center/cover no-repeat;
    opacity: 0.10;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(to top, #050505 0%, rgba(5, 5, 5, 0.90) 50%, rgba(5, 5, 5, 0.50) 100%);
}

/* Red Glow Orbs - injected via layout */

::selection {
    background-color: #8b5cf6;
    color: #fff;
}

/* ---- CARDS (Tüm kartlar) ---- */
.card {
    background-color: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem !important;
    color: #e5e7eb !important;
    transition: border-color 0.3s ease !important;
}

.card:hover {
    border-color: rgba(117, 0, 172, 0.3) !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.25rem 1.5rem !important;
}

.card-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.card-body {
    background-color: transparent !important;
    color: #d1d5db !important;
}

.card-footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ---- BUTTONS ---- */
.btn:not(.btn-gradient):not(.btn-gradient-transparent),
.btn:not(.btn-gradient):not(.btn-gradient-transparent):hover,
.btn:not(.btn-gradient):not(.btn-gradient-transparent):focus,
.btn:not(.btn-gradient):not(.btn-gradient-transparent):active,
.btn:not(.btn-gradient):not(.btn-gradient-transparent).active {
    background-image: none !important;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #7500ac !important;
    border-color: #7500ac !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background-color: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    transform: scale(1.02);
}

.btn-secondary,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 0.5rem !important;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.btn-ghost-primary,
.btn-outline-primary {
    color: #7500ac !important;
    border-color: #7500ac !important;
}

.btn-ghost-primary:hover,
.btn-outline-primary:hover {
    background-color: #7500ac !important;
    color: white !important;
}

.ruby-red-btn {
    background-color: #7500ac;
    color: white !important;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 15px -3px rgba(117, 0, 172, 0.3);
    transition: all 0.3s ease;
    padding: 0.625rem 1.5rem;
    border: none;
}

.ruby-red-btn:hover {
    background-color: #8b5cf6;
    transform: scale(1.05);
}

/* ---- FORMS / INPUTS ---- */
.form-control,
.form-select {
    background-color: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e5e7eb !important;
    border-radius: 0.5rem !important;
    transition: border-color 0.3s ease !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #7500ac !important;
    box-shadow: 0 0 0 0.2rem rgba(117, 0, 172, 0.15) !important;
    background-color: #111111 !important;
    color: #e5e7eb !important;
}

.form-control::placeholder {
    color: #6b7280 !important;
}

.form-label {
    color: #9ca3af !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    font-size: 0.8rem !important;
}

.input-group-text {
    background-color: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #9ca3af !important;
}

/* ---- TABLES ---- */
.table {
    color: #d1d5db !important;
    --tblr-table-bg: transparent !important;
}

.table>thead>tr>th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: #9ca3af !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.table>tbody>tr>td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    color: #d1d5db !important;
}

.table>tbody>tr:hover>td {
    background-color: rgba(117, 0, 172, 0.05) !important;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.25rem !important;
}

.breadcrumb-item a {
    color: #9ca3af !important;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #7500ac !important;
}

.breadcrumb-item.active {
    color: #6b7280 !important;
}

/* ---- PAGE TITLES ---- */
.page-title,
h2.page-title {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

/* ---- ALERTS ---- */
.alert:not(.alert-success):not(.alert-danger):not(.alert-error):not(.alert-important):not(.alert-warning):not(.swal2-popup),
.alert-info {
    background:
        linear-gradient(145deg, rgba(117, 0, 172, 0.12), rgba(255, 255, 255, 0.035)),
        rgba(14, 13, 17, 0.82) !important;
    border: 1px solid rgba(117, 0, 172, 0.28) !important;
    color: rgba(248, 245, 255, 0.9) !important;
}

.alert-success {
    background:
        linear-gradient(145deg, rgba(16, 185, 129, 0.13), rgba(255, 255, 255, 0.035)),
        rgba(13, 18, 17, 0.86) !important;
    border: 1px solid rgba(16, 185, 129, 0.34) !important;
    color: rgba(248, 245, 255, 0.92) !important;
}

.alert-danger,
.alert-error,
.alert-important {
    background:
        linear-gradient(145deg, rgba(239, 68, 68, 0.13), rgba(255, 255, 255, 0.035)),
        rgba(18, 13, 15, 0.86) !important;
    border: 1px solid rgba(239, 68, 68, 0.34) !important;
    color: rgba(248, 245, 255, 0.92) !important;
}

.alert-warning {
    background-color: rgba(234, 179, 8, 0.1) !important;
    border: 1px solid rgba(234, 179, 8, 0.3) !important;
    color: #fbbf24 !important;
}

/* ---- DROPDOWN MENUS ---- */
.dropdown-menu {
    background-color: #0f0f0f !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-item {
    color: #d1d5db !important;
    transition: all 0.2s ease !important;
    border-radius: 0.5rem !important;
    margin: 0.125rem 0.25rem !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(117, 0, 172, 0.1) !important;
    color: #ffffff !important;
}

.dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

/* ---- STORE / PRODUCT CARDS ---- */
.store-item,
.product-card {
    background-color: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem !important;
    transition: all 0.3s ease !important;
}

.store-item:hover,
.product-card:hover {
    border-color: rgba(117, 0, 172, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(117, 0, 172, 0.1) !important;
}

/* ---- MODAL ---- */
.modal-content {
    background-color: #0f0f0f !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    color: #e5e7eb !important;
}

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

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modal-title {
    color: white !important;
    font-weight: 700 !important;
}

.btn-close {
    filter: invert(1) !important;
}

/* ---- PAGINATION ---- */
.page-item .page-link {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #9ca3af !important;
    border-radius: 0.5rem !important;
    margin: 0 0.125rem !important;
    transition: all 0.2s ease !important;
}

.page-item .page-link:hover {
    background-color: rgba(117, 0, 172, 0.1) !important;
    border-color: rgba(117, 0, 172, 0.3) !important;
    color: white !important;
}

.page-item.active .page-link {
    background-color: #7500ac !important;
    border-color: #7500ac !important;
    color: white !important;
}

/* ---- BADGES ---- */
.badge {
    font-weight: 600 !important;
    border-radius: 9999px !important;
}

.badge.bg-primary {
    background-color: rgba(117, 0, 172, 0.15) !important;
    color: #f87171 !important;
}

/* ---- TABS / NAV TABS ---- */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.nav-tabs .nav-link {
    color: #9ca3af !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.nav-tabs .nav-link:hover {
    color: white !important;
    border-bottom-color: rgba(117, 0, 172, 0.5) !important;
}

.nav-tabs .nav-link.active {
    color: white !important;
    background-color: transparent !important;
    border-bottom-color: #7500ac !important;
}

/* ---- SECTION & GENERAL ---- */
.section {
    background-color: transparent !important;
}

.home-section {
    background-color: transparent !important;
}

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

/* ---- TEXT COLORS ---- */
.text-muted {
    color: #6b7280 !important;
}

a {
    color: #7500ac;
    transition: color 0.2s ease;
}

a:hover {
    color: #8b5cf6;
}

/* ---- AUTH PAGES (Login, Register) ---- */
.auth-form .card,
.card.card-md {
    background-color: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ---- FOOTER ---- */
footer.footer {
    background-color: #0a0a0a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7500ac;
}

/* ---- TABLER OVERRIDES ---- */
:host,
:root,
[data-bs-theme=dark] {
    --tblr-body-bg: #050505 !important;
    --tblr-bg-surface: #0d0d0d !important;
    --tblr-bg-surface-secondary: #111111 !important;
    --tblr-border-color: rgba(255, 255, 255, 0.05) !important;
    --tblr-card-bg: #0d0d0d !important;
    --tblr-body-color: #e5e7eb !important;
}

/* ---- EXTRAS: Tabler specific components ---- */
.ribbon {
    background-color: #7500ac !important;
}

.avatar {
    border: 2px solid rgba(117, 0, 172, 0.3) !important;
}

.status-dot {
    border-color: #0d0d0d !important;
}

/* SweetAlert dark overrides */
.swal2-popup {
    background-color: #0f0f0f !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
}

.swal2-confirm {
    background-color: #7500ac !important;
    border-radius: 0.5rem !important;
}

/* Link colors in cards & content */
.card a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #d1d5db !important;
}

.card a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #7500ac !important;
}

/* ---- STORE CATEGORY LIST ---- */
.list-group-item {
    background-color: #0d0d0d !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #d1d5db !important;
}

.list-group-item:hover,
.list-group-item.active {
    background-color: rgba(117, 0, 172, 0.1) !important;
    border-color: rgba(117, 0, 172, 0.3) !important;
    color: white !important;
}

/* ---- ANNOUNCEMENT BROADCAST BAR ---- */
.broadcast {
    background-color: rgba(117, 0, 172, 0.1) !important;
    border-bottom: 1px solid rgba(117, 0, 172, 0.2) !important;
}

.broadcast-item .broadcast-link {
    color: #fca5a5 !important;
}

/* ==========================================================================
   BUTTON ALIGNMENT OVERRIDES (TRPVP.CLUB AESTHETICS - PURPLE BRANDING)
   ========================================================================== */

/* 1. Reset all primary-like form and action buttons to flat purple */
.application-form-section .btn-primary,
.forum-category-section .btn-primary,
.forum-thread-show-section .btn-primary,
.forum-create-section .btn-primary,
.forum-edit-section .btn-primary,
.credits-charge-section .btn-primary,
.credits-send-section .btn-primary,
.custom-forms-show-section .btn-primary,
.download-section .btn-primary,
.fortune-wheel-index-section .btn-primary,
.forum-category-section .btn-primary,
.forum-thread-show-section .btn-primary,
.forum-create-section .btn-primary,
.forum-edit-section .btn-primary,
.gifts-index-section .btn-primary,
.gifts-show-section .btn-primary,
.leaderboards-search .btn-primary,
.punishments-warnings-search .btn-primary,
.punishments-kicks-search .btn-primary,
.punishments-mutes-search .btn-primary,
.punishments-bans-search .btn-primary,
.suggestions-reply-form .btn-primary,
.suggestions-form-body .btn-primary,
.ticket-section .btn-primary,
.error-404-section .btn-primary,
.profile-section .btn-primary,
.news-index-page .btn-primary,
.news-category-page .btn-primary,
.news-tag-page .btn-primary,
.chest-gift-section .btn-primary,
.gaming-night-index-section .btn-primary,
.verify-email-resend-btn,
.modern-checkout-btn,
.modern-promo-btn,
.btn-add-cart,
.action-btn.primary,
.suggestions-create-btn {
    background: #7500ac !important;
    background-color: #7500ac !important;
    border: none !important;
    border-color: transparent !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 10px 15px -3px rgba(117, 0, 172, 0.3) !important;
    padding: 0.8rem 1.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transform: none !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Remove shiny pseudo-elements that sliding shine used */
.application-form-section .btn-primary::before,
.forum-create-section .btn-primary::before,
.forum-edit-section .btn-primary::before,
.forum-thread-show-section .btn-primary::before,
.verify-email-resend-btn::before,
.btn-add-cart::before,
.suggestions-create-btn::before,
.payment-success-btn::before {
    display: none !important;
    content: none !important;
}

/* 2. Hover states for all primary-like buttons (solid purple glow with scale) */
.application-form-section .btn-primary:hover,
.forum-category-section .btn-primary:hover,
.forum-thread-show-section .btn-primary:hover,
.forum-create-section .btn-primary:hover,
.forum-edit-section .btn-primary:hover,
.credits-charge-section .btn-primary:hover,
.credits-send-section .btn-primary:hover,
.custom-forms-show-section .btn-primary:hover,
.download-section .btn-primary:hover,
.fortune-wheel-index-section .btn-primary:hover,
.gifts-index-section .btn-primary:hover,
.gifts-show-section .btn-primary:hover,
.leaderboards-search .btn-primary:hover,
.punishments-warnings-search .btn-primary:hover,
.punishments-kicks-search .btn-primary:hover,
.punishments-mutes-search .btn-primary:hover,
.punishments-bans-search .btn-primary:hover,
.suggestions-reply-form .btn-primary:hover,
.suggestions-form-body .btn-primary:hover,
.ticket-section .btn-primary:hover,
.error-404-section .btn-primary:hover,
.profile-section .btn-primary:hover,
.news-index-page .btn-primary:hover,
.news-category-page .btn-primary:hover,
.news-tag-page .btn-primary:hover,
.chest-gift-section .btn-primary:hover,
.gaming-night-index-section .btn-primary:hover,
.verify-email-resend-btn:hover,
.modern-checkout-btn:hover,
.modern-promo-btn:hover,
.btn-add-cart:hover,
.action-btn.primary:hover,
.suggestions-create-btn:hover,
.payment-success-btn:hover {
    background: #8b5cf6 !important;
    background-color: #8b5cf6 !important;
    color: #fff !important;
    transform: scale(1.02) !important;
    box-shadow: 0 10px 20px rgba(117, 0, 172, 0.4) !important;
    text-decoration: none !important;
}

/* 3. Secondary action buttons reset */
.btn-secondary,
.ticket-section .btn-secondary,
.play-section .action-btn.discord,
.play-section .action-btn.info,
.play-section .action-btn.store,
.modern-remove-btn,
.modern-quantity-btn {
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.modern-remove-btn {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.modern-remove-btn:hover:not(:disabled) {
    background-color: #ef4444 !important;
    color: #fff !important;
    transform: scale(1.05) !important;
}

.modern-quantity-btn {
    background-color: #7500ac !important;
    color: #fff !important;
    border: none !important;
}

.modern-quantity-btn:hover:not(:disabled) {
    background-color: #8b5cf6 !important;
    transform: scale(1.05) !important;
}

.action-btn.discord {
    background-color: #5865f2 !important;
    color: #fff !important;
}

.action-btn.discord:hover {
    background-color: #4752c4 !important;
    transform: scale(1.02) !important;
}

.action-btn.info {
    background-color: #06b6d4 !important;
    color: #fff !important;
}

.action-btn.info:hover {
    background-color: #0891b2 !important;
    transform: scale(1.02) !important;
}

.action-btn.store {
    background-color: #f59e0b !important;
    color: #fff !important;
}

.action-btn.store:hover {
    background-color: #d97706 !important;
    transform: scale(1.02) !important;
}

.quantity-btn:hover {
    background-color: #7500ac !important;
    color: #fff !important;
}

/* 4. Payment success button */
.payment-success-btn {
    background: #7500ac !important;
    border: none !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 0.5rem !important;
    color: #fff !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 10px 15px -3px rgba(117, 0, 172, 0.3) !important;
}

.payment-success-btn:hover {
    background: #8b5cf6 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 10px 20px rgba(117, 0, 172, 0.4) !important;
}

/* 5. Success buttons in credits / other sections */
.credits-charge-section .btn-success,
.download-section .btn-success,
.gaming-night-index-section .btn-success,
.gaming-night-product-section .btn-success,
.gifts-show-section .btn-success,
.btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3) !important;
}

.credits-charge-section .btn-success:hover,
.download-section .btn-success:hover,
.gaming-night-index-section .btn-success:hover,
.gaming-night-product-section .btn-success:hover,
.gifts-show-section .btn-success:hover,
.btn-success:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4) !important;
}

/* 6. Danger buttons */
.gaming-night-index-section .btn-danger,
.gaming-night-product-section .btn-danger,
.btn-danger {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3) !important;
}

.gaming-night-index-section .btn-danger:hover,
.gaming-night-product-section .btn-danger:hover,
.btn-danger:hover {
    background-color: #f87171 !important;
    border-color: #f87171 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.4) !important;
}

/* 7. Suggestions Thumbs Up/Down and Edit/Delete */
.suggestions-reaction-btn {
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.suggestions-reaction-btn:hover {
    transform: scale(1.05) !important;
}

.suggestions-edit-btn {
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    color: #7500ac !important;
}

.suggestions-edit-btn:hover {
    background-color: rgba(117, 0, 172, 0.1) !important;
    color: #8b5cf6 !important;
    transform: scale(1.05) !important;
}

.suggestions-delete-btn {
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    color: #ef4444 !important;
}

.suggestions-delete-btn:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
    transform: scale(1.05) !important;
}

/* 8. Ticket delete action button */
.ticket-section .ticket-action-btn:hover {
    color: #8b5cf6 !important;
}

.ticket-section .ticket-action-btn.delete:hover {
    color: #ef4444 !important;
}

/* ==========================================================================
   PROFILE OFFCANVAS STYLING (REDESIGNED FOR PREMIUM frontend-design)
   ========================================================================== */
.profile-offcanvas {
    background: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 360px !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1050 !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.profile-offcanvas .offcanvas-header {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 2.25rem 1.5rem !important;
    position: relative;
    overflow: hidden;
}

.profile-offcanvas .offcanvas-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(117, 0, 172, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.profile-offcanvas-user {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.profile-offcanvas-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px !important;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.3s ease;
}

.profile-offcanvas-avatar:hover {
    transform: scale(1.05);
}

.profile-offcanvas-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-offcanvas-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-offcanvas-name {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    letter-spacing: -0.02em;
}

.profile-offcanvas-role {
    color: #c084fc !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    background: rgba(117, 0, 172, 0.2) !important;
    border: 1px solid rgba(117, 0, 172, 0.3) !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    display: inline-block;
    width: fit-content;
    margin: 0 !important;
}

.profile-offcanvas-close {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #9ca3af !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.profile-offcanvas-close:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    transform: rotate(90deg) scale(1.05);
}

.profile-offcanvas .offcanvas-body {
    padding: 1.5rem 0 !important;
}

.profile-offcanvas-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px !important;
}

.profile-offcanvas-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem !important;
    color: #d1d5db !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100%;
    text-align: left;
    position: relative;
    cursor: pointer;
}

.profile-offcanvas-item::before {
    display: none !important;
}

.profile-offcanvas-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.profile-offcanvas-item i:first-child {
    font-size: 1.1rem;
    color: #9ca3af;
    width: 20px;
    text-align: center;
    transition: color 0.25s ease;
}

.profile-offcanvas-item:hover i:first-child {
    color: #c084fc;
}

.profile-offcanvas-item i:last-child {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.5;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.profile-offcanvas-item:hover i:last-child {
    opacity: 0.9;
    transform: translateX(4px);
}

/* Custom styles for Balance Item */
.profile-offcanvas-balance {
    background: rgba(16, 185, 129, 0.03) !important;
    border: 1px solid rgba(16, 185, 129, 0.1) !important;
}

.profile-offcanvas-balance:hover {
    background: rgba(16, 185, 129, 0.06) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.profile-offcanvas-balance-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.profile-offcanvas-balance-content>span {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.profile-offcanvas-balance-amount {
    font-weight: 700;
    color: #34d399 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.profile-offcanvas-balance-amount i {
    color: #34d399 !important;
    font-size: 0.8rem;
}

/* Custom styles for Admin Dashboard link */
.profile-offcanvas-admin {
    background: rgba(117, 0, 172, 0.05) !important;
    border: 1px solid rgba(117, 0, 172, 0.15) !important;
}

.profile-offcanvas-admin:hover {
    background: rgba(117, 0, 172, 0.1) !important;
    border-color: rgba(117, 0, 172, 0.3) !important;
}

.profile-offcanvas-admin i:first-child {
    color: #c084fc !important;
}

.profile-offcanvas-admin:hover i:first-child {
    color: #e9d5ff !important;
}

/* Custom styles for Logout button */
.profile-offcanvas-logout {
    margin: 0;
    width: 100%;
}

.profile-offcanvas-logout-btn {
    background: rgba(239, 68, 68, 0.03) !important;
    border: 1px solid rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
}

.profile-offcanvas-logout-btn:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #ef4444 !important;
}

.profile-offcanvas-logout-btn i:first-child {
    color: #f87171 !important;
    transition: color 0.25s ease;
}

.profile-offcanvas-logout-btn:hover i:first-child {
    color: #ef4444 !important;
}

/* Remove dividers since we use gap layout */
.profile-offcanvas-divider {
    display: none !important;
}

/* Cart-specific control alignment */
.modern-cart-section .modern-quantity-btn {
    flex: 0 0 var(--cart-qty-button, clamp(38px, 3.2vw, 44px)) !important;
    width: var(--cart-qty-button, clamp(38px, 3.2vw, 44px)) !important;
    height: var(--cart-control-height, clamp(38px, 3vw, 42px)) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #b8bec9 !important;
    border: none !important;
    padding: 0 !important;
    letter-spacing: 0 !important;
    transform: none !important;
}

.modern-cart-section .modern-quantity-btn:hover:not(:disabled) {
    background: #7500ac !important;
    color: #ffffff !important;
    transform: none !important;
}

.modern-cart-section .modern-promo-btn,
.modern-cart-section .modern-checkout-btn {
    width: 100% !important;
    min-height: clamp(40px, 3.2vw, 44px) !important;
    border-radius: 8px !important;
    padding: clamp(0.65rem, 1.2vw, 0.75rem) clamp(0.85rem, 1.6vw, 1rem) !important;
    letter-spacing: 0 !important;
}

.modern-cart-section .modern-remove-btn {
    width: clamp(34px, 3vw, 38px) !important;
    height: clamp(34px, 3vw, 38px) !important;
    border-radius: 8px !important;
    transform: none !important;
}

.modern-cart-section .modern-quantity-input:focus,
.modern-cart-section .modern-promo-input:focus,
.modern-cart-section .modern-quantity-btn:focus,
.modern-cart-section .modern-promo-btn:focus,
.modern-cart-section .modern-checkout-btn:focus,
.modern-cart-section .modern-remove-btn:focus,
.modern-cart-section .modern-checkbox:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   PAYMENT PAGES LAYOUT STYLING (PORTED FROM STYLE.CSS)
   ========================================================================== */
.payment-error-section {
    padding: 3rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.payment-error-card {
    background: rgba(13, 13, 13, 0.8) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 25px;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.payment-error-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.payment-error-card .card-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(185, 28, 28, 0.1)) !important;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    padding: 2rem;
    text-align: center;
}

.payment-error-card .card-title {
    color: #f87171 !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.payment-error-card .card-body {
    background: transparent !important;
    padding: 2.5rem;
    text-align: center;
}

.payment-error-icon {
    width: 120px;
    height: 120px;
    margin: 1rem auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: errorShake 3s infinite;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.payment-error-icon img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.payment-error-message {
    color: #d1d5db !important;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.payment-error-btn {
    background: #7500ac !important;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    color: white !important;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(117, 0, 172, 0.3);
}

.payment-error-btn:hover {
    background: #8b5cf6 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(117, 0, 172, 0.4);
    color: white !important;
    text-decoration: none;
}

@keyframes errorShake {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    10% {
        transform: scale(1.02) rotate(-1deg);
    }

    20% {
        transform: scale(1.02) rotate(1deg);
    }

    30% {
        transform: scale(1) rotate(0deg);
    }
}

.payment-success-section {
    padding: 3rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.payment-success-card {
    background: rgba(13, 13, 13, 0.8) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 25px;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.payment-success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.payment-success-card .card-header {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(21, 128, 61, 0.1)) !important;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    padding: 2rem;
    text-align: center;
}

.payment-success-card .card-title {
    color: #4ade80 !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

.payment-success-card .card-body {
    background: transparent !important;
    padding: 2.5rem;
    text-align: center;
}

.payment-success-icon {
    width: 120px;
    height: 120px;
    margin: 1rem auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s infinite;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.payment-success-icon img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.payment-success-message {
    color: #d1d5db !important;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.6;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(34, 197, 94, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(34, 197, 94, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(34, 197, 94, 0.4);
    }
}

.payment-manual-section {
    padding: 2rem 0;
    min-height: 80vh;
}

.payment-manual-card {
    background: rgba(13, 13, 13, 0.8) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-manual-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.payment-manual-card .card-header {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
}

.payment-manual-card .card-title {
    color: white !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.payment-manual-card .card-body {
    background: transparent !important;
    padding: 1.5rem;
}

.payment-manual-content {
    color: #d1d5db !important;
    line-height: 1.6;
}

/* Store discount system inspired by shadcn Badge/Card primitives. */
.card-product,
.modern-featured-card {
    position: relative;
}

.store-discount-badge,
.card-product .discount,
.gaming-night-index-section .discount,
.product-discount {
    position: absolute !important;
    top: 0.875rem !important;
    right: 0.875rem !important;
    left: auto !important;
    z-index: 20 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 1.75rem !important;
    padding: 0 0.625rem !important;
    border: 1px solid rgba(248, 113, 113, 0.42) !important;
    border-radius: 999px !important;
    background: rgba(127, 29, 29, 0.74) !important;
    color: #fecaca !important;
    box-shadow: 0 10px 28px rgba(127, 29, 29, 0.24) !important;
    backdrop-filter: blur(8px);
    font-size: 0.72rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.store-discount-badge-left {
    left: 0.875rem !important;
    right: auto !important;
}

.store-detail-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 1.875rem;
    padding: 0 0.7rem;
    border: 1px solid rgba(248, 113, 113, 0.42);
    border-radius: 999px;
    background: rgba(127, 29, 29, 0.34);
    color: #fecaca;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-card-meta-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
}

.store-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 0;
    line-height: 1.1;
}

.store-old-price,
.card-product .old-price,
.modern-old-price,
.tier-old-price {
    color: rgba(248, 113, 113, 0.78) !important;
    font-size: 0.78rem !important;
    font-weight: 750 !important;
    line-height: 1.15 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: rgba(248, 113, 113, 0.7) !important;
    opacity: 1 !important;
}

.store-current-price,
.card-product .price {
    color: #f8fafc !important;
    font-size: clamp(1.22rem, 1.5vw, 1.55rem) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    font-variant-numeric: tabular-nums;
}

.store-stock-wrap {
    display: flex;
    justify-content: flex-end;
    min-width: 6.25rem;
    max-width: 48%;
}

.store-stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    max-width: 100%;
    min-height: 1.625rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.store-stock-pill-success {
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: rgba(6, 95, 70, 0.18);
    color: #34d399;
}

.store-stock-pill-danger {
    border: 1px solid rgba(248, 113, 113, 0.38);
    background: rgba(127, 29, 29, 0.24);
    color: #fca5a5;
}

.store-summary-discount,
.orders-summary-value.store-summary-discount {
    color: #fca5a5 !important;
    font-weight: 850 !important;
    font-variant-numeric: tabular-nums;
}

.product-page .meta-badge.store-detail-discount-badge {
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(127, 29, 29, 0.34);
    color: #fecaca;
}

.tiers-page .tier-tier-name {
    position: relative;
    overflow: hidden;
}

.tiers-page .tier-tier-name .store-discount-badge {
    top: 0.5rem !important;
    right: 0.5rem !important;
}

@media (max-width: 575.98px) {
    .store-card-meta-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
        min-height: 0;
    }

    .store-stock-wrap {
        justify-content: flex-start;
        max-width: 100%;
        min-width: 0;
    }

    .store-current-price,
    .card-product .price {
        font-size: 1.25rem !important;
    }
}