* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Cairo', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    font-family: 'Cairo', 'Arial', sans-serif;
}

body .global-notifications-bar,
body .global-footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.show-fixed-ui .global-notifications-bar,
body.show-fixed-ui .global-footer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.global-notifications-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, rgba(12, 18, 32, 0.82), rgba(21, 27, 47, 0.72), rgba(15, 22, 38, 0.8));
    padding: 0;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 84px;
    overflow: hidden;
    direction: rtl;
    text-align: right;
    box-shadow: 0 8px 30px rgba(10, 14, 28, 0.28);
}

.global-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.global-footer p {
    margin: 0;
    font-weight: 500;
}

/* الشاشات */
.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
}

/* شاشة الترحيب */
.screen-welcome {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* الخلفية المتحركة */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* تأثير البلور الخفيف */
.glass-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* حاوية الترحيب */
.welcome-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.walking-image {
    width: 500px;
    height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: floatImage 3s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* قسم العداد */
.counter-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.counter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulseBox 2s ease-in-out infinite;
}

@keyframes pulseBox {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
    }
}

.robux-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: rotateIcon 3s linear infinite;
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.counter {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    min-width: 120px;
    text-align: center;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: color 0.3s ease;
}

.counter.completed {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: goldGlow 1s ease-in-out;
}

@keyframes goldGlow {
    0% {
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.9),
                     0 4px 12px rgba(0, 0, 0, 0.4);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                     0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

/* شاشة الثانية */
.screen-second {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

/* شريط الإشعارات */
.notifications-bar {
    display: none;
}

.notification-badge {
    background: linear-gradient(135deg, #ff3b3b 0%, #ef2a2a 100%);
    color: #ffffff;
    padding: 0 22px;
    border-radius: 0;
    font-weight: 900;
    font-size: clamp(18px, 1.5vw, 28px);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 84px;
    line-height: 1;
    letter-spacing: 0.2px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.notification-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 84px;
    position: relative;
    direction: rtl;
}

.notifications-marquee {
    position: relative;
    width: 100%;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    text-align: right;
}

.notification-item {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, 0.98);
    font-size: clamp(22px, 2vw, 34px);
    font-weight: 800;
    background: transparent;
    padding: 0 18px;
    border-radius: 0;
    border: none;
    white-space: nowrap;
    pointer-events: none;
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
    line-height: 1.2;
    width: 100%;
    box-shadow: none;
}

.notification-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
    white-space: nowrap;
    font-size: inherit;
}

.username-inline,
.amount-inline,
.arabic-inline,
.notification-robux-icon {
    display: inline-block;
    vertical-align: middle;
}

.username-inline {
    direction: ltr;
    unicode-bidi: plaintext;
    font-family: 'Cairo', 'Arial', sans-serif;
}

.arabic-inline {
    direction: rtl;
    unicode-bidi: plaintext;
}

.amount-inline {
    direction: ltr;
    unicode-bidi: plaintext;
}

.notification-robux-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    transform: translateY(-1px);
}

.notification-item.active {
    opacity: 1;
    transform: translateY(-50%);
}

.notification-item.hidden {
    opacity: 0;
    transform: translateY(-58%);
}

.notification-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* المحتوي الرئيسي */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 110px 20px 90px;
    overflow-y: auto;
}

.content-wrapper {
    text-align: center;
    max-width: 760px;
    z-index: 3;
    background: rgba(8, 14, 30, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 40px 34px;
    box-shadow: 0 18px 48px rgba(12, 15, 30, 0.35);
    backdrop-filter: blur(12px);
}

.stage-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin: 0 auto 18px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 20px 48px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.24);
    backdrop-filter: blur(10px);
    animation: brandFloat 3s ease-in-out infinite;
}

@keyframes brandFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

.stage-roblox-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.3));
}

