/* SecritShop - Dark Theme with Royal Blue Accent */
/* Privacy-focused, no external fonts or resources */

/*
hF4DqmU9estea50SAQdA70RahufDfnELhLIuLAwed8nfdGnBbpyf8YRrcpYNBlww
BFoIeItJ76daarWXr5xx6s9awT2SgovVRyatPVfCCuXQ+NG1+7cBhpxkB+UUeeSh
1MBoAQkCEHuf3SAuunIG/uSsxKgLbyFI/iZTTUmYzZ6ov54WavnAOeueDJtdJed5
9ddHarY75eJT490aSg+VaLMX8GFKm7blCyaaEmcVW4jLLRbq2r4ZelwSLzwD7AFh
ZcbmMiX1HreYzQzHvS5uqqXQllGdZ3/wOfeNof7H2zHgthp7htDfIbE1F4dPbHfX
FwhOt/OsqYGwI94nHgZTvL0K9otX9qK1Yks3Y4PBQpqIP7wkRB/3/6ym63016r71
+AjwalUH1pxOgb4yNXcvwN1+BYcuyJZS9dAYspGkua3R3BIxODTAyueUwYjLA3sn
UU2x2uQB5FDmxa9BgDtbQTfGezcCIwcx52+6eNE8S9c1NByjLchyK0OhkrzTtHPa
nZEoAlHggRyoHFM=
=Jhx5
*/

/* CSS Custom Properties - Royal Blue Theme */
:root {
    --color-primary: #4f6fff;
    --color-primary-hover: #3b5bdb;
    --color-primary-light: #6b8cff;
    --color-primary-glow: rgba(79, 111, 255, 0.3);
    --color-primary-muted: rgba(79, 111, 255, 0.15);
    --color-bg-primary: #000000;
    --color-bg-secondary: #0d0d12;
    --color-bg-tertiary: #1a1a1a;
    --color-bg-card: rgba(13, 13, 18, 0.9);
    --color-text-primary: #ffffff;
    --color-text-secondary: #9ca3af;
    --color-border: #1a1a2a;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
}

/* Particle Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(13, 13, 18, 0.95);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #1a1a2a;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header h1 {
    color: #4f6fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.header .tagline {
    color: #888;
    font-size: 0.9rem;
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid #1a1a2a;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.nav a {
    color: #4f6fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #3b5bdb;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Notice Box */
.notice {
    background: rgba(13, 13, 18, 0.9);
    border-left: 4px solid #4f6fff;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.notice h3 {
    color: #4f6fff;
    margin-bottom: 0.5rem;
}

