/*
Theme Name: 5asmk.com
Theme URI: https://5asmk.com
Author: 5asmk Team
Author URI: https://5asmk.com
Description: Complete credit and cashback platform theme with Tree/Chain/Container architecture.
Version: 3.0.0
License: GPL v2 or later
Text Domain: 5asmk
*/

/* ============================================================
   FONT IMPORTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Cairo:wght@400;500;600;700;800&display=swap');

/* ============================================================
   ROOT VARIABLES - LIGHT THEME
   ============================================================ */
:root {
    --bg-primary: #F5F7FB;
    --bg-secondary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.95);
    --text-primary: #1A1A2E;
    --text-secondary: #4A5568;
    --text-muted: #A0AEC0;
    --gold: #FFD700;
    --gold-dark: #FFA500;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    --btn-outline-border: rgba(255, 215, 0, 0.4);
    --input-bg: #F7FAFC;
    --input-border: #E2E8F0;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-border: rgba(0, 0, 0, 0.08);
    --drawer-bg: #FFFFFF;
    --toast-bg: #FFFFFF;
    --toast-color: #1A1A2E;
    --toast-border: rgba(0, 0, 0, 0.1);
    --toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --selection-bg: #FFD700;
    --selection-color: #0A0A0A;
}

/* ============================================================
   ROOT VARIABLES - DARK THEME
   ============================================================ */
body.dark-theme {
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-card: rgba(15, 15, 15, 0.8);
    --bg-glass: rgba(10, 10, 10, 0.85);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    --border: rgba(255, 215, 0, 0.25);
    --border-light: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(10, 10, 10, 0.85);
    --nav-border: rgba(255, 215, 0, 0.25);
    --drawer-bg: #111111;
    --toast-bg: #1A1A1A;
    --toast-color: #FFFFFF;
    --toast-border: rgba(255, 215, 0, 0.2);
    --toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   GLOBAL RESET
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}