.main-title {
    font-size: 38px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-description {
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    line-height: 2;
    letter-spacing: 0.1px;
    margin-bottom: 30px;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    animation: slideInUp 0.6s ease-out 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.charge-btn {
    position: relative;
    background: linear-gradient(135deg, #ffe066 0%, #ffce3a 20%, #ffb000 50%, #ff8a00 100%);
    color: #201a06;
    border: 1px solid rgba(255, 255, 255, 0.38);
    padding: 20px 56px;
    font-size: 20px;
    font-weight: 900;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(255, 166, 0, 0.34), 0 0 0 1px rgba(255, 222, 110, 0.2) inset;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    animation: slideInUp 0.6s ease-out 0.4s both;
    min-width: 300px;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    overflow: hidden;
}

.charge-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.46), rgba(255,255,255,0.08), rgba(255,255,255,0.24));
    transform: translateX(-30%);
    opacity: 0.8;
}

.charge-btn:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 38px rgba(255, 166, 0, 0.42), 0 0 26px rgba(255, 196, 0, 0.26);
    filter: saturate(1.08);
}

.charge-btn:active {
    transform: translateY(-1px) scale(0.995);
    box-shadow: 0 10px 18px rgba(255, 166, 0, 0.28);
}

.charge-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}

/* التذييل */
.footer {
    display: none;
}

/* تجاوب الهاتف */
@media (max-width: 768px) {
    .welcome-container {
        gap: 30px;
    }

    .walking-image {
        width: 350px;
        height: 350px;
    }

    .counter {
        font-size: 36px;
    }

    .robux-icon {
        width: 40px;
        height: 40px;
    }

    .counter-wrapper {
        padding: 15px 30px;
        gap: 10px;
    }

    .global-notifications-bar {
        min-height: 68px;
    }

    .notification-badge {
        min-width: 130px;
        min-height: 68px;
        font-size: 18px;
        padding: 0 16px;
    }

    .notification-content,
    .notifications-marquee {
        min-height: 68px;
    }

    .notification-item {
        font-size: 16px;
        gap: 8px;
        padding: 0 12px;
    }

    .notification-item img {
        width: 18px;
        height: 18px;
    }

    .main-title {
        font-size: 28px;
    }

    .main-description {
        font-size: 14px;
    }

    .charge-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .welcome-container {
        gap: 20px;
    }

    .walking-image {
        width: 250px;
        height: 250px;
    }

    .counter {
        font-size: 28px;
        min-width: 80px;
    }

    .robux-icon {
        width: 35px;
        height: 35px;
    }

    .counter-wrapper {
        padding: 12px 20px;
        gap: 8px;
    }

    .global-notifications-bar {
        min-height: 60px;
    }

    .notification-badge {
        min-width: 118px;
        min-height: 60px;
        font-size: 15px;
        padding: 0 12px;
    }

    .notification-content,
    .notifications-marquee {
        min-height: 60px;
    }

    .notification-item {
        font-size: 13px;
        gap: 6px;
        padding: 0 10px;
    }

    .notification-item img {
        width: 16px;
        height: 16px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .main-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .main-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .charge-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* الشاشة الثالثة - نموذج البيانات */
.screen-third {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 110px 20px 90px;
}

.form-container {
    width: 97vw;
    max-width: 97vw;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.form-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,247,252,0.96));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    padding: 18px 16px 14px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
    width: 100%;
    animation: slideInUp 0.6s ease-out;
}

.verification-stage,
.amount-stage {
    width: min(760px, 92vw);
    animation: slideInUp 0.5s ease-out;
}

.tech-card,
.amount-card {
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.9), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    padding: 32px 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(14px);
}

.tech-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #96f7d2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.9px;
    margin-bottom: 18px;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: inset 0 0 18px rgba(52, 211, 153, 0.08), 0 0 26px rgba(52, 211, 153, 0.08);
}

.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.12);
    color: #8ef4bf;
    font-size: 11px;
    letter-spacing: 0.4px;
    transition: all 0.35s ease;
    text-shadow: 0 0 12px rgba(110, 231, 183, 0.64);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
    animation: pulseDot 1.2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.tech-card h3,
.amount-card h3 {
    color: #f8fafc;
    font-size: clamp(22px, 2.5vw, 28px);
    margin: 0 0 12px;
    line-height: 1.4;
    font-weight: 800;
}

.tech-card p,
.amount-card p {
    color: rgba(226, 232, 240, 0.8);
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 18px;
}

.verification-readout {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.readout-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 118, 110, 0.18);
    border: 1px solid rgba(45, 212, 191, 0.22);
    color: #bbf7d0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.readout-pill.alt {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.22);
    color: #bfdbfe;
}

