:root {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #1a1a1c;
    --text-secondary: #66666e;
    --accent-color: #ff6b00;
    /* Signal Orange */
    --accent-gradient: linear-gradient(135deg, #ff6b00 0%, #ff8c33 100%);
    --card-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    /* Neumorphic/Soft Depth */
    --border-radius: 2px;
    /* Sharp geometry for technical feel */
    --grid-gap: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 4rem 2rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-color) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.03;
    z-index: -1;
}

header {
    max-width: 1400px;
    margin: 0 auto 5rem auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 2rem;
}

.logo-container img {
    height: 60px;
    width: auto;
    display: block;
}

.header-info {
    text-align: right;
}

header h1 {
    display: none;
    /* Replaced by logo */
}

.stats-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-value.success {
    color: #28a745;
}

.stat-value.cancelled {
    color: #dc3545;
}

.qr-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--grid-gap);
    max-width: 1400px;
    margin: 0 auto;
}

.qr-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 0;
    border: 2px solid var(--text-primary);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.qr-card::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    background: var(--accent-color);
    z-index: -1;
    transition: all 0.3s ease;
}

.qr-card:hover {
    transform: translate(-5px, -5px);
}

.qr-card:hover::after {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.id-tag {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-wrapper {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfdfd;
}

.qr-wrapper img {
    max-width: 100%;
    height: auto;
    filter: contrast(1.1);
}

.info-footer {
    padding: 1.5rem;
    background: var(--text-primary);
    color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipient-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.account {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 400;
}

.amount-info {
    text-align: right;
}

.amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.amount small {
    font-size: 0.8rem;
    color: var(--bg-color);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10rem 2rem;
    border: 2px dashed var(--text-secondary);
    color: var(--text-secondary);
}

footer {
    text-align: center;
    margin-top: 8rem;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-card {
    animation: fadeInUp 0.6s backwards;
}

@media (max-width: 768px) {
    body {
        padding: 2rem 1rem;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .header-info {
        text-align: left;
        width: 100%;
    }

    .logo-container img {
        height: 45px;
    }

    .qr-container {
        grid-template-columns: 1fr;
    }
}