/* 
   Loyalty Customer Portal Styles 
   Extends styles.css
*/

/* --- Top Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* --- Dashboard Split Layout (Benefits + Activity) --- */
.dashboard-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .dashboard-split {
        grid-template-columns: 1fr;
    }
}

/* --- Hero Section Mobile Tweaks --- */
.dashboard-hero {
    background: linear-gradient(135deg, rgba(201, 165, 90, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 6rem 0 2rem;
    border-bottom: 1px solid rgba(201, 165, 90, 0.3);
    margin-top: 40px;
}

.hero-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .dashboard-hero {
        padding-top: 5rem;
        text-align: center;
    }

    .hero-profile {
        justify-content: center;
        flex-direction: column;
        gap: 2rem;
    }

    .profile-info {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

/* --- Points Display --- */
.points-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #C9A55A, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

@media (max-width: 600px) {
    .points-value {
        font-size: 3rem;
    }
}

/* --- Tier Badge --- */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 2px solid currentColor;
}

/* --- Transaction List --- */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .transaction-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .transaction-amount {
        align-self: flex-end;
        font-size: 1.25rem;
    }
}

/* --- Card specific paddings --- */
.stats-overview-card {
    padding: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-card,
.action-card {
    padding: 2rem;
    margin-bottom: 2rem;
}

.action-card:last-child {
    margin-bottom: 0;
}

/* --- Social Share Grid --- */
.share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.referral-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .referral-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .share-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-overview-card {
        padding: 1.5rem;
    }

    .benefits-card,
    .action-card {
        padding: 1.5rem;
    }
}

/* --- Check Page Mobile (Legacy) --- */
.check-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('/assets/images/hero-bg.png');
    background-position: center;
    padding: 8rem 0 4rem;
    text-align: center;
}

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

@media (max-width: 600px) {
    .check-hero {
        padding: 6rem 0 3rem;
    }

    .check-hero h1 {
        font-size: 2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

/* --- Responsive Grids for Customer Pages --- */
.referral-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.referrals-list-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* --- Rewards Catalog Specific Styles --- */
.rewards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
    width: 100%;
}

.reward-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: auto;
    aspect-ratio: 1 / 1;
    position: relative;
    width: 100%;
}

.reward-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 165, 90, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(201, 165, 90, 0.15);
}

.reward-card-image {
    height: 45%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reward-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.reward-card h3 {
    font-size: 1.15rem !important;
    margin: 0.5rem 0 !important;
    color: #fff;
    font-weight: 600;
}

.reward-card p {
    font-size: 0.85rem !important;
    color: #888;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reward-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reward-badge-discount {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.reward-badge-freebie {
    background: rgba(46, 204, 113, 0.9);
    color: #000;
}

.reward-cost {
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 1100px) {
    .rewards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .rewards-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .reward-card {
        aspect-ratio: auto;
        min-height: 400px;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 165, 90, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 165, 90, 0.5);
}

/* --- Quick Action Cards --- */
.quick-action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(201, 165, 90, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(201, 165, 90, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(201, 165, 90, 0.1);
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-card i {
    font-size: 1.8rem;
    transition: transform 0.4s ease;
}

.quick-action-card:hover i {
    transform: scale(1.15);
}

.quick-action-card span {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* --- Tattoo Theme Design System --- */
:root {
    --tattoo-gold: #C9A55A;
    --tattoo-gold-light: #FFD700;
    --tattoo-dark: #0a0a0a;
    --tattoo-card-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(201, 165, 90, 0.2);
}

.loyalty-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
        url('/assets/images/loyalty-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 2rem;
    padding-top: 120px;
    /* Account for fixed header */
    position: relative;
    overflow: hidden;
}

.login-glass-card {
    background: var(--tattoo-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.8rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    text-align: center;
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    margin-top: 2rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-glass-card h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: 2px;
}

.login-glass-card .gold-text {
    background: linear-gradient(135deg, var(--tattoo-gold), var(--tattoo-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.google-btn-premium {
    background: #fff;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 2rem 0;
}

.google-btn-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15), 0 0 15px rgba(201, 165, 90, 0.3);
}

.info-grid-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.info-item-premium {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.info-item-premium:hover {
    background: rgba(201, 165, 90, 0.05);
    border-color: var(--glass-border);
    transform: translateY(-2px);
}

.info-item-premium i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--tattoo-gold);
}

.info-item-premium h3 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.info-item-premium p {
    font-size: 0.75rem;
    color: #888;
}

@media (max-width: 500px) {
    .loyalty-login-page {
        padding: 5rem 0.75rem 2rem;
        align-items: flex-start;
    }

    .login-glass-card {
        padding: 2rem 1.25rem;
        margin-top: 2rem;
    }

    .info-grid-premium {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* --- Premium Page Utilities --- */
.gold-text {
    background: linear-gradient(135deg, var(--tattoo-gold), var(--tattoo-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.glass-sweep {
    position: relative;
    overflow: hidden;
}

.glass-sweep::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.glass-sweep:hover::after {
    left: 100%;
    transition: 0.5s;
}

/* --- Ink Particles Animation --- */
.ink-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(201, 165, 90, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float var(--duration) infinite alternate ease-in-out;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(var(--x), var(--y));
    }
}

/* --- Social Proof Badge --- */
.social-proof-badge {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ECC71;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Roadmap / Collector's Journey --- */
.roadmap-container {
    width: 100%;
    margin-top: 5rem;
    text-align: center;
}

.roadmap-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.roadmap-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tattoo-gold), transparent);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.roadmap-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 165, 90, 0.3), transparent);
    z-index: 0;
}

.roadmap-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}

.roadmap-dot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--tattoo-card-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tattoo-gold);
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.roadmap-step:hover .roadmap-dot {
    transform: scale(1.1);
    border-color: var(--tattoo-gold);
    box-shadow: 0 0 20px rgba(201, 165, 90, 0.2);
}

.roadmap-step h4 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.roadmap-step p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .roadmap-grid::before {
        display: none;
    }
}

@media (max-width: 500px) {
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FAQ / How it Works --- */
.faq-section {
    margin-top: 5rem;
    width: 100%;
    max-width: 800px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.04);
}

.faq-question i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--glass-border);
    background: rgba(201, 165, 90, 0.02);
}

.faq-item.active .faq-question {
    color: var(--tattoo-gold);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
    max-height: 200px;
}

/* Social Proof Badge */
.social-proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    padding-top: 4rem;
    background: rgba(201, 165, 90, 0.1);
    border: 1px solid rgba(201, 165, 90, 0.3);
    border-radius: 50px;
    color: var(--tattoo-gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.social-proof-badge i {
    font-size: 1rem;
    color: var(--tattoo-gold);
}

.social-proof-badge:hover {
    background: rgba(201, 165, 90, 0.15);
    border-color: var(--tattoo-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 165, 90, 0.2);
}