.readout-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
    animation: pulseDot 1.3s ease-in-out infinite;
}

.progress-wrap {
    width: 100%;
    height: 12px;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 22px;
    position: relative;
}

.progress-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.4s linear infinite;
}

.progress-bar {
    width: 15%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d3ee 0%, #38bdf8 30%, #a78bfa 100%);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
    transition: width 0.8s ease;
    position: relative;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.status-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.status-step {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: 10px 8px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

.status-step.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.12));
    border-color: rgba(34, 211, 238, 0.6);
    color: #d9f9ff;
    box-shadow: inset 0 0 22px rgba(34, 211, 238, 0.08), 0 0 18px rgba(34, 211, 238, 0.08), 0 0 0 1px rgba(125, 211, 252, 0.18);
    transform: translateY(-1px);
}

.tech-card.is-live {
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.18), 0 18px 44px rgba(15, 23, 42, 0.52), 0 0 30px rgba(52, 211, 153, 0.08);
    animation: liveCardPulse 2s ease-in-out infinite alternate;
}

@keyframes liveCardPulse {
    0% {
        box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12), 0 18px 44px rgba(15, 23, 42, 0.52), 0 0 26px rgba(52, 211, 153, 0.06);
    }
    100% {
        box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.26), 0 22px 52px rgba(15, 23, 42, 0.56), 0 0 36px rgba(52, 211, 153, 0.13);
    }
}

.amount-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.amount-option {
    padding: 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.95));
    color: #f8fafc;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.amount-option:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

.amount-option.active {
    border-color: rgba(34, 211, 238, 0.9);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.28), rgba(59, 130, 246, 0.22));
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 14px 26px rgba(34, 211, 238, 0.1);
}

.amount-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.amount-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.send-account-btn,
.confirm-btn {
    width: 100%;
    margin-top: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: white;
    font-size: 17px;
    font-weight: 800;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.send-account-btn::before,
.confirm-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18));
    transform: translateX(-100%);
    opacity: 0;
}

.send-account-btn:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: scale(0.98);
}

.send-account-btn:not(:disabled):hover,
.confirm-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, #14b981 0%, #0d9e7e 50%, #0a7c59 100%);
}

.send-account-btn:not(:disabled):active,
.confirm-btn:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
}

.confirm-stage,
.sending-stage {
    width: min(760px, 92vw);
    animation: slideInUp 0.5s ease-out;
}

.confirm-card,
.sending-card {
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(14px);
}

.confirm-loader {
    text-align: center;
    color: white;
}

.confirm-loader h3 {
    margin-top: 18px;
    font-size: 25px;
}

.spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border: 4px solid rgba(148, 163, 184, 0.22);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.confirm-details {
    animation: fadeIn 0.4s ease;
}

.confirm-header {
    color: #f8fafc;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.confirm-header-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.transaction-box {
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    margin-bottom: 20px;
}

.transaction-label {
    display: block;
    color: rgba(204, 251, 241, 0.9);
    font-size: 12px;
    margin-bottom: 8px;
}

#transactionNumber {
    font-size: 24px;
    color: white;
    letter-spacing: 2px;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    color: rgba(226, 232, 240, 0.84);
}

.meta-row strong {
    color: white;
    font-size: 15px;
}

.sending-header {
    color: #dbeafe;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.sending-progress-wrap {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    margin-bottom: 18px;
}

.sending-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.7);
    transition: width 0.3s ease;
}

.sending-card p {
    color: rgba(226, 232, 240, 0.8);
    text-align: center;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.failure-stage {
    width: min(760px, 92vw);
    animation: slideInUp 0.5s ease-out;
}

.failure-card {
    background: rgba(17, 24, 39, 0.88);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 26px;
    padding: 28px 24px;
    box-shadow: 0 18px 45px rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(14px);
    text-align: center;
}

.failure-alert {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fca5a5;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.failure-card h3 {
    color: #f8fafc;
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 12px;
}

.failure-card p {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.8;
    margin: 0 0 22px;
}

.info-box {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 16px;
    text-align: right;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: rgba(226, 232, 240, 0.82);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    color: white;
    font-size: 14px;
}

.consent-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 12px 14px;
    color: rgba(226, 232, 240, 0.92);
    cursor: pointer;
    user-select: none;
}

.consent-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}

