:root {
    --cash-green: #00d643;
    --cash-black: #000000;
    --cash-white: #ffffff;
    --cash-gray: #1c1c1e;
    --text-muted: #8e8e93;
}

body {
    margin: 0;
    padding: 0;
    background: var(--cash-black);
    color: var(--cash-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.splash-body {
    background: var(--cash-green);
}

.white-theme {
    background: var(--cash-white);
    color: var(--cash-black);
}

.app-container {
    width: 100%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-container img {
    width: 80px;
    height: 80px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 20px;
}

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

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

/* Input Styles */
.input-header {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    margin-top: 50px;
}

.input-header h2 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}

.help-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: var(--cash-black);
    text-decoration: none;
}

.input-box-container {
    width: 100%;
    margin-top: 30px;
    position: relative;
}

input.themed-input {
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: 8px;
    color: var(--cash-black);
    font-size: 18px;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input.themed-input:focus {
    outline: none;
    border-color: var(--cash-green);
}

.help-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--cash-black);
    font-weight: 600;
    text-decoration: underline;
    font-size: 14px;
}

.bottom-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: auto;
    padding-bottom: 20px;
}

.btn-secondary,
.btn-primary {
    flex: 1;
    border: none;
    border-radius: 30px;
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary {
    background: #e5e5ea;
    color: var(--cash-black);
}

.btn-primary {
    background: #d1d1d6;
    /* Disabled state color */
    color: var(--cash-white);
}

.btn-primary.active {
    background: var(--cash-green);
    color: var(--cash-black);
}

.btn-primary.active:active {
    background: #00b036;
}

/* PIN Circle Styles */
.pin-circles-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.pin-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: background 0.2s, border-color 0.2s;
}

.pin-circle.filled {
    background: var(--cash-black);
    border-color: var(--cash-black);
}

#hiddenPinInput {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}