/* =====================================================
   AESTIA 3D — THE LUXURY VAULT (coines.css)
   "PERFECT" MINIMALIST DESIGN
   ===================================================== */

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

:root {
    --primary: #3E4C59;
    --primary-dark: #1F2933;
    --primary-light: #7B8794;
    --accent: #9AA5B1;
    --success: #2e7d32;
    --ink: #101419;
    --muted: #616E7C;
    --snow: #F8F9FA;
    --petal: #FFFFFF;
    --baby: #F0F2F5;
    
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Cormorant', serif;
    
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --radius-xl: 40px;
    --radius-lg: 24px;
    --radius-md: 16px;
    
    --shadow-soft: 0 4px 20px rgba(31, 41, 51, 0.04);
    --shadow-rich: 0 30px 60px rgba(31, 41, 51, 0.1);
    --glass: rgba(255, 255, 255, 0.7);
}

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

body {
    background: #FFFFFF;
    font-family: var(--font-main);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────────────
   ULTRA-MINIMAL HEADER
   ───────────────────────────────────────────────────── */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    height: 90px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 60px;
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    box-shadow: 0 1px 0 var(--baby);
}

.header-logo img {
    height: 44px;
    width: auto;
    transition: var(--transition);
}

.header-actions { display: flex; gap: 24px; align-items: center; }

.hdr-btn {
    color: var(--primary);
    font-size: 1.4rem;
    position: relative;
    text-decoration: none;
    transition: var(--transition);
}
.hdr-btn:hover { color: var(--primary-dark); transform: scale(1.1); }
.badge {
    position: absolute; top: -8px; right: -12px;
    background: var(--primary); color: white;
    font-size: 0.65rem; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}

/* ─────────────────────────────────────────────────────
   HERO / VAULT SECTION
   ───────────────────────────────────────────────────── */
main {
    padding-top: 140px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 150px;
}

.hero-section {
    padding: 0 60px;
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 24px;
    color: var(--primary);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 400px;
    letter-spacing: 0.02em;
}

/* The Membership Card */
.user-coins-panel {
    background: var(--primary-dark);
    border-radius: var(--radius-xl);
    height: 350px;
    position: relative;
    overflow: hidden;
    padding: 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 40px 80px rgba(31, 41, 51, 0.25);
    transition: var(--transition);
    cursor: default;
}

.user-coins-panel:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
}

.user-coins-panel::after {
    content: '';
    position: absolute; top: 0; right: 0; width: 100%; height: 100%;
    background: url('premium_vault_background_1777787987445.png') center/cover;
    opacity: 0.2;
    pointer-events: none;
}

.card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.card-logo { font-family: var(--font-serif); font-size: 1.8rem; letter-spacing: 0.1em; opacity: 0.8; }
.card-chip { width: 50px; height: 40px; background: linear-gradient(135deg, #E1E5EB, #9AA5B1); border-radius: 8px; opacity: 0.6; }

.card-center { position: relative; z-index: 2; margin-top: 40px; }
.coin-value-display { font-size: 4.5rem; font-weight: 300; font-family: var(--font-serif); line-height: 1; }
.coin-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.3em; opacity: 0.6; margin-top: 8px; display: block; }

.card-bottom { position: relative; z-index: 2; width: 100%; }
.progress-bar-wrapper { width: 100%; margin-top: 20px; }
.progress-track { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: white; width: 0; transition: width 2s cubic-bezier(0.16, 1, 0.3, 1); }
.tier-info { display: flex; justify-content: space-between; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 12px; opacity: 0.5; }

/* ─────────────────────────────────────────────────────
   SECTION HEADERS
   ───────────────────────────────────────────────────── */
.section-header {
    padding: 0 60px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--primary);
}

.section-header .subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ─────────────────────────────────────────────────────
   ADDRESS TILES
   ───────────────────────────────────────────────────── */
.address-section { margin-bottom: 120px; }
.address-grid {
    display: flex;
    padding: 0 60px;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 40px;
    scrollbar-width: none;
}
.address-grid::-webkit-scrollbar { display: none; }

.address-tile {
    min-width: 350px;
    background: var(--snow);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.address-tile:hover {
    background: white;
    box-shadow: var(--shadow-rich);
    transform: translateY(-8px);
}

.address-tile.selected {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-rich);
}

.address-tile strong { font-size: 1.4rem; display: block; margin-bottom: 16px; font-weight: 500; }
.address-tile p { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; line-height: 1.6; }
.address-tile .icon-tag { 
    position: absolute; top: 40px; right: 40px; 
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--baby); color: var(--primary);
}

#add-address-btn {
    min-width: 300px;
    border: 1px dashed var(--accent);
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--accent);
    cursor: pointer;
    transition: var(--transition);
}
#add-address-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--snow); }
#add-address-btn i { font-size: 2rem; margin-bottom: 12px; }

