/* === Amethyst Values Test === */

.vt-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: #FAFAF8;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vt-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vtFadeIn 0.3s ease;
}

@keyframes vtFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vt-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body, 'Inter', 'Noto Sans SC', -apple-system, sans-serif);
}

.vt-header {
    text-align: center;
    padding: 20px 0 10px;
    position: relative;
}

.vt-close {
    position: absolute;
    top: 15px;
    right: 0;
    background: #F5F3F0;
    border: none;
    color: #6B6B6B;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.vt-close:hover {
    background: #EEECEA;
    color: #1A1A1A;
}

.vt-title {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    letter-spacing: -0.02em;
}

.vt-subtitle {
    font-size: 14px;
    color: #ADADAD;
    margin-bottom: 20px;
}

.vt-progress {
    width: 100%;
    height: 3px;
    background: #EEECEA;
    border-radius: 2px;
    overflow: hidden;
}

.vt-progress-bar {
    height: 100%;
    background: #7C5CFC;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.vt-progress-text {
    font-size: 12px;
    color: #ADADAD;
    margin-top: 8px;
    font-weight: 500;
}

/* ==================== Question Card ==================== */

.vt-card-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px 0;
    min-height: 350px;
}

.vt-card {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 36px 24px;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    will-change: transform;
    transition: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.vt-card:active {
    cursor: grabbing;
}

.vt-card-question {
    font-size: 21px;
    font-weight: 600;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.vt-card-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vt-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #FAFAF8;
    border: 1.5px solid #EEECEA;
    border-radius: 14px;
    color: #1A1A1A;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vt-option:hover {
    border-color: #7C5CFC;
    background: #F0EDFF;
}

.vt-option:active {
    transform: scale(0.98);
    background: #F0EDFF;
    border-color: #7C5CFC;
}

.vt-option-a .vt-option-arrow {
    color: #7C5CFC;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.vt-option-b {
    justify-content: flex-end;
    text-align: right;
}

.vt-option-b .vt-option-arrow {
    color: #E8735A;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.vt-option-divider {
    text-align: center;
    color: #ADADAD;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Swipe Badges */
.vt-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.vt-badge-a {
    left: 5px;
    background: #F0EDFF;
    border: 2px solid #7C5CFC;
    color: #7C5CFC;
}

.vt-badge-b {
    right: 5px;
    background: #FFF0ED;
    border: 2px solid #E8735A;
    color: #E8735A;
}

.vt-hint {
    position: absolute;
    top: 8px;
    font-size: 11px;
    color: #ADADAD;
    pointer-events: none;
}

.vt-hint-left { left: 5px; }
.vt-hint-right { right: 5px; }

.vt-footer {
    text-align: center;
    padding: 15px 0 30px;
}

.vt-tip {
    font-size: 13px;
    color: #ADADAD;
}

/* ==================== Loading ==================== */

.vt-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.vt-loading-spinner {
    width: 44px;
    height: 44px;
    border: 2.5px solid #EEECEA;
    border-top-color: #7C5CFC;
    border-radius: 50%;
    animation: vtSpin 0.8s linear infinite;
}

@keyframes vtSpin {
    to { transform: rotate(360deg); }
}

.vt-loading-text {
    color: #6B6B6B;
    font-size: 15px;
    margin-top: 20px;
    font-weight: 500;
}

/* ==================== Result ==================== */

.vt-result {
    min-height: 100vh;
    padding-top: 40px;
    align-items: stretch;
}

.vt-result-header {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.vt-result-emoji {
    font-size: 56px;
    margin-bottom: 16px;
}

@keyframes vtFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.vt-result-type {
    font-size: 26px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 14px;
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    letter-spacing: -0.02em;
}

.vt-result-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #6B6B6B;
    max-width: 340px;
    margin: 0 auto 20px;
}

.vt-result-match {
    display: inline-block;
    padding: 8px 20px;
    background: #F0EDFF;
    border: 1px solid rgba(124, 92, 252, 0.15);
    border-radius: 10px;
    color: #7C5CFC;
    font-size: 14px;
    font-weight: 600;
}

/* Dimension Bars */
.vt-result-dims {
    padding: 24px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vt-dims-title {
    font-size: 12px;
    color: #ADADAD;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vt-dim-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.vt-dim-row:last-child { margin-bottom: 0; }

.vt-dim-icon { font-size: 16px; flex-shrink: 0; }

.vt-dim-name {
    font-size: 13px;
    color: #6B6B6B;
    width: 48px;
    flex-shrink: 0;
    font-weight: 500;
}

.vt-dim-bar {
    flex: 1;
    height: 6px;
    background: #F5F3F0;
    border-radius: 3px;
    overflow: hidden;
}

.vt-dim-fill {
    height: 100%;
    background: linear-gradient(90deg, #7C5CFC, #B8A9FF);
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vt-dim-val {
    font-size: 12px;
    color: #ADADAD;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
    font-weight: 600;
}

/* Action Buttons */
.vt-result-actions {
    display: flex;
    gap: 10px;
    padding: 10px 0 40px;
}

.vt-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.vt-btn:active {
    transform: scale(0.97);
}

.vt-btn-primary {
    background: #7C5CFC;
    color: #fff;
}

.vt-btn-primary:hover {
    background: #6B4FE0;
}

.vt-btn-secondary {
    background: #F5F3F0;
    color: #6B6B6B;
    border: 1px solid #EEECEA;
}

.vt-btn-secondary:hover {
    background: #EEECEA;
}

/* ==================== First Match Result ==================== */

.vt-first-match {
    min-height: 100vh;
    padding-top: 30px;
    align-items: stretch;
    animation: vtFadeIn 0.5s ease;
}

.vt-first-match-header {
    text-align: center;
    padding: 20px 0 10px;
}

.vt-first-match-check {
    font-size: 48px;
    margin-bottom: 8px;
}

.vt-first-match-congrats {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    letter-spacing: -0.02em;
}

.vt-first-match-subtitle {
    font-size: 14px;
    color: #ADADAD;
    margin-bottom: 20px;
}

.vt-first-match-type-card {
    text-align: center;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 28px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vt-first-match-type-card .vt-result-emoji {
    font-size: 44px;
    margin-bottom: 10px;
}

.vt-first-match-type-card .vt-result-type {
    font-size: 22px;
    margin-bottom: 10px;
}

.vt-first-match-type-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #6B6B6B;
    margin-bottom: 14px;
}

.vt-first-match-countdown-card {
    text-align: center;
    background: #F0EDFF;
    border: 1px solid rgba(124, 92, 252, 0.12);
    border-radius: 14px;
    padding: 22px 18px;
    margin: 16px 0;
}

.vt-first-match-countdown-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.vt-first-match-countdown-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.vt-first-match-countdown-timer {
    font-size: 15px;
    color: #7C5CFC;
    font-weight: 600;
    margin-bottom: 8px;
}

.vt-first-match-countdown-hint {
    font-size: 12px;
    color: #ADADAD;
}

.vt-first-match-actions {
    text-align: center;
    padding: 10px 0 40px;
}

.vt-btn-enter {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(124, 92, 252, 0.25);
}

.vt-first-match-explore-hint {
    font-size: 12px;
    color: #ADADAD;
    margin-top: 12px;
}

/* ==================== Scope Selection ==================== */

.vt-scope-page {
    padding: 40px 20px 30px;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vt-scope-header {
    text-align: center;
    margin-bottom: 28px;
}

.vt-scope-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.vt-scope-title {
    font-size: 22px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    letter-spacing: -0.02em;
}

.vt-scope-subtitle {
    font-size: 14px;
    color: #ADADAD;
}

.vt-scope-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.vt-scope-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 2px solid #EEECEA;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.vt-scope-card:hover {
    border-color: rgba(124, 92, 252, 0.3);
    background: #FAFAF8;
}

.vt-scope-card-active {
    border-color: #7C5CFC;
    background: #F0EDFF;
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

.vt-scope-card-active .vt-scope-check {
    opacity: 1;
    transform: scale(1);
}

.vt-scope-check {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #7C5CFC;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: all 0.25s ease;
}

.vt-scope-card-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.vt-scope-card-body {
    flex: 1;
    min-width: 0;
}

.vt-scope-card-label {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.vt-scope-card-desc {
    font-size: 13px;
    color: #ADADAD;
    line-height: 1.4;
}

.vt-scope-card-desc strong {
    color: #6B6B6B;
}

.vt-scope-badge {
    position: absolute;
    top: -1px;
    right: 44px;
    background: #7C5CFC;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 0 12px 0 8px;
    letter-spacing: 0.5px;
}

/* School Multi-Select */
.vt-scope-school-panel {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
    max-height: 260px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.vt-scope-search-wrap {
    margin-bottom: 10px;
}

.vt-scope-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #EEECEA;
    background: #FAFAF8;
    color: #1A1A1A;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.vt-scope-search:focus {
    border-color: #7C5CFC;
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

.vt-scope-search::placeholder {
    color: #ADADAD;
}

.vt-scope-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 0;
}

.vt-scope-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F0EDFF;
    border: 1px solid rgba(124, 92, 252, 0.15);
    color: #7C5CFC;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.vt-scope-chip button {
    background: none;
    border: none;
    color: #ADADAD;
    cursor: pointer;
    font-size: 14px;
    padding: 0 0 0 2px;
    line-height: 1;
}

.vt-scope-chip button:hover {
    color: #E8735A;
}

.vt-scope-school-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 160px;
}

.vt-scope-school-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    color: #6B6B6B;
    font-size: 14px;
}

.vt-scope-school-item:hover {
    background: #F5F3F0;
}

.vt-scope-school-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #7C5CFC;
    flex-shrink: 0;
}

.vt-scope-confirm {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    margin-top: 8px;
}

/* ==================== Depth Selection ==================== */

.vt-depth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px !important;
}

.vt-depth-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin-top: 24px;
}

.vt-depth-card {
    position: relative;
    background: #FFFFFF;
    border: 2px solid #EEECEA;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.vt-depth-card:hover {
    border-color: rgba(124, 92, 252, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.vt-depth-card:active {
    transform: scale(0.98);
}

.vt-depth-card-recommended {
    border-color: #7C5CFC;
    background: #F0EDFF;
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.08);
}

.vt-depth-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #7C5CFC;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.vt-depth-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.vt-depth-label {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.vt-depth-count {
    font-size: 14px;
    color: #6B6B6B;
    margin-bottom: 2px;
}

.vt-depth-time {
    font-size: 13px;
    color: #ADADAD;
    margin-bottom: 8px;
}

.vt-depth-tag {
    display: inline-block;
    background: #F0EDFF;
    color: #7C5CFC;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 8px;
}

.vt-depth-hint {
    margin-top: 20px;
    font-size: 13px;
    color: #ADADAD;
    text-align: center;
}
