@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #18181b;
    --bg-card: #27272a;
    --text-primary: #ffffff;
    --text-gray: #a1a1aa;
    --accent-yellow: #facc15;
    --accent-gold: #eab308;
    --accent-green: #4ade80;
    --border-color: #3f3f46;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-gray);
}

html,
body {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: rgba(24, 24, 27, 0.95);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-yellow);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.nav-links li a.active {
    color: var(--accent-yellow);
}

.nav-links li a i {
    width: 20px;
    text-align: center;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.3);
    margin-top: 5px;
    padding: 5px;
    border-radius: 12px;
}

.dropdown-menu li a {
    padding-left: 45px;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-yellow);
}

.dropdown-container.open .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ranks Page Styles */
.hero-banner {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    padding: 40px;
    background-size: cover;
    background-position: center;
}

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

.rank-container {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.rank-table th,
.rank-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.rank-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding-bottom: 20px;
}

.rank-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-gray);
}

.rank-table tr:last-child td {
    border-bottom: none;
}

.check-icon {
    color: var(--accent-yellow);
}

.rank-btn {
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.rank-btn.active {
    background-color: var(--accent-yellow);
    color: #000;
}

.rank-btn.inactive {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.rank-btn.inactive:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Rank View Styles */
.mobile-rank-view {
    display: none;
}

.rank-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rank-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.rank-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.rank-tab-content.active {
    display: block;
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-name {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 0 40px;
}

.page-content {
    padding: 40px;
}

header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
    background-color: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    padding: 20px 0;
}

.search-bar {
    background-color: var(--bg-card);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    border: 1px solid var(--border-color);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.currency-badge {
    background-color: rgba(250, 204, 21, 0.1);
    color: var(--accent-yellow);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-gray);
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    border-radius: 50px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-gray);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
}

/* Blog Layout */
.blog-container {
    display: block;
    padding: 0 0 50px 0;
}

.blog-main.full-width {
    width: 100%;
}

.welcome-banner {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%), url('../images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

/* Fallback for banner if image missing */
.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #27272a, #18181b);
    z-index: -1;
}

.welcome-content h2 {
    font-size: 2rem;
    font-weight: 800;
    z-index: 1;
}

.highlight {
    color: var(--accent-yellow);
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item h4 {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-left: 25px;
}

.blog-post {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.post-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.post-image img {
    display: block;
    width: 100%;
    height: auto;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.post-excerpt {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-read-more:hover {
    background-color: #444;
}

.btn-secondary {
    display: block;
    width: 100%;
    background-color: #27272a;
    color: var(--text-gray);
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #333;
    color: white;
}

/* Sidebar Widgets */
.widget {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.store-cta-widget {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-gold) 100%);
    color: black;
    display: flex;
    align-items: center;
    gap: 20px;
    border: none;
}

.store-cta-widget .widget-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.store-cta-widget h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.btn-store-access {
    background-color: black;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

/* Discord Widget */
.discord-widget {
    background-color: #2f3136;
    /* Discord Dark */
    padding: 0;
    overflow: hidden;
}

.discord-header {
    background-color: #5865f2;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-count {
    font-size: 0.8rem;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

.discord-channels {
    padding: 15px;
}

.channel {
    color: #8e9297;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel:hover,
.channel.active {
    background-color: #36393f;
    color: white;
}

.user-list-preview {
    margin-top: 15px;
    border-top: 1px solid #3f4147;
    padding-top: 15px;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.user-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.user-status.online {
    background-color: #43b581;
}

.user-status.dnd {
    background-color: #f04747;
}

.user-status.idle {
    background-color: #faa61a;
}

.btn-discord-join {
    display: block;
    background-color: #5865f2;
    color: white;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-discord-join:hover {
    background-color: #4752c4;
}

/* Featured Product Widget */
.product-widget {
    text-align: center;
    position: relative;
    border: 1px solid var(--accent-yellow);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-yellow);
    color: black;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

.product-image {
    margin: 30px 0 20px 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 10px 0 20px 0;
}

.btn-buy-widget {
    background-color: var(--accent-yellow);
    color: black;
    border: none;
    padding: 10px 20px;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer */
.site-footer {
    margin-top: 80px;
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--accent-yellow);
    background-color: var(--bg-dark);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 100px;
    flex-wrap: wrap;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--accent-yellow);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-gray);
}

.footer-legal {
    margin-top: 10px;
    color: var(--accent-yellow);
}

.footer-legal a {
    color: var(--accent-yellow);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        gap: 40px;
        justify-content: center;
    }
}

/* Mobile Components */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
}

.mobile-logo {
    display: none;
    height: 32px;
    width: auto;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Footer Link Styles */
.footer-links ul li a {
    color: var(--text-gray);
    text-decoration: none !important;
    /* Remove underline */
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-gold);
}

.footer-legal a {
    color: var(--text-gray);
    text-decoration: none !important;
    /* Remove underline */
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-gold);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0;
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-logo {
        display: block;
    }

    .categories {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
        gap: 10px;
    }

    .search-bar {
        display: none;
    }

    .user-menu {
        margin-left: auto;
    }

    .user-profile span,
    .user-profile small,
    .user-profile strong {
        display: none;
    }

    .user-profile {
        padding: 0;
        border: none;
        background: none;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .payment-methods,
    .support,
    .assistant {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .assistant>div {
        flex-direction: column;
        text-align: center;
    }

    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .hero-content p {
        margin: 0 auto 20px auto;
    }

    .hero-content div {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Toggle Rank Views */
    .desktop-rank-view {
        display: none;
    }

    .mobile-rank-view {
        display: block;
    }

    /* Mobile Typography adjustments */
    .page-title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .page-content {
        padding: 20px;
    }

    /* Force table scroll on mobile */
    .admin-card table,
    .card-body table {
        min-width: 800px;
    }

    /* Application Detail Responsive */
    .grid-container {
        grid-template-columns: 1fr !important;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }

    .header-container>div:last-child {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .header-container button {
        flex: 1;
        justify-content: center;
    }
}

/* Refactored Rank Page Styles (Desktop defaults) */
.page-title {
    font-size: 3em;
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.1em;
    max-width: 600px;
    line-height: 1.6;
    color: #ccc;
}

.rank-hero-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-badge {
    background-color: var(--accent-yellow);
    color: black;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
}

.rank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.rank-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Ensure main content doesn't overflow */
.main-content {
    overflow-x: hidden;
}

/* Home Layout Grid */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.main-column {
    min-width: 0;
    /* Prevents overflow */
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Custom Widget Styles */
.custom-widget {
    background: transparent;
}

.widget-header {
    background-color: var(--accent-gold);
    color: white;
    padding: 10px 20px;
    border-radius: 20px 20px 20px 0;
    /* Unique shape */
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
}

.widget-header::after {
    content: '';
    display: block;
    height: 2px;
    background-color: var(--accent-gold);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    /* Default fixed width for desktop sidebar column */
    z-index: -1;
}

.sidebar-column .widget-header::after {
    width: 300%;
}

.custom-widget {
    position: relative;
    /* Create context */
}

.widget-header::after {
    content: '';
    display: block;
    height: 2px;
    background-color: var(--accent-gold);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Span full width of the .custom-widget container */
    z-index: 1;
    /* Ensure visibility */
}

.widget-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.widget-content {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 10px;
    /* Add spacing below the line */
}

/* Mini News Items */
.mini-news-item {
    background-color: #111;
    border-radius: 50px;
    padding: 10px 20px;
    /* Aligned with widget header padding */
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    border: 1px solid #333;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.mini-news-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

.mini-news-icon img {
    width: 36px;
    /* Slightly larger */
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    display: block;
    /* Remove inline spacing */
}

.mini-news-text {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    /* Tighten line height for better centering */
    margin-top: 2px;
    /* Optical adjustment */
}

@media (max-width: 992px) {
    .home-grid {
        display: flex;
        flex-direction: column;
    }

    .sidebar-column {
        display: flex;
        order: -1;
        margin-bottom: 20px;
    }

    .widget-header::after {
        width: 100%;
    }
}

/* =========================================
   Loading Screen & Animations
   ========================================= */

/* Loader Overlay */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

body.loaded #page-loader {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 170, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 15px;
}

.loading-text {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

/* Keyframes */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-in {
    opacity: 0;
    /* Hidden initially */
    animation-fill-mode: forwards;
    /* Keep final state */
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger delays for children if needed, or apply via JS */

/* Hover Effects & Interactivity */
.custom-widget {
    transition: transform 0.3s ease;
}

/* Fix duplicate rule removal */
.widget-header {
    transition: transform 0.3s ease;
}

.custom-widget:hover .widget-header {
    transform: translateY(-2px);
}


/* Hero Badge Pulse */
.hero-badge {
    animation: badgePulse 3s infinite;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    }
}

/* Improve Main Column Items */
.main-column>* {
    transition: transform 0.3s ease;
}

/* =========================================
   Team Page Styles
   ========================================= */

.team-page-wrapper {
    min-height: 80vh;
    padding: 40px 0;
    color: white;
}

.team-intro {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.team-intro h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-intro p {
    color: var(--accent-gold);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Interface */
.team-interface {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

/* Roles Navigation */
.team-roles {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.role-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.role-tab.active {
    background: white;
    color: black;
}

.role-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.role-tab.active .role-count {
    background: rgba(0, 0, 0, 0.1);
    color: black;
}

/* Content Area */
.team-display {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .team-display {
        grid-template-columns: 1fr;
    }

    .member-preview {
        order: -1;
        /* Show preview on top on mobile if needed, or keep bottom */
    }
}

/* Member List Grid */
.member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    perspective: 1000px;
}

.member-card {
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.member-card:hover::before {
    transform: translateX(100%);
}

.member-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.member-card.active {
    border-color: var(--active-color, #fff);
    box-shadow: 0 0 20px var(--active-shadow, rgba(255, 255, 255, 0.2));
}

.card-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.member-card:hover .card-avatar {
    border-color: var(--active-color, #fff);
    transform: scale(1.1);
}

.card-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-role {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Preview Section (Sticky) */
.member-preview {
    background: #151515;
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    position: sticky;
    top: 100px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.preview-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: blur(10px);
    z-index: 0;
    transition: background-image 0.5s ease;
}

.preview-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.preview-model {
    height: 350px;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: all 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.preview-name {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.preview-role-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.preview-bio {
    color: #aaa;
    line-height: 1.6;
    font-size: 1rem;
    max-width: 80%;
    margin: 0 auto;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #555;
    font-style: italic;
}

/* =========================================
   Cart Dropdown Styles
   ========================================= */

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 15px;
}

.cart-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #333;
}

.cart-dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #1a1a1a;
}

.cart-header {
    padding: 15px;
    border-bottom: 1px solid #333;
}

.cart-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
}

.cart-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.empty-cart-message {
    text-align: center;
    color: var(--text-gray);
    padding: 20px 0;
}

.empty-cart-message i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-cart-message p {
    margin: 0;
    font-size: 0.9rem;
}

.cart-footer {
    padding: 15px;
    border-top: 1px solid #333;
    background-color: #151515;
    border-radius: 0 0 10px 10px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
}

.total-price {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.checkout-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--accent-gold);
    color: black;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #e5b800;
}

/* Cart Item Styles (for when we have products) */
.cart-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.cart-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
    background-color: #222;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
    display: block;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.cart-item-remove {
    color: #ff4444;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: auto;
}

/* Terms Page Styles */
.terms-content-container {
    background-color: #27272a;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    line-height: 1.6;
}

.terms-content-container h2 {
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #3f3f46;
    padding-bottom: 10px;
}

.terms-content-container h2:first-child {
    margin-top: 0;
}

.terms-content-container p {
    margin-bottom: 15px;
    color: #a1a1aa;
}

.terms-content-container ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.terms-content-container li {
    margin-bottom: 8px;
    color: #a1a1aa;
}

/* Punishments Page Styles */
.punishments-header-section {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
}

.punishments-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: #a1a1aa;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #3f3f46;
    color: white;
}

.dropdown-filter {
    position: relative;
}

.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    min-width: 180px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.filter-dropdown-menu.show {
    display: block;
}

.filter-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.filter-dropdown-menu a:hover {
    background-color: #3f3f46;
    color: white;
}

.filter-dropdown-menu a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.filter-dropdown-menu a i {
    font-size: 0.8rem;
    opacity: 0;
}

.filter-dropdown-menu a.active i {
    opacity: 1;
}

.stats-text {
    font-size: 0.9rem;
    color: #e4e4e7;
    font-weight: 600;
    margin-bottom: 20px;
}

.punishments-table-container {
    background-color: #27272a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #3f3f46;
}

.punishments-table {
    width: 100%;
    border-collapse: collapse;
}

.punishments-table th {
    background-color: #18181b;
    padding: 15px 20px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 800;
    color: #e4e4e7;
    text-transform: uppercase;
    border-bottom: 1px solid #3f3f46;
}

.punishments-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    vertical-align: middle;
}

.punishments-table tr:last-child td {
    border-bottom: none;
}

.punishment-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.badge-mute {
    background-color: #c27c49;
    /* Brownish Orange */
}

.badge-ban {
    background-color: #d63031;
    /* Red */
}

.date-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    line-height: 1.2;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-head {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.player-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.green-name {
    color: #55efc4;
    /* Light Green */
}

.gray-name {
    color: #dfe6e9;
    /* Light Gray */
}

.reason-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reason-text {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.duration-badge {
    background-color: #18181b;
    border: 1px solid #3f3f46;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 10px;
}

/* Responsive adjustments for punishments table */
@media (max-width: 768px) {

    .punishments-table th:nth-child(2),
    .punishments-table td:nth-child(2) {
        display: none;
        /* Hide date on mobile */
    }

    .punishments-filters {
        flex-wrap: wrap;
    }
}

/* Nickname Modal */
.nickname-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nickname-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nickname-modal {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.nickname-modal-overlay.active .nickname-modal {
    transform: scale(1);
}

.nickname-modal h3 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nickname-input-group {
    margin-bottom: 20px;
}

.nickname-input-group input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 9999px;
    border: 2px solid transparent;
    background-color: white;
    color: #000;
    font-weight: 500;
    text-align: center;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.nickname-input-group input:focus {
    border-color: var(--accent-gold);
}

.nickname-input-group input::placeholder {
    color: #a1a1aa;
    font-weight: 500;
}

.nickname-submit-btn {
    background-color: var(--accent-gold);
    color: black;
    border: none;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-transform: uppercase;
    box-shadow: none !important;
}

.nickname-submit-btn:hover {
    background-color: #ca8a04;
    transform: translateY(-1px);
    box-shadow: none !important;

}

.nickname-submit-btn:active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* Rank Products Grid - RESTORED */
.rank-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.rank-product-card {
    border-radius: 24px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    z-index: 1;
}

.rank-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background-image: url('../images/profilebannerloja.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    z-index: -2;
    opacity: 0.4;
    transition: transform 0.3s ease;
}

.rank-product-card:hover .rank-card-bg {
    transform: scale(1.1);
}

.rank-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.rank-product-card:hover .rank-card-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.rank-avatar-preview {
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rank-nametag {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(2px);
    text-shadow: 1px 1px 0 #000;
}

.rank-skin {
    height: 100px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.rank-product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.rank-product-card h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.rank-badge {
    position: absolute;
    top: -12px;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.rank-price-tag {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 10px 24px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.rank-product-card:hover .rank-price-tag {
    background-color: rgba(0, 0, 0, 0.4);
}

.rank-price-old {
    font-size: 0.75rem;
    text-decoration: line-through;
    opacity: 0.8;
    margin-bottom: 2px;
}

.rank-price-current {
    font-size: 1.1rem;
    font-weight: 800;
}

.rank-buy-btn {
    margin-top: 20px;
    background-color: var(--accent-gold);
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 80%;
    font-size: 1rem;
    z-index: 10;
    position: relative;
}

.rank-buy-btn:hover {
    transform: scale(1.05);
}

/* Checkout Page Styles (Arcanth Redesign) */
.checkout-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Header & Steps */
.checkout-header {
    margin-bottom: 30px;
}

.checkout-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.checkout-header h1 i {
    color: var(--accent-gold);
}

.checkout-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    background-color: var(--bg-card);
    padding: 20px 40px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: #3f3f46;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.step.active .step-number {
    background-color: var(--accent-gold);
    color: black;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

.step span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #3f3f46;
    margin: 0 20px;
}

/* Cards */
.checkout-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.checkout-card:hover {
    border-color: rgba(250, 204, 21, 0.3);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin: 0;
}

.card-header h2 i {
    color: var(--accent-gold);
}

.card-body {
    padding: 30px;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
    pointer-events: none;
}

.checkout-input {
    width: 100%;
    background-color: #18181b;
    border: 1px solid var(--border-color);
    padding: 12px 15px 12px 45px;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.checkout-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.1);
    outline: none;
}

.checkout-input.locked {
    background-color: rgba(250, 204, 21, 0.05);
    border-color: rgba(250, 204, 21, 0.2);
    color: var(--accent-gold);
    font-weight: 600;
}

.verified-icon {
    position: absolute;
    right: 15px;
    color: var(--accent-green);
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 10px;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: #18181b;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.custom-checkbox input:checked~.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
}

.custom-checkbox a {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Payment Methods */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.payment-method-option {
    background-color: #18181b;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.payment-method-option:hover {
    border-color: var(--text-gray);
}

.payment-method-option.active {
    border-color: var(--accent-gold);
    background-color: rgba(250, 204, 21, 0.05);
}

.payment-method-option i {
    font-size: 1.5rem;
    color: var(--text-gray);
}

.payment-method-option.active i {
    color: var(--accent-gold);
}

.payment-method-option span {
    font-weight: 700;
    font-size: 0.9rem;
}

.badge-discount {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-green);
    color: black;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-bottom-left-radius: 8px;
}

/* Sidebar / Order Summary */
.checkout-sidebar {
    position: sticky;
    top: 100px;
}

.order-summary-card {
    background-color: rgba(24, 24, 27, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}

.btn-clear-cart {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 5px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
}

.item-image {
    position: relative;
    width: 40px;
    height: 40px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.item-qty {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--text-gray);
    color: black;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.item-price {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.2s;
}

.btn-remove-item:hover {
    color: #ef4444;
}

/* Coupon */
.coupon-section {
    margin-bottom: 25px;
}

.coupon-input-wrapper {
    display: flex;
    background-color: #18181b;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.coupon-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.coupon-input-wrapper button {
    background-color: var(--border-color);
    border: none;
    width: 40px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.coupon-input-wrapper button:hover {
    background-color: var(--accent-gold);
    color: black;
}

/* Totals */
.summary-totals {
    margin-bottom: 30px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.total-row.discount {
    color: var(--accent-green);
}

.total-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 0;
}

.total-row.final {
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0;
    align-items: center;
}

.glow-text {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.btn-finish-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-gold) 100%);
    color: black;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-finish-checkout:hover {
    transform: translateY(-2px);
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 600;
}

.secure-badge i {
    color: var(--accent-green);
}

.empty-state {
    text-align: center;
    padding: 30px 0;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
        order: -1;
        /* Summary first on mobile */
    }

    .checkout-steps {
        padding: 15px 20px;
    }

    .step span {
        display: none;
        /* Hide text on small screens */
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--accent-green);
}

.toast.error {
    border-left-color: #ef4444;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon {
    color: var(--accent-green);
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-message {
    color: var(--text-gray);
    font-size: 0.85rem;
}