/* ─────────────────────────────────────────────────────
   REWARDS CATALOG
   ───────────────────────────────────────────────────── */
.catalog-section { padding: 0 60px; }

.catalog-controls {
    display: flex; gap: 20px; margin-bottom: 60px;
}

.filter-pill {
    padding: 12px 24px; border-radius: 30px;
    background: var(--snow); color: var(--primary);
    font-size: 0.9rem; font-weight: 500; cursor: pointer;
    transition: var(--transition); border: none;
}
.filter-pill.active { background: var(--primary); color: white; }
.filter-pill:hover:not(.active) { background: var(--baby); }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 60px 40px;
}

/* Reward Item Card */
.reward-item {
    position: relative;
    transition: var(--transition);
}

.reward-image-container {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--snow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.reward-image-container img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reward-item:hover .reward-image-container img { transform: scale(1.1); }

.reward-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(31, 41, 51, 0.4));
    opacity: 0; transition: var(--transition);
    display: flex; align-items: flex-end; padding: 30px;
}
.reward-item:hover .reward-overlay { opacity: 1; }

.quick-view-btn {
    width: 100%; padding: 16px; border-radius: var(--radius-md);
    background: white; color: var(--primary-dark);
    font-weight: 600; font-size: 0.85rem; border: none; cursor: pointer;
    transform: translateY(20px); transition: var(--transition);
}
.reward-item:hover .quick-view-btn { transform: translateY(0); }

.reward-info h3 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 400; margin-bottom: 8px; color: var(--primary); }
.reward-meta { display: flex; justify-content: space-between; align-items: center; }
.reward-cost { font-weight: 600; font-size: 1.1rem; color: var(--primary-dark); }
.redeem-trigger { 
    padding: 10px 20px; border-radius: 8px; background: var(--primary); color: white;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    border: none; cursor: pointer; transition: var(--transition);
}
.redeem-trigger:disabled { background: var(--baby); color: var(--accent); cursor: not-allowed; }
.redeem-trigger:hover:not(:disabled) { background: var(--primary-dark); transform: scale(1.05); }

/* ─────────────────────────────────────────────────────
   MODAL - THE THEATER
   ───────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    width: 90%; max-width: 1200px; height: 80vh;
    display: flex; gap: 80px; align-items: center;
}

.modal-image-side { flex: 1.2; height: 100%; border-radius: var(--radius-xl); overflow: hidden; background: var(--snow); }
.modal-image-side img { width: 100%; height: 100%; object-fit: cover; }

.modal-info-side { flex: 1; }
.modal-close-trigger {
    position: absolute; top: 60px; right: 60px;
    font-size: 2rem; color: var(--primary); cursor: pointer;
    transition: var(--transition);
}
.modal-close-trigger:hover { transform: rotate(90deg); }

.modal-info-side h2 { font-family: var(--font-serif); font-size: 4rem; font-weight: 300; line-height: 1.1; margin-bottom: 40px; }
.modal-description { font-size: 1.1rem; color: var(--muted); margin-bottom: 60px; line-height: 1.8; }

.modal-action-bar { display: flex; align-items: center; gap: 40px; }
.modal-price-display { display: flex; flex-direction: column; }
.price-value { font-size: 2.5rem; font-weight: 300; font-family: var(--font-serif); }
.price-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); }

.main-redeem-btn {
    flex: 1; padding: 24px; border-radius: var(--radius-md);
    background: var(--primary-dark); color: white;
    font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em;
    border: none; cursor: pointer; transition: var(--transition);
}
.main-redeem-btn:hover { background: var(--primary); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(31, 41, 51, 0.2); }
.main-redeem-btn:disabled { background: var(--baby); color: var(--accent); }

/* ─────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .hero-section { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero-text h1 { font-size: 4rem; }
    .hero-text p { margin: 0 auto; }
    .user-coins-panel { max-width: 500px; margin: 0 auto; }
    .modal-content { flex-direction: column; height: auto; padding: 60px 0; }
    .modal-image-side { width: 100%; aspect-ratio: 1; }
}

@media (max-width: 768px) {
    header { padding: 0 24px; }
    .hero-section { padding: 0 24px; }
    .section-header { padding: 0 24px; }
    .address-grid { padding: 0 24px; }
    .catalog-section { padding: 0 24px; }
    .hero-text h1 { font-size: 3rem; }
}

/* ─────────────────────────────────────────────────────
   BOTTOM NAVIGATION (Mobile Only)
   ───────────────────────────────────────────────────── */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    height: 80px; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px); border-top: 1px solid var(--baby);
    display: none; justify-content: space-around; align-items: center;
    z-index: 1000;
}

@media (max-width: 768px) {
    .bottom-nav { display: flex; }
}

.nav-link {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none; color: var(--accent); font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
}
.nav-link.active { color: var(--primary); }
.nav-link i { font-size: 1.4rem; }