.consent-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-toggle {
    position: relative;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.check-toggle::before {
    content: "";
    position: absolute;
    top: 3px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
    transition: all 0.25s ease;
}

.consent-option input:checked + .check-toggle {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.consent-option input:checked + .check-toggle::before {
    right: 24px;
    background: #f0fdf4;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #e2e8f0;
}

.captcha-box.active {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.09);
}

.captcha-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: transparent;
    transition: all 0.25s ease;
}

.captcha-box.active .captcha-check {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: rgba(34, 197, 94, 0.8);
    color: white;
}

.captcha-mark {
    font-size: 16px;
    font-weight: 900;
}

.charge-note {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.action-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
}

.action-btn.primary {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    margin-bottom: 12px;
}

.action-btn.secondary {
    background: rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.action-btn:hover {
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.18), rgba(102, 126, 234, 0.12));
    border: 1px solid rgba(102, 126, 234, 0.18);
    box-shadow: 0 16px 30px rgba(102, 126, 234, 0.12);
}

.form-brand-icon {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 0.3px;
}

.form-group {
    margin-bottom: 26px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

/* مربع الإدخال مع التحقق */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    font-family: 'Cairo', 'Arial', sans-serif;
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.validation-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.validation-icon.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.validation-icon.valid::before {
    content: '✓';
    color: #4caf50;
    font-weight: bold;
}

.validation-icon.invalid::before {
    content: '✕';
    color: #ff4444;
    font-weight: bold;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 7px;
}

/* خيارات الجهاز */
.device-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.device-option {
    position: relative;
    cursor: pointer;
}

.device-option input[type="radio"] {
    display: none;
}

.device-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 10px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    transition: all 0.25s ease;
    text-align: center;
    min-height: 112px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255,255,255,0.6);
}

.device-option:hover .device-box {
    transform: translateY(-1px);
    border-color: rgba(102, 126, 234, 0.32);
    box-shadow: 0 12px 22px rgba(102, 126, 234, 0.08), inset 0 1px 0 rgba(255,255,255,0.72);
}

.device-icon {
    width: 40px;
    height: 40px;
    color: #667eea;
    transition: all 0.3s ease;
    display: block;
    filter: drop-shadow(0 8px 12px rgba(102, 126, 234, 0.12));
}

.device-option input[type="radio"]:checked + .device-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(59, 130, 246, 0.08));
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12), 0 16px 30px rgba(102, 126, 234, 0.12);
    color: #4f46e5;
}

.device-option input[type="radio"]:checked + .device-box .device-icon {
    color: #4f46e5;
    transform: scale(1.12);
}

/* زر الخطوة التالية */
.next-btn {
    width: 100%;
    padding: 15px 18px;
    font-size: 17px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #5b7cff 0%, #7a5cf0 45%, #8d4dff 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    margin-top: 10px;
    box-shadow: 0 14px 28px rgba(91, 124, 255, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

.next-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0.02), rgba(255,255,255,0.18));
    transform: translateX(-25%);
}

.next-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(91, 124, 255, 0.36), inset 0 1px 0 rgba(255,255,255,0.2);
    filter: saturate(1.08);
}

.next-btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 12px 20px rgba(91, 124, 255, 0.22);
}

.next-btn:disabled {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: none;
}

/* تجاوب الهاتف للمرحلة الثالثة */
@media (max-width: 768px) {
    .form-card {
        padding: 20px;
    }

    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .device-options {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .device-box {
        padding: 15px;
    }

    .device-icon {
        width: 30px;
        height: 30px;
    }

    .device-box {
        font-size: 12px;
    }

    .next-btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 18px;
    }

    .form-title {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .device-options {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .device-box {
        padding: 12px;
        gap: 8px;
    }

    .device-icon {
        width: 28px;
        height: 28px;
    }

    .device-box {
        font-size: 11px;
    }

    .input-hint {
        font-size: 11px;
    }

    .next-btn {
        padding: 11px;
        font-size: 13px;
    }
}
