: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: flex-start;
    padding-top: 80px;
    box-sizing: border-box;
    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);
}

.instruction-full {
    height: auto;
    overflow: visible;
    background: transparent;
    padding: 15px 5px;
    margin: 10px 0;
    font-size: 14px;
    color: var(--text-sec);
    text-align: left;
    line-height: 1.6;
}

/* 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 (Legacy Card Style) */
.clean-card {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

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

.account-row {
    background: #f5f5f7;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.totp-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #007aff;
    width: 100%;
    transition: width 1s linear;
}

.row-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.row-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.row-value {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    word-break: break-all;
}

.btn-copy-square {
    background: #e1f0ff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    color: #007aff;
    flex-shrink: 0;
    margin-left: 15px;
}

.btn-copy-square:hover {
    background: #d0e8ff;
}

.btn-copy-square:active {
    transform: scale(0.95);
}

.btn-copy-square svg {
    width: 20px;
    height: 20px;
}

.btn-copy-square.success {
    background: #e0ffe0;
    color: #00cc00;
}

/* 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;
    animation: fadeIn 0.3s ease-out;
}

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

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

.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;
}

@media (max-width: 480px) {
    body {
        padding-top: 40px;
    }

    .container {
        padding: 10px;
    }

    .glass-card,
    .clean-card {
        padding: 20px !important;
        border-radius: 20px;
    }

    h1#statusTitle {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .account-row {
        padding: 12px 15px;
    }

    .row-label {
        font-size: 10px;
    }

    .row-value {
        font-size: 14px;
    }

    .btn-copy-square {
        width: 36px;
        height: 36px;
        margin-left: 10px;
    }

    .btn-copy-square svg {
        width: 18px;
        height: 18px;
    }

    .instruction-toggle>span {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .badge-red {
        margin-left: 0;
        margin-top: 5px;
    }
}
/* PREMIUM UI (Shared) */
.card { background: var(--card-bg, #fff); border-radius: 16px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); margin-bottom: 25px; border: 1px solid var(--border, #eee); transition: transform 0.2s; }
.card h2, .card h3 { margin-top: 0; font-weight: 600; }
.btn-green { background: linear-gradient(135deg, #00c853 0%, #009624 100%); color: white; border: none; padding: 10px 20px; border-radius: 10px; cursor: pointer; font-weight: 600; box-shadow: 0 4px 12px rgba(0,200,83,0.2); }
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,200,83,0.3); }
.btn-trash { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; background: rgba(239, 68, 68, 0.1); color: #ef4444; transition: all 0.2s; }
.btn-trash:hover { background: rgba(239, 68, 68, 0.2); }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-block; }
.status-new { background: #e0f8e0; color: #00c853; }
.status-visited { background: #fee2e2; color: #ef4444; }
.table-premium { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-premium th { text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; color: var(--text-sec, #888); font-weight: 600; padding-bottom: 15px; text-align: left; }
.table-premium td { padding: 12px 10px; border-bottom: 1px solid var(--border, #eee); }
.table-premium tr:last-child td { border-bottom: none; }

