/* ═══════════════════════════════════════════════════════════
   eZizz Claim Profile — Styles
   Matches existing dark theme: --primary-color: #2ab391
═══════════════════════════════════════════════════════════ */

/* ── Claim Banner ─────────────────────────────────────────── */
/*
   The banner is shown by default via this rule.
   It is hidden via:
     - PHP: inline style="display:none!important" when claimed or owner
     - JS:  sessionStorage dismissal check on page load
   The original template CSS has display:none on .claim-banner
   (class selector). We override it here with the ID selector
   which has higher specificity, so no !important needed.
*/
#claimBanner {
    display: flex;
    background: linear-gradient(135deg, #1a2e28 0%, #1a1a2e 100%);
    border: 1px solid rgba(42, 179, 145, 0.25);
    padding: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-radius: 16px 16px 0 0 !important;
    animation: claimSlideDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

#claimBanner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42,179,145,0.04), transparent);
    animation: claimShimmer 4s ease-in-out infinite;
}

@keyframes claimSlideDown {
    from { transform: translateY(-8px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes claimShimmer {
    0%, 100% { transform: translateX(-50%); }
    50%       { transform: translateX(50%);  }
}

.claim-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 200px;
}

.claim-icon {
    background: rgba(42, 179, 145, 0.15);
    border: 1px solid rgba(42, 179, 145, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.claim-text h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #fff;
}

.claim-text p {
    font-size: 13px;
    color: #808080;
    margin: 0;
}

.claim-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-claim {
    background: #2ab391;
    color: #fff;
    padding: 9px 22px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-claim:hover {
    background: transparent;
    color: #2ab391;
    box-shadow: inset 0 0 0 1.5px #2ab391;
    transform: translateY(-1px);
}

.btn-dismiss {
    background: transparent;
    color: #808080;
    border: 1px solid rgba(255,255,255,0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-dismiss:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* ── Claim Modal Overlay ──────────────────────────────────── */
#ezizz-claim-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#ezizz-claim-modal.is-open {
    display: flex;
    animation: claimFadeIn 0.25s ease-out;
}

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

/* ── Modal Box ────────────────────────────────────────────── */
.ezizz-claim-box {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    animation: claimBoxIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes claimBoxIn {
    from { transform: scale(0.92) translateY(10px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* Header gradient bar */
.ezizz-claim-header {
    background: linear-gradient(135deg, #0f2922 0%, #0f0f1e 100%);
    border-bottom: 1px solid rgba(42, 179, 145, 0.15);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ezizz-claim-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ezizz-claim-header-icon {
    width: 40px;
    height: 40px;
    background: rgba(42, 179, 145, 0.15);
    border: 1px solid rgba(42, 179, 145, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ezizz-claim-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
}

.ezizz-claim-header p {
    font-size: 12px;
    color: #808080;
    margin: 0;
}

.ezizz-claim-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #808080;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ezizz-claim-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* ── Progress Steps ───────────────────────────────────────── */
.ezizz-claim-progress {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ezizz-claim-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ezizz-claim-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #808080;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ezizz-claim-step.is-active .ezizz-claim-step-dot {
    border-color: #2ab391;
    background: rgba(42, 179, 145, 0.15);
    color: #2ab391;
}

.ezizz-claim-step.is-done .ezizz-claim-step-dot {
    border-color: #2ab391;
    background: #2ab391;
    color: #fff;
}

.ezizz-claim-step-label {
    font-size: 12px;
    color: #808080;
    font-weight: 500;
    white-space: nowrap;
}

.ezizz-claim-step.is-active .ezizz-claim-step-label {
    color: #2ab391;
}

.ezizz-claim-step-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0 8px;
}

/* ── Body ─────────────────────────────────────────────────── */
.ezizz-claim-body {
    padding: 24px;
}

/* Individual step panels */
.ezizz-claim-panel {
    display: none;
}

.ezizz-claim-panel.is-active {
    display: block;
    animation: panelFadeIn 0.25s ease-out;
}

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

/* ── Form Elements ────────────────────────────────────────── */
.ezizz-claim-field {
    margin-bottom: 18px;
}

.ezizz-claim-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #b0b0b0;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.ezizz-claim-input,
.ezizz-claim-select {
    width: 100%;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    padding: 12px 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.ezizz-claim-input:focus,
.ezizz-claim-select:focus {
    border-color: #2ab391;
    box-shadow: 0 0 0 3px rgba(42, 179, 145, 0.1);
}

.ezizz-claim-input::placeholder {
    color: #404040;
}

/* Select arrow */
.ezizz-claim-select-wrap {
    position: relative;
}

.ezizz-claim-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #808080;
    pointer-events: none;
    font-size: 14px;
}

.ezizz-claim-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Domain badge */
.ezizz-claim-domain-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(42, 179, 145, 0.08);
    border: 1px solid rgba(42, 179, 145, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #2ab391;
    margin-top: 10px;
}

.ezizz-claim-domain-hint.is-mismatch {
    background: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.25);
    color: #ff9800;
}

/* ── OTP Input ────────────────────────────────────────────── */
.ezizz-otp-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 8px 0 16px;
}

.ezizz-otp-digit {
    width: 52px;
    height: 58px;
    background: #111;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
    font-family: monospace;
    letter-spacing: 0;
    caret-color: #2ab391;
}

.ezizz-otp-digit:focus {
    border-color: #2ab391;
    box-shadow: 0 0 0 3px rgba(42, 179, 145, 0.15);
    background: #151515;
}

.ezizz-otp-digit.is-filled {
    border-color: rgba(42, 179, 145, 0.5);
}

/* ── Path badge (auto vs manual) ─────────────────────────── */
.ezizz-claim-path-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.ezizz-claim-path-badge.is-auto {
    background: rgba(42, 179, 145, 0.12);
    border: 1px solid rgba(42, 179, 145, 0.3);
    color: #2ab391;
}

.ezizz-claim-path-badge.is-manual {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ff9800;
}

/* ── Resend + countdown ───────────────────────────────────── */
.ezizz-otp-meta {
    text-align: center;
    font-size: 13px;
    color: #808080;
    margin-top: 12px;
}

.ezizz-resend-btn {
    background: none;
    border: none;
    color: #2ab391;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}

.ezizz-resend-btn:disabled {
    color: #808080;
    text-decoration: none;
    cursor: not-allowed;
}

/* ── Primary CTA button ───────────────────────────────────── */
.ezizz-claim-btn {
    width: 100%;
    background: #2ab391;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.ezizz-claim-btn:hover:not(:disabled) {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px #2ab391;
    color: #2ab391;
    transform: translateY(-1px);
}

.ezizz-claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ezizz-claim-btn .spinner-icon {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinBtn 0.7s linear infinite;
    display: none;
}

.ezizz-claim-btn.is-loading .spinner-icon {
    display: block;
}

.ezizz-claim-btn.is-loading .btn-label {
    opacity: 0.7;
}

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

/* ── Error / info messages ────────────────────────────────── */
.ezizz-claim-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}

.ezizz-claim-msg.is-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    display: block;
}

.ezizz-claim-msg.is-info {
    background: rgba(42, 179, 145, 0.08);
    border: 1px solid rgba(42, 179, 145, 0.2);
    color: #2ab391;
    display: block;
}

/* ── Result screens ───────────────────────────────────────── */
.ezizz-claim-result {
    text-align: center;
    padding: 8px 0 16px;
}

.ezizz-claim-result-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 14px;
    display: block;
}

.ezizz-claim-result h4 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 8px;
}

.ezizz-claim-result p {
    color: #808080;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ── Verified badge (shown on profile) ───────────────────── */
.ezizz-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(42, 179, 145, 0.12);
    border: 1px solid rgba(42, 179, 145, 0.35);
    color: #2ab391;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    letter-spacing: 0.2px;
    vertical-align: middle;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 520px) {
    .ezizz-claim-box {
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
        max-width: 100%;
    }

    #ezizz-claim-modal.is-open {
        align-items: flex-end;
    }

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

    .ezizz-otp-digit {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }

    .ezizz-claim-progress {
        padding: 12px 16px;
    }

    .ezizz-claim-step-label {
        display: none;
    }

    #claimBanner {
        padding: 14px 16px;
    }

    .claim-content {
        gap: 10px;
    }
}
