.ta-root {
    position: fixed; inset: 0; z-index: 2147483200;
    display: none; flex-direction: column;
    background: #04050a; color: #f2f2f2;
    font-family: Vazirmatn, Tahoma, sans-serif; direction: rtl;
}
.ta-root.ta-open { display: flex; }

.ta-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 80% 0%, rgba(230,180,60,0.16), transparent 45%),
                linear-gradient(180deg, #08080e 0%, #030306 100%);
}
.ta-glow {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    top: -100px; right: -80px; background: rgba(230,180,60,0.18); filter: blur(90px);
    animation: ta-float 10s ease-in-out infinite alternate;
}
@keyframes ta-float { from { transform: translate(0,0); } to { transform: translate(-40px,50px); } }

.ta-top {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px; background: rgba(10,10,16,0.8);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(230,180,60,0.22);
}
.ta-head { flex: 1; text-align: center; font-size: 15px; font-weight: 800; letter-spacing: 1px; color: #f3d27a; }
.ta-spacer { width: 36px; }
.ta-close {
    width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,0.07); color: #eee; font-size: 15px;
}

.ta-progress { position: relative; z-index: 2; height: 4px; background: rgba(255,255,255,0.07); }
.ta-progress-fill {
    height: 100%; width: 0%; transition: width 0.35s ease;
    background: linear-gradient(90deg, #b8860b, #f3d27a); box-shadow: 0 0 10px rgba(243,210,122,0.6);
}

.ta-body {
    position: relative; z-index: 1; flex: 1; overflow-y: auto;
    padding: 18px 16px 40px; display: flex; flex-direction: column; gap: 12px;
}
.ta-stack { display: flex; flex-direction: column; gap: 12px; }
.ta-center { align-items: center; text-align: center; }

.ta-title { font-size: 18px; font-weight: 800; color: #f3d27a; margin: 4px 0; }
.ta-text { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,0.75); margin: 0; }
.ta-hint { font-size: 12px; line-height: 1.8; color: rgba(255,255,255,0.5); margin: 0; }

.ta-warn {
    font-size: 13px; font-weight: 700; color: #ffe2a0; padding: 11px 13px; border-radius: 12px;
    background: rgba(230,180,60,0.1); border: 1px solid rgba(230,180,60,0.4);
}

.ta-check {
    display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.8;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 11px 12px;
}
.ta-check input, .ta-chk, .ta-radio input, .ta-q-opt input { accent-color: #e0b04a; width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; }

.ta-field { display: flex; flex-direction: column; gap: 6px; }
.ta-label { font-size: 12px; color: rgba(255,255,255,0.6); }
.ta-input {
    width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 11px 13px;
    color: #fff; font-size: 14px; font-family: inherit; outline: none;
}
.ta-input:focus { border-color: rgba(230,180,60,0.6); box-shadow: 0 0 0 3px rgba(230,180,60,0.12); }
.ta-area { resize: vertical; min-height: 70px; }

.ta-chips, .ta-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.ta-chip, .ta-radio {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px; padding: 8px 13px; font-size: 12.5px;
}
.ta-chip:has(input:checked), .ta-radio:has(input:checked) { background: rgba(230,180,60,0.16); border-color: rgba(230,180,60,0.6); }

.ta-q { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 12px; }
.ta-q-title { font-size: 13px; line-height: 1.8; color: #fff; font-weight: 700; margin-bottom: 8px; }
.ta-q-opts { display: flex; flex-direction: column; gap: 6px; }
.ta-q-opt {
    display: flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer;
    padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.03);
}
.ta-q-opt:has(input:checked) { background: rgba(230,180,60,0.14); }

.ta-sum { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ta-sum-l { color: rgba(255,255,255,0.5); }
.ta-sum-v { color: #fff; text-align: left; }

.ta-nav { display: flex; gap: 10px; margin-top: 8px; }
.ta-btn {
    flex: 1; border: none; border-radius: 14px; padding: 13px 10px; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 700; color: #fff;
}
.ta-btn-main { background: linear-gradient(135deg, #b8860b, #7a5a06); box-shadow: 0 6px 20px rgba(230,180,60,0.25); }
.ta-btn-ghost { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); }

.ta-error {
    font-size: 13px; color: #ffb3ad; text-align: center; padding: 10px;
    background: rgba(255,60,60,0.1); border: 1px solid rgba(255,60,60,0.3); border-radius: 12px;
}
.ta-note { font-size: 12.5px; color: #f3d27a; text-align: center; }

.ta-done-icon {
    width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #5dffc0; border: 1px solid rgba(93,255,192,0.5); background: rgba(93,255,192,0.12);
}
.ta-number {
    font-family: 'Courier New', monospace; font-size: 22px; font-weight: 800; letter-spacing: 2px;
    color: #f3d27a; border: 1px solid rgba(230,180,60,0.45); border-radius: 12px; padding: 10px 18px; direction: ltr;
}

