/**
 * Gamification CSS - EK-7 v1.5
 * 360Dönüşüm Tuğla & Baret Sistemi
 *
 * A11y Compliant: WCAG AA (Min 4.5:1 kontrast)
 * Dark Mode: Tam destek
 * Performance Budget: < 50KB (Gzipped)
 */

/* ============================================================================
   CSS VARIABLES (Design Tokens)
   ============================================================================ */

:root {
    /* 2026 Platform-Aligned Pastel Palette */
    --gm-brand-brick: #285d77;
    --gm-brand-brick-hover: #1e3a5f;
    --gm-brand-brick-pastel: rgba(59, 130, 246, 0.12);

    /* Pastel Tones (today-section, feed ile uyumlu) */
    --gm-pastel-mint: #D4EDDA;
    --gm-pastel-peach: #FFECD2;
    --gm-pastel-lavender: #E8E0F0;
    --gm-pastel-sky: #DBEAFE;
    --gm-pastel-rose: #FCE4EC;
    --gm-pastel-teal: #CCFBF1;

    /* Status Colors - Pastel uyumlu */
    --gm-status-debt: #DC2626;
    --gm-status-success: #047857;
    --gm-status-warning: #B45309;
    --gm-status-info: #2563EB;

    /* Baret Colors - Yumuşak tonlar */
    --gm-badge-yellow: #FBBF24;
    --gm-badge-yellow-bg: rgba(251, 191, 36, 0.12);
    --gm-badge-blue: #1D4ED8;
    --gm-badge-blue-bg: rgba(59, 130, 246, 0.12);
    --gm-badge-white: #F3F4F6;
    --gm-badge-white-border: #9CA3AF;
    --gm-badge-gold-start: #FDE68A;
    --gm-badge-gold-end: #D97706;

    /* UI Colors - Platform (#0F172A, #F9FAFB) */
    --gm-bg-card: #FFFFFF;
    --gm-bg-card-hover: #F9FAFB;
    --gm-bg-page: linear-gradient(to bottom, #F9FAFB, #EEF2FF);
    --gm-bg-overlay: rgba(0, 0, 0, 0.5);
    --gm-text-primary: #0F172A;
    --gm-text-secondary: #6B7280;
    --gm-text-muted: #64748B;
    --gm-border-color: rgba(148, 163, 184, 0.35);
    --gm-border-radius: 14px;

    /* Animation */
    --gm-transition-fast: 150ms ease;
    --gm-transition-normal: 300ms ease;
    --gm-transition-slow: 600ms ease-out;

    /* Shadows */
    --gm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --gm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --gm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Mode */
[data-user-theme="dark"] {
    --gm-brand-brick: #8ecae6;
    --gm-brand-brick-hover: #bfdbfe;

    --gm-status-debt: #EF4444;
    --gm-status-success: #10B981;

    --gm-badge-yellow: #FCD34D;
    --gm-badge-yellow-bg: rgba(252, 211, 77, 0.2);
    --gm-badge-blue: #3B82F6;
    --gm-badge-blue-bg: rgba(59, 130, 246, 0.2);
    --gm-badge-white: #374151;
    --gm-badge-white-border: #6B7280;
    --gm-badge-gold-start: #FDE68A;
    --gm-badge-gold-end: #D97706;

    --gm-bg-card: #1F2937;
    --gm-bg-card-hover: #374151;
    --gm-bg-overlay: rgba(0, 0, 0, 0.7);
    --gm-text-primary: #F9FAFB;
    --gm-text-secondary: #D1D5DB;
    --gm-text-muted: #9CA3AF;
    --gm-border-color: #374151;
}

/* ============================================================================
   DASHBOARD PAGE - Platform aligned
   ============================================================================ */
.gm-dashboard-page .card {
    background: var(--gm-bg-card);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: var(--radius-lg, 1rem);
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}
.gm-dashboard-page .card-title {
    color: var(--gm-text-primary);
}
.gm-dashboard-page .btn-primary {
    background: #0f766e;
    border-color: #0f766e;
}
.gm-dashboard-page .btn-primary:hover {
    background: #115e59;
    border-color: #115e59;
}

/* ============================================================================
   BARET BADGES
   ============================================================================ */

.gm-baret {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-2026, 20px);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Sarı Baret */
.gm-baret--sari {
    background: var(--gm-badge-yellow-bg);
    color: #92400E;
}

[data-user-theme="dark"] .gm-baret--sari {
    color: var(--gm-badge-yellow);
}

/* Mavi Baret */
.gm-baret--mavi {
    background: var(--gm-badge-blue-bg);
    color: var(--gm-badge-blue);
}

/* Beyaz Baret */
.gm-baret--beyaz {
    background: var(--gm-badge-white);
    color: var(--gm-text-primary);
    border: 1px solid var(--gm-badge-white-border);
}

/* Altın Baret */
.gm-baret--altin {
    background: linear-gradient(135deg, var(--gm-badge-gold-start), var(--gm-badge-gold-end));
    color: #422006;
    text-shadow: none;
}

.gm-baret__icon {
    font-size: 1rem;
}

.baret-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.baret-emoji {
    font-size: 18px;
    line-height: 1;
}

.baret-rank-icon {
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
}

.baret-label {
    font-weight: 700;
}

.baret-bg-SARI_BARET {
    background-color: #f59e0b;
    color: #422006;
}

.baret-bg-MAVI_BARET {
    background-color: #8ecae6;
    color: #172033;
}

.baret-bg-BEYAZ_BARET {
    background-color: #64748b;
}

.baret-bg-ALTIN_BARET {
    background-color: #f59e0b;
    color: #422006;
}

.baret-MAVI_BARET {
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

.baret-BEYAZ_BARET {
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

.baret-ALTIN_BARET {
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

/* ============================================================================
   BRICK DISPLAY
   ============================================================================ */

.gm-brick {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--gm-brand-brick);
}

.gm-brick--large {
    font-size: 1.5rem;
}

.gm-brick--debt {
    color: var(--gm-status-debt);
}

.gm-brick__icon {
    font-size: 1em;
}

/* ============================================================================
   STREAK DISPLAY
   ============================================================================ */

.gm-streak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-2026, 20px);
    font-size: 0.875rem;
    font-weight: 500;
}

.gm-streak--inactive {
    background: var(--gm-border-color);
    color: var(--gm-text-muted);
}

.gm-streak--active {
    background: rgba(139, 92, 246, 0.12);
    color: #6d5aa8;
}

.gm-streak--hot {
    background: linear-gradient(135deg, #6d5aa8, #b91c1c);
    color: white;
    animation: gm-pulse 2s infinite;
}

@keyframes gm-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.gm-streak__icon {
    font-size: 1rem;
}

.gm-streak__freeze {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--gm-badge-blue);
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */

.gm-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10100; /* Global toast-container ile aynı z-index */
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.gm-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    padding: 16px;
    background: var(--gm-bg-card);
    border-radius: var(--gm-border-radius);
    box-shadow: var(--gm-shadow-xl);
    pointer-events: auto;
    animation: gm-toast-in 300ms ease-out;
}

.gm-toast--exit {
    animation: gm-toast-out 200ms ease-in forwards;
}

@keyframes gm-toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

@keyframes gm-toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.gm-toast__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.gm-toast--earn .gm-toast__icon {
    background: rgba(5, 150, 105, 0.15);
    color: var(--gm-status-success);
}

.gm-toast--spend .gm-toast__icon {
    background: rgba(37, 99, 235, 0.15);
    color: var(--gm-status-info);
}

.gm-toast--levelup .gm-toast__icon {
    background: linear-gradient(135deg, var(--gm-badge-gold-start), var(--gm-badge-gold-end));
    color: white;
    animation: gm-shine 2s infinite;
}

@keyframes gm-shine {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(251, 191, 36, 0);
    }
}

.gm-toast--error .gm-toast__icon {
    background: rgba(220, 38, 38, 0.15);
    color: var(--gm-status-debt);
}

.gm-toast--info .gm-toast__icon {
    background: var(--gm-border-color);
    color: var(--gm-text-secondary);
}

.gm-toast__content {
    flex: 1;
    min-width: 0;
}

.gm-toast__title {
    font-weight: 600;
    color: var(--gm-text-primary);
    margin-bottom: 2px;
}

.gm-toast__message {
    font-size: 0.875rem;
    color: var(--gm-text-secondary);
    overflow-wrap: anywhere;
}

.gm-toast__action {
    padding: 6px 12px;
    background: #0f766e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--gm-transition-fast);
}

.gm-toast__action:hover {
    background: #115e59;
}

.gm-toast__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--gm-text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: background-color var(--gm-transition-fast), color var(--gm-transition-fast);
}

