/* Digital Asset Marketplace — Complete Dark Theme Stylesheet */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-card: #1a1a25;
    --border: #1e1e2a;
    --border-hover: #2a2a3a;
    --text-primary: #ffffff;
    --text-secondary: #888899;
    --text-muted: #555566;
    --accent-from: #00d4ff;
    --accent-to: #7b2ff7;
    --accent-gradient: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    --danger: #ff6b6b;
    --success: #6bcb77;
    --warning: #ffd93d;
    --info: #4d96ff;
    --teal: #4ecdc4;
    --green-soft: #96ceb4;
    --sidebar-width: 250px;
    --header-height: 64px;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { font-size: 16px; }

body {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent-from); text-decoration: none; }
a:hover { color: var(--accent-to); }

h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 600; }

/* Layout containers */
.app-layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; padding: 24px; margin-left: var(--sidebar-width); overflow-x: hidden; }
.full-content { flex: 1; padding: 24px; }

/* Content navigation (horizontal top bar) */
.content-nav { display: flex; gap: 4px; padding: 8px 24px; background: #0d0d15; border-bottom: 1px solid #1a1a25; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 6px; font-size: 0.85rem; color: #555566; text-decoration: none; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.content-nav-link:hover { color: #00d4ff; background: rgba(0,212,255,0.08); }
.content-nav-link.active { color: #00d4ff; background: rgba(0,212,255,0.1); }

/* Sidebar */
.sidebar {
    background: #0d0d14;
    width: var(--sidebar-width);
    height: 100vh;
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav { flex: 1; padding: 8px 0; overflow-y: scroll; scrollbar-width: thin; }
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-track { background: #0a0a0f; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #3a3a4a; border-radius: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: #5a5a6a; }

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.82rem;
}

.sidebar-item i { width: 18px; text-align: center; font-size: 0.9rem; }

.sidebar-item:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

.sidebar-item.active {
    color: var(--accent-from);
    border-left-color: var(--accent-from);
    background: rgba(0,212,255,0.05);
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Top navbar */
.topbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }

.topbar-brand { font-weight: 700; font-size: 1.1rem; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hamburger { display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: var(--text-primary); font-size: 1.3rem; cursor: pointer; padding: 8px 12px; z-index: 101; position: relative; transition: background 0.2s, border-color 0.2s; min-width: 42px; min-height: 38px; }
.hamburger:hover, .hamburger:active { background: rgba(255,255,255,0.12); border-color: var(--accent-from); }

/* Hide hamburger on desktop where sidebar is always visible */
@media (min-width: 993px) { .hamburger { display: none !important; } }

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover { border-color: var(--accent-from); }

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

.card-body { }

.card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn-accent {
    background: var(--accent-gradient);
    color: #fff;
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,212,255,0.3);
    color: #fff;
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; }

.btn-warning { background: var(--warning); color: #1a1a25; }
.btn-warning:hover { opacity: 0.9; }

.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { opacity: 0.9; }

.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-ghost:hover { border-color: var(--accent-from); color: var(--accent-from); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Form controls */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--accent-from);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }
select.form-control option { background: var(--bg-secondary); color: var(--text-primary); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-text { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.85rem; color: var(--danger); margin-top: 4px; }

/* Tables */
.table-container { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-secondary);
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,0.02); }

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

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-yodlee { background: var(--danger); color: #fff; }
.badge-plaid { background: var(--teal); color: #1a1a25; }
.badge-online { background: var(--info); color: #fff; }
.badge-mobile { background: var(--green-soft); color: #1a1a25; }
.badge-notag { background: var(--text-muted); color: #fff; }

/* Status badges */
.status-pending { background: var(--warning); color: #1a1a25; }
.status-open { background: var(--warning); color: #1a1a25; }
.status-paid { background: var(--success); color: #fff; }
.status-approved { background: var(--success); color: #fff; }
.status-delivered { background: var(--info); color: #fff; }
.status-refunded { background: var(--danger); color: #fff; }
.status-rejected { background: var(--danger); color: #fff; }
.status-cancelled { background: var(--text-muted); color: #fff; }
.status-expired { background: var(--danger); color: #fff; }

/* Feature badges */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Product card */
.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    min-width: 0;
}

.product-card .product-card-title {
    font-size: 0.95rem;
    margin-bottom: 2px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    display: block;
}

.product-card .badge {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: left;
    line-height: 1.3;
}

.product-card .product-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    min-height: 20px;
    max-width: 100%;
    overflow: hidden;
}

.product-card .product-card-license {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.product-card .product-card-license .badge {
    font-size: 0.65rem;
}

.product-card:hover {
    border-color: var(--accent-from);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card .price-crypto {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-card .product-card-footer {
    margin-top: auto;
}

.product-balance { font-size: 0.9rem; color: var(--accent-from); font-weight: 600; }

/* Product grid uniform cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.product-grid > * {
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

/* Product card link (seller page) */
.product-card-link {
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    min-width: 0;
}

.product-card-link .pcl-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    margin-bottom: 6px;
}

.product-card-link .pcl-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-from);
    margin-top: auto;
}

.product-card-link:hover {
    border-color: var(--accent-from);
    transform: translateY(-3px);
}

.product-card-link .badge {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: left;
}

/* More from seller inline cards (product show page) */
.more-seller-card {
    flex: 0 0 180px;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.more-seller-card:hover {
    border-color: var(--accent-from);
}

.more-seller-card .msc-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    margin-bottom: 4px;
}

.more-seller-card .msc-img-wrap {
    width: 100%;
    height: 80px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #1a1a25;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.more-seller-card .msc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-seller-card .msc-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-from);
    margin-top: auto;
}

/* Delivery format box */
.delivery-box {
    background: #000;
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Guarantee section */
.guarantee-item {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guarantee-check { color: var(--success); margin-right: 8px; }

/* Landing page */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
    text-align: center;
}

.landing-logo { max-width: 200px; margin-bottom: 24px; }

.landing-heading {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 24px;
}

.landing-subtext {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 8px;
}

.landing-telegram {
    margin-top: 32px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.landing-telegram h3 { color: var(--text-secondary); font-size: 1rem; margin-bottom: 8px; }

.landing-footer {
    margin-top: 48px;
    max-width: 600px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }

.stats-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stats-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stats-card-icon.blue { background: rgba(77,150,255,0.1); color: var(--info); }
.stats-card-icon.green { background: rgba(107,203,119,0.1); color: var(--success); }
.stats-card-icon.yellow { background: rgba(255,217,61,0.1); color: var(--warning); }
.stats-card-icon.purple { background: rgba(123,47,247,0.1); color: var(--accent-to); }

.stats-card-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.stats-card-label { font-size: 0.85rem; color: var(--text-muted); }

/* Animations */
@keyframes flash-green {
    0% { background: rgba(107,203,119,0.3); }
    100% { background: transparent; }
}

.flash-update { animation: flash-green 3s ease; }

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

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

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    min-width: 280px;
    max-width: 400px;
    animation: fadeIn 0.3s ease;
}

.toast-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.toast-title { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px; }
.toast-body { font-size: 0.85rem; color: var(--text-secondary); }
.toast.info { border-left: 3px solid var(--info); }
.toast.success { border-left: 3px solid var(--success); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.error { border-left: 3px solid var(--danger); }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.1rem; }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 24px; }

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.pagination a:hover { border-color: var(--accent-from); color: var(--accent-from); }
.pagination .active { background: var(--accent-gradient); color: #fff; border-color: transparent; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.85rem; }

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-from); }

.breadcrumb-sep { color: var(--text-muted); font-size: 0.7rem; }

.breadcrumb-current { color: var(--text-secondary); }

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success { background: rgba(107,203,119,0.1); border: 1px solid var(--success); color: var(--success); }
.alert-error { background: rgba(255,107,107,0.1); border: 1px solid var(--danger); color: var(--danger); }
.alert-warning { background: rgba(255,217,61,0.1); border: 1px solid var(--warning); color: var(--warning); }
.alert-info { background: rgba(77,150,255,0.1); border: 1px solid var(--info); color: var(--info); }

/* Search */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input {
    flex: 1;
    padding: 12px 16px 12px 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-input:focus { border-color: var(--accent-from); outline: none; }

.search-wrapper { position: relative; flex: 1; }
.search-wrapper i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* Filter sidebar */
.filter-section { margin-bottom: 20px; }
.filter-section h4 { font-size: 0.9rem; margin-bottom: 10px; color: var(--text-secondary); }

.filter-checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.9rem; }
.filter-checkbox input[type="checkbox"] { accent-color: var(--accent-from); }

/* Progress bar */
.progress { height: 4px; background: var(--bg-card); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent-gradient); border-radius: 2px; transition: width 0.3s; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a4a; }

/* Grid layouts */

/* Status timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }

.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg-primary);
}

.timeline-item.completed::before { background: var(--success); }
.timeline-item.active::before { background: var(--accent-from); box-shadow: 0 0 0 4px rgba(0,212,255,0.2); }

.timeline-date { font-size: 0.8rem; color: var(--text-muted); }
.timeline-title { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); }

/* Ensure images and media scale on all devices */
img, video, canvas, svg { max-width: 100%; height: auto; }
table { word-break: break-word; }

/* ===== Responsive Breakpoints ===== */

/* touch devices — disable hover effects that interfere */
@media (hover: none) and (pointer: coarse) {
    .card:hover, .product-card:hover, .stats-card:hover { transform: none !important; border-color: var(--border); box-shadow: none !important; }
    .sidebar-item:hover { background: transparent; }
    .btn-accent:hover { transform: none; box-shadow: none; }
}

/* Large desktops (1200px+) */
@media (min-width: 1200px) {
    .content-nav { padding: 8px 32px; }
    .main-content > .card:first-of-type { margin-top: 0; }
}

/* Extra wide desktops (1400px+) — show 4 product columns */
@media (min-width: 1400px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet portrait and below (max 992px) — sidebar becomes overlay, hamburger visible */
@media (max-width: 992px) {
    .sidebar { position: fixed; top: 0; left: 0; width: 280px; height: 100vh; z-index: 101; transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100; }
    .sidebar.open ~ .sidebar-backdrop,
    .sidebar-backdrop.open { display: block; cursor: pointer; }
    .hamburger { display: inline-flex !important; }
    .main-content { margin-left: 0; padding: 16px; overflow-x: hidden; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-card { padding: 16px; }
    .stats-card-value { font-size: 1.2rem; }
    .topbar { padding: 0 14px; }
    .topbar-right { gap: 8px; }
    .content-nav { padding: 6px 12px; gap: 2px; }
    .content-nav-link { font-size: 0.8rem; padding: 5px 8px; }
    .landing-heading { font-size: 2rem; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
    .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .landing-heading { font-size: 1.8rem; }
    .search-bar { flex-direction: column; }
    .topbar { padding: 0 10px; }
    .topbar-brand { display: none; }
    .topbar-right { gap: 6px; }
    .topbar-right span { font-size: 0.75rem; }
    .content-nav { padding: 4px 6px; gap: 1px; overflow-x: auto; }
    .content-nav-link { font-size: 0.72rem; padding: 4px 5px; flex-shrink: 0; }
    .card { padding: 16px; }
    .card-header { flex-wrap: wrap; gap: 8px; }
    .modal { max-width: 96vw; margin: 10px; max-height: 90vh; }
    .modal-header, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; }
    .table th, .table td { padding: 8px 10px; font-size: 0.8rem; white-space: nowrap; }
    .empty-state { padding: 32px 16px; }
    .pagination { flex-wrap: wrap; gap: 2px; }
    .pagination a, .pagination span { min-width: 32px; height: 32px; font-size: 0.78rem; }
    .landing-subtext { font-size: 0.95rem; }
    .landing-container { padding: 24px 16px; }
    .breadcrumb { flex-wrap: wrap; }
    .toast { left: 12px; right: 12px; bottom: 12px; min-width: auto; max-width: none; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; }
    .features-grid { grid-template-columns: 1fr !important; }
    .stats-bar { flex-direction: column; gap: 16px !important; padding: 20px 24px !important; }
    .filter-section h4 { font-size: 0.82rem; }
    .form-control { padding: 10px 12px; font-size: 0.9rem; }
    .slider-section { padding: 16px 0 !important; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .stats-grid { gap: 12px; }
    /* Shop product page: filter sidebar stacks above products on mobile */
    div[style*="width:220px"][style*="flex-shrink:0"] { width: 100% !important; flex-shrink: 1 !important; margin-bottom: 16px; }
    /* Product show page: reduce image size on mobile */
    div[style*="width:200px"][style*="height:200px"] { width: 120px !important; height: 120px !important; }
    div[style*="width:200px"][style*="height:200px"] i { font-size: 2.5rem !important; }
    /* Product show page: reduce title font */
    h1[style*="font-size:1.5rem"] { font-size: 1.2rem !important; }
    /* Shop filter sidebar: remove sticky so it scrolls naturally on mobile */
    div[style*="width:220px"][style*="flex-shrink:0"] .card[style*="position:sticky"] { position: static !important; }
    /* Force any 2-column inline grids to single column */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:2fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: 1.5fr 1fr"],
    [style*="grid-template-columns:1.5fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: auto 1fr"],
    [style*="grid-template-columns:auto 1fr"] { grid-template-columns: 1fr !important; }
    /* Admin product table: allow scroll to see all columns */
    #productsTable { min-width: 700px; }
}

/* Small phones (576px and below) */
@media (max-width: 576px) {
    body { font-size: 14px; }
    .main-content { padding: 10px; }
    .card { padding: 12px; border-radius: 8px; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .stats-card { padding: 12px; gap: 10px; flex-direction: row; align-items: center; }
    .stats-card-icon { width: 36px; height: 36px; font-size: 1rem; }
    .stats-card-value { font-size: 1.1rem; }
    .stats-card-label { font-size: 0.78rem; }
    .product-card { padding: 14px; }
    .product-card .price { font-size: 1.2rem; }
    .btn { padding: 8px 16px; font-size: 0.82rem; }
    .btn-sm { padding: 4px 10px; font-size: 0.72rem; }
    .table th, .table td { padding: 6px 8px; font-size: 0.75rem; }
    .topbar { padding: 0 8px; height: 52px; }
    .topbar-right { gap: 4px; }
    .topbar-right span { font-size: 0.72rem; }
    .hamburger { font-size: 1.1rem; display: inline-flex !important; }
    .landing-heading { font-size: 1.5rem; }
    .landing-subtext { font-size: 0.85rem; }
    .content-nav { padding: 2px 4px; gap: 0; overflow-x: auto; }
    .content-nav-link { font-size: 0.65rem; padding: 3px 4px; flex-shrink: 0; }
    .topbar-right span { font-size: 0.7rem; }
    .stats-grid { gap: 8px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .features-grid { gap: 12px; }
    .search-wrapper { flex: auto; }
    .pagination { gap: 2px; }
    .pagination a, .pagination span { min-width: 28px; height: 28px; font-size: 0.72rem; padding: 0 6px; }
    .sidebar { width: 80vw; max-width: 300px; }
    /* Admin layout adjustments */
    .stats-grid > div[style*="display:flex;justify-content:space-between"] { flex-direction: column; gap: 12px; }
    #productsTable { min-width: 600px; }
    /* Product card: smaller font on mobile */
    .product-card .price-crypto { font-size: 0.75rem; }
}

/* Floating contact widget */
.page-footer { padding: 24px 32px; border-top: 1px solid #1a1a25; margin-top: 32px; }
.page-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-footer-logo { height: 24px; max-width: 120px; object-fit: contain; }
.page-footer-name { font-weight: 700; color: #fff; font-size: 0.9rem; }
.page-footer-copy { display: flex; align-items: center; gap: 16px; font-size: 0.78rem; color: #555566; }
.page-footer-copy a { color: #555566; text-decoration: none; transition: color 0.2s; }
.page-footer-copy a:hover { color: #00d4ff; }
@media (max-width: 600px) { .page-footer { padding: 16px; } .page-footer-inner { flex-direction: column; text-align: center; } }
.contact-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.contact-float a { display: flex; align-items: center; justify-content: center; gap: 8px; width: 52px; height: 52px; border-radius: 50%; text-decoration: none; font-size: 1.3rem; color: #fff; transition: all 0.25s; box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.contact-float a:hover { transform: scale(1.1); }
.contact-float .chat-btn { background: linear-gradient(135deg, #00d4ff, #7b2ff7); }
.contact-float .telegram-btn { background: #0088cc; }
.contact-float a .label { display: none; }
@media (min-width: 768px) {
    .contact-float a { width: auto; padding: 0 20px; border-radius: 26px; font-size: 0.9rem; }
    .contact-float a .label { display: inline; }
}

/* Product detail page responsive */
@media (max-width: 768px) {
    .product-detail-layout { flex-direction: column !important; }
    .product-detail-layout > div { width: 100% !important; min-width: 0 !important; }
    .product-detail-layout .card:last-child { margin-top: 16px; }
    .license-period-btn { min-width: 60px !important; font-size: 0.75rem !important; }
}
@media (max-width: 576px) {
    .product-detail-layout .price { font-size: 1.3rem !important; }
    .btn-lg { padding: 12px 24px; font-size: 0.95rem; }
    .license-period-btn { min-width: 50px !important; padding: 4px 8px !important; font-size: 0.7rem !important; }
}

/* Cart table mobile */
@media (max-width: 576px) {
    .table-responsive table.table { min-width: 500px; }
    .table td:nth-child(3), .table th:nth-child(3) { text-align: center; }
}
