* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    width: 100%;
}

.content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

header {
    text-align: center;
    padding: 1.5rem 0;
    background: linear-gradient(180deg, rgba(10,10,10,1) 0%, rgba(18,18,18,1) 100%);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FF0080, #7928CA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.3px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.subtitle {
    color: #888;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.card {
    background: #121212;
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 0;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: fit-content;
}

.card.voucher-card {
    grid-column: 1;
    position: sticky;
    top: 2rem;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #FF0080, #7928CA);
    color: white;
    border-radius: 12px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-weight: 600;
    min-height: 56px;
    font-size: 1.1rem;
    width: 100%;
    letter-spacing: -0.3px;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(121, 40, 202, 0.2);
}

.voucher-display {
    margin: 2rem auto;
    padding: 2rem;
    background: #0a0a0a;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 100%;
    text-align: center;
}

.voucher-display span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    padding: 1.5rem;
    background: #121212;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.1);
    word-break: break-all;
    display: inline-block;
}

.copy-button {
    padding: 1rem 2rem;
    background: rgba(121, 40, 202, 0.2);
    border: 1px solid #7928CA;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-height: 56px;
    font-size: 1rem;
    width: auto;
    min-width: 140px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    background: rgba(121, 40, 202, 0.3);
}

.qr-code {
    margin: 2.5rem auto;
    text-align: center;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    display: block;
    max-width: fit-content;
}

.qr-code canvas {
    max-width: 100%;
    height: auto;
}

.voucher-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.voucher-item {
    background: #121212;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.voucher-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
    background: #1a1a1a;
}

.voucher-item.used {
    opacity: 0.7;
}

.voucher-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.voucher-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.voucher-date {
    font-size: 0.85rem;
    color: #666;
    padding-left: 0.2rem;
}

.voucher-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.status-badge.used {
    background: rgba(255,59,48,0.1);
    color: #ff3b30;
    border: 1px solid rgba(255,59,48,0.2);
}

.status-badge.valid {
    background: rgba(48,209,88,0.1);
    color: #30d158;
    border: 1px solid rgba(48,209,88,0.2);
}

.status-badge.status-changing {
    transform: scale(0.95);
    opacity: 0;
}