.gm-toast__close:hover {
    background: var(--gm-border-color);
    color: var(--gm-text-primary);
}

/* --- Gamification Toast: Mobil uyumluluk --- */
@media (max-width: 575.98px) {
    .gm-toast-container {
        left: 0.75rem;
        right: 0.75rem;
    }

    .gm-toast {
        min-width: 100%;
        max-width: 100%;
        padding: 12px;
        gap: 10px;
    }

    .gm-toast__icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .gm-toast__title {
        font-size: var(--fs-sm, 0.875rem);
    }

    .gm-toast__message {
        font-size: 0.8125rem;
    }

    .gm-toast__close {
        min-width: 32px;
        min-height: 32px;
        touch-action: manipulation;
    }

    .gm-toast__action {
        min-height: 36px;
        padding: 6px 14px;
        font-size: 0.8125rem;
        touch-action: manipulation;
    }
}

@media (max-width: 991.98px) {
    .gm-toast-container {
        top: calc(72px + env(safe-area-inset-top, 0px));
    }
}

/* ============================================================================
   RETENTION BANNER
   ============================================================================ */

.gm-retention-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(90deg, #DBEAFE, #BFDBFE);
    border-bottom: 2px solid #8ecae6;
    color: #1e3a5f;
}

[data-user-theme="dark"] .gm-retention-banner {
    background: linear-gradient(90deg, #1e3a5f, #285d77);
    color: #BFDBFE;
}

.gm-retention-banner--critical {
    background: linear-gradient(90deg, #FEE2E2, #FECACA);
    border-color: var(--gm-status-debt);
    color: #991B1B;
}

[data-user-theme="dark"] .gm-retention-banner--critical {
    background: linear-gradient(90deg, #7F1D1D, #991B1B);
    color: #FCA5A5;
}

.gm-retention-banner__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gm-retention-banner__icon {
    font-size: 1.5rem;
}

.gm-retention-banner__text {
    font-weight: 500;
}

.gm-retention-banner__action {
    padding: 8px 16px;
    background: #0f766e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color var(--gm-transition-fast), color var(--gm-transition-fast), transform var(--gm-transition-fast);
}

.gm-retention-banner__action:hover {
    background: #115e59;
    color: white;
}

/* ============================================================================
   PROGRESS BAR (Rank)
   ============================================================================ */

.gm-progress {
    width: 100%;
}

.gm-progress__bar {
    height: 8px;
    background: var(--gm-border-color);
    border-radius: 4px;
    overflow: hidden;
}

.gm-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gm-badge-gold-start), var(--gm-badge-gold-end));
    border-radius: 4px;
    transition: width var(--gm-transition-slow);
}

.gm-progress__labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--gm-text-muted);
}

/* ============================================================================
   TRANSACTIONS TABLE
   ============================================================================ */

.gm-transactions-col-id {
    width: 80px;
}

.gm-transactions-col-datetime {
    width: 180px;
}

.gm-transactions-col-type {
    width: 150px;
}

.gm-transactions-col-amount {
    width: 150px;
}

.gm-transactions-col-status {
    width: 100px;
}

/* ============================================================================
   LEADERBOARD TABLE
   ============================================================================ */

.gm-leaderboard-table.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.gm-leaderboard-col-rank {
    width: 80px;
}

.gm-leaderboard-medal {
    font-size: 24px;
}

.gm-leaderboard-row-current {
    background-color: rgba(59, 130, 246, 0.08) !important;
}

/* ============================================================================
   NAVBAR WALLET MODAL
   ============================================================================ */

.gm-navbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.875rem;
}

.gm-navbar-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    color: #a78bfa;
    transform: translateY(-1px);
}

.gm-navbar-badge:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.gm-navbar-badge__brick {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #93c5fd;
}

.gm-navbar-badge__divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.gm-navbar-badge__baret {
    font-size: 1.1rem;
}

.gm-navbar-badge__debt-pill {
    font-size: 0.65rem;
}

.gm-navbar-badge--debt {
    border-color: rgba(220, 38, 38, 0.5);
    background: rgba(220, 38, 38, 0.1);
}

