:root {
    --primary-blue: #007aff;
    --primary-light: #e0f0ff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #1d1d1f;
    --text-sec: #86868b;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    background: #007aff;
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob:nth-child(1) {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
}

.blob:nth-child(2) {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    animation-delay: -5s;
    background: #00c6ff;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

p.subtitle {
    color: var(--text-sec);
    margin-bottom: 30px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.terms-scroll {
    height: 150px;
    overflow-y: auto;
    background: #f5f5f7;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-sec);
    text-align: left;
}

/* Inputs & Buttons - For Login Page */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: white;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: var(--primary-blue);
}

.btn-primary {
    background: linear-gradient(90deg, #007aff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: box-shadow 0.2s, transform 0.1s;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* SAFETY GATE & WARNING MODAL */
.safety-gate {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 450px;
}

.warning-icon {
    margin-bottom: 20px;
}

.warning-svg {
    width: 80px;
    height: 80px;
}

.warning-title {
    color: #ff3b30;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.warning-text {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 30px;
}

.checkbox-wrapper-lg {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    accent-color: black;
    cursor: pointer;
}

.checkbox-wrapper-lg label {
    font-weight: 600;
    font-size: 14px;
    color: #000;
    cursor: pointer;
}

.btn-black {
    background: #000;
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s;
}

.btn-black:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-black:hover:not(:disabled) {
    opacity: 0.8;
}

/* DATA FIELDS (Input Style) */
.clean-card {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    /* Reset alignment for inputs */
}

h1#statusTitle {
    text-align: left;
    margin-bottom: 25px;
    font-size: 24px;
}

.field-group {
    margin-bottom: 20px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    display: block;
}

.input-box {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 8px 12px;
    transition: border-color 0.2s;
}

.input-box:hover {
    border-color: #d1d1d6;
}

.field-value {
    flex-grow: 1;
    font-family: 'Courier New', monospace;
    /* Monospace for passwords */
    font-size: 16px;
    color: #333;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
    background: transparent;
    border: none;
    outline: none;
}

.btn-copy-sm {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy-sm:hover {
    background: #f0f0f0;
    border-color: #d1d1d6;
}

.btn-copy-sm.success {
    background: #e0ffe0;
    border-color: #00c853;
    color: #00c853;
}

/* INSTRUCTION ACCORDION */
.instruction-wrapper {
    margin-top: 40px;
    border-top: 1px solid #e5e5ea;
    padding-top: 20px;
}

.instruction-toggle {
    width: 100%;
    background: #f9f9fa;
    border: 1px solid #e5e5ea;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.badge-red {
    background: #ff3b30;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    vertical-align: middle;
}

.instruction-body {
    display: none;
    padding-top: 15px;
}

.instruction-body.open {
    display: block;
}

.chevron {
    fill: #86868b;
    transition: transform 0.3s;
}

.instruction-button-active .chevron {
    transform: rotate(180deg);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light);
    border-top: 5px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

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

.hidden {
    display: none;
}