/* Premium Lock Box & Inline Locker Styles */

.rtp-lock-container {
    --gold: var(--rtp-color-iframe, #C9A84C);
    --gold-light: var(--rtp-color-iframe-light, #E8C96A);
    --gold-dim: var(--rtp-color-iframe-dim, #8B6B2E);
    --bg: #0D0D0D;
    --surface: #161616;
    --surface2: #1E1E1E;
    --text: #F5F0E8;
    --text-muted: #7A756B;
    --border: color-mix(in srgb, var(--gold) 15%, transparent);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 480px;
    padding: 1.5rem 1rem;
    position: relative;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    border-radius: 12px;
    overflow: hidden;
}

.rtp-lock-container::before {
    content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, color-mix(in srgb, var(--gold) 7%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

/* ── CARD ── */
.rtp-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; padding: 1.4rem 1.25rem;
    width: 100%; max-width: 360px; position: relative;
    overflow: hidden;
    z-index: 2;
}

.rtp-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: rtpShimmerTop 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes rtpShimmerTop {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

/* ── VIEW TRANSITIONS ── */
.rtp-view {
    display: none;
    animation: rtpFadeUp 0.45s ease both;
}

.rtp-view.active {
    display: block;
}

@keyframes rtpFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── HEADER ── */
.rtp-header {
    text-align: center;
    margin-bottom: 1.1rem;
}

.rtp-badge {
    display: inline-block; background: color-mix(in srgb, var(--gold) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); color: var(--gold-light);
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; padding: 0.2rem 0.7rem;
    border-radius: 100px; margin-bottom: 0.5rem;
}

.rtp-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
}

.rtp-header h2 span {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rtp-header p {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 300;
    margin: 0;
}

/* ── FEATURE ICONS ── */
.rtp-feat-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rtp-feat {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    background: var(--surface2); border: 1px solid color-mix(in srgb, var(--gold) 10%, transparent);
    border-radius: 10px; padding: 0.55rem 0.2rem;
    font-size: 0.62rem; font-weight: 500; color: var(--text-muted);
    text-align: center; letter-spacing: 0.03em;
}

.rtp-feat-icon {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
}

/* ── PRICE BOX ── */
.rtp-price-box {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 12px; padding: 0.9rem 1rem; text-align: center;
    margin-bottom: 1rem; position: relative; overflow: hidden;
}

.rtp-price-box::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center bottom, color-mix(in srgb, var(--gold) 7%, transparent) 0%, transparent 70%);
}

.rtp-price-label {
    display: flex; align-items: center; gap: 0.5rem; justify-content: center;
    font-size: 0.6rem; font-weight: 600; color: var(--text-muted);
    letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.3rem;
}

.rtp-price-label::before, .rtp-price-label::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.rtp-price-main {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.rtp-price-main span {
    font-size: 1.4rem;
    vertical-align: super;
    color: var(--gold-light);
}

.rtp-price-usd {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    position: relative;
    z-index: 1;
}

.rtp-price-pill {
    display: inline-block; margin-top: 0.4rem;
    background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
    color: var(--gold-light); font-size: 0.6rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.2rem 0.9rem; border-radius: 100px; position: relative; z-index: 1;
}

/* ── DIVIDER ── */
.rtp-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.rtp-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.rtp-divider-text {
    color: var(--text-muted);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── PAY INFO ── */
.rtp-pay-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.5rem 0.75rem; margin-bottom: 0.75rem;
    font-size: 0.65rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em;
}

.rtp-pay-info .upi {
    color: var(--gold-light);
    font-weight: 700;
}

.rtp-pay-info .crypto {
    color: var(--gold);
    font-weight: 700;
}

/* ── TUTORIAL BUTTON ── */
.rtp-tut-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface2); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 0.7rem 0.85rem;
    text-decoration: none !important;
    transition: border-color 0.2s, transform 0.15s;
    margin-bottom: 0.75rem;
}

.rtp-tut-btn:hover {
    border-color: var(--gold);
    transform: translateX(2px);
}

.rtp-tut-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
}

.rtp-tut-icon {
    font-size: 1.2rem;
}

.rtp-tut-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.rtp-tut-sub {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 0.05rem;
}

.rtp-tut-arrow {
    width: 24px; height: 24px; border-radius: 50%;
    background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 0.85rem; flex-shrink: 0;
}

/* ── AUTH ROW ── */
.rtp-auth-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.rtp-lock-container button.rtp-auth-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    background: var(--surface2) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 10px !important;
    padding: 0.6rem 0.65rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: border-color 0.2s, transform 0.15s !important;
    text-align: left !important;
    font-family: inherit !important;
    color: var(--text) !important;
    outline: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

.rtp-lock-container button.rtp-auth-btn:hover {
    border-color: color-mix(in srgb, var(--gold) 30%, transparent) !important;
    transform: translateY(-1px) !important;
    background: var(--surface2) !important;
    color: var(--text) !important;
}

.rtp-auth-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.rtp-auth-main {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.04em;
}

.rtp-auth-sub {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-top: 0.05rem;
}

/* ── JOIN BUTTON ── */
.rtp-join-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.55rem;
    width: 100%; background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0D0D0D; border: none; border-radius: 12px; padding: 0.8rem 1rem;
    font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
    text-decoration: none; transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 24px color-mix(in srgb, var(--gold) 25%, transparent); position: relative; overflow: hidden;
}

.rtp-join-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
    transform: translateX(-100%); transition: transform 0.4s;
}

.rtp-join-btn:hover {
    filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 36px color-mix(in srgb, var(--gold) 40%, transparent);
}

.rtp-join-btn:hover::after {
    transform: translateX(100%);
}