.gm-navbar-badge--debt .gm-navbar-badge__brick {
    color: #ef4444;
}

.gm-info-modal {
    background: #fefefe;
    border-radius: var(--radius-2026, 20px);
    border: none;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

.gm-info-modal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 1.25rem;
}

.gm-info-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.gm-info-modal .modal-body {
    padding: 1.25rem;
}

.gm-info-modal .modal-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
    background: #ffffff;
}

.gm-stat-card {
    padding: 1rem;
    border-radius: var(--radius-2026, 20px);
    text-align: center;
}

.gm-stat-card--brick {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.gm-stat-card--baret {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.gm-stat-card__label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.gm-stat-card__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #285d77;
}

.gm-stat-card__value--debt {
    color: #dc2626;
}

.gm-stat-card--earned {
    border-left: 3px solid #059669;
}

.gm-stat-card--paid {
    border-left: 3px solid #8ecae6;
}

.gm-stat-card__value--compact {
    font-size: 1.2rem;
}

.gm-progress-card {
    background: #f9fafb;
    padding: 1rem;
    border-radius: var(--radius-2026, 20px);
}

.gm-progress-card__label {
    font-size: 0.8rem;
    color: #4b5563;
}

.gm-progress-card__remaining {
    font-size: 0.75rem;
    color: #6d5aa8;
    font-weight: 500;
}

.gm-progress-card .progress {
    background: #e5e7eb;
    border-radius: 3px;
}

.gm-progress-card__progress {
    height: 6px;
}

.gm-progress-card__fill {
    background: linear-gradient(90deg, #8ecae6, #b8a8d9);
}

.gm-explain-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: var(--radius-2026, 20px);
    height: 100%;
}

.gm-explain-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.gm-explain-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.gm-explain-card__text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.gm-baret-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gm-baret-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.gm-baret-badge--sari {
    background: #fef3c7;
    color: #b45309;
}

.gm-baret-badge--mavi {
    background: #dbeafe;
    color: #285d77;
}

.gm-baret-badge--beyaz {
    background: #f3f4f6;
    color: #4b5563;
}

.gm-baret-badge--altin {
    background: #fef9c3;
    color: #a16207;
}

.gm-streak-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #ede9fe, #dbeafe);
    border-radius: var(--radius-2026, 20px);
}

.gm-streak-card__icon {
    font-size: 1.25rem;
}

.gm-streak-card__content {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    color: #4c1d95;
}

.gm-streak-card__hint {
    font-size: 0.75rem;
    color: #6d5aa8;
}

/* ============================================================================
   STORE CARDS - Updated with Image Support
   ============================================================================ */

.gm-store-card {
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border-color);
    border-radius: var(--gm-border-radius);
    overflow: hidden;
    transition: border-color var(--gm-transition-fast), box-shadow var(--gm-transition-fast), transform var(--gm-transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gm-store-card:hover {
    box-shadow: var(--gm-shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
}

.gm-store-card--disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* Product Image Section */
.gm-store-card__image {
    position: relative;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.gm-store-card__image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gm-store-card:hover .gm-store-card__image img {
    transform: scale(1.05);
}

.gm-store-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(30, 64, 175, 0.9);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
}

.gm-store-card__badge--digital {
    background: rgba(139, 92, 246, 0.9);
}

/* Price Tag */
.gm-store-card__price {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7b6fb0, #b8a8d9);
    color: white;
    padding: 8px 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
    z-index: 5;
}

.gm-store-card__price-amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.gm-store-card__price-icon {
    font-size: 1rem;
}

/* Content Section */
.gm-store-card__content {
    padding: 28px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gm-store-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gm-text-primary);
    line-height: 1.3;
}

.gm-store-card__type {
    font-size: 0.8rem;
    color: var(--gm-text-muted);
    margin-bottom: 8px;
}

.gm-store-card__description {
    color: var(--gm-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
    flex: 1;
    line-height: 1.5;
}

/* Stock Info */
.gm-store-card__stock {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-2026, 20px);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: auto;
}

.gm-store-card__stock--available {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

.gm-store-card__stock--out {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.gm-store-card__stock--unlimited {
    background: rgba(59, 130, 246, 0.12);
    color: #285d77;
}

/* Footer / Button */
.gm-store-card__footer {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--gm-border-color);
    background: #fafafa;
}

.gm-store-card__btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color var(--gm-transition-fast), border-color var(--gm-transition-fast), color var(--gm-transition-fast), box-shadow var(--gm-transition-fast), transform var(--gm-transition-fast);
}

.gm-store-card__btn--buy {
    background: linear-gradient(135deg, #047857, #065f46);
    color: white;
}

.gm-store-card__btn--buy:hover {
    background: linear-gradient(135deg, #065f46, #064e3b);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

.gm-store-card__btn--locked {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.gm-store-card__btn--disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Store Debt Overlay */
.gm-store-debt-overlay {
    position: relative;
}

.gm-store-debt-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gm-bg-overlay);
    border-radius: var(--gm-border-radius);
    z-index: 10;
}

.gm-store-debt-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    text-align: center;
    padding: 20px;
    background: var(--gm-bg-card);
    border-radius: var(--gm-border-radius);
    box-shadow: var(--gm-shadow-xl);
    max-width: 300px;
}

.gm-store-debt-banner__icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.gm-store-debt-banner__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gm-text-primary);
    margin-bottom: 8px;
}

.gm-store-debt-banner__text {
    font-size: 0.875rem;
    color: var(--gm-text-secondary);
    margin-bottom: 16px;
}

.gm-store-debt-banner__amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gm-status-debt);
    margin-bottom: 16px;
}

/* ============================================================================
   INVENTORY CARDS
   ============================================================================ */

.gm-inventory-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border-color);
    border-radius: var(--gm-border-radius);
}

.gm-inventory-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gm-border-color);
    border-radius: var(--radius-2026, 20px);
    font-size: 1.5rem;
}

.gm-inventory-card__content {
    flex: 1;
}

.gm-inventory-card__name {
    font-weight: 600;
    color: var(--gm-text-primary);
    margin-bottom: 4px;
}

.gm-inventory-card__description {
    font-size: 0.875rem;
    color: var(--gm-text-secondary);
}

