* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0E1116;
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

.app-container {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 20px 24px 20px;
    position: relative;
}

/* شريط الرأس */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
    position: relative;
}

.menu-wrapper {
    position: relative;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #161B24;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.icon-btn:active {
    background-color: #1F2633;
}

/* القائمة الجانبية العائمة (خبط لزق من الصورة) */
.floating-menu {
    position: absolute;
    top: 54px;
    left: 0;
    width: 58px;
    background-color: #161B24;
    border-radius: 30px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
    z-index: 100;
    border: 1px solid #1E2533;
    animation: fadeInDown 0.2s ease-out;
}

[dir="rtl"] .floating-menu {
    left: auto;
    right: 0;
}

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

.floating-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #1F2634;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.2s;
}

.floating-btn:active {
    transform: scale(0.9);
    background-color: #2A3344;
}

.share-circle-inner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.txt-white {
    color: #FFFFFF;
}

.txt-red {
    color: #E52535;
}

/* الشعار الرئيسي */
.main-logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 26px;
}

.logo-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-logo-area h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.main-logo-area p {
    font-size: 14px;
    color: #8E95A5;
    line-height: 1.4;
}

/* البطاقة الرئيسية */
.main-card {
    background-color: #131722;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: auto;
}

.card-top-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.link-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background-color: #1A202D;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-titles h3 {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
}

.card-titles p {
    font-size: 12px;
    color: #8E95A5;
    margin-top: 2px;
}

/* التبويبات */
.tabs-row {
    display: flex;
    background-color: transparent;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    border: none;
    background-color: #1A202D;
    color: #8E95A5;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn.active {
    background-color: #E52535;
    color: #FFFFFF;
}

/* المدخلات */
.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
}

.input-wrapper input {
    width: 100%;
    height: 54px;
    background-color: #0A0D12;
    border: 1px solid #1E2533;
    border-radius: 16px;
    padding: 0 46px 0 18px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

[dir="rtl"] .input-wrapper input {
    padding: 0 18px 0 46px;
}

.input-wrapper input:focus {
    border-color: #E52535;
}

.input-wrapper input::placeholder {
    color: #555E70;
}

.paste-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 6px;
}

[dir="rtl"] .paste-btn {
    right: auto;
    left: 14px;
}

/* الأزرار */
.btn-primary {
    width: 100%;
    height: 54px;
    border-radius: 27px;
    background-color: #E52535;
    border: none;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
    background-color: #CC1F2E;
}

.btn-secondary {
    width: 100%;
    height: 52px;
    border-radius: 26px;
    background-color: #1A202D;
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-secondary:active {
    background-color: #242C3D;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h4 {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.section-heading p {
    font-size: 12px;
    color: #8E95A5;
}

.profile-option-card {
    height: 54px;
    background-color: #1A202D;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-option-card:active {
    background-color: #242C3D;
}

.option-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

.option-badge {
    font-size: 12px;
    color: #8E95A5;
}

.error-msg {
    color: #FF4D4F;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: center;
}

.app-footer {
    text-align: center;
    font-size: 11px;
    color: #555E70;
    margin-top: 24px;
}

/* نافذة اللغة */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-card {
    background-color: #161B24;
    border-radius: 24px;
    padding: 24px 20px;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.modal-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.lang-choice-btn {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: none;
    background-color: #0E1116;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-choice-btn.active {
    background-color: #E52535;
}

/* ================================================= */
/* نافذة سياسة الخصوصية الملكية (مطابقة لصور أندرويد) */
/* ================================================= */
.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0E1116;
    z-index: 2000;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.privacy-modal-window {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    padding: 20px 20px 40px 20px;
    display: flex;
    flex-direction: column;
}

.privacy-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #1C212B;
    margin-bottom: 24px;
}

.btn-close-privacy {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.privacy-header-bar h3 {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
}

.privacy-top-title-area {
    margin-bottom: 24px;
}

.privacy-top-title-area h2 {
    font-size: 26px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.privacy-top-title-area p {
    font-size: 13px;
    color: #8E95A5;
}

/* بطاقات سياسة الخصوصية */
.privacy-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.privacy-item-card {
    background-color: #161B24;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid #1C222F;
}

.privacy-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.privacy-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
}

.privacy-card-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #E52535;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-card-body {
    font-size: 13.5px;
    color: #A0AEC0;
    line-height: 1.6;
    white-space: pre-line;
}

.privacy-footer-text {
    text-align: center;
    font-size: 12px;
    color: #555E70;
    line-height: 1.6;
    margin-top: 10px;
}