/* ======= تنسيقات المتغيرات العامة والألوان ======= */
:root {
    --bg-color: #03081a; /* لون الخلفية الكحلي الداكن من الصورة */
    --card-bg: #0a1330; /* لون خلفية الكروت */
    --gold: #f1c40f; /* اللون الذهبي الأساسي */
    --gold-hover: #f39c12; /* لون الذهبي عند تمرير الماوس */
    --text-white: #ffffff;
    --text-gray: #8b9bb4; /* لون النص الرمادي من الصورة */
    --green-success: #2ecc71; /* لون علامة الصح الخضراء */
    --glow: 0 0 15px rgba(241, 196, 15, 0.6); /* تأثير الإضاءة الذهبية */
    --transition: all 0.3s ease;
}

/* ======= تنسيقات إعادة الضبط والأساسيات ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* خط عصري نظيف */
}

html {
    scroll-behavior: smooth;
}

body.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======= تنسيقات الألوان والنصوص المساعدة ======= */
.gold-text { color: var(--gold) !important; }
.gray-text { color: var(--text-gray) !important; }
.green-text { color: var(--green-success) !important; }
.glowing-text { text-shadow: var(--glow); }

/* ======= تنسيقات القائمة العلوية (Navbar) ======= */
.main-header {
    background-color: rgba(3, 8, 26, 0.95); /* شفافية بسيطة */
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(241, 196, 15, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px; /* تحديد طول ثابت */
    width: 40px;  /* تعديل: تحديد نفس قيمة العرض لجعلها مربعة */
    border-radius: 50%; /* الخاصية لجعلها دائرية */
    
    /* ميزة إضافية: لضمان أن الشعار يظهر بوضوح داخل المربع دون تمدد */
    object-fit: contain; /* تعديل: لعرض الشعار بالكامل داخل الدائرة */
    /*object-fit: cover;*/ /* بديل: لقص الشعار ليملأ الدائرة (جرب أيهما أفضل لشعارك) */
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.verify-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ======= تنسيقات الأزرار العامة ======= */
.btn-connect-wallet {
    background-color: var(--gold);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 20px; /* دائرية من الأطراف */
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-connect-wallet:hover {
    background-color: var(--gold-hover);
    box-shadow: var(--glow);
}

.mobile-menu-toggle {
    display: none; /* مخفي في الشاشات الكبيرة */
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* ======= تنسيقات القائمة الجانبية (Sidebar) للهاتف ======= */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* مخفية خارج الشاشة */
    width: 280px;
    height: 100%;
    background-color: var(--card-bg);
    z-index: 1001;
    padding: 20px;
    transition: var(--transition);
    border-left: 1px solid rgba(241, 196, 15, 0.1);
}

.sidebar.active {
    right: 0; /* تظهر عند التفعيل */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 25px;
}

.sidebar-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 18px;
    font-weight: 500;
    transition: var(--transition);
    display: block;
}

.sidebar-links a:hover {
    color: var(--gold);
    padding-left: 10px;
}

/* ======= تنسيقات القسم الرئيسي (Hero Section) ======= */
.hero-section {
    padding-top: 150px; /* لتفادي القائمة الثابتة */
    padding-bottom: 100px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 64px; /* خط كبير جداً */
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* زر دائري بخلفية ذهبية */
.btn-gold-round {
    background-color: var(--gold);
    color: #000;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: bold;
    transition: var(--transition);
}

.btn-gold-round:hover {
    background-color: var(--gold-hover);
    box-shadow: var(--glow);
}

/* زر شفاف بحدود */
.btn-outline {
    background: none;
    color: var(--text-white);
    text-decoration: none;
    padding: 15px 35px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ======= تنسيقات قسم الـ Tokenomics (info-cards) ======= */
.tokenomics-section {
    padding: 80px 0;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* متجاوب تلقائياً */
    gap: 30px;
}

/* تنسيق الكارد بخلفية الكحلي الداكن من الصورة */
.info-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(241, 196, 15, 0.05);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(241, 196, 15, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-weight: 500;
}

.card-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-white);
}

/* ======= تنسيقات قسم المحافظ المقفلة (lock-cards) ======= */
.locks-section {
    padding: 80px 0;
    background-color: rgba(10, 19, 48, 0.3); /* خلفية بسيطة للقسم */
    border-radius: 30px;
}

.locks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* تنسيق جذاب للكروت */
.lock-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.lock-card:hover {
    border-color: rgba(241, 196, 15, 0.3);
}

.lock-icon {
    font-size: 50px;
    color: var(--gold);
    margin-bottom: 20px;
}

.lock-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.lock-status {
    margin-bottom: 25px;
    font-size: 16px;
}

/* زر Verify بخلفية خضراء جميلة */
.btn-verify-lock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--green-success);
    color: #fff;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    transition: var(--transition);
}