.gm-inventory-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm-inventory-card__quantity {
    padding: 4px 10px;
    background: #7b6fb0;
    color: white;
    border-radius: var(--radius-2026, 20px);
    font-size: 0.875rem;
    font-weight: 600;
}

.gm-inventory-card__expires {
    font-size: 0.75rem;
    color: var(--gm-text-muted);
}

/* ============================================================================
   EARN GUIDE
   ============================================================================ */

.gm-earn-category {
    margin-bottom: 32px;
}

.gm-earn-category__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.gm-earn-category__icon {
    font-size: 1.5rem;
}

.gm-earn-category__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gm-text-primary);
}

.gm-earn-category__description {
    font-size: 0.875rem;
    color: var(--gm-text-secondary);
}

.gm-earn-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border-color);
    border-radius: var(--gm-border-radius);
    margin-bottom: 12px;
}

.gm-earn-rule--completed {
    background: rgba(5, 150, 105, 0.1);
    border-color: var(--gm-status-success);
}

.gm-earn-rule__info {
    flex: 1;
}

.gm-earn-rule__name {
    font-weight: 600;
    color: var(--gm-text-primary);
    margin-bottom: 4px;
}

.gm-earn-rule__description {
    font-size: 0.875rem;
    color: var(--gm-text-secondary);
}

.gm-earn-rule__tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.gm-earn-rule__tag {
    padding: 2px 8px;
    background: var(--gm-border-color);
    border-radius: var(--radius-2026, 20px);
    font-size: 0.75rem;
    color: var(--gm-text-muted);
}

.gm-earn-rule__reward {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #047857;
}

.gm-earn-rule__check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gm-status-success);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
}

/* ============================================================================
   ONBOARDING MODAL
   ============================================================================ */

.gm-onboarding {
    text-align: center;
    padding: 32px;
}

.gm-onboarding__step {
    display: none;
}

.gm-onboarding__step--active {
    display: block;
}

.gm-onboarding__icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.gm-onboarding__mini-icon {
    font-size: 2rem;
}

.gm-onboarding__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gm-text-primary);
    margin-bottom: 12px;
}

.gm-onboarding__text {
    font-size: 1rem;
    color: var(--gm-text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.gm-onboarding__progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.gm-onboarding__dot {
    width: 8px;
    height: 8px;
    background: var(--gm-border-color);
    border-radius: 50%;
    transition: width var(--gm-transition-fast), background-color var(--gm-transition-fast);
}

.gm-onboarding__dot--active {
    width: 24px;
    background: #7b6fb0;
    border-radius: 4px;
}

.gm-onboarding__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.gm-onboarding__btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--gm-transition-fast), border-color var(--gm-transition-fast), color var(--gm-transition-fast), box-shadow var(--gm-transition-fast), transform var(--gm-transition-fast);
}

.gm-onboarding__btn--primary {
    background: #0f766e;
    color: white;
    border: none;
}

.gm-onboarding__btn--primary:hover {
    background: #115e59;
}

.gm-onboarding__btn--secondary {
    background: none;
    color: var(--gm-text-muted);
    border: 1px solid var(--gm-border-color);
}

.gm-onboarding__btn--secondary:hover {
    background: var(--gm-bg-card-hover);
}

.gm-onboarding-modal {
    overflow: hidden;
}

.gm-onboarding-close {
    z-index: 3;
}

.gm-earn-balance-label {
    font-size: 0.75rem;
}

.gm-earn-info-card {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-color: #93c5fd;
}

/* ============================================================================
   DAILY CHECK-IN
   ============================================================================ */

.gm-checkin {
    text-align: center;
    padding: 24px;
}

.gm-checkin__icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: gm-bounce 1s ease infinite;
}

@keyframes gm-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.gm-checkin__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gm-text-primary);
    margin-bottom: 8px;
}

.gm-checkin__streak {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6d5aa8, #b91c1c);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.gm-checkin__reward {
    font-size: 2rem;
    font-weight: 700;
    color: #047857;
    margin-bottom: 24px;
}

.gm-checkin__dont-show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--gm-text-muted);
}

/* [FIX 2026-02-17] X kapatma butonu */
#dailyCheckinModal .modal-content {
    position: relative;
}

.gm-checkin__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    opacity: 0.5;
    transition: opacity var(--gm-transition-fast);
}

.gm-checkin__close:hover {
    opacity: 1;
}

.brick-road {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.gm-checkin-modal {
    border-radius: 8px;
    overflow: hidden;
    background-color: #fcfcfc;
}

.gm-checkin-scroll-body {
    overflow-y: auto;
    max-height: 90vh;
}

.gm-checkin-close-btn {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

.gm-checkin-container {
    min-height: 480px;
}

.gm-checkin-goal-screen {
    background: #fff7ed;
}

.gm-checkin-goal-icon {
    font-size: 64px;
}

.gm-checkin-start-mascot,
.gm-checkin-header-mascot {
    line-height: 1;
    animation: gm-mascot-breathe 2.5s ease-in-out infinite;
}

@keyframes gm-mascot-breathe {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.08) translateY(-4px); }
}

.gm-checkin-start-mascot {
    font-size: 3.2rem;
    margin-bottom: 12px;
}

.gm-checkin-header-mascot {
    font-size: 2.8rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
}

.gm-checkin-goal-title,
.gm-checkin-intro-title,
.gm-checkin-start-title,
.gm-checkin-reward-amount {
    font-family: inherit;
}

.gm-checkin-goal-title,
.gm-checkin-intro-title,
.gm-checkin-start-title {
    color: #4e342e;
}

.gm-checkin-intro-card {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.25);
    border-left: 3px solid #ff9600 !important;
    border-radius: 8px;
    max-width: 420px;
}

.gm-checkin-intro-copy,
.gm-checkin-goal-copy {
    color: #6d4c41;
    font-size: 0.9rem;
}

.gm-checkin-goal-btn {
    border-width: 2px;
    border-radius: 8px;
    border-color: #ff9800;
    background-color: #fff3e0;
}