@keyframes statusChange {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.status-badge.status-changing {
    animation: statusChange 0.6s ease;
}

.voucher-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.icon-button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-button:hover {
    background: rgba(255,0,128,0.1);
    border-color: rgba(255,0,128,0.2);
}

@media (max-width: 768px) {
    .voucher-item {
        padding: 0;
        background: rgba(18, 18, 18, 0.6);
        border: 1px solid rgba(255,255,255,0.08);
        margin-bottom: 0.8rem;
        position: relative;
        overflow: hidden;
    }

    .voucher-item.used {
        border-color: rgba(255, 59, 48, 0.2);
    }

    .status-badge {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        text-align: center;
        padding: 0.4rem;
        border-radius: 0;
        font-size: 0.8rem;
        border: none;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .status-badge.valid {
        background: rgba(48, 209, 88, 0.1);
        border-bottom: 1px solid rgba(48, 209, 88, 0.2);
    }

    .status-badge.used {
        background: rgba(255, 59, 48, 0.1);
        border-bottom: 1px solid rgba(255, 59, 48, 0.2);
    }

    .voucher-details {
        margin: 0;
        padding: 2.5rem 1rem 1rem;
    }

    .voucher-code {
        font-size: 0.95rem;
        padding: 0.5rem;
        text-align: center;
        background: rgba(0, 0, 0, 0.2);
    }

    .voucher-date {
        text-align: center;
        padding: 0.3rem 0 0;
        font-size: 0.8rem;
        opacity: 0.7;
    }

    .voucher-status {
        padding: 0.8rem;
        border-top: 1px solid rgba(255,255,255,0.05);
        justify-content: center;
    }

    .voucher-buttons {
        display: flex;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .icon-button {
        flex: 1;
        max-width: 120px;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        justify-content: center;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .icon-button:active {
        transform: scale(0.95);
        background: rgba(255,255,255,0.08);
    }
}

footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    background: linear-gradient(0deg, #0f0f0f 0%, #121212 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    display: flex;
    align-items: center;
    min-height: 120px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.system-status-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    padding: 0.6rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    top: -0.5rem;
}

.system-status-wrapper:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.system-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    position: relative;
    transition: all 0.3s ease;
}

.status-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.system-status.online {
    color: #10B981;
}

.system-status.online .status-dot {
    background: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.system-status.online .status-dot::after {
    background: #10B981;
}

.system-status.offline {
    color: #EF4444;
}

.system-status.offline .status-dot {
    background: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.system-status.offline .status-dot::after {
    background: #EF4444;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.logout-button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0.8rem;
    margin: 0;
    min-height: unset;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    border-radius: 100px;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.logout-button:active {
    transform: translateY(0);
}

.logout-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logout-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.logout-button:hover .logout-icon {
    opacity: 1;
    transform: translateX(2px);
}

.logout-text {
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: -0.2px;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: -0.3px;
}

@media (max-width: 768px) {
    .footer-bottom {
        margin-top: 0.5rem;
    }

    .logout-button {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .logout-icon {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.6rem;
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .card {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .button {
        padding: 1.2rem;
        margin-top: 1.5rem;
        font-size: 1.1rem;
    }

    .voucher-display {
        margin: 1.5rem 0;
    }

    .voucher-display span {
        font-size: 1.2rem;
        letter-spacing: 1px;
        padding: 1rem;
    }

    .copy-button {
        width: 100%;
        margin-top: 0.5rem;
        padding: 1rem;
    }

    .voucher-list {
        margin-top: 1.5rem;
    }

    .voucher-list-item {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
        margin-bottom: 0.8rem;
    }

    .voucher-status {
        width: 100%;
        text-align: center;
        padding: 0.5rem 1rem;
    }

    .button:active,
    .copy-button:active,
    .voucher-list-item:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .content {
        margin: 0.5rem 0 2rem 0;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .voucher-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .icon-button {
        flex: 1;
        justify-content: center;
    }
}

@media (prefers-color-scheme: dark) {
    .voucher-display {
        background: #222;
    }

    .voucher-display span {
        background: #1a1a1a;
    }

    .copy-button {
        background: #7928CA;
    }

    .copy-button:active {
        background: #6a23b5;
    }
}

.button.loading,
.copy-button.loading {
    position: relative;
    opacity: 0.8;
    pointer-events: none;
}

.button.loading::after,
.copy-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Add this in the head of your HTML */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono&display=swap');

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #121212;
    padding: 2rem;
    border-radius: 20px;
    max-width: 90%;
    width: 400px;
    border: 1px solid rgba(255,255,255,0.1);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.modal-qr {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.modal-code {
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 1rem;
}

.voucher-list-item .voucher-code {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

/* Mobile optimization for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }

    .modal-qr {
        padding: 1rem;
    }

    .modal-qr img {
        max-width: 100%;
        height: auto;
    }

    .modal-code {
        font-size: 1rem;
        word-break: break-all;
    }
}

/* Enhanced Digital Pass Styles */
.digital-pass .modal-content {
    padding: 0;
    overflow: hidden;
    max-width: 350px;
    width: 100%;
    border-radius: 16px;
    margin: 1rem;
}

.pass-container {
    background: linear-gradient(135deg, #FF0080, #7928CA);
    padding: 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.pass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.pass-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.emoji {
    font-size: 1.2em;
}

.pass-qr {
    background: white;
    padding: 0.8rem;
    border-radius: 12px;
    display: inline-block;
    margin: 0.8rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pass-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    word-break: break-all;
}

.pass-info {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.pass-info p {
    margin: 0.5rem 0;
}

.pass-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-direction: column;
}

.pass-action-btn {
    width: 100%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.pass-action-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.pass-action-btn:active {
    background: rgba(255,255,255,0.4);
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .modal {
        align-items: center;
        padding: 1rem;
    }

    .digital-pass .modal-content {
        margin: 0;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pass-container {
        padding: 1.2rem;
    }

    .pass-logo {
        font-size: 1.6rem;
    }

    .pass-code {
        font-size: 1.1rem;
        padding: 0.8rem;
    }

    .pass-action-btn {
        min-height: 44px; /* iOS minimum touch target size */
    }
}

.system-status {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot.offline {
    background-color: #EF4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.system-status.online {
    color: #10B981;
}

.system-status.offline {
    color: #EF4444;
}

.button.delete-button {
    background: transparent;
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.button.delete-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 59, 48, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button.delete-button:hover {
    border-color: rgba(255, 59, 48, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 59, 48, 0.1);
}

.button.delete-button:hover::before {
    opacity: 1;
}

.button.delete-button:active {
    transform: translateY(1px);
    border-color: rgba(255, 59, 48, 0.6);
}

@media (max-width: 768px) {
    .button.delete-button {
        margin-top: 1rem;
    }
    
    .button.delete-button:active {
        transform: scale(0.98);
    }
}

/* Login Overlay Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.login-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 128, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(121, 40, 202, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.login-container {
    background: rgba(18, 18, 18, 0.95);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 20px rgba(18, 18, 18, 0.5);
    width: 90%;
    max-width: 500px;
    transform: translateY(0);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
}

.login-content {
    text-align: center;
    position: relative;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-header h1 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FF0080, #7928CA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    font-weight: 500;
}

.login-form {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.login-input:focus {
    border-color: rgba(121, 40, 202, 0.5);
    box-shadow: 0 0 0 4px rgba(121, 40, 202, 0.1);
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF0080, #7928CA);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(121, 40, 202, 0.3);
}

.login-button:hover::before {
    opacity: 1;
}

.biometric-area {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.biometric-area::before {
    content: 'or';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #121212;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 500;
}

.biometric-button {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.biometric-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.biometric-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(121, 40, 202, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(121, 40, 202, 0.2);
}

.biometric-button:hover::before {
    opacity: 1;
}

.biometric-button:active {
    transform: translateY(1px);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(121, 40, 202, 0.3);
}

.faceid-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.faceid-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.biometric-button:hover .faceid-icon svg {
    transform: scale(1.1);
    stroke: #FF0080;
}

.button-text {
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Animation for registration success */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.biometric-button.registration-success {
    animation: successPulse 0.5s ease;
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 
        0 8px 20px rgba(16, 185, 129, 0.2),
        0 0 0 1px rgba(16, 185, 129, 0.3);
}

.biometric-button.registration-success .faceid-icon svg {
    stroke: #10B981;
}

/* Loading state */
.biometric-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.biometric-button.loading .faceid-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Main Content Transition */
#mainContent {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#mainContent.visible {
    opacity: 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    flex: 1;
}

.logout-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1.2rem;
    margin: 0;
    min-height: unset;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.logout-button:active {
    transform: translateY(1px);
}

.logout-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.logout-button:hover .logout-icon svg {
    transform: translateX(2px);
    stroke: #FF0080;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }

    .header-left {
        text-align: center;
    }

    .logout-button {
        width: auto;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .logout-icon {
        width: 16px;
        height: 16px;
    }
}

/* Face ID button highlight animation */
@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(121, 40, 202, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(121, 40, 202, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(121, 40, 202, 0);
    }
}

.biometric-button.highlight-animation {
    animation: highlightPulse 2s infinite;
    border-color: rgba(121, 40, 202, 0.5);
    background: rgba(121, 40, 202, 0.1);
}

.biometric-button.highlight-animation:hover {
    animation: none;
}

.face-id-prompt {
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.1), rgba(121, 40, 202, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.face-id-prompt h2 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.face-id-prompt p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.face-id-prompt .biometric-button {
    margin: 0 auto 1rem;
    max-width: 300px;
}

.face-id-prompt .skip-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
    margin: 0 auto;
}

.face-id-prompt .skip-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

#recentVouchers {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
    margin: 1.5rem -1rem 1.5rem 0;
}

#recentVouchers::-webkit-scrollbar {
    width: 8px;
}

#recentVouchers::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#recentVouchers::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#recentVouchers::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.voucher-item {
    padding: 1.5rem;
    margin-bottom: 1.2rem;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .card.voucher-card {
        position: static;
    }

    .login-container {
        padding: 2rem;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }

    .login-header p {
        font-size: 1rem;
    }

    .login-input {
        padding: 1rem;
        font-size: 1rem;
    }

    #recentVouchers {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
        margin: 1rem 0;
    }

    .button-group {
        grid-template-columns: 1fr;
    }
} 