:root {
    --bg-gradient: linear-gradient(135deg, #090d16 0%, #111827 50%, #030712 100%);
    --card-bg: rgba(17, 24, 39, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --neon-green: #39ff14; /* الأخضر الفاقع المضيء */
    --neon-green-hover: #2eff00;
    --text-muted: #9ca3af;
    --input-focus-bg: rgba(57, 255, 20, 0.03);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-gradient);
    color: var(--text-white);
    min-height: 100vh;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

header {
    text-align: center;
    margin-bottom: 10px;
    padding: 5px;
}

header h1 {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 3rem;
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.35);
    margin-bottom: 8px;
}

header .ayah {
    font-size: 0.95rem;
    color: var(--text-white);
    line-height: 1.7;
    opacity: 0.95;
    border-bottom: 1px solid rgba(57, 255, 20, 0.25);
    padding-bottom: 18px;
}

.help-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.help-card.active {
    border-color: var(--neon-green);
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.15);
    transform: scale(1.01);
}

.card-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.card-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.card-title-box i {
    color: var(--neon-green);
    font-size: 1.35rem;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.arrow-icon {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-card.active .arrow-icon {
    transform: rotate(180deg);
    color: var(--neon-green);
}

.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 20px;
}

.help-card.active .card-body {
    max-height: 1500px;
    padding-bottom: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.form-group {
    margin-top: 16px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.radio-group, .check-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.full-width-group {
    grid-template-columns: 1fr;
}

.selector-item {
    position: relative;
}

.selector-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.selector-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s ease;
}

.selector-item input:checked + .selector-label {
    background: rgba(57, 255, 20, 0.09);
    border-color: var(--neon-green);
    color: var(--text-white);
    box-shadow: inset 0 0 8px rgba(57, 255, 20, 0.05);
}

.form-control {
    width: 100%;
    padding: 13px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--neon-green);
    background: var(--input-focus-bg);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.05);
}

select.form-control {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 35px;
}

select.form-control option {
    background: #111827;
    color: #ffffff;
}

.method-box {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.conditional-fields {
    display: none;
    margin-top: 14px;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.conditional-fields.show {
    display: block;
}

.info-alert {
    background: rgba(57, 255, 20, 0.04);
    border-right: 4px solid var(--neon-green);
    padding: 13px;
    border-radius: 4px 12px 12px 4px;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #f3f4f6;
}

.other-details-group {
    display: none;
    animation: slideDown 0.3s ease;
}
.other-details-group.show {
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--neon-green);
    color: #030712;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 18px;
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.25);
    position: relative;
}

.btn-submit:hover, .btn-submit:active {
    background: var(--neon-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(57, 255, 20, 0.35);
}

.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(3, 7, 18, 0.2);
    border-radius: 50%;
    border-top-color: #030712;
    animation: spin 0.8s linear infinite;
}

footer {
    text-align: center;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
}

.footer-brand {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.registered-symbol {
    font-size: 0.55rem;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 2px;
}

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.success-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111827;
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 24px;
    padding: 35px 24px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal.show .modal-content {
    transform: scale(1);
}

.success-icon-box {
    width: 75px;
    height: 75px;
    background: rgba(57, 255, 20, 0.1);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 22px auto;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
    transform: scale(0) rotate(-45deg);
    opacity: 0;
}

.success-modal.show .success-icon-box {
    animation: popCheck 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.2s;
}

.modal-title {
    font-size: 1.35rem;
    color: var(--text-white);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
}

.success-modal.show .modal-title {
    animation: fadeUpText 0.4s ease forwards 0.5s;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: normal;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
}

.success-modal.show .modal-subtitle {
    animation: fadeUpText 0.4s ease forwards 0.7s;
}

@keyframes popCheck {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    70% { transform: scale(1.15) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; box-shadow: 0 0 25px rgba(57, 255, 20, 0.4); }
}

@keyframes fadeUpText {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}