.gm-checkin-progress-header {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.gm-checkin-progress-icon {
    font-size: 32px;
}

.gm-checkin-progress-copy {
    font-size: 0.75rem;
}

.gm-checkin-path {
    max-height: 45vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.gm-checkin-path-panel {
    overflow-y: auto;
    max-height: 340px;
    background: #fafafa;
}

.gm-checkin-target-copy {
    letter-spacing: 0;
    font-size: 0.8rem;
}

.gm-checkin-change-goal {
    color: #b45309 !important;
    font-size: 0.8rem;
}

.gm-checkin-footer {
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.03);
    z-index: 10;
}

.gm-checkin-reward-amount {
    color: #b45309;
    font-size: 1.4rem;
}

.gm-checkin-reward-icon {
    font-size: 2rem;
}

.gm-checkin-reward-copy {
    font-size: 0.8rem;
}

.gm-checkin-claim-btn {
    font-size: 16px;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    background-color: #b45309;
    border-color: #92400e;
    color: #fff;
    border-radius: 8px;
}

.gm-checkin-dismiss {
    transform: scale(0.9);
}

.gm-checkin-dismiss-input,
.gm-checkin-dismiss-label {
    cursor: pointer;
}

.gm-checkin-dismiss-label {
    user-select: none;
    margin-top: 2px;
}

.brick-slot {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    background-color: #f0f0f0;
    border: 4px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    position: relative;
    z-index: 2;
    transition: background-color 0.5s, border-color 0.5s, color 0.5s, box-shadow 0.5s, opacity 0.5s, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.95);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.05);
}

.brick-slot.active {
    background-color: #b45309;
    border-color: #78350f;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 0 #78350f, 0 10px 10px rgba(0, 0, 0, 0.2);
    animation: gm-active-slot-pulse 2s infinite;
}

.brick-slot.completed {
    background-color: #4caf50;
    border-color: #2e7d32;
    color: #fff;
    box-shadow: 0 4px 0 #2e7d32;
}

.brick-slot.future {
    opacity: 0.6;
}

.brick-road::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 50%;
    width: 8px;
    background-color: #e0e0e0;
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 8px;
}

.brick-road-progress {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 8px;
    background-color: #b45309;
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 8px;
    transition: height 1s ease-out;
}

.brick-slot.treasure {
    border-radius: 8px;
    background: #f59e0b;
    border-color: #d2691e;
    font-size: 32px;
    width: 80px;
    height: 80px;
}

.brick-slot.treasure::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    border: 2px dashed #ffeb3b;
    border-radius: 8px;
    animation: gm-spin 10s linear infinite;
    opacity: 0.5;
}

@keyframes gm-active-slot-pulse {
    0% { box-shadow: 0 6px 0 #78350f, 0 0 0 0 rgba(180, 83, 9, 0.6); }
    70% { box-shadow: 0 6px 0 #78350f, 0 0 0 15px rgba(180, 83, 9, 0); }
    100% { box-shadow: 0 6px 0 #78350f, 0 0 0 0 rgba(180, 83, 9, 0); }
}

@keyframes gm-spin {
    100% { transform: rotate(360deg); }
}

@keyframes gm-brick-drop {
    0% { transform: translateY(-100px) scale(1.2) rotate(-10deg); opacity: 0; }
    60% { transform: translateY(10px) scale(1) rotate(5deg); opacity: 1; }
    80% { transform: translateY(-5px) scale(1) rotate(-2deg); }
    100% { transform: translateY(0) scale(1.1) rotate(0deg); }
}

.brick-slot.just-completed {
    animation: gm-brick-drop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    background-color: #b45309;
    border-color: #78350f;
}

.goal-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

.goal-btn.selected {
    border-color: #b45309 !important;
    background-color: #fff3e0;
}

.slot-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.slot-wrapper:nth-child(even) {
    padding-left: 55px;
}

.slot-wrapper:nth-child(odd) {
    padding-right: 55px;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #ffb74d #f1f1f1;
    -webkit-overflow-scrolling: touch;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ffb74d;
    border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #f57c00;
}

/* ============================================================================
   SOCIAL SHARE
   ============================================================================ */

.gm-share-card {
    width: 600px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 32px;
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    border-radius: var(--radius-2026, 20px);
    color: white;
    text-align: center;
}

.gm-share-card__logo {
    margin-bottom: 24px;
}

.gm-share-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2026, 20px);
    margin-bottom: 24px;
}

.gm-share-card__badge-icon {
    font-size: 3rem;
}

.gm-share-card__badge-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.gm-share-card__message {
    font-size: 1.125rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.gm-share-card__stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.gm-share-card__stat {
    text-align: center;
}

.gm-share-card__stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gm-badge-gold-start);
}

.gm-share-card__stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ============================================================================
   LEADERBOARD
   ============================================================================ */

.gm-leaderboard-row {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border-color);
    border-radius: var(--gm-border-radius);
    margin-bottom: 8px;
    transition: background-color var(--gm-transition-fast), border-color var(--gm-transition-fast), box-shadow var(--gm-transition-fast);
}

.gm-leaderboard-row:hover {
    box-shadow: var(--gm-shadow-md);
}

.gm-leaderboard-row--current {
    background: rgba(59, 130, 246, 0.08);
    border-color: #8ecae6;
}

.gm-leaderboard-row__rank {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gm-text-primary);
}

.gm-leaderboard-row__rank--gold {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    color: #422006;
    border-radius: 50%;
}

.gm-leaderboard-row__rank--silver {
    background: linear-gradient(135deg, #E5E7EB, #9CA3AF);
    color: #1f2937;
    border-radius: 50%;
}

.gm-leaderboard-row__rank--bronze {
    background: linear-gradient(135deg, #F59E0B, #B45309);
    color: #2d1600;
    border-radius: 50%;
}

.gm-leaderboard-row__user {
    flex: 1;
    margin-left: 16px;
}

.gm-leaderboard-row__name {
    font-weight: 600;
    color: var(--gm-text-primary);
}

.gm-leaderboard-row__baret {
    margin-left: 8px;
}

.gm-leaderboard-row__points {
    text-align: right;
}

.gm-leaderboard-row__lifetime {
    font-size: 1.125rem;
    font-weight: 700;
    color: #6d5aa8;
}

.gm-leaderboard-row__current {
    font-size: 0.875rem;
    color: var(--gm-text-muted);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 767.98px) {
    .gm-toast-container {
        right: 10px;
        left: 10px;
    }

    .gm-toast {
        min-width: auto;
    }

    .gm-share-card {
        width: 100%;
        padding: 24px;
    }

    .gm-share-card__stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {

    .gm-toast,
    .gm-toast__icon,
    .gm-checkin__icon,
    .gm-checkin-start-mascot,
    .gm-checkin-header-mascot,
    .gm-streak--hot,
    .brick-slot.active,
    .brick-slot.treasure::after {
        animation: none;
    }

    :where([class^="gm-"], [class*=" gm-"], [class^="brick-"], [class*=" brick-"]) {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================================
   BRICK ANIMATION (Kazanım)
   ============================================================================ */

@keyframes gm-brick-earn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.gm-brick--animate {
    animation: gm-brick-earn 600ms ease-out;
}

/* Level Up Animation */
@keyframes gm-levelup {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.gm-levelup-animation {
    animation: gm-levelup 800ms ease-out;
}

/* ============================================================================
   STORE FEEDBACK BUTTONS
   ============================================================================ */

.gm-feedback-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gm-border-color);
    border-radius: var(--gm-border-radius);
    background: var(--gm-bg-card);
    cursor: pointer;
    transition: background-color var(--gm-transition-fast), border-color var(--gm-transition-fast), color var(--gm-transition-fast), box-shadow var(--gm-transition-fast), transform var(--gm-transition-fast);
}

.gm-feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--gm-shadow-md);
}

.gm-feedback-btn__icon {
    font-size: 2.5rem;
    line-height: 1;
}

.gm-feedback-btn__text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gm-text-secondary);
}

