/* =====================
   FULLSCREEN AUTH SCREENS
   ===================== */
.fullscreen-screen {
    position: absolute;
    inset: 0;
    z-index: 60;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    overflow-y: auto;
}

/* Onboarding */
.app-loading-wrap {
    text-align: center;
    width: 100%;
    max-width: 340px;
}

.app-loading-mark {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(12, 147, 52, 0.16));
    animation: loadingPulse 1.2s ease-in-out infinite;
}

.app-loading-text {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
}

.app-loading-track {
    position: relative;
    width: 118px;
    height: 8px;
    margin: 18px auto 0;
    overflow: hidden;
    border: 1px solid #e6d0ff;
    border-radius: 999px;
    background: #f8f1ff;
    box-shadow: inset 0 1px 2px rgba(126, 34, 206, 0.08);
}

.app-loading-fill {
    position: absolute;
    inset: 1px auto 1px 1px;
    width: 42px;
    border-radius: inherit;
    background: linear-gradient(90deg, #e9d5ff, #c084fc, #f9a8d4);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.32);
    animation: loadingSlide 1.35s ease-in-out infinite;
}

@keyframes loadingPulse {

    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes loadingSlide {

    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(72px);
    }

    100% {
        transform: translateX(0);
    }
}

.onboarding-wrap {
    text-align: center;
    width: 100%;
    max-width: 340px;
}

.onboarding-badge {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: block;
    animation: floatBob 3s ease-in-out infinite;
}

@keyframes floatBob {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(10deg);
    }
}

.onboarding-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.onboarding-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 36px;
}

/* Setup */
.setup-wrap {
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.setup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    cursor: pointer;
}

.avatar-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color var(--t);
}

.avatar-circle:hover {
    border-color: #c084fc;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-camera-icon {
    position: absolute;
    bottom: 2px;
    right: calc(50% - 40px); /* 80px width, radius 40 */
    background: #191421;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    pointer-events: none;
}

.ring-selector-container {
    margin: -10px 0 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ring-group-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 168px;
    margin: 8px auto 0;
}

.ring-group-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    width: 168px;
    margin: 0 auto;
    text-align: left;
}

.ring-group-label-row .ring-group-label {
    width: auto;
    margin: 0;
}

.pro-badge {
    background: #e9d5ff;
    color: #6b21a8;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
}

.ring-colors-row {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--r-card);
    background: var(--bg);
    justify-content: flex-start;
    align-items: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ring-colors-row::-webkit-scrollbar {
    display: none;
}

@keyframes shimmerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ring-color-swatch {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t);
    padding: 0;
    outline: none;
}

.ring-color-swatch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: var(--bg, #ffffff);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.ring-color-swatch[style*="mask-image"]::after {
    display: none;
}

.ring-color-swatch.is-shape {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.ring-color-swatch.is-shape::after {
    display: block;
    border-radius: 0;
    -webkit-mask-image: inherit;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: inherit;
    mask-size: 100% 100%;
    mask-position: center;
    mask-repeat: no-repeat;
}

.ring-color-swatch[style*="linear-gradient"] {
    background-size: 200% 200% !important;
    animation: shimmerGradient 3s ease infinite;
}

.ring-color-swatch .premium-star-badge {
    display: none; /* Hide old star badges */
}

.ring-color-swatch:hover {
    transform: scale(1.1);
}

.ring-color-swatch.active {
    box-shadow: 0 0 0 2px var(--bg, #ffffff), 0 0 0 4px #7c3aed;
    transform: scale(1.15);
}

.avatar-plus {
    font-size: 1.8rem;
    color: #bbb;
    line-height: 1;
}

.avatar-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.setup-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.field-input {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--r-card);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    text-align: center;
    outline: none;
    transition: border-color var(--t);
    background: var(--bg);
}

.field-input:focus {
    border-color: #c084fc;
}

.field-input.error {
    border-color: #f87171;
}

/* =====================
   SHARED BUTTONS
   ===================== */
.btn-primary {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--r-pill);
    background: var(--text-primary);
    color: white;
    border: none;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t);
    margin-bottom: 12px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-ghost {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border-light);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t);
}

.btn-ghost:hover {
    border-color: #ccc;
    color: var(--text-secondary);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--r-sm);
    transition: background var(--t);
}

.icon-btn:hover {
    background: #f5f5f5;
}

