/* Digital Punch Card — Customer Card Styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-container {
    width: 100%;
    max-width: 480px;
}

/* Business Header */
.business-header {
    text-align: center;
    margin-bottom: 24px;
}

.business-logo {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
}

.business-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.business-tagline {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Punch Card */
.punch-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.punch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.card-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.card-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.customer-name {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    padding: 8px 16px;
    background: var(--bg);
    border-radius: 8px;
}

/* Punch Grid */
.punch-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 8px;
}

.punch-slot {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px dashed var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.punch-slot .punch-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.5;
}

.punch-slot.filled {
    background: var(--primary);
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.punch-slot.filled .punch-number {
    display: none;
}

.punch-slot.filled::after {
    content: '✓';
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.punch-slot.reward-slot {
    border-color: gold;
    border-style: solid;
    border-width: 3px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.punch-slot.reward-slot .punch-number {
    display: none;
}

.punch-slot.reward-slot::after {
    content: '🎁';
    font-size: 24px;
}

.punch-slot.reward-slot.filled {
    animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.05); }
}

/* Progress */
.progress-section {
    margin-bottom: 24px;
}

.progress-bar-container {
    background: var(--bg);
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

/* Reward Info */
.reward-info {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.reward-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.reward-info p {
    font-size: 13px;
    opacity: 0.9;
}

.reward-ready {
    background: linear-gradient(135deg, #28A745, #20C997);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

/* Stats */
.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.card-stat {
    text-align: center;
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
}

.card-stat .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.card-stat .label {
    font-size: 12px;
    color: var(--text-light);
}

/* Footer */
.card-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.card-code {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Business Contact */
.business-contact {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-light);
}

.business-contact a {
    color: var(--primary);
    text-decoration: none;
}

/* Not found */
.not-found {
    text-align: center;
    padding: 60px 20px;
}

.not-found .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.not-found h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text);
}

.not-found p {
    color: var(--text-light);
}

/* QR Placeholder */
.qr-section {
    text-align: center;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    body { padding: 12px; }
    .punch-card { padding: 20px; }
    .punch-grid { gap: 10px; }
    .business-name { font-size: 22px; }
    .business-logo { font-size: 44px; }
}