/* Positive button */
.gm-feedback-btn--positive:hover {
    border-color: var(--gm-status-success);
    background: rgba(5, 150, 105, 0.05);
}

.gm-feedback-btn--positive:hover .gm-feedback-btn__text {
    color: var(--gm-status-success);
}

/* Negative button */
.gm-feedback-btn--negative:hover {
    border-color: var(--gm-status-debt);
    background: rgba(220, 38, 38, 0.05);
}

.gm-feedback-btn--negative:hover .gm-feedback-btn__text {
    color: var(--gm-status-debt);
}

/* Feedback modal styling */
#feedbackModal .modal-content {
    border-radius: var(--radius-2026, 20px);
}

#feedbackModal .modal-header {
    padding-bottom: 0;
}

#feedbackModal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Satın Al Butonu */
.gm-buy-btn {
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: var(--radius-2026, 20px);
    font-weight: 600;
}

.gm-buy-btn:disabled {
    background: var(--gm-text-muted);
    border-color: var(--gm-text-muted);
}

/* ============================================================================
   MINIMAL STORE 2026 - Compact Cards & Pastel Design
   ============================================================================ */

.gm-store-minimal {
    --pastel-bg: #faf9f7;
    --pastel-card: #ffffff;
    --pastel-border: #e8e5e1;
    --pastel-mint: #d4edda;
    --pastel-peach: #ffecd2;
    --pastel-lavender: #e8e0f0;
    --pastel-sky: #dbeafe;
    --pastel-rose: #fce4ec;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    background: var(--pastel-bg);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 16px;
    /* max-width: page-wrapper tarafından yönetilir */
}

/* Header - Compact */
.gm-store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pastel-border);
}

.gm-store-header__title h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.gm-store-header__title p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.gm-store-header__balance {
    text-align: right;
}

.gm-store-header__balance-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gm-store-header__balance-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #285d77;
}

/* Alert - Compact */
.gm-store-alert {
    background: var(--pastel-rose);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    color: #c0392b;
}

.gm-store-alert a {
    color: #6d5aa8;
    font-weight: 600;
}

/* Tabs - Compact Pills */
.gm-store-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.gm-store-tab {
    padding: 6px 14px;
    border: none;
    background: var(--pastel-card);
    border-radius: var(--radius-2026, 20px);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

.gm-store-tab:hover {
    background: var(--pastel-sky);
    color: var(--text-dark);
}

.gm-store-tab.active {
    background: var(--text-dark);
    color: white;
}

/* Grid - Compact Multi-Column */
.gm-store-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsive Grid */
@media (max-width: 1199px) {
    .gm-store-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .gm-store-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .gm-store-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 575.98px) {
    .gm-store-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .gm-store-minimal {
        padding: 12px !important;
    }
}

.gm-store-grid--locked {
    opacity: 0.5;
    pointer-events: none;
}

/* Minimal Card - Compact */
.gm-card-minimal {
    position: relative !important;
    background: var(--pastel-card) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-align: center !important;
    border: 1px solid var(--pastel-border) !important;
    min-height: auto !important;
    max-width: 160px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gm-card-minimal:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
    border-color: var(--pastel-sky);
}

.gm-card-minimal--sold {
    opacity: 0.5;
}

/* Discount tag - Compact */
.gm-card-minimal__discount {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.2;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Image - Small */
.gm-card-minimal__image {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gm-card-minimal__image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Body - Tight */
.gm-card-minimal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.gm-card-minimal__type {
    font-size: 0.65rem;
    line-height: 1;
}

.gm-card-minimal__title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.8em;
}

/* Price - Compact */
.gm-card-minimal__price {
    margin-top: 4px;
}

.gm-card-minimal__old-price {
    font-size: 0.6rem;
    color: #e74c3c;
    text-decoration: line-through;
    margin-right: 2px;
}

.gm-card-minimal__current-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6d5aa8;
}

/* Badge - Small */
.gm-card-minimal__badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--pastel-mint);
    color: #166534;
    font-weight: 500;
}

/* Footer - Compact */
.gm-store-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--pastel-border);
}

.gm-store-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.gm-store-link:hover {
    color: var(--text-dark);
}

.gm-store-link--primary {
    color: #6d5aa8;
    font-weight: 500;
}

.gm-store-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================================
   MINIMAL DETAIL MODAL
   ============================================================================ */

.gm-detail-minimal {
    border-radius: 20px;
    overflow: hidden;
    max-width: 420px;
    margin: auto;
}

.gm-detail-minimal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    color: var(--text-muted);
}

.gm-detail-minimal__close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Gallery */
.gm-detail-minimal__gallery {
    position: relative;
    background: linear-gradient(135deg, var(--pastel-sky), var(--pastel-lavender));
    padding: 40px 20px;
}

.gm-detail-minimal__image {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-detail-minimal__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Gallery nav */
.gm-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
    color: var(--text-dark);
}

.gm-gallery-nav--prev {
    left: 12px;
}

.gm-gallery-nav--next {
    right: 12px;
}

.gm-gallery-nav:hover {
    background: var(--pastel-card);
}

.gm-detail-minimal__discount-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.gm-detail-minimal__gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: var(--radius-2026, 20px);
}