.rtp-join-btn:active {
    transform: translateY(0);
}

.rtp-join-sub {
    font-size: 0.5rem;
    color: rgba(0,0,0,0.55);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* ── HELP ── */
.rtp-help {
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.rtp-help a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.rtp-help a:hover {
    color: var(--gold-light);
}

/* ── PLANS VIEW ── */
.rtp-back-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    margin-bottom: 0.9rem;
    padding: 0;
    transition: color 0.2s;
    outline: none;
}

.rtp-back-btn:hover {
    color: var(--gold);
}

.rtp-plans {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rtp-plan-card {
    position: relative; background: var(--surface2); border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 0.7rem 0.9rem; cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    display: flex; align-items: center; gap: 0.75rem; overflow: hidden;
    text-align: left;
}

.rtp-plan-card:hover {
    border-color: color-mix(in srgb, var(--gold) 30%, transparent); transform: translateX(3px);
}

.rtp-plan-card.selected {
    border-color: var(--gold); background: rgba(201,168,76,0.07);
}

.rtp-plan-card.rtp-featured {
    border-color: rgba(255,255,255,0.06); background: var(--surface2);
}

.rtp-plan-card.rtp-featured.selected {
    border-color: var(--gold); background: rgba(201,168,76,0.07);
}

.rtp-plan-card.selected::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, color-mix(in srgb, var(--gold) 6%, transparent) 50%, transparent 60%);
    animation: rtpShimmer 2s infinite;
}

@keyframes rtpShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.rtp-plan-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.rtp-plan-card.selected .rtp-plan-radio {
    border-color: var(--gold);
}

.rtp-plan-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.2s, transform 0.2s;
}

.rtp-plan-card.selected .rtp-plan-radio-dot {
    opacity: 1;
    transform: scale(1);
}

.rtp-plan-info {
    flex: 1;
}

.rtp-plan-name {
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rtp-plan-desc {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 300;
    margin-top: 0.1rem;
}

.rtp-save-tag {
    background: rgba(201,168,76,0.15); color: var(--gold-light); font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.55rem;
    border-radius: 100px; border: 1px solid rgba(201,168,76,0.25);
}

.rtp-featured-tag {
    background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #0D0D0D;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.15rem 0.55rem; border-radius: 100px;
}

.rtp-plan-pricing {
    text-align: right;
}

.rtp-plan-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.rtp-plan-per {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 300;
}

.rtp-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.rtp-feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 300;
}

.rtp-feature-check {
    color: var(--gold);
    font-size: 0.65rem;
    flex-shrink: 0;
}

.rtp-btn-cta {
    width: 100%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #0D0D0D;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; padding: 0.75rem; border: none; border-radius: 10px; cursor: pointer;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s; box-shadow: 0 4px 24px color-mix(in srgb, var(--gold) 20%, transparent);
    position: relative; overflow: hidden;
    outline: none;
}

.rtp-btn-cta::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%); transition: transform 0.4s;
}

.rtp-btn-cta:hover {
    filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 36px color-mix(in srgb, var(--gold) 35%, transparent);
}

.rtp-btn-cta:hover::after {
    transform: translateX(100%);
}

.rtp-btn-cta:active {
    transform: translateY(0);
}

/* ── SUCCESS ── */
.rtp-success-icon {
    width: 64px; height: 64px; background: color-mix(in srgb, var(--gold) 10%, transparent); border: 2px solid var(--gold);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.8rem;
    color: var(--gold);
    animation: rtpPopIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes rtpPopIn {
    from { transform:scale(0); opacity:0; }
    to { transform:scale(1); opacity:1; }
}

#rtp-view-success {
    text-align: center;
    padding: 1rem;
}

#rtp-view-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

#rtp-view-success p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.rtp-logo-wrapper {
    text-align: center;
    margin-bottom: 0.8rem;
}

.rtp-logo {
    max-width: 180px;
    max-height: 60px;
    display: inline-block;
}

.rtp-error-box {
    background: #3a1a1a;
    border: 1px solid #7c2424;
    color: #ff9e9e;
    font-size: 0.72rem;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: none;
    text-align: center;
}

.rtp-form-group {
    margin-bottom: 0.8rem;
    text-align: left;
}

.rtp-form-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.rtp-form-input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s;
}

.rtp-form-input:focus {
    outline: none;
    border-color: var(--gold);
}

.rtp-auth-toggle-link {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-decoration: none !important;
}

.rtp-auth-toggle-link span {
    color: var(--gold);
    font-weight: 600;
}

.rtp-auth-toggle-link:hover span {
    color: var(--gold-light);
}

/* ── ELEMENT-LEVEL INLINE LOCKED STYLES ── */

.rtp-inline-lock-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--rtp-color-content);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.rtp-inline-lock-icon {
    font-size: 1.8rem;
    color: var(--rtp-color-content);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rtp-inline-lock-text {
    display: flex;
    flex-direction: column;
}

.rtp-inline-lock-text strong {
    color: #F5F0E8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.rtp-inline-lock-text span {
    color: #7A756B;
    font-size: 0.72rem;
}

.rtp-locked-badge-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--rtp-current-color, var(--rtp-color-default));
    color: var(--rtp-current-color, var(--rtp-color-default));
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    vertical-align: middle;
    margin-left: 0.35rem;
    text-transform: uppercase;
}

.rtp-locked-label {
    border: 1px dashed var(--rtp-current-color, var(--rtp-color-default)) !important;
    color: var(--rtp-current-color, var(--rtp-color-default)) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    cursor: default !important;
    pointer-events: none !important;
}

.rtp-tut-iframe-close {
    transition: background 0.2s, color 0.2s;
}

.rtp-tut-iframe-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--gold) !important;
}