/* Section Headers */
h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* About Section */
.about-section {
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature {
    background: rgba(13, 13, 18, 0.9);
    border: 1px solid #1a1a2a;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.feature:hover {
    border-color: #4f6fff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(79, 111, 255, 0.15);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feature h3 {
    color: #4f6fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.product-card {
    background: rgba(13, 13, 18, 0.9);
    border: 1px solid #1a1a2a;
    border-radius: 8px;
    padding: 1.5rem 1.5rem 3rem 1.5rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #4f6fff;
    box-shadow: 0 0 20px rgba(79, 111, 255, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #0a0a0a;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image .product-emoji {
    font-size: 3rem;
}

.product-image .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.price-crypto {
    color: #4f6fff;
    font-size: 1.4rem;
    font-weight: bold;
}

.price-usd {
    color: #888;
    font-size: 0.9rem;
}

/* Product Tiers Display */
.product-tiers {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    background: #0a0a0a;
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid #1a1a1a;
}

.tier-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.85rem;
}

.tier-price-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tier-amount {
    color: #fff;
    font-weight: 600;
}

.tier-fiat {
    color: #4f6fff;
    font-weight: 600;
    text-align: right;
}

.tier-crypto {
    color: #666;
    font-size: 0.75rem;
    grid-column: 1 / -1;
    text-align: right;
}

.more-variants-link {
    color: #4f6fff;
    font-size: 0.8rem;
    text-align: center;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid #1a1a1a;
    cursor: pointer;
    transition: color 0.2s ease;
}

.more-variants-link:hover {
    color: #7a9fff;
}

/* Single price display (non-tiered products) */
.product-price-single {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.product-price-single .price-fiat {
    color: #4f6fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.product-price-single .price-crypto {
    color: #666;
    font-size: 0.85rem;
}

/* Button */
.btn {
    width: 100%;
    padding: 0.8rem;
    background: #4f6fff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #3b5bdb;
}

.btn:disabled {
    background: #444;
    cursor: not-allowed;
}

/* Privacy Section */
.privacy-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(13, 13, 18, 0.9);
    border-radius: 8px;
    border: 1px solid #1a1a2a;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.privacy-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.privacy-list li {
    color: #4f6fff;
    font-size: 0.95rem;
}

/* Floating Cart */
.cart-float {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    background: #1a1a1a;
    border: 2px solid #4f6fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.5rem;
    z-index: 50;
}

.cart-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(79, 111, 255, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0055;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Device Toggle Button */
.device-toggle-btn {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    color: #888;
    z-index: 50;
}

.device-toggle-btn:hover {
    border-color: #4f6fff;
    color: #4f6fff;
    background: #0a0a1a;
}

.device-toggle-btn span {
    font-size: 0.75rem;
}

/* Hide toggle text on very small screens */
@media (max-width: 400px) {
    .device-toggle-btn span {
        display: none;
    }
    .device-toggle-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(13, 13, 18, 0.98);
    border: 1px solid #1a1a2a;
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: #4f6fff;
    margin-bottom: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

/* Cart Items */
.cart-item {
    background: #0a0a0a;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.cart-item-name {
    color: #fff;
    font-weight: 500;
}

.cart-item-price {
    color: #4f6fff;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff0055;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.cart-item-remove:hover {
    color: #ff3377;
}

.cart-item-version {
    display: inline-block;
    background: #4f6fff;
    color: #0a0a0a;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.cart-total {
    border-top: 1px solid #2a2a2a;
    padding-top: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.cart-total .total-amount {
    color: #4f6fff;
}

.empty-cart {
    color: #888;
    text-align: center;
    padding: 2rem;
}

/* Checkout Form */
.checkout-form {
    border-top: 1px solid #2a2a2a;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.checkout-form h3 {
    color: #4f6fff;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #4f6fff;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 0.8rem;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f6fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

/* Crypto Options */
.crypto-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.crypto-option {
    background: #0a0a0a;
    border: 2px solid #2a2a2a;
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.crypto-option:hover {
    border-color: #4f6fff;
}

.crypto-option.selected {
    border-color: #4f6fff;
    background: #0a0a1a;
}

.crypto-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.3rem;
}

.crypto-symbol {
    color: #888;
    font-size: 0.9rem;
}

/* Payment Info */
.payment-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #0a0a0a;
    border-radius: 4px;
    border: 1px solid #4f6fff;
}

.payment-info h4 {
    color: #4f6fff;
    margin-bottom: 1rem;
}

.payment-info p {
    margin-bottom: 0.5rem;
}

.payment-amount {
    color: #4f6fff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.payment-address {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #4f6fff;
    word-break: break-all;
    margin-bottom: 1rem;
}

.copy-btn {
    background: #2a2a2a;
    border: none;
    color: #4f6fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #3a3a3a;
}

.order-id {
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: rgba(13, 13, 18, 0.95);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid #1a1a2a;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.footer p {
    color: #888;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #4f6fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-contact {
    margin-top: 1rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4f6fff;
    color: #0a0a0a;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    z-index: 2000;
    font-weight: bold;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .crypto-options {
        grid-template-columns: 1fr;
    }

    .cart-float {
        right: 1rem;
        bottom: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .header {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.4rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* Selection */
::selection {
    background: #4f6fff;
    color: #0a0a0a;
}

/* ============================================
   CHAT / TICKET SYSTEM STYLES
   ============================================ */

/* Floating Chat Button */
.chat-float {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    background: #1a1a1a;
    border: 2px solid #4f6fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.5rem;
    z-index: 50;
}

.chat-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(79, 111, 255, 0.3);
}

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0055;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.unread-badge.hidden {
    display: none;
}

/* Encryption Notice */
.encryption-notice {
    background: rgba(10, 10, 26, 0.9);
    border: 1px solid #4f6fff;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.encryption-notice p {
    color: #4f6fff;
    margin: 0;
    font-size: 0.9rem;
}

/* Form Hint */
.form-hint {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Divider */
.divider {
    text-align: center;
    color: #666;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #2a2a2a;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Secondary Button */
.btn-secondary {
    background: #2a2a2a;
    color: #4f6fff;
}

.btn-secondary:hover {
    background: #3a3a3a;
}

/* Chat Modal */
.chat-modal {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    height: 80vh;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #0a0a0a;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Chat Messages */
.chat-message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    max-width: 85%;
}

.message-user {
    background: #0a0a1a;
    border: 1px solid #4f6fff;
    margin-left: auto;
}

.message-admin {
    background: #1a1a2a;
    border: 1px solid #4a4a5a;
    margin-right: auto;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-sender {
    font-weight: bold;
    color: #4f6fff;
}

.message-time {
    color: #666;
    font-size: 0.8rem;
}

.message-content {
    color: #e0e0e0;
    line-height: 1.5;
}

.message-product {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #2a2a2a;
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

.encrypted-indicator {
    color: #888;
    font-style: italic;
}

/* Chat Input */
.chat-input-area {
    display: flex;
    gap: 1rem;
}

.chat-input-area textarea {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 0.8rem;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: #4f6fff;
}

.send-btn {
    width: auto;
    padding: 0.8rem 1.5rem;
}

/* Loading State */
.loading {
    text-align: center;
    color: #888;
    padding: 2rem;
}

/* Error State */
.error {
    text-align: center;
    color: #ff0055;
    padding: 2rem;
}

/* No Messages */
.no-messages {
    text-align: center;
    color: #666;
    padding: 2rem;
}

/* Notification Error */
.notification-error {
    background: #ff0055;
    color: white;
}

/* ============================================
   TICKET STATUS STYLES
   ============================================ */

/* Ticket Header Info */
.ticket-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ticket-header-info h2 {
    margin: 0;
}

/* Status Badge */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background: #0a1a2a;
    color: #4f6fff;
    border: 1px solid #4f6fff;
}

.status-pending {
    background: #2a2a0a;
    color: #ffcc00;
    border: 1px solid #ffcc00;
}

.status-closed {
    background: #2a0a0a;
    color: #ff5555;
    border: 1px solid #ff5555;
}

/* Ticket Closed Notice */
.ticket-closed-notice {
    background: #1a0a0a;
    border: 1px solid #ff5555;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.ticket-closed-notice span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.ticket-closed-notice p {
    color: #ff5555;
    margin: 0.3rem 0;
}

.ticket-closed-notice p:last-child {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Disabled Chat Input */
.chat-input-area.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.chat-input-area.disabled textarea {
    background: #141414;
    cursor: not-allowed;
}

.chat-input-area.disabled button {
    background: #333;
    cursor: not-allowed;
}

/* ============================================
   OUT OF STOCK STYLES
   ============================================ */

.product-card.out-of-stock {
    opacity: 0.6;
    position: relative;
}

.product-card.out-of-stock .product-image {
    filter: grayscale(50%);
}

.stock-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff0055;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* ============================================
   ACCOUNT SYSTEM STYLES
   ============================================ */

/* Navigation Account Section */
.nav-account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-login-btn {
    background: #4f6fff;
    color: #0a0a0a !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.nav-login-btn:hover {
    background: #3b5bdb;
    color: #0a0a0a !important;
}

/* Navigation Action Buttons (Tickets, Orders, Messages) */
.nav-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(79, 111, 255, 0.15);
    color: #4f6fff !important;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(79, 111, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-action-btn:hover {
    background: rgba(79, 111, 255, 0.25);
    border-color: #4f6fff;
    color: #6b8cff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 111, 255, 0.2);
}

.nav-message-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.nav-message-badge.hidden {
    display: none;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.nav-user-btn:hover {
    border-color: #4f6fff;
}

.nav-username {
    color: #4f6fff;
    font-weight: bold;
}

.nav-avatar {
    width: 24px;
    height: 24px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Admin Access Bar */
.admin-access-bar {
    background: linear-gradient(90deg, #1a0a2a 0%, #0a1a1a 100%);
    border-bottom: 1px solid #4f6fff;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#admin-welcome {
    color: #4f6fff;
    font-weight: bold;
}

.admin-panel-btn {
    width: auto;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* Account Dropdown */
.account-dropdown {
    position: fixed;
    top: 120px;
    right: 2rem;
    background: rgba(13, 13, 18, 0.98);
    border: 1px solid #1a1a2a;
    border-radius: 8px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#dropdown-username {
    color: #4f6fff;
    font-weight: bold;
}

.dropdown-badge {
    background: #4f6fff;
    color: #0a0a0a;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #2a2a2a;
    color: #4f6fff;
}

.dropdown-logout {
    color: #ff5555;
}

.dropdown-logout:hover {
    background: #2a1a1a;
    color: #ff5555;
}

.message-badge {
    background: #ff0055;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline;
}

.message-badge.hidden {
    display: none;
}

.cart-badge {
    background: #ff4444;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8em;
    display: inline;
}

.cart-badge.hidden {
    display: none;
}

/* Auth Modal */
.auth-form {
    margin-top: 1rem;
}

.auth-switch {
    text-align: center;
    color: #888;
    margin-top: 1rem;
}

.auth-switch a {
    color: #4f6fff;
    text-decoration: none;
    font-weight: bold;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Messages Modal */
.modal-large {
    max-width: 900px;
}

.modal-medium {
    max-width: 700px;
}

.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
    height: 500px;
}

.conversations-list {
    background: #0a0a0a;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 1rem;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversations-header h3 {
    color: #4f6fff;
    margin: 0;
    font-size: 1rem;
}

.conversations-items {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.2s;
}

.conversation-item:hover {
    background: #1a1a1a;
}

.conversation-item.active {
    background: #1a1a2a;
    border-left: 3px solid #4f6fff;
}

.conversation-username {
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversation-username .admin-badge {
    background: #4f6fff;
    color: #0a0a0a;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.65rem;
}

.conversation-preview {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

.conversation-unread {
    background: #ff0055;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: auto;
}

/* Message Thread */
.message-thread {
    background: #0a0a0a;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.no-conversation-selected {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.thread-header {
    padding: 1rem;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thread-username {
    color: #4f6fff;
    font-weight: bold;
}

.thread-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.pm-message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.pm-message.mine {
    margin-left: auto;
}

.pm-bubble {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: #1a1a2a;
}

.pm-message.mine .pm-bubble {
    background: #0a1a2a;
    border: 1px solid #4f6fff;
}

.pm-bubble p {
    color: #e0e0e0;
    margin: 0;
}

.pm-time {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.3rem;
    text-align: right;
}

.pm-message.mine .pm-time {
    text-align: right;
}

.thread-input {
    padding: 1rem;
    border-top: 1px solid #2a2a2a;
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.thread-input textarea {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 0.8rem;
    color: #e0e0e0;
    font-family: inherit;
    resize: none;
}

.thread-input textarea:focus {
    outline: none;
    border-color: #4f6fff;
}

.thread-input button {
    width: auto;
    padding: 0.8rem 1.5rem;
}

/* User Search Results */
.user-search-results {
    margin-top: 0.5rem;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.user-search-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.user-search-item:hover {
    background: #1a1a1a;
}

.user-search-item .username {
    color: #4f6fff;
    font-weight: bold;
}

.user-search-item .admin-badge {
    background: #4f6fff;
    color: #0a0a0a;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.65rem;
}

.no-users-found {
    padding: 1rem;
    color: #666;
    text-align: center;
}

/* Settings Section */
.settings-section {
    padding: 1.5rem 0;
}

.settings-section h3 {
    color: #4f6fff;
    margin-bottom: 1rem;
}

/* Button small variant */
.btn-small {
    width: auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Responsive adjustments for messages */
@media (max-width: 768px) {
    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .conversations-list {
        max-height: 200px;
    }

    .message-thread {
        min-height: 300px;
    }

    .account-dropdown {
        right: 1rem;
        left: 1rem;
        top: 160px;
    }

    .admin-access-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* My Tickets Modal */
.tickets-list-container {
    padding: 1.5rem 0;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.orders-list-container {
    padding: 1.5rem 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.tickets-list::-webkit-scrollbar {
    width: 8px;
}

.tickets-list::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 4px;
}

.tickets-list::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

.tickets-list::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

.ticket-item {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-item:hover {
    background: #252525;
    border-color: #4f6fff;
    box-shadow: 0 0 10px rgba(79, 111, 255, 0.1);
    transform: translateX(4px);
}

.ticket-item .ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.ticket-item .ticket-id {
    font-weight: bold;
    color: #4f6fff;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.ticket-item .ticket-status {
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    background: #2a2a2a;
    color: #888;
}

.ticket-item .ticket-status.status-open {
    background: rgba(79, 111, 255, 0.2);
    color: #4f6fff;
}

.ticket-item .ticket-status.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.ticket-item .ticket-status.status-closed {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
}

.ticket-item .ticket-subject {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.ticket-item .ticket-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.ticket-item .ticket-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ticket-item .ticket-messages {
    background: rgba(79, 111, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #4f6fff;
}

/* Ticket unread badge */
.ticket-item.has-unread {
    background: #1a1520;
    border-color: #ff4444;
}

.ticket-item.has-unread:hover {
    border-color: #ff6666;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.ticket-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 10px;
    margin-left: 8px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Chat button with unread tickets */
.chat-float.has-unread {
    border-color: #ff4444;
    animation: chat-pulse 2s infinite;
}

@keyframes chat-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 68, 68, 0); }
}

.chat-float .ticket-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    font-size: 0.75rem;
}

/* My Orders Modal */
.order-item {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.order-item:hover {
    background: #252525;
    border-color: #4f6fff;
    box-shadow: 0 0 10px rgba(79, 111, 255, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a2a2a;
}

.order-id-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-id {
    font-weight: bold;
    color: #4f6fff;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.order-status {
    font-size: 0.9rem;
    font-weight: 500;
}

.order-amount {
    color: #ffa500;
    font-weight: 500;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-label {
    color: #888;
    font-weight: 500;
}

.detail-value {
    color: #e0e0e0;
    text-align: right;
}

.no-orders {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-tickets p {
    margin-bottom: 1rem;
}

.modal-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a2a;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 0.8rem 1.5rem;
}

/* Message Bell Icon */
.message-bell-icon {
    color: #ff0055;
    margin-left: 0.5rem;
    display: inline-block;
    animation: bellBlink 0.6s infinite;
}

.message-bell-icon.hidden {
    display: none;
}

/* Navigation Bell Icon (next to username) */
.message-bell-nav {
    color: #ff0055;
    cursor: pointer;
    font-size: 1.2em;
    margin-right: 10px;
}

.message-bell-nav.hidden {
    display: none;
}

.message-bell-nav.blinking-bell {
    animation: bellBlink 0.6s infinite;
}

/* Session Timer (centered in nav bar) */
.session-timer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #4f6fff;
    font-size: 0.85rem;
    font-family: monospace;
    font-weight: bold;
    background: rgba(79, 111, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #4f6fff;
    white-space: nowrap;
    letter-spacing: 1px;
}

.session-timer.warning {
    color: #ffaa00;
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.session-timer.critical {
    color: #ff4444;
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
    animation: timerPulse 1s infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Navigation User Section */
.nav-user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes bellBlink {
    0%, 49% {
        opacity: 1;
        transform: scale(1);
    }
    50%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
}

/* Announcement Banner */
.announcement-banner {
    background: #1a1a2a;
    border: 2px solid #4f6fff;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.announcement-banner.type-info {
    border-color: #0099ff;
    background: #0a1a2a;
}

.announcement-banner.type-warning {
    border-color: #ffaa00;
    background: #2a2a0a;
}

.announcement-banner.type-maintenance {
    border-color: #ff6644;
    background: #2a1410;
}

.announcement-banner.type-sale {
    border-color: #ff0099;
    background: #2a0a1a;
}

.announcement-banner strong {
    color: #4f6fff;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.announcement-banner.type-info strong {
    color: #0099ff;
}

.announcement-banner.type-warning strong {
    color: #ffaa00;
}

.announcement-banner.type-maintenance strong {
    color: #ff6644;
}

.announcement-banner.type-sale strong {
    color: #ff0099;
}

.announcement-banner p {
    color: #e0e0e0;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   ENHANCED MOBILE OPTIMIZATION
   ============================================ */

/* Mobile-specific improvements */
.device-mobile {
    --mobile-padding: 0.75rem;
    --mobile-gap: 0.5rem;
}

.device-mobile .nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
}

.device-mobile .nav a {
    padding: 0.75rem;
    text-align: center;
}

.device-mobile .nav-account {
    width: 100%;
    flex-direction: column;
}

.device-mobile .nav-account a,
.device-mobile .nav-account .nav-user-section {
    width: 100%;
}

.device-mobile .nav-user-section {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.device-mobile .nav-action-btn {
    flex: 1;
    min-width: 90px;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
}

.device-mobile .session-timer {
    position: relative;
    left: auto;
    transform: none;
    font-size: 0.75rem;
    padding: 3px 8px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

/* ============================================
   MOBILE PRODUCT GRID - DESKTOP-STYLE 2-COLUMN
   ============================================ */
.device-mobile .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
}

.device-mobile .product-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    transition: border-color 0.3s;
}

.device-mobile .product-card:hover {
    transform: none;
    border-color: #4f6fff;
}

.device-mobile .product-image {
    width: 100%;
    height: 140px;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    background: #0a0a0a;
}

.device-mobile .product-image .product-emoji {
    font-size: 2.5rem;
}

.device-mobile .product-image .product-img {
    border-radius: 4px;
}

.device-mobile .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.device-mobile .product-description {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #aaa;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.device-mobile .product-price {
    margin-bottom: 0.75rem;
    gap: 0.2rem;
}

.device-mobile .price-crypto {
    font-size: 1.1rem;
    color: #4f6fff;
    font-weight: bold;
}

.device-mobile .price-usd {
    font-size: 0.8rem;
    color: #888;
}

/* Mobile tier display */
.device-mobile .product-tiers {
    padding: 0.5rem;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.device-mobile .tier-price-row {
    font-size: 0.75rem;
    padding: 0.3rem 0;
    gap: 0.25rem;
}

.device-mobile .tier-crypto {
    font-size: 0.65rem;
}

.device-mobile .product-price-single .price-fiat {
    font-size: 1rem;
}

.device-mobile .product-price-single .price-crypto {
    font-size: 0.75rem;
}

.device-mobile .product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.device-mobile .product-actions .btn {
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
    min-height: 40px;
    border-radius: 4px;
    font-weight: bold;
}

/* Out of stock badge on mobile */
.device-mobile .stock-badge {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

.device-mobile .modal-content {
    max-width: 95vw !important;
    width: 95vw;
    max-height: 90vh;
    padding: 1rem;
}

.device-mobile .modal-header {
    margin-bottom: 1rem;
}

.device-mobile .form-group {
    margin-bottom: 1rem;
}

.device-mobile .form-group label {
    font-size: 1rem;
}

.device-mobile .form-group input,
.device-mobile .form-group textarea,
.device-mobile .form-group select {
    font-size: 16px;
    padding: 0.75rem;
}

.device-mobile .btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.device-mobile .cart-items-grid {
    grid-template-columns: 1fr;
}

.device-mobile .cart-item {
    flex-direction: column;
}

.device-mobile .messages-container {
    grid-template-columns: 1fr;
    height: auto;
}

.device-mobile .message-detail {
    min-height: 200px;
}

.device-mobile h1 {
    font-size: 1.8rem;
}

.device-mobile h2 {
    font-size: 1.4rem;
}

.device-mobile h3 {
    font-size: 1.1rem;
}

.device-mobile .header {
    padding: 1.5rem 1rem;
}

.device-mobile .container {
    padding: 1rem;
}

.device-mobile .notice {
    padding: 1rem;
    margin: 1rem 0;
}

/* Ensure touch targets are large enough (44px minimum) */
.device-mobile button,
.device-mobile .btn,
.device-mobile input[type="button"],
.device-mobile input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
}

/* Improve form usability */
.device-mobile select {
    background-size: 30px;
    background-position: right 10px center;
    padding-right: 40px;
}

/* Better spacing for mobile content */
.device-mobile section {
    padding: 1rem 0;
}

/* ============================================
   UTILITY CLASSES FOR INLINE STYLE REPLACEMENT
   ============================================ */

/* Product Card Action Buttons */
.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.product-action-btn {
    flex: 1;
}

/* Cart item container styles */
.cart-item-container {
    background: #0a0a0a;
    border: 1px solid #4f6fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cart-item-quantity-label {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.cart-item-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #1a1a1a;
    border-radius: 4px;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-btn {
    padding: 0.25rem 0.5rem;
    background: #4f6fff;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.qty-input {
    width: 60px;
    padding: 0.25rem;
    background: #1a1a1a;
    border: 1px solid #4f6fff;
    color: #4f6fff;
    border-radius: 4px;
    text-align: center;
}

.cart-item-remove-btn {
    padding: 0.25rem 0.5rem;
}

/* No items message */
.no-items-message {
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* Error message */
.error-display {
    padding: 2rem;
    color: #ff0055;
}

/* Monospace text */
.monospace {
    font-family: 'Courier New', monospace;
}

/* Checkout modal styles */
.checkout-field-group {
    margin: 1rem 0;
}

.checkout-field-label {
    display: block;
    margin-bottom: 0.5rem;
}

.checkout-field-input {
    width: 100%;
    padding: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #4f6fff;
    color: #4f6fff;
    border-radius: 4px;
}

.checkout-summary-box {
    margin: 1rem 0;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 4px;
}

.checkout-button {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Admin badge inline style */
.admin-badge-inline {
    color: #4f6fff;
    font-size: 0.7rem;
}

/* ============================================
   REDESIGNED CART STYLES
   ============================================ */

/* Add to Cart Modal */
.modal-small {
    max-width: 450px;
}

.atc-content {
    padding: 1rem 0;
}

.atc-product-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.atc-product-info h3 {
    margin: 0 0 0.5rem 0;
    color: #4f6fff;
}

.atc-description {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.atc-prices {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.atc-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4f6fff;
}

.atc-crypto {
    font-size: 0.9rem;
    color: #888;
}

.atc-form {
    margin: 1rem 0;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.atc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.atc-form .form-group {
    margin-bottom: 0;
}

.atc-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4f6fff;
    font-weight: 600;
}

.atc-form select,
.atc-form input {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.atc-form select:focus,
.atc-form input:focus {
    border-color: #4f6fff;
    outline: none;
}

.atc-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.atc-buttons .btn {
    flex: 1;
}

/* Cart Modal Layout */
.cart-modal {
    max-width: 900px;
}

.cart-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 400px;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* Cart Items Column */
.cart-items-column {
    display: flex;
    flex-direction: column;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.cart-items-header h3 {
    margin: 0;
    color: #4f6fff;
}

/* Empty Cart */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #666;
}

.empty-cart-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart p {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #888;
}

.empty-cart-hint {
    font-size: 0.85rem;
    color: #555;
}

/* Cart Items List */
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.cart-item:hover {
    border-color: #4f6fff;
}

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

.cart-item-name {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #fff;
}

.cart-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.cart-item-unit-price {
    color: #888;
}

.cart-item-crypto {
    color: #666;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quantity-control .qty-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.quantity-control .qty-input {
    width: 50px;
    height: 28px;
    padding: 0.25rem;
}

.cart-item-subtotal {
    min-width: 70px;
    text-align: right;
    color: #4f6fff;
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #ff4444;
    color: #000;
}

/* Cart Summary */
.cart-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #4f6fff;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #888;
}

.summary-total {
    border-top: 1px solid #333;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1.1rem;
    color: #4f6fff;
    font-weight: bold;
}

.summary-crypto-total {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    color: #ffa500;
    font-weight: bold;
}

.order-summary-crypto {
    margin-top: 0.25rem;
    color: #ffa500;
}

/* Checkout Column */
.checkout-column {
    border-left: 1px solid #333;
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .checkout-column {
        border-left: none;
        border-top: 1px solid #333;
        padding-left: 0;
        padding-top: 2rem;
    }
}

.checkout-column h3 {
    margin: 0 0 1.5rem 0;
    color: #4f6fff;
}

.checkout-section {
    margin-bottom: 1.5rem;
}

.checkout-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.checkout-column .form-group {
    margin-bottom: 0.75rem;
}

.checkout-column label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.checkout-column input,
.checkout-column select {
    width: 100%;
    padding: 0.6rem;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #4f6fff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.checkout-column input:focus,
.checkout-column select:focus {
    border-color: #4f6fff;
    outline: none;
}

.checkout-column input::placeholder {
    color: #444;
}

/* Delivery Options */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.delivery-option:hover {
    border-color: #4f6fff;
}

.delivery-option input[type="radio"] {
    width: auto;
    margin-top: 0.25rem;
    accent-color: #4f6fff;
}

.delivery-option input[type="radio"]:checked + .delivery-label strong {
    color: #4f6fff;
}

.delivery-label {
    display: flex;
    flex-direction: column;
}

.delivery-label strong {
    color: #fff;
    font-size: 0.9rem;
}

.delivery-label small {
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Order Summary in Checkout */
.order-summary {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    color: #888;
}

.order-summary-total {
    border-top: 1px solid #333;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    color: #4f6fff;
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(135deg, #4f6fff, #3b5bdb);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 111, 255, 0.3);
}

/* Button Variants */
.btn-primary {
    background: #4f6fff;
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #4f6fff;
    color: #4f6fff;
}

.btn-danger {
    background: #ff4444;
    color: #fff;
    border: none;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* ============================================
   PAYMENT MODAL STYLES (Wide Two-Column Layout)
   ============================================ */

.payment-modal-content {
    max-width: 900px;
    width: 95%;
    background: linear-gradient(180deg, rgba(13, 13, 18, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
    border: 1px solid #4f6fff;
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.payment-header {
    background: linear-gradient(135deg, #0a0a1a 0%, #0d0d1a 100%);
    border-bottom: 1px solid #4f6fff33;
    padding: 1rem 1.5rem;
}

.payment-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #4f6fff;
    font-weight: 600;
}

.payment-body {
    padding: 1.25rem;
}

/* Two-Column Layout */
.payment-layout {
    display: flex;
    gap: 1.5rem;
}

.payment-left-column {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* QR Code Section */
.payment-qr-section {
    text-align: center;
    margin-bottom: 1rem;
}

.qr-wrapper {
    display: inline-block;
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.15);
}

.qr-wrapper #qrcode {
    display: block;
    text-align: center;
}

.qr-wrapper #qrcode img,
.qr-wrapper #qrcode canvas {
    display: block;
    margin: 0 auto;
}

/* Fix for table-based QR rendering (Tor Browser fallback) */
.qr-wrapper #qrcode table {
    margin: 0 auto;
    border-collapse: collapse;
}

.qr-wrapper #qrcode table td {
    padding: 0;
    margin: 0;
}

.qr-hint {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #666;
}

/* Payment Details Section */
.payment-details-section {
    margin-bottom: 1.5rem;
}

.payment-info-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.payment-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.payment-info-row:not(:last-child) {
    border-bottom: 1px solid #222;
}

.payment-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-value {
    font-weight: 600;
    color: #fff;
}

.payment-order-value {
    font-family: 'Courier New', monospace;
    color: #4f6fff;
    font-size: 0.9rem;
}

.payment-crypto-value {
    color: #ffa500;
}

/* Address Card */
.payment-address-card {
    background: linear-gradient(135deg, #0a0a1a 0%, #0d0d1a 100%);
    border: 1px solid rgba(79, 111, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
}

.payment-address-card .payment-label {
    display: block;
    margin-bottom: 0.75rem;
    color: #4f6fff;
    font-weight: 500;
}

.payment-address-box {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
}

.wallet-address {
    display: block;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #4f6fff;
    line-height: 1.5;
    text-align: center;
}

.btn-copy-address {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid #4f6fff;
    color: #4f6fff;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-copy-address:hover {
    background: #4f6fff;
    color: #000;
}

.copy-icon {
    font-size: 1rem;
}

/* Transaction Confirmation Section */
.payment-confirm-section {
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.confirm-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.confirm-icon {
    font-size: 1.25rem;
}

.confirm-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #4f6fff;
    font-weight: 600;
}

.confirm-description {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

.txid-input-wrapper {
    margin-bottom: 0.75rem;
}

.txid-input {
    width: 100%;
    min-height: 80px;
    padding: 0.875rem;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #4f6fff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s;
    line-height: 1.5;
}

.txid-input:focus {
    outline: none;
    border-color: #4f6fff;
    box-shadow: 0 0 0 2px rgba(79, 111, 255, 0.1);
}

.txid-input::placeholder {
    color: #444;
    font-family: inherit;
}

.btn-submit-txid {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #4f6fff 0%, #3b5bdb 100%);
    border: none;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit-txid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 111, 255, 0.3);
}

/* Payment Footer */
.payment-footer {
    padding-top: 0.5rem;
}

.btn-close-payment {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid #444;
    color: #888;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-payment:hover {
    border-color: #666;
    color: #fff;
}

/* Mobile Responsiveness for Payment Modal */
@media (max-width: 700px) {
    .payment-modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        max-height: 90vh;
        overflow-y: auto;
    }

    .payment-layout {
        flex-direction: column;
    }

    .payment-left-column {
        width: 100%;
    }

    .payment-body {
        padding: 1rem;
    }

    .qr-wrapper {
        padding: 12px;
    }

    .wallet-address {
        font-size: 0.75rem;
    }
}

/* ============================================
   MY ORDERS STYLES
   ============================================ */

.order-item {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.order-item:hover {
    border-color: #333;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #222;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Status-specific colors for order badges */
.order-status-pending {
    background: rgba(255, 170, 0, 0.13);
    border: 1px solid #ffaa00;
    color: #ffaa00;
}

.order-status-paid {
    background: rgba(0, 255, 136, 0.13);
    border: 1px solid #00ff88;
    color: #00ff88;
}

.order-status-in-transit {
    background: rgba(0, 170, 255, 0.13);
    border: 1px solid #00aaff;
    color: #00aaff;
}

.order-status-completed {
    background: rgba(0, 255, 136, 0.13);
    border: 1px solid #00ff88;
    color: #00ff88;
}

.order-status-lost {
    background: rgba(255, 0, 85, 0.13);
    border: 1px solid #ff0055;
    color: #ff0055;
}

/* Order items list styles */
.order-items-list {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.order-items-label {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.order-product-row {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.order-product-row:last-child {
    border-bottom: none;
}

.order-product-price {
    float: right;
}

/* No orders message */
.no-orders {
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* Monospace text utility */
.monospace {
    font-family: 'Courier New', monospace;
}

.btn-pay-order {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #4f6fff 0%, #3b5bdb 100%);
    border: none;
    color: #000;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pay-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 111, 255, 0.3);
}

.order-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #1a1a1a;
    min-width: 0;
    gap: 1rem;
    overflow: hidden;
    width: 100%;
}

.order-details .detail-row:last-child {
    border-bottom: none;
}

.order-details .detail-label {
    color: #666;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.order-details .detail-value {
    color: #fff;
    font-size: 0.85rem;
    text-align: right;
    max-width: 60%;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.txid-submitted {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    display: block;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #4f6fff;
}

.txid-submitted a {
    color: #4f6fff !important;
    text-decoration: none;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    display: inline-block;
    max-width: 100%;
}

.txid-submitted a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness for orders */
@media (max-width: 480px) {
    .order-header {
        flex-direction: column;
        align-items: stretch;
    }

    .order-status-badge {
        justify-content: center;
    }

    .btn-pay-order {
        width: 100%;
        text-align: center;
    }

    .order-details .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .order-details .detail-value {
        text-align: left;
        max-width: 100%;
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS FOR PRODUCT GRID
   ============================================ */

/* Small phones (320px - 380px) */
@media (max-width: 380px) {
    .device-mobile .products-grid {
        gap: 0.75rem;
    }

    .device-mobile .product-card {
        padding: 0.75rem;
    }

    .device-mobile .product-image {
        height: 120px;
    }

    .device-mobile .product-title {
        font-size: 0.9rem;
    }

    .device-mobile .product-description {
        font-size: 0.75rem;
    }

    .device-mobile .price-crypto {
        font-size: 1rem;
    }

    .device-mobile .product-actions .btn {
        padding: 0.55rem 0.4rem;
        font-size: 0.8rem;
        min-height: 38px;
    }
}

/* Very small phones (under 320px) - Single column */
@media (max-width: 320px) {
    .device-mobile .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .device-mobile .product-card {
        padding: 1rem;
    }

    .device-mobile .product-image {
        height: 160px;
    }

    .device-mobile .product-title {
        font-size: 1.1rem;
    }

    .device-mobile .product-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }

    .device-mobile .price-crypto {
        font-size: 1.2rem;
    }

    .device-mobile .product-actions .btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

/* Large phones / small tablets (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .device-mobile .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .device-mobile .product-card {
        padding: 1.25rem;
    }

    .device-mobile .product-image {
        height: 160px;
    }

    .device-mobile .product-title {
        font-size: 1.1rem;
    }

    .device-mobile .product-description {
        font-size: 0.85rem;
    }

    .device-mobile .price-crypto {
        font-size: 1.2rem;
    }

    .device-mobile .product-actions .btn {
        padding: 0.7rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* Small tablets (601px - 768px) - 3 columns */
@media (min-width: 601px) and (max-width: 768px) {
    .device-mobile .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .device-mobile .product-image {
        height: 140px;
    }

    .device-mobile .product-title {
        font-size: 0.95rem;
    }
}

/* ============================================
   TIERED PRICING - ADD TO CART MODAL
   ============================================ */

.atc-tier-selection {
    margin: 1rem 0;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.atc-tier-selection .form-group {
    margin-bottom: 1rem;
}

.atc-tier-selection .form-group:last-child {
    margin-bottom: 0;
}

.atc-tier-selection label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4f6fff;
    font-weight: 600;
}

.tier-select {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.95rem;
    cursor: pointer;
}

.tier-select:focus {
    border-color: #4f6fff;
    outline: none;
}

.tier-select option {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 0.5rem;
}

#atc-tier-quantity {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1rem;
}

#atc-tier-quantity:focus {
    border-color: #4f6fff;
    outline: none;
}

/* Mobile responsive for tier selection and regular form */
.device-mobile .atc-tier-selection,
.device-mobile .atc-form {
    padding: 0.75rem;
}

.device-mobile .tier-select,
.device-mobile #atc-tier-quantity,
.device-mobile .atc-form select,
.device-mobile .atc-form input {
    font-size: 16px; /* Prevents zoom on iOS */
}

.device-mobile .atc-form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.device-mobile .atc-tier-selection .form-group,
.device-mobile .atc-form .form-group {
    margin-bottom: 0.75rem;
}

.device-mobile .atc-tier-selection .form-group:last-child,
.device-mobile .atc-form .form-group:last-child {
    margin-bottom: 0;
}

/* ============================================
   STATUS NOTIFICATION BANNERS
   For order/payment status updates
   ============================================ */

.status-notification-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 2rem);
    background: linear-gradient(135deg, #1a1a2a 0%, #0d0d18 100%);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(79, 111, 255, 0.4), 0 0 60px rgba(79, 111, 255, 0.2);
    z-index: 10000;
    animation: slideDown 0.4s ease-out, pulse 2s ease-in-out infinite;
    overflow: hidden;
}

.status-notification-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), var(--color-primary));
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(79, 111, 255, 0.4), 0 0 60px rgba(79, 111, 255, 0.2);
    }
    50% {
        box-shadow: 0 8px 48px rgba(79, 111, 255, 0.6), 0 0 80px rgba(79, 111, 255, 0.3);
    }
}

.status-notification-banner.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
}

.status-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.status-notification-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(79, 111, 255, 0.5));
}

.status-notification-text {
    flex: 1;
    min-width: 0;
}

.status-notification-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-primary-light);
    margin-bottom: 0.25rem;
}

.status-notification-text p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.status-notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.status-notification-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Status-specific colors */
.status-notification-banner.order_shipped,
.status-notification-banner.order_completed,
.status-notification-banner.order_paid,
.status-notification-banner.payment_confirmed {
    border-color: var(--color-success);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4), 0 0 60px rgba(34, 197, 94, 0.2);
}

.status-notification-banner.order_shipped::before,
.status-notification-banner.order_completed::before,
.status-notification-banner.order_paid::before,
.status-notification-banner.payment_confirmed::before {
    background: linear-gradient(90deg, var(--color-success), #4ade80, var(--color-success));
}

.status-notification-banner.order_shipped .status-notification-text strong,
.status-notification-banner.order_completed .status-notification-text strong,
.status-notification-banner.order_paid .status-notification-text strong,
.status-notification-banner.payment_confirmed .status-notification-text strong {
    color: #4ade80;
}

.status-notification-banner.order_lost,
.status-notification-banner.payment_rejected {
    border-color: var(--color-error);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4), 0 0 60px rgba(239, 68, 68, 0.2);
}

.status-notification-banner.order_lost::before,
.status-notification-banner.payment_rejected::before {
    background: linear-gradient(90deg, var(--color-error), #f87171, var(--color-error));
}

.status-notification-banner.order_lost .status-notification-text strong,
.status-notification-banner.payment_rejected .status-notification-text strong {
    color: #f87171;
}

/* Notification badge in navigation */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: var(--color-error);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* User nav button needs relative positioning for badge */
#user-nav-btn {
    position: relative;
}

/* Mobile responsive for notification banner */
@media (max-width: 600px) {
    .status-notification-banner {
        top: 70px;
        max-width: calc(100% - 1rem);
        border-radius: 8px;
    }

    .status-notification-content {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.75rem;
    }

    .status-notification-icon {
        font-size: 2rem;
    }

    .status-notification-text {
        flex-basis: calc(100% - 3rem);
    }

    .status-notification-text strong {
        font-size: 1rem;
    }

    .status-notification-text p {
        font-size: 0.875rem;
    }

    .status-notification-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .status-notification-actions .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Dropdown notification badge */
.notification-count-badge {
    background: var(--color-error);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    animation: badgePulse 2s ease-in-out infinite;
}

.notification-count-badge.hidden {
    display: none !important;
}

/* Notifications modal and list */
.notifications-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(79, 111, 255, 0.1) 0%, rgba(79, 111, 255, 0.05) 100%);
    border-color: var(--color-primary);
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item:hover {
    border-color: var(--color-primary);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.notification-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.notification-content strong {
    display: block;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.notification-content p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-date {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.notification-item .mark-read-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    font-size: 1rem !important;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-tiny {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
}

.no-notifications,
.loading-text,
.error-text {
    text-align: center;
    color: var(--color-text-secondary);
    padding: 2rem;
}

.error-text {
    color: var(--color-error);
}

/* ========================================
   Product Detail Modal
   ======================================== */
.product-detail-content {
    max-width: 1200px;
    width: 95%;
    padding: 0;
    overflow: hidden;
}

.product-detail-content .modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.product-detail-content .modal-close:hover {
    background: rgba(79, 111, 255, 0.8);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

/* Left Column: Pricing */
.product-detail-pricing-column {
    background: #0a0a0a;
    padding: 1.5rem;
    min-height: 500px;
    max-height: 700px;
    overflow-y: auto;
    border-right: 1px solid #1a1a2a;
}

.product-detail-pricing {
    background: transparent;
    border: none;
    padding: 0;
}

/* Right Column: Details */
.product-detail-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-detail-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.product-detail-image {
    width: 140px;
    height: 140px;
    min-width: 140px;
    background: #0a0a0a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-image .emoji-display {
    font-size: 4rem;
}

.product-detail-title-section {
    flex: 1;
    position: relative;
}

.product-detail-title-section .stock-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

.product-detail-category {
    color: #4f6fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.product-detail-title {
    font-size: 1.75rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.product-detail-description {
    color: #9ca3af;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    min-height: 150px;
    max-height: 350px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.pd-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pd-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1a1a2a;
}

.pd-price-row:last-child {
    border-bottom: none;
}

.pd-price-label {
    color: #9ca3af;
    font-size: 0.9rem;
}

.pd-price-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.pd-price-value.crypto {
    color: #4f6fff;
    font-family: monospace;
}

/* Tiered Pricing Grid */
.pd-tiers-section h4 {
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
}

.pd-tiers-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pd-tier-card {
    background: #111;
    border: 1px solid #1a1a2a;
    border-radius: 4px;
    padding: 0.5rem;
    transition: border-color 0.3s;
}

.pd-tier-card:hover {
    border-color: #4f6fff;
}

.pd-tier-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4f6fff;
    margin-bottom: 0.25rem;
}

.pd-tier-prices {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.75rem;
}

.pd-tier-prices .fiat {
    color: #ffffff;
}

.pd-tier-prices .crypto {
    color: #9ca3af;
    font-family: monospace;
    font-size: 0.65rem;
}

/* Action Buttons */
.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.product-detail-actions .btn {
    flex: 1;
}

/* Out of stock state */
.product-detail-content.out-of-stock #pd-add-cart-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product Card clickable hover effect (frontend only - scoped to products-grid) */
.products-grid .product-card {
    cursor: pointer;
    position: relative;
}

.products-grid .product-card::after {
    content: 'Click for details';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(79, 111, 255, 0.9));
    color: white;
    text-align: center;
    padding: 1.5rem 0.5rem 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
    border-radius: 0 0 8px 8px;
}

.products-grid .product-card:hover::after {
    opacity: 1;
}

/* Responsive: Mobile Layout */
.device-mobile .product-detail-layout {
    grid-template-columns: 1fr;
}

.device-mobile .product-detail-image-container {
    min-height: 250px;
}

.device-mobile .product-detail-image {
    min-height: 250px;
}

.device-mobile .product-detail-info {
    padding: 1.5rem;
}

.device-mobile .product-detail-actions {
    flex-direction: column;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-detail-image-container {
        min-height: 250px;
    }

    .product-detail-image {
        min-height: 250px;
    }

    .product-detail-actions {
        flex-direction: column;
    }
}