.btn-verify-lock:hover {
    background-color: #27ae60;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

/* ======= تنسيقات عنوان العقد (Contract Address) ======= */
.contract-address-container {
    text-align: center;
    margin-top: 50px;
}

.contract-label {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.address-box {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--card-bg);
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid rgba(241, 196, 15, 0.2);
}

#contractAddress {
    font-family: 'Courier New', Courier, monospace; /* خط أكواد */
    color: var(--gold);
    font-size: 16px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ======= تنسيقات التذييل (Footer) ======= */
.main-footer {
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(241, 196, 15, 0.05);
}

/* أيقونات التواصل الاجتماعي */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-social a {
    color: var(--text-gray);
    font-size: 22px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--gold);
    transform: scale(1.1);
}

/* روابط الصفحات */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* تتوزع في أسطر للهاتف */
    margin-bottom: 30px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
}

/* حقوق النشر */
.footer-copy p {
    color: var(--text-gray);
    font-size: 12px;
    letter-spacing: 1px;
}

/* ======= تنسيقات المودال (Wallet Profile Modal) ======= */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: none; /* مخفي تلقائياً */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.wallet-modal.active {
    display: flex; /* يظهر عند الربط */
}

.modal-content {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 20px;
    cursor: pointer;
}

.modal-user-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.modal-content h3 {
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 5px;
}

.wallet-address-abbr {
    font-family: monospace;
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 20px !important;
}

.wallet-balance {
    font-size: 27px;
    font-weight: bold;
    color: var(--text-white);
}

/* ======= تنسيقات الهواتف الذكية (Media Queries) ======= */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* إخفاء القائمة الأصلية */
    }
    .mobile-menu-toggle {
        display: block; /* إظهار زر القائمة */
    }
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-btns {
        flex-direction: column; /* الأزرار تحت بعض */
        align-items: center;
    }
    .address-box {
        padding: 10px 15px;
    }
    #contractAddress {
        font-size: 12px; /* تصغير العنوان للهاتف */
    }
}


/* profile  */

/* ======= Wallet Profile Modal (TNC Style) ======= */
.modal {
    display: none; /* مخفي افتراضياً ويظهر عبر JS */
    position: fixed;
    z-index: 9999; /* لضمان الظهور فوق كل العناصر */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 3, 15, 0.9); /* خلفية داكنة شفافة */
    backdrop-filter: blur(8px); /* تأثير ضبابي للخلفية لمزيد من الفخامة */
}

/* حالة التنشيط التي يضيفها كود JS */
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}


.modal-content {
    background: linear-gradient(145deg, #0a1330, #03081a); /* تدرج لوني يطابق موقعك */
    padding: 30px;
    border: 1px solid rgba(241, 196, 15, 0.3); /* إطار ذهبي خفيف */
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(241, 196, 15, 0.1);
    animation: modalFadeIn 0.3s ease-out;
}


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

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: #95a5a6;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover { color: #f1c40f; }

.profile-icon {
    font-size: 60px;
    background: linear-gradient(45deg, #f1c40f, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.wallet-details { margin: 20px 0; }

.label {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.address-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #ecf0f1;
    word-break: break-all;
    border: 1px inset rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/*
.balance-display {
    font-size: 32px;
    font-weight: bold;
    color: #f1c40f;
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.3);
}
*/
.balance-display {
    /* تصغير الخط أكثر ليعطي مساحة للأرقام المليارية */
    font-size: 22px; 
    font-weight: bold;
    color: #f1c40f;
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.3);
    
    /* الحل الجذري لخروج النص */
    display: block;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere; /* أقوى من break-word للأرقام */
    white-space: normal;
    text-align: center;
    line-height: 1.2;
}

/* تعديل الكارد نفسه لضمان وجود مساحة داخلية */
.modal-content {
    padding: 20px; /* تأكد أن هناك مساحة كافية */
    box-sizing: border-box; /* لضمان عدم خروج الحواف */
}





.tnc-unit { font-size: 16px; margin-left: 5px; color: #fff; }

.btn-disconnect {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-disconnect:hover {
    background: #e74c3c;
    color: white;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}




/* زر الشراء في القائمة العلوية */
.btn-buy-nav {
    background: linear-gradient(45deg, #27ae60, #2ecc71); /* لون أخضر "شراء" */
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-buy-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

/* زر الشراء في القائمة الجانبية (الهاتف) */
.btn-buy-sidebar {
    background: #27ae60 !important;
    color: white !important;
    margin-top: 20px;
    text-align: center;
    border-radius: 12px;
    padding: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/*private about html*/

.about-tnc {
    text-align: left;
}

.lead-text {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 30px;
}

.about-section {
    margin-bottom: 40px;
}

.highlight-box {
    background: rgba(241, 196, 15, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #f1c40f;
}

.features-list li {
    margin-bottom: 15px;
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.features-list li::before {
    content: "✔";
    color: #f1c40f;
    position: absolute;
    left: 0;
}

.banking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grid-item {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.grid-item h4 {
    color: #f1c40f;
    margin-top: 0;
}