:root {
    --primary-color: #fab061;
    /* Orange */
    --primary-hover: #e39b4f;
    /* Darker Orange */
    --background-dark: #000000;
    /* Black */
    --surface-dark: #5e5659;
    /* Dark Grey */
    --text-light: #eef3fa;
    /* Light */
    --text-dim: rgba(238, 243, 250, 0.7);
    --gradient-start: #fab061;
    /* Orange */
    --gradient-end: #493c33;
    /* Brown */
}

.hidden {
    display: none !important;
}

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

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Background ambient glow */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(250, 176, 97, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    border-radius: 50%;
}

body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(73, 60, 51, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -100px;
    right: -100px;
    z-index: -1;
    border-radius: 50%;
}

#container {
    background: rgba(94, 86, 89, 0.3);
    /* Transparent version of Dark Grey #5e5659 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 480px;
    width: 90%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

p.subtitle {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Google Sign In Wrapper */
.google-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    min-height: 50px;
}

/* User Profile */
#user-profile {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

#user-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

#user-profile h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#user-profile p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Wallet Button */
#add-to-wallet {
    display: none;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#add-to-wallet:hover {
    transform: scale(1.05);
}

#add-to-wallet img {
    height: 48px;
}

/* Loading State */
.loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid var(--text-dim);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin: 1rem auto;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Instructions */
#instructions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Warning/Emphasis Text */
.warning-text {
    color: var(--primary-color);
    /* Amber-400 replaced with Primary Orange */
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: block;
}

/* Apple Wallet Button Stub */
.apple-wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    margin-top: 1rem;
    width: 100%;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
    cursor: not-allowed;
    opacity: 0.6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    height: 48px;
}

.apple-wallet-btn:hover {
    opacity: 0.6;
    /* No hover effect for disabled state */
}


.apple-wallet-btn span {
    margin-left: 8px;
}

/* Platform Selection */
.platform-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.platform-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    width: 140px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.platform-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px -5px rgba(250, 176, 97, 0.3);
}

.platform-card svg {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.platform-card:hover svg {
    color: var(--primary-color);
}

.platform-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Back Link Button */
.back-link {
    background: none;
    border: none;
    color: var(--text-dim);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 2rem;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 0.5rem;
}

.back-link:hover {
    color: var(--text-light);
}

.strong-warning {
    background: rgba(250, 176, 97, 0.1);
    /* Orange with opacity */
    border: 1px solid rgba(250, 176, 97, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* Partner Login */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 10px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
}

#partner-login-section {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto 2rem auto;
}

#partner-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#partner-login-form input {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    transition: all 0.2s;
}

#partner-login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

#partner-login-form input::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.partner-btn {
    padding: 14px;
    background: linear-gradient(135deg, var(--gradient-start), var(--primary-hover));
    color: var(--background-dark);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 5px;
}

.partner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 176, 97, 0.3);
}

.error-text {
    color: #ef5350;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    margin-top: 5px;
    font-weight: 500;
}