.gm-detail-minimal__video {
    text-align: center;
    padding: 12px;
    background: var(--pastel-card);
    border-bottom: 1px solid var(--pastel-border);
}

.gm-detail-minimal__video button {
    background: none;
    border: 1px solid var(--pastel-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Content */
.gm-detail-minimal__content {
    padding: 24px;
    text-align: center;
}

.gm-detail-minimal__type {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--pastel-sky);
    border-radius: var(--radius-2026, 20px);
    margin-bottom: 12px;
}

.gm-detail-minimal__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.gm-detail-minimal__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 16px;
}

/* Pricing */
.gm-detail-minimal__pricing {
    background: var(--pastel-mint);
    padding: 16px;
    border-radius: var(--radius-2026, 20px);
    margin-bottom: 16px;
}

.gm-detail-minimal__old-price {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.gm-detail-minimal__old-price del {
    color: #e74c3c;
}

.gm-detail-minimal__price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #6d5aa8;
}

.gm-detail-minimal__savings {
    font-size: 0.8rem;
    color: #166534;
    margin-top: 4px;
}

.gm-detail-minimal__stock {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.gm-detail-minimal__full-desc {
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    max-height: 120px;
    overflow-y: auto;
}

/* Variants */
.gm-detail-minimal__variants {
    text-align: left;
    margin-bottom: 16px;
}

.gm-detail-minimal__variants label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.gm-variant-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gm-var-btn {
    padding: 8px 14px;
    border: 1px solid var(--pastel-border);
    border-radius: 8px;
    background: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.gm-var-btn:hover {
    border-color: #6d5aa8;
}

.gm-var-btn.active {
    background: #6d5aa8;
    color: white;
    border-color: #6d5aa8;
}

/* Buy button */
.gm-detail-minimal__buy {
    width: 100%;
    padding: 14px;
    border: none;
    background: #0f766e;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-2026, 20px);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.gm-detail-minimal__buy:hover:not(:disabled) {
    background: #115e59;
}

.gm-detail-minimal__buy:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.gm-detail-minimal__afford {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 8px 0 0;
}

.gm-detail-minimal__afford a {
    color: #6d5aa8;
}

/* Responsive */
@media (max-width: 576px) {
    .gm-store-minimal {
        padding: 12px;
    }

    .gm-store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gm-card-minimal {
        padding: 12px;
    }

    .gm-card-minimal__image {
        width: 60px;
        height: 60px;
    }

    .gm-card-minimal__title {
        font-size: 0.75rem;
    }
}

/* ============================================================================
   ORDER TRACKING TIMELINE
   ============================================================================ */

.gm-order-card {
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border-color);
    border-radius: var(--gm-border-radius);
    transition: border-color var(--gm-transition-fast), box-shadow var(--gm-transition-fast);
}

.gm-order-card:hover {
    box-shadow: var(--gm-shadow-md);
}

/* Order Timeline */
.gm-order-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.gm-order-timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 50px;
}

.gm-order-timeline__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gm-border-color);
    border: 2px solid var(--gm-border-color);
    transition: background-color var(--gm-transition-fast), border-color var(--gm-transition-fast), box-shadow var(--gm-transition-fast);
}

.gm-order-timeline__step.active .gm-order-timeline__dot {
    background: var(--gm-status-success);
    border-color: var(--gm-status-success);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.gm-order-timeline__step small {
    font-size: 0.65rem;
    color: var(--gm-text-muted);
    text-align: center;
    white-space: nowrap;
}

.gm-order-timeline__step.active small {
    color: var(--gm-status-success);
    font-weight: 500;
}

.gm-order-timeline__line {
    flex: 1;
    height: 3px;
    background: var(--gm-border-color);
    margin: 0 4px;
    margin-bottom: 16px;
    transition: background-color var(--gm-transition-fast);
}

.gm-order-timeline__line.active {
    background: var(--gm-status-success);
}

/* Order Tracking Box */
.gm-order-tracking {
    border: 1px solid var(--gm-border-color);
}

.gm-order-tracking a {
    text-decoration: none;
}

.gm-order-tracking a:hover {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 576px) {
    .gm-order-timeline__step {
        min-width: 40px;
    }

    .gm-order-timeline__step small {
        font-size: 0.55rem;
    }

    .gm-order-timeline__dot {
        width: 10px;
        height: 10px;
    }
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    border-radius: var(--radius-2026, 20px);
    font-weight: 600;
    font-size: 13px;
    color: white;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

.streak-badge.streak-active {
    background: linear-gradient(135deg, #6d5aa8 0%, #51437e 100%);
}

.streak-icon {
    font-size: 16px;
    line-height: 1;
}

.streak-count {
    font-weight: 700;
}

.freeze-indicator {
    font-size: 14px;
    opacity: 0.9;
}

.brick-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    border-radius: var(--radius-2026, 20px);
    font-weight: 600;
    font-size: 13px;
    color: white;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

.brick-badge-debt {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.brick-icon {
    font-size: 16px;
    line-height: 1;
}

.brick-count {
    font-weight: 700;
}

/* ===========================================================================
   MOBİL UYUMLULUK — Gamification Cross-Platform
   iOS Safari · Android Chrome · Samsung · Tablet · Desktop
   =========================================================================== */
@media (max-width: 575.98px) {
    /* Toast: mobilde tam genişlik, sağa yapışmak yerine ortala */
    .gm-toast-container {
        top: 70px;
        right: 12px;
        left: 12px;
    }

    .gm-toast {
        min-width: 0;
        max-width: 100%;
    }

    /* Share card: gap küçült */
    .gm-share-card__stats {
        gap: 16px;
        flex-wrap: wrap;
    }

    .gm-share-card__message {
        font-size: 1rem;
    }

    /* Onboarding: kompakt */
    .gm-onboarding {
        padding: 20px 16px;
    }

    .gm-onboarding__icon {
        font-size: 3rem;
    }

    .gm-onboarding__title {
        font-size: 1.2rem;
    }

    .gm-onboarding__text {
        font-size: 0.88rem;
    }

    .gm-onboarding__actions {
        flex-direction: column;
        gap: 8px;
    }

    .gm-onboarding__btn {
        width: 100%;
        text-align: center;
    }

    /* Leaderboard: kompakt */
    .gm-leaderboard-row {
        padding: 12px;
    }

    .gm-leaderboard-row__rank {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .gm-leaderboard-row__user {
        margin-left: 10px;
    }

    .gm-leaderboard-row__lifetime {
        font-size: 0.95rem;
    }

    /* Checkin: kompakt */
    .gm-checkin {
        padding: 18px 14px;
    }

    .gm-checkin__icon {
        font-size: 3rem;
    }

    .gm-checkin__title {
        font-size: 1.1rem;
    }

    /* Earn rule: kompakt */
    .gm-earn-rule {
        padding: 12px;
    }

    .gm-earn-rule__tags {
        flex-wrap: wrap;
    }

    /* Feedback: tek sütun */
    .gm-feedback-btn {
        padding: 0.75rem 1rem;
    }

    .gm-feedback-btn__icon {
        font-size: 2rem;
    }
}

/* ── Küçük Telefon ≤480px ────────────────────────────────────── */
@media (max-width: 480px) {
    .gm-share-card {
        padding: 18px;
    }

    .gm-share-card__badge {
        padding: 12px 20px;
        gap: 8px;
    }

    .gm-share-card__badge-icon {
        font-size: 2rem;
    }

    .gm-share-card__badge-text {
        font-size: 1.15rem;
    }

    .gm-onboarding__mini-icon {
        font-size: 1.5rem;
    }

    .gm-checkin__reward {
        font-size: 1.5rem;
    }

    .gm-leaderboard-row__name {
        font-size: 0.85rem;
    }
}

/* ── iPhone SE ≤390px ────────────────────────────────────────── */
@media (max-width: 390px) {
    .gm-share-card__stat-value {
        font-size: 1.15rem;
    }

    .gm-share-card__stat-label {
        font-size: 0.75rem;
    }

    .gm-earn-rule__reward {
        font-size: 0.95rem;
    }

    .gm-earn-rule__description {
        font-size: 0.8rem;
    }

    .gm-leaderboard-row__rank {
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
    }

    .brick-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ── Touch Cihazlar ──────────────────────────────────────────── */
@media (pointer: coarse) {
    /* Touch hedefleri: min 44px */
    .gm-onboarding__btn {
        min-height: 44px;
    }

    .gm-feedback-btn {
        min-height: 44px;
    }

    .gm-checkin__close {
        min-width: 44px;
        min-height: 44px;
    }

    .gm-earn-rule__check {
        min-width: 32px;
        min-height: 32px;
    }

    .gm-leaderboard-row {
        min-height: 56px;
    }

    /* Hover efektlerini devre dışı bırak */
    .gm-leaderboard-row:hover {
        box-shadow: none;
    }

    .gm-feedback-btn:hover {
        transform: none;
    }
}

/* ── iOS Safe Area & Zoom Prevention ─────────────────────────── */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767.98px) {
        .gm-toast-container {
            top: calc(70px + env(safe-area-inset-top, 0px));
        }

        #feedbackModal .modal-body,
        #dailyCheckinModal .modal-body {
            padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        }

        /* iOS form zoom engelleme */
        #feedbackModal input,
        #feedbackModal textarea,
        #feedbackModal select {
            font-size: 16px !important;
        }
    }
}

@media (max-width: 576px) {
    .brick-slot {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .brick-slot.treasure {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .slot-wrapper:nth-child(even) {
        padding-left: 35px;
    }

    .slot-wrapper:nth-child(odd) {
        padding-right: 35px;
    }

    .streak-path-container {
        max-height: 40vh !important;
    }
}

/* ── Landscape ───────────────────────────────────────────────── */
@media (max-width: 900px) and (orientation: landscape) {
    .gm-onboarding {
        padding: 16px;
    }

    .gm-onboarding__icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .gm-checkin {
        padding: 14px;
    }

    .gm-checkin__icon {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }

    .gm-share-card {
        padding: 18px;
    }
}

/* ── Retina / HiDPI ──────────────────────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gm-leaderboard-row {
        border-width: 0.5px;
    }

    .gm-earn-rule {
        border-width: 0.5px;
    }
}

/* ── Samsung / Eski tarayıcı: backdrop-filter fallback ───────── */
@supports not (backdrop-filter: blur(10px)) {
    #feedbackModal .modal-content,
    #dailyCheckinModal .modal-content {
        background: #fff;
    }
}

/* Keyboard, touch and high-contrast resilience for globally loaded widgets. */
:where(
    .gm-toast__action,
    .gm-toast__close,
    .gm-retention-banner__action,
    .gm-navbar-badge,
    .gm-store-card__btn,
    .gm-onboarding__btn,
    .gm-checkin-claim-btn,
    .gm-feedback-btn,
    .gm-store-tab,
    .gm-card-minimal[tabindex],
    .gm-detail-minimal__close,
    .gm-gallery-nav,
    .gm-detail-minimal__video button,
    .gm-var-btn,
    .gm-detail-minimal__buy,
    .goal-btn
):focus-visible {
    outline: 3px solid #285d77;
    outline-offset: 3px;
}

@media (pointer: coarse) {
    :where(
        .gm-toast__action,
        .gm-toast__close,
        .gm-retention-banner__action,
        .gm-navbar-badge,
        .gm-store-card__btn,
        .gm-onboarding__btn,
        .gm-checkin-claim-btn,
        .gm-feedback-btn,
        .gm-store-tab,
        .gm-detail-minimal__close,
        .gm-gallery-nav,
        .gm-detail-minimal__video button,
        .gm-var-btn,
        .gm-detail-minimal__buy,
        .goal-btn
    ) {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
}

@media (forced-colors: active) {
    :where(.gm-baret, .baret-badge, .gm-streak, .gm-brick) {
        border: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
        text-shadow: none;
        forced-color-adjust: auto;
    }

    :where(.gm-progress__fill, .gm-order-timeline__line.active) {
        background: Highlight;
    }

    :where(.gm-progress__bar, .gm-order-timeline__line) {
        border: 1px solid CanvasText;
    }

    :where(
        .gm-toast__action,
        .gm-toast__close,
        .gm-retention-banner__action,
        .gm-navbar-badge,
        .gm-store-card__btn,
        .gm-onboarding__btn,
        .gm-checkin-claim-btn,
        .gm-feedback-btn,
        .gm-store-tab,
        .gm-detail-minimal__close,
        .gm-gallery-nav,
        .gm-var-btn,
        .gm-detail-minimal__buy
    ) {
        border: 1px solid ButtonText;
    }
}
