@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

        :root {
            --dark: #0a0a0a;
            --dark-deep: #111111;
            --dark-card: #141414;
            --dark-mid: #1e1e1e;
            --white: #ffffff;
            --gray-light: #c0c0c0;
            --gray: #777777;
            --gray-dark: #444444;
            --gold: #d4a843;
            --green: #22c55e;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--dark);
            color: var(--white);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: 'Oswald', sans-serif;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* HEADER */
        .header {
            width: 100%;
            padding: 16px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(20px);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-inner {
            max-width: 480px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .header-brand {
            font-family: 'Oswald', sans-serif;
            font-size: 1.3rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: var(--white);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .header-brand span {
            color: var(--gray);
        }

        .header-badge {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 4px 12px;
            border-radius: 50px;
            font-size: 0.7rem;
            color: var(--gray-light);
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        /* MAIN */
        .main {
            width: 100%;
            max-width: 480px;
            padding: 24px 20px 40px;
            flex: 1;
        }

        /* PROFILE */
        .profile {
            text-align: center;
            margin-bottom: 28px;
        }

        .profile-avatar {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: var(--dark-mid);
            border: 2px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 14px;
            font-family: 'Oswald';
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white);
        }

        .profile-name {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .profile-id {
            font-size: 0.8rem;
            color: var(--gray);
            letter-spacing: 2px;
        }

        .profile-since {
            font-size: 0.75rem;
            color: var(--gray);
            margin-top: 6px;
        }

        .profile-since i {
            margin-right: 4px;
        }

        /* LOYALTY CARD */
        .card {
            background: var(--dark-card);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 28px 24px;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: -60px;
            right: -60px;
            width: 160px;
            height: 160px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
            border-radius: 50%;
        }

        .card-label {
            font-family: 'Oswald';
            font-size: 0.75rem;
            letter-spacing: 3px;
            color: var(--gray);
            margin-bottom: 20px;
            text-transform: uppercase;
        }

        /* PROGRESS */
        .progress-info {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 14px;
        }

        .progress-count {
            font-family: 'Oswald';
            font-size: 2.2rem;
            font-weight: 700;
            line-height: 1;
        }

        .progress-count span {
            font-size: 1rem;
            color: var(--gray);
            font-weight: 400;
        }

        .progress-percent {
            font-family: 'Oswald';
            font-size: 1rem;
            color: var(--gray-light);
        }

        .progress-bar-track {
            width: 100%;
            height: 6px;
            background: var(--dark-mid);
            border-radius: 3px;
            margin-bottom: 24px;
            overflow: hidden;
        }

        .progress-bar-fill {
            height: 100%;
            background: var(--white);
            border-radius: 3px;
            transition: width 1s ease-out;
        }

        /* STAMPS */
        .stamps-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }

        .stamp {
            aspect-ratio: 1;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.3s;
            position: relative;
        }

        .stamp.completed {
            background: var(--white);
            color: var(--dark);
        }

        .stamp.completed i {
            font-size: 1rem;
        }

        .stamp.empty {
            background: var(--dark-mid);
            border: 1px dashed rgba(255, 255, 255, 0.12);
            color: var(--gray-dark);
            font-family: 'Oswald';
        }

        .stamp.reward-stamp {
            background: transparent;
            border: 2px solid var(--gold);
            color: var(--gold);
        }

        .stamp.reward-stamp.completed {
            background: var(--gold);
            color: var(--dark);
            border-color: var(--gold);
        }

        /* REWARD BANNER */
        .reward-banner {
            background: var(--dark-mid);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 14px;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .reward-icon {
            width: 44px;
            height: 44px;
            min-width: 44px;
            border-radius: 12px;
            background: rgba(212, 168, 67, 0.12);
            border: 1px solid rgba(212, 168, 67, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold);
            font-size: 1.1rem;
        }

        .reward-text h5 {
            font-size: 0.85rem;
            margin-bottom: 2px;
            color: var(--gold);
        }

        .reward-text p {
            font-size: 0.78rem;
            color: var(--gray);
            margin: 0;
        }

        /* REWARD UNLOCKED STATE */
        .reward-unlocked {
            background: rgba(212, 168, 67, 0.08);
            border-color: rgba(212, 168, 67, 0.2);
        }

        .reward-unlocked .reward-icon {
            background: var(--gold);
            color: var(--dark);
            border-color: var(--gold);
        }

        /* HISTORY SECTION */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .section-header h3 {
            font-size: 1rem;
            letter-spacing: 2px;
        }

        .section-header .view-all {
            font-size: 0.78rem;
            color: var(--gray);
            text-decoration: none;
            transition: color 0.3s;
            cursor: pointer;
        }

        .section-header .view-all:hover {
            color: var(--white);
        }

        .history-item {
            background: var(--dark-card);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 14px;
            padding: 16px 18px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }

        .history-item:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }

        .history-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .history-dot {
            width: 36px;
            height: 36px;
            min-width: 36px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-light);
            font-size: 0.85rem;
        }

        .history-service {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 2px;
        }

        .history-meta {
            font-size: 0.75rem;
            color: var(--gray);
        }

        .history-stamp {
            font-family: 'Oswald';
            font-size: 0.7rem;
            letter-spacing: 1px;
            color: var(--green);
            background: rgba(34, 197, 94, 0.1);
            padding: 4px 10px;
            border-radius: 50px;
        }

        /* QR SECTION */
        .qr-card {
            background: var(--dark-card);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 28px 24px;
            text-align: center;
            margin-bottom: 20px;
        }

        .qr-placeholder {
            width: 160px;
            height: 160px;
            margin: 0 auto 16px;
            background: var(--white);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        /* Simple QR pattern */
        .qr-pattern {
            width: 130px;
            height: 130px;
            display: grid;
            grid-template-columns: repeat(13, 1fr);
            grid-template-rows: repeat(13, 1fr);
            gap: 1px;
        }

        .qr-pattern .qr-cell {
            background: var(--dark);
            border-radius: 1px;
        }

        .qr-pattern .qr-cell.empty {
            background: transparent;
        }

        .qr-label {
            font-family: 'Oswald';
            font-size: 0.75rem;
            letter-spacing: 3px;
            color: var(--gray);
        }

        .qr-id {
            font-family: 'Oswald';
            font-size: 1rem;
            letter-spacing: 3px;
            margin-top: 4px;
        }

        /* FOOTER */
        .page-footer {
            width: 100%;
            max-width: 480px;
            padding: 20px;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .page-footer p {
            font-size: 0.75rem;
            color: var(--gray-dark);
        }

        .page-footer a {
            color: var(--gray);
            text-decoration: none;
        }

        /* ANIMATIONS */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate {
            animation: fadeIn 0.5s ease-out both;
        }

        .delay-1 {
            animation-delay: 0.1s;
        }

        .delay-2 {
            animation-delay: 0.2s;
        }

        .delay-3 {
            animation-delay: 0.3s;
        }

        .delay-4 {
            animation-delay: 0.4s;
        }

        /* SCROLLBAR */
        ::-webkit-scrollbar {
            width: 4px;
        }

        ::-webkit-scrollbar-track {
            background: var(--dark);
        }

        ::-webkit-scrollbar-thumb {
            background: #333;
            border-radius: 2px;
        }