/* --- Variables --- */
:root {
    --tan-bg: #e5c4a1; 
    --dark-red: #4a0404;
    --gold-accent: #c5a059;
    --gold-glow: rgba(197, 160, 89, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(197, 160, 89, 0.2);
}

/* --- Main Container --- */
.store-main-container {
    background: #050101;
    background-image: 
        radial-gradient(circle at 20% 30%, #2b0303 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, #1a0202 0%, transparent 40%),
        linear-gradient(180deg, #0a0101 0%, #050101 100%);
    min-height: 100vh;
    padding: 60px 20px;
    font-family: 'Montserrat', sans-serif;
    color: white;
    overflow-x: hidden;
}

/* --- Navigation Tabs (Glassmorphic) --- */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 35px;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 1px;
}

.tab-btn.active {
    background: var(--gold-accent);
    color: var(--dark-red);
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--gold-glow);
    transform: scale(1.05);
}

/* --- Tab Transitions --- */
.section-content {
    display: none !important;
}

.section-content.active {
    display: block !important;
    animation: slideUpFade 0.6s ease-out forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* --- Package Wrapper --- */
.package-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px; 
    padding-top: 120px;
}

/* --- FIGMA CARD (Premium Glass) --- */
.figma-card {
    background: rgba(229, 196, 161, 0.95); /* Keeping the Tan but making it sleek */
    width: 300px;
    min-height: 400px;
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.figma-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 50px 100px rgba(0,0,0,0.9), 0 0 30px var(--gold-glow);
}

/* --- Floating Image Animation --- */
.overlap-img {
    position: absolute;
    left: 50%;
    top: -120px;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}

.card-info { text-align: center; color: var(--dark-red); margin-top: 20px; }
.card-info h2 { font-family: 'Cinzel', serif; font-size: 24px; margin-bottom: 12px; font-weight: 800; }
.card-info ul { list-style: none; padding: 0; margin-bottom: 20px; }
.card-info li { font-weight: 600; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.08); font-size: 13px; }

/* --- Button (Firebase Style) --- */
.price-tag-btn {
    background: var(--dark-red);
    color: var(--tan-bg);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.price-tag-btn:hover:not(:disabled) {
    background: #000;
    color: var(--gold-accent);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

/* --- History Page (Modern Glassmorphic Table) --- */
.history-container {
    max-width: 1000px;
    margin: 40px auto;
    background: rgba(20, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.history-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-accent);
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    text-shadow: 0 0 15px var(--gold-glow);
}

.history-table-wrapper {
    overflow-x: auto;
}

.history-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.history-table th { 
    color: var(--gold-accent); 
    padding: 20px; 
    text-align: left; 
    font-family: 'Cinzel'; 
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.history-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: scale(1.01);
}

.history-table td { 
    padding: 20px; 
    font-size: 14px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.history-table td:first-child { border-left: 1px solid var(--glass-border); border-radius: 15px 0 0 15px; }
.history-table td:last-child { border-right: 1px solid var(--glass-border); border-radius: 0 15px 15px 0; }

.status-badge {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-accent);
    padding: 6px 15px;
    border-radius: 100px;
    border: 1px solid var(--gold-accent);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050101; }
::-webkit-scrollbar-thumb { background: var(--dark-red); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-accent); }
/* --- ROUND IMAGE FIX --- */
.overlap-img {
    position: absolute;
    left: 50%;
    top: -120px;
    transform: translateX(-50%);
    
    /* Rounding Logic */
    width: 240px; 
    height: 240px;
    object-fit: cover; /* Image ko kharab nahi hone dega */
    border-radius: 50%; /* Perfect Circle */
    
    /* Glassy Border for Round Image */
    border: 4px solid var(--tan-bg);
    outline: 2px solid var(--gold-accent);
    outline-offset: 3px;
    
    background: var(--dark-red); /* Agar image transparent ho toh peeche dark color aayega */
    z-index: 10;
    
    /* Shadows and Glow */
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.8));
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.3);
    
    /* Animation */
    animation: float 4s ease-in-out infinite;
    pointer-events: none;
}

/* Card adjustments for Round Images */
.figma-card {
    margin-top: 60px; /* Thora gap zyada taake circle sahi nazar aaye */
}

/* Store aur Treasure ki images ko bhi round karne ke liye */
.ruby-card .overlap-img, .seal-card .overlap-img {
    width: 160px !important;
    height: 160px !important;
    top: -108px !important;
}
/* --- FIGMA CARD (Wider & Shorter with !important) --- */
.figma-card {
    background: rgba(229, 196, 161, 0.98) !important;
    width: 500px !important;       /* Width kafi barha di */
    height: 250px !important;      /* Height kam kar di */
    min-height: 250px !important; 
    border-radius: 24px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important; /* Content vertical hi rakha hai */
    justify-content: flex-end !important;
    padding: 25px !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8) !important;
    margin: 60px auto !important; /* Center mein lane ke liye */
    border: 1px solid rgba(255,255,255,0.2) !important;
    transition: all 0.4s ease !important;
}

/* --- ROUND IMAGE (Center Top Par Chipki Hui) --- */
.overlap-img {
    position: absolute !important;
    left: 50% !important;
    top: -133px !important; /* Height kam hai isliye top thora adjust kiya */
    transform: translateX(-50%) !important;
    
    width: 180px !important; /* Round look ke liye width=height */
    height: 180px !important;
    border-radius: 50% !important; /* Isse round hogi image */
    object-fit: cover !important;
    
    border: 5px solid var(--tan-bg) !important;
    outline: 2px solid var(--gold-accent) !important;
    outline-offset: 3px !important;
    background: var(--dark-red) !important;
    z-index: 20 !important;
    
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.8)) !important;
    animation: float 4s ease-in-out infinite !important;
}

/* --- Card Info Content Fix --- */
.card-info {
    text-align: center !important;
    color: var(--dark-red) !important;
    margin-top: 50px !important; /* Image ke liye gap */
}

.card-info h2 {
    font-family: 'Cinzel', serif !important;
    font-size: 22px !important;
    margin-bottom: 5px !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

.card-info ul {
    list-style: none !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
}

.card-info li {
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 3px 0 !important;
}

/* --- Button Adjustment --- */
.price-tag-btn {
    margin-top: auto !important;
    padding: 12px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
}

/* --- Float Animation --- */
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* --- Section Content Fix (Content Gayab Na Ho) --- */
.section-content.active {
    display: flex !important; /* Flexbox use kiya taake wide cards line mein aayein */
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 40px !important;
}