::-moz-selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold-dark);
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-success { color: #4CAF50; }
.text-danger { color: #f44336; }
.text-warning { color: #FF8C42; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.w-100 { width: 100%; }
.rounded-12 { border-radius: 12px; }
.rounded-16 { border-radius: 16px; }
.rounded-24 { border-radius: 24px; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    padding: 12px 28px;
    border-radius: 60px;
    background: var(--gold-gradient);
    color: #0A0A0A;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    color: #0A0A0A;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    padding: 12px 28px;
    border-radius: 60px;
    background: transparent;
    border: 1px solid var(--btn-outline-border);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-small {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-small:hover {
    background: var(--bg-card);
    border-color: var(--gold);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.card-store {
    border: 2px solid var(--gold);
}

.card-store .card-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.form-group .required {
    color: #f44336;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

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

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

body.rtl select.form-control {
    background-position: left 12px center;
    padding-right: 14px;
    padding-left: 36px;
}

/* ============================================================
   LOGIN MODAL (Integrated from plugin)
   ============================================================ */
.fiveasmk-login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fiveasmk-login-modal {
    background: var(--bg-secondary);
    border-radius: 36px;
    max-width: 440px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 32px 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

body.dark-theme .fiveasmk-login-modal {
    background: #1A1A1A;
}

.fiveasmk-login-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    font-size: 18px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

body.rtl .fiveasmk-login-modal-close {
    left: auto;
    right: 16px;
}

.fiveasmk-login-modal-close:hover {
    background: rgba(255, 215, 0, 0.15);
}

.fiveasmk-login-modal-logo {
    text-align: center;
    font-size: 48px;
    margin-bottom: 16px;
}

.fiveasmk-login-modal-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fiveasmk-login-modal-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.fiveasmk-login-code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.fiveasmk-login-code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border-radius: 12px;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    transition: 0.2s ease;
}

.fiveasmk-login-code-digit:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.fiveasmk-login-error {
    color: #f44336;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
}

.fiveasmk-login-success {
    color: #4CAF50;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
}

.fiveasmk-login-timer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.fiveasmk-login-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.fiveasmk-toast {
    position: fixed;
    bottom: 30px;
    z-index: 10000;
    background: var(--toast-bg);
    color: var(--toast-color);
    padding: 12px 24px;
    border-radius: 40px;
    border: 1px solid var(--toast-border);
    box-shadow: var(--toast-shadow);
    animation: fiveasmk-toast-slide-in 0.3s ease;
    font-size: 14px;
    max-width: 400px;
}

body.rtl .fiveasmk-toast {
    left: 30px;
    right: auto;
}

body.ltr .fiveasmk-toast {
    right: 30px;
    left: auto;
}

@keyframes fiveasmk-toast-slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ORBS
   ============================================================ */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: var(--orb-opacity-1, 0.4);
    pointer-events: none;
    animation: floatOrb 25s infinite ease-in-out;
}

.orb-1 { width: 350px; height: 350px; background: #FFD700; top: -150px; right: -150px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: #FF8C42; bottom: -100px; left: -100px; animation-delay: -7s; }
.orb-3 { width: 200px; height: 200px; background: #FFD700; top: 40%; left: 20%; animation-delay: -14s; opacity: var(--orb-opacity-3, 0.25); }

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -25px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-slide-down { animation: slideDown 0.4s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .glass-nav, .drawer-menu, .fiveasmk-footer { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .fiveasmk-page { padding: 20px !important; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
    .fiveasmk-login-code-digit { width: 40px; height: 48px; font-size: 20px; }
}

@media (max-width: 768px) {
    .fiveasmk-footer { padding: 40px 20px 20px; margin-top: 40px; }
    .fiveasmk-login-modal { padding: 30px 20px 24px; }
    .fiveasmk-login-code-digit { width: 36px; height: 44px; font-size: 18px; }
    .btn-primary, .btn-outline { padding: 10px 20px; font-size: 14px; }
    .fiveasmk-toast { max-width: 300px; font-size: 13px; padding: 10px 18px; }
}

@media (max-width: 480px) {
    .fiveasmk-footer { padding: 30px 16px 16px; }
    .fiveasmk-login-modal { padding: 24px 16px 20px; border-radius: 24px; }
    .fiveasmk-login-code-digit { width: 32px; height: 40px; font-size: 16px; }
    .fiveasmk-login-code-inputs { gap: 4px; }
    .btn-primary, .btn-outline { padding: 8px 16px; font-size: 13px; width: 100%; justify-content: center; }
    .fiveasmk-toast { max-width: 260px; font-size: 12px; padding: 8px 14px; bottom: 16px; }
    body.rtl .fiveasmk-toast { left: 16px; right: auto; }
    body.ltr .fiveasmk-toast { right: 16px; left: auto; }
}



/* ============================================================
   DARK THEME OVERRIDES - Ensure these work
   ============================================================ */
body.dark-theme {
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-card: rgba(15, 15, 15, 0.8);
    --bg-glass: rgba(10, 10, 10, 0.85);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    --border: rgba(255, 215, 0, 0.25);
    --border-light: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(10, 10, 10, 0.85);
    --nav-border: rgba(255, 215, 0, 0.25);
    --drawer-bg: #111111;
    --toast-bg: #1A1A1A;
    --toast-color: #FFFFFF;
    --toast-border: rgba(255, 215, 0, 0.2);
    --toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Force dark backgrounds for all cards */
body.dark-theme .card,
body.dark-theme .dashboard-header,
body.dark-theme .dashboard-stats .stat-item,
body.dark-theme .dashboard-payment-requests,
body.dark-theme .seller-header,
body.dark-theme .seller-section,
body.dark-theme .step-card,
body.dark-theme .benefit-card,
body.dark-theme .package-card,
body.dark-theme .ad-card,
body.dark-theme .store-card {
    background: #1A1A1A !important;
    border-color: rgba(255, 215, 0, 0.15) !important;
}

body.dark-theme .fiveasmk-login-modal {
    background: #1A1A1A !important;
}

body.dark-theme .glass-nav {
    background: rgba(10, 10, 10, 0.85) !important;
    border-color: rgba(255, 215, 0, 0.25) !important;
}

body.dark-theme .glass-nav.scrolled {
    background: #0A0A0A !important;
}


/* Dashboard BPC line wrap fix */
.dashboard-bpc .bpc-value {
    white-space: nowrap;
}
@media (max-width: 480px) {
    .dashboard-bpc .bpc-value {
        white-space: normal;
        word-break: break-all;
        display: block;
    }
}






/* ============================================================
   VOUCHER EXPIRY STYLES (Added for Vouchers & Bundles System)
   ============================================================ */
.voucher-expiry {
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}
.voucher-expiry.active {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}
.voucher-expiry.expiring-soon {
    background: rgba(255, 193, 7, 0.1);
    color: #F9A825;
}
.voucher-expiry.expired {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* Sold-out warning styles */
.bundles-sold-out-warning {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-weight: 600;
}
.bundles-sold-out-warning.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #F9A825;
    color: #F9A825;
}
.bundles-sold-out-warning.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}












/* ============================================================
   HERO CARD - TOP 10 SECTION STYLES
   ============================================================ */

.hero-card-top10 {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border, rgba(0,0,0,0.1));
}

.hero-card-top10-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.hero-card-top10-icon {
    font-size: 16px;
}

.hero-card-top10-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary, #1A1A2E);
}

.hero-card-top10-month {
    font-size: 11px;
    color: var(--text-muted, #A0AEC0);
    margin-right: auto;
}

body.rtl .hero-card-top10-month {
    margin-right: 0;
    margin-left: auto;
}

/* Content Styles */
.hero-card-top10-content {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary, #4A5568);
}

.hero-card-top10-content.top10-success {
    border-right: 3px solid #4CAF50;
    padding-right: 10px;
}

.hero-card-top10-content.top10-pending {
    border-right: 3px solid #FFD700;
    padding-right: 10px;
}

.hero-card-top10-content.top10-loading {
    border-right: 3px solid #2196F3;
    padding-right: 10px;
}

body.rtl .hero-card-top10-content {
    border-right: none;
    border-left: 3px solid #4CAF50;
    padding-right: 0;
    padding-left: 10px;
}

body.rtl .hero-card-top10-content.top10-pending {
    border-left-color: #FFD700;
}

body.rtl .hero-card-top10-content.top10-loading {
    border-left-color: #2196F3;
}

.hero-card-top10-rank {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary, #1A1A2E);
}

.hero-card-top10-reward {
    color: #FFD700;
    font-weight: 700;
    margin-bottom: 2px;
}

.hero-card-top10-message {
    font-size: 12px;
    color: var(--text-secondary, #4A5568);
    margin-top: 2px;
}

/* ============================================================
   TOP 10 ADMIN STYLES
   ============================================================ */

.top10-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.top10-admin-card {
    background: #f0f0f0;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.top10-admin-card .value {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A2E;
}

.top10-admin-card .label {
    font-size: 12px;
    color: #666;
}

.top10-admin-info-box {
    background: #f0f0f0;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

body.dark-theme .top10-admin-card {
    background: #1A1A1A;
}

body.dark-theme .top10-admin-card .value {
    color: #FFFFFF;
}

body.dark-theme .top10-admin-info-box {
    background: #1A1A1A;
}

@media (max-width: 768px) {
    .top10-admin-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .top10-admin-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .top10-admin-card .value {
        font-size: 22px;
    }
}









/* ============================================================
   FIX: Make ad/store images fit inside the frame (taller frames)
   ============================================================ */

/* Target all ad/store images in Discover, Stores, Ads sections */
.discover-card img,
.store-card img,
.ads-grid .discover-card img,
.stores-grid .discover-card img,
.discover-grid .discover-card img,
.fiveasmk-discover .discover-card img {
    height: 200px !important; /* taller frame */
    width: 100% !important;
    object-fit: contain !important; /* shows the WHOLE image */
    background: var(--input-bg, #F7FAFC);
    padding: 4px;
}

/* Also fix the placeholder icons */
.discover-card-placeholder {
    height: 200px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 48px !important;
    background: var(--input-bg, #F7FAFC);
}






/* ============================================================
   BUY GUIDE – Additional Styles
   ============================================================ */
#fiveasmk-buy-guide {
    animation: fadeIn 0.3s ease;
}
#fiveasmk-buy-guide .btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0A0A0A;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
#fiveasmk-buy-guide .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}
.hero-guide-link {
    color: #FFD700;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.hero-guide-link:hover {
    text-decoration: underline;
}







/* ============================================================
   FIX 15: AD/STORE POSITION BADGE (Seller Dashboard)
   ============================================================ */
.ad-position-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0A0A0A;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-right: 6px;
    margin-left: 6px;
    border: 1px solid rgba(255,215,0,0.3);
    white-space: nowrap;
    line-height: 1.4;
}

body.dark-theme .ad-position-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0A0A0A;
    border-color: rgba(255,215,0,0.2);
}

/* ============================================================
   FIX 18: Bump Tooltip Styles
   ============================================================ */
.bump-tooltip {
    font-size: 12px !important;
    white-space: normal !important;
    max-width: 250px !important;
    min-width: 180px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    padding: 12px 16px !important;
}

.bump-tooltip-wrapper:hover .bump-tooltip {
    display: block !important;
}

/* Position badge in mobile view */
@media (max-width: 768px) {
    .ad-position-badge {
        font-size: 10px;
        padding: 1px 8px;
    }
}

@media (max-width: 480px) {
    .ad-position-badge {
        font-size: 9px;
        padding: 1px 6px;
        margin-right: 3px;
        margin-left: 3px;
    }
    .bump-tooltip {
        left: 0 !important;
        transform: none !important;
        min-width: 150px !important;
        max-width: 200px !important;
    }
}

/* RTL support for position badge */
body.rtl .ad-position-badge {
    margin-right: 0;
    margin-left: 6px;
}

body.rtl .bump-tooltip-wrapper .bump-tooltip {
    left: auto !important;
    right: 50% !important;
    transform: translateX(50%) !important;
}

@media (max-width: 480px) {
    body.rtl .ad-position-badge {
        margin-right: 0;
        margin-left: 3px;
    }
}












.store-follow-btn,
.discover-follow-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #FFD700;
    background: transparent;
    color: #FFD700;
    cursor: pointer;
    transition: 0.2s;
}
.store-follow-btn:hover,
.discover-follow-btn:hover {
    background: rgba(255,215,0,0.1);
}
.store-follow-btn.following,
.discover-follow-btn.following {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}
.store-follow-btn.following:hover,
.discover-follow-btn.following:hover {
    background: #388E3C;
}








/* ============================================================
   FIX: BUYER DASHBOARD (BUNDLES) - MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .fiveasmk-my-bundles .my-vouchers-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        font-size: 12px !important;
    }
    .fiveasmk-my-bundles .my-vouchers-table th,
    .fiveasmk-my-bundles .my-vouchers-table td {
        padding: 6px 8px !important;
        white-space: nowrap !important;
    }
    .fiveasmk-my-bundles .my-bundle-item {
        padding: 12px !important;
    }
    .fiveasmk-my-bundles .my-bundle-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }
    .fiveasmk-my-bundles .my-bundle-header h3 {
        font-size: 16px !important;
    }
}
@media (max-width: 480px) {
    .fiveasmk-my-bundles .my-vouchers-table {
        font-size: 10px !important;
    }
    .fiveasmk-my-bundles .my-vouchers-table th,
    .fiveasmk-my-bundles .my-vouchers-table td {
        padding: 4px 6px !important;
    }
}









/* ============================================================
   END OF STYLES
   ============================================================ */