@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
:root {
    --primary-color: #1e40af;    
    --primary-dark: #1e3a8a;     
    --text-color: #fff;          
    --background-dark: #27272a;  
    --background-hover: #323232; 
    --text-secondary: #ccc;      
}

*{
    padding: 0;
    margin: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
}

img{
    width: 100%;
    display: flex;
}

a{
    text-decoration: none;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: #18181B;
}

/* Navbar Styles */
nav {
    padding: 1rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
/* Logo Styles */
/* Logo Styles */
/* Logo Styles */
.logo img {
    max-height: 100px;              /* حد أقصى للارتفاع بدون إجبار الصورة على التمدد */
    height: auto;                   /* يحافظ على نسبة الأبعاد */
    width: auto;                    /* لا يجبرها على ملء كل العرض داخل الحاوية */
    max-width: 100%;                /* لا تتجاوز عرض الحاوية في الشاشات الصغيرة */
    transition: transform 0.3s ease;
    animation: footerLogoFloat 8s ease-in-out infinite;
    transform-origin: center center;
}


/* Navigation Links */
.nav-links {
    display: inline-flex;
    gap: 2.2rem;
    padding: 0.55rem 1.4rem; /* كبسولة أكبر وأعرض قليلاً */

    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12); /* كبسولة كبيرة حمراء خفيفة تجمع كل الأزرار */
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.nav-links a {
    color: #f9fafb;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0.9rem; /* مساحة أكبر لكل زر داخل الكبسولة */
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.25); /* نفس الكبسولة لكن توهج خفيف حول الزر فقط */
}

/* فواصل خفيفة بين الأزرار لبيان أن كل كلمة زر مستقل */
.nav-links a + a {
    border-left: 1px solid rgba(248, 250, 252, 0.18);
    padding-left: 1.4rem; /* إزاحة بسيطة بعد الفاصل */
}

/* Profile Menu */
.profile-menu {
     position: relative;
    z-index: 1000; 
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(24, 24, 27, 0.95);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(63, 63, 70, 0.9);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.profile-trigger:hover,
.profile-trigger.active {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
    transform: translateY(-1px);
}

.profile-trigger img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.profile-trigger span {
    color: #fff;
    margin: 0 0.5rem;
}

.arrow-down {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #020617;
    border-radius: 14px;
    width: 210px;
    padding: 0.55rem 0.55rem 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(31, 41, 55, 0.95);
    z-index: 1001; 
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    border-radius: 10px;
    margin: 0.25rem 0;
    background: transparent;
    border: 1px solid transparent;
    text-align: center;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
    color: #fee2e2;
    transform: translateY(-1px);
}

.dropdown-menu a:last-child {
    border-top: 1px solid #4a4a4a;
    margin-top: 0.5rem;
    color: #ff4444;
}

.dropdown-menu a:last-child:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;

}

.menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    
    nav {
        padding: 1rem 5%;
        position: relative;
    }

    
    .menu-btn {
        display: block;
        z-index: 1001;
        cursor: pointer;
        order: 2;
    }

   
    .menu-btn .bar {
        transition: all 0.3s ease;
    }

    .menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #020617; /* نفس خلفية نافذة الملف الشخصي */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
        padding: 0.25rem 0;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75); /* نفس إحساس النافذة الطائرة */
        border-radius: 14px; /* زوايا ناعمة مثل dropdown الملف الشخصي */
        border-top: 1px solid rgba(31, 41, 55, 0.95);
    }

    .nav-links.active {
        display: flex !important;
        padding: 1rem 0;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.95rem 0;
        border-bottom: 1px solid #27272f;
        color: #e5e7eb;
        background: transparent;
        border-radius: 0; /* عناصر مسطحة بدون كبسولة */
        border-left: none; /* إلغاء الفاصل العمودي من الديسكتوب */
        padding-left: 0;  /* محاذاة وسطية جميلة في الموبايل */
        transition: background 0.25s ease, color 0.25s ease;
    }

    .nav-links a:hover {
        background: #1f2937;
        color: #f9fafb;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

   
    .logo {
        order: 1;
    }

    
    .profile-menu {
        order: 3;
    }

   
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

   /
    .nav-links.active {
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
@media (max-width: 480px) {
    .profile-trigger span {
        display: none;
    }

    .dropdown-menu {
        width: 180px;
        right: -10px;
    }
    nav {
        padding: 0.8rem 4%;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.8rem 0;
    }
}
header{
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 5rem 5rem;
}

header .content h4{
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 1rem;
    font-weight: 600;
}

header .content h1{
    color: #fff;
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 4rem;
}
.header-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; 
}
header .content h1 span{
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #fff;
}

header .content p{
    margin-bottom: 2rem;
    color: #ccc;
}

header .image{
    position: relative;
}

header .image::before{
    content: "o";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 38rem;
    font-weight: 400;
    line-height: 20rem;
    color: #1d4ed8;
    opacity: 0.2;
    z-index: -100;
}

header .image img{
    max-width: 600px;
    margin: auto;
    animation: footerLogoFloat 8s ease-in-out infinite;
    transform-origin: center center;
}

section .header{
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
}

.features{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.features .card{
    background-color: #18181b;
    padding: 1.75rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(63, 63, 70, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.features .card:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
    border-color: #1d4ed8;
    background-color: #1f2933;
}

.features .card span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #1d4ed8);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
    border-radius: 999px;
}

.features .card h4{
    margin-bottom: 0.4rem;
    color: #f9fafb;
    font-size: 1.1rem;
    font-weight: 600;
}

.features .card p{
    color: #d4d4d8;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.features .card a{
    color: #fff;
    transition: all 0.3s ease;
}

.features .card a:hover{
    color: #60a5fa;
}

.sub-header{
    max-width: 600px;
    margin: auto;
    text-align: center;
    color: #ccc;
}

.pricing{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing .card{
    padding: 3rem 2rem;
    background-color: #27272a;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.pricing .card:hover{
    background-color: #323232;
    border-color: #fff;
}

.pricing .card .content{
    flex: 1;
    margin-bottom: 2rem;
}

.pricing .card h4{
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
}

.pricing .card h3{
    color: #fff;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 2px dashed #fff;
}

.pricing .card p{
    color: #fff;
    margin-bottom: 0.75rem;
}

.pricing .card p i{
    color: #ccc;
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

.pricing .card button{
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;
}

.pricing .card button:hover{
    background-color: #1e40af;
    border-color: #1e40af;
}


footer {
    position: relative;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

footer .container1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


footer .blur {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    filter: blur(130px);
    opacity: 0.3;
    z-index: 0;
}

footer .blur:nth-child(1) {
    top: 20%;
    left: 20%;
}

footer .blur:nth-child(2) {
    bottom: 20%;
    right: 20%;
    background: var(--primary-dark);
}


footer .column {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


footer .logo {
    margin-bottom: 2rem;
}

footer .logo img {
    max-width: 130px;
    height: auto;
    animation: footerLogoFloat 6s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes footerLogoFloat {
    0% {
        transform: translateX(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateX(6px) rotate(3deg) scale(1.01);
    }
    100% {
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 300px;
    line-height: 1.6;
}


footer .socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

footer .socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .socials a:hover {
    transform: translateY(-3px);
}

/* ألوان حقيقية لأيقونات المنصات في الفوتر */
footer .socials i.ri-youtube-fill {
    color: #ff0000; /* YouTube red */
}

footer .socials i.ri-whatsapp-fill {
    color: #25D366; /* WhatsApp green */
}

footer .socials i.ri-telegram-fill {
    color: #0088cc; /* Telegram blue */
}

/* خلفية التحويم لكل منصة بنفس لونها */
footer .socials a:hover i.ri-youtube-fill {
    background-color: #ff0000;
    color: #ffffff;
    border-radius: 50%;
}

footer .socials a:hover i.ri-whatsapp-fill {
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
}

footer .socials a:hover i.ri-telegram-fill {
    background-color: #0088cc;
    color: #ffffff;
    border-radius: 50%;
}

.copyright {
    text-align: center;
    padding: 1.25rem 1rem 1.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-top: 1px solid rgba(63, 63, 70, 0.8);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), transparent 60%);
    position: relative;
    z-index: 1;
}

.copyright .copyright-year {
    color: #ef4444;
    font-weight: 600;
}


@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1.5rem;
    }

    footer .blur {
        display: none;
    }

    footer .column {
        padding: 0 1rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    footer .socials a {
        width: 35px;
        height: 35px;
    }
}
@media (width < 900px){
    .nav-links{
        display: none;
    }
    header{
        grid-template-columns: repeat(1, 1fr);
    }
    header .image{
        grid-area: 1/1/2/2;
    }
    .features{
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing{
        grid-template-columns: repeat(2, 1fr);
    }
    footer{
        grid-template-columns: 1fr 200px;
    }
    .user-profile {
        display: flex;
        align-items: center;
        margin-left: auto;
    }
    
    .profile-trigger {
        padding: 5px;
    }
    
    .profile-trigger .username {
        display: none;
    }

    .profile-dropdown {
        right: -10px;
    }
}

@media (width < 600px){
    header .image::before{
        display: none;
    }

    .features{
        grid-template-columns: repeat(1, 1fr);
    }

    .pricing{
        grid-template-columns: repeat(1, 1fr);
    }

    footer{
        grid-template-columns: 1fr 150px;
    }
    .profile-dropdown {
        width: 260px;
        right: -50px;
    }

    .profile-trigger .avatar {
        width: 28px;
        height: 28px;
    }
}
/* SMS Pricing legacy styles removed in favor of new design defined in index.php */

.sms-pricing {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    width: 100%;
    max-width: 1108px;
    margin-left: auto;
    margin-right: auto;
}

.sms-pricing .sms-card {
    padding: 30px 0;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(300px);
    /* إلغاء أي خلفية أو إطار قديم على هذه الكروت لصالح التصميم الجديد في index.php */
    background: transparent !important;
    border: none !important;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sms-pricing .sms-card:hover {
    transform: translateY(-10px);
}

.sms-pricing .sms-card .sms-content {
    padding: 0 20px;
}

.sms-pricing .sms-card h4 {
    font-weight: 900;
    width: 204px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
}

.sms-pricing .sms-card h3 {
    font-weight: 900;
    font-size: 1.8rem;
    margin: 20px 0;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px dashed rgba(255,255,255,0.2);
}

.sms-pricing .sms-card p {
    font-size: 0.875rem;
    margin: 0.75rem 0;
    font-style: italic;
}

.sms-pricing .sms-card p i {
    margin-right: 8px;
}

.sms-pricing .sms-card a.sms-btn {
    margin: 31px auto;
    padding: 12px 46px;
    font-weight: 700;
    font-size: 0.9375rem;
    /* إلغاء الإطار الأزرق والخلفية القديمة لصالح ستايل الأزرار الجديد في index.php */
    border: none !important;
    background: transparent;
    display: block;
    width: fit-content;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 999px;
}

.sms-pricing .sms-card a.sms-btn:hover {
    transform: scale(1.05);
}

.sms-warning {
    font-size: 0.75rem;
    text-align: center;
    margin: 43px auto;
    max-width: 600px;
}

/* Animation Delays */
.sms-pricing .sms-card:nth-child(1) { animation-delay: 0s; }
.sms-pricing .sms-card:nth-child(2) { animation-delay: 0.2s; }
.sms-pricing .sms-card:nth-child(3) { animation-delay: 0.4s; }
.sms-pricing .sms-card:nth-child(4) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1199px) {
    .sms-pricing {
        width: 940px;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .sms-pricing {
        width: 720px;
    }
}

@media (max-width: 767px) {
    .sms-pricing {
        width: 540px;
        grid-template-columns: 100%;
    }

    .sms-pricing .sms-card {
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    .sms-pricing {
        width: 340px;
    }
}



/* Tools Page Styles */
.tools-page {
    min-height: calc(100vh - 300px);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-dark);
    padding: 2rem;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tool-card:hover {
    background-color: var(--background-hover);
    border-color: var(--text-color);
}

.tool-card .tool-icon {
    margin-bottom: 1rem;
}

.tool-card .tool-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tool-card .tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: auto; 
}

.tool-card .tool-btn:hover {
    background-color: var(--primary-dark);
}
/* Responsive Design */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #27272a;
    margin: 15% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.warning-icon {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 10px;
}

.modal-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.modal-body strong {
    color: #fff;
}

.modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
    font-size: 1rem;
    cursor: pointer;
}

.cancel-btn {
    background-color: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
}

.cancel-btn:hover {
    background-color: #ef4444;
    color: #fff;
    transform: translateY(-2px);
}

.purchase-btn {
    background-color: #1d4ed8;
    border: none;
    color: #fff;
}

.purchase-btn:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.modal-btn, .tool-btn {
    position: relative;
    overflow: hidden;
}

.modal-btn::after, .tool-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.modal-btn:active::after, .tool-btn:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}


.tool-btn i, .modal-btn i {
    transition: transform 0.3s ease;
}

.tool-btn:hover i, .modal-btn:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}






/* Phone Tools Group Styles */
.tool-card-group {
    grid-column: span 2;
    background-color: var(--background-dark);
    padding: 2rem;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tool-card-group:hover {
    background-color: var(--background-hover);
    border-color: var(--text-color);
}

.tool-header {
    text-align: center;
    margin-bottom: 0.6rem;
}

.tool-header h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.tool-header p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;;
}
.tool-icon-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon-group i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 50%; 
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.tool-icon-group i:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}



.tool-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}

.tool-option {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.tool-option h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.tool-option p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.tool-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    align-self: stretch;
}

.tool-btn.secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tool-btn.secondary:hover {
    background-color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-card-group {
        grid-column: span 1;
    }

    .tool-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-divider {
        display: none;
    }
}
.tool-card {
    position: relative;
    overflow: hidden;
    
}

.corner-ribbon {
    position: absolute;
    top: 25px;
    right: -50px;
    transform: rotate(45deg);
    width: 150px;
    background-color: #1d4ed8;
    color: white;
    text-align: center;
    font-size: 0.5rem;
    font-weight: 300;
    padding: 5px 0;
    z-index: .0.6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.sms-card {
    position: relative;
    overflow: hidden;
    
}






.tool-card {
    background-color: #27272a;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #3f3f46;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #1d4ed8;
}

.tool-card .tool-icon {
    width: 60px;
    height: 60px;
    background-color: #1d4ed8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tool-card .tool-icon i {
    font-size: 28px;
    color: white;
}

.tool-card h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.tool-card p {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.tool-card .tool-btn {
    background-color: #1d4ed8;
    color: white;
    padding: 10px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.tool-card .tool-btn:hover {
    background-color: #1e40af;
}

.tool-card .corner-ribbon {
    position: absolute;
    top: 25px;
    right: -50px;
    transform: rotate(45deg);
    width: 150px;
    background-color: #22c55e;
    color: white;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 0;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}


@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
}


   :root {
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-radius: 16px;
    --item-radius: 8px;
}


.profile-container {
    max-width: 1200px;
    margin: 6rem auto 2rem;
    padding: 0 1.5rem;
    color: var(--text-color);
}


.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
}

.profile-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.user-status {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}


.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}


.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.75rem;
}

.profile-card h2 i {
    color: var(--primary-color);
    font-size: 1.4rem;
}


.info-group {
    margin-bottom: 1.25rem;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.info-group p {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--item-radius);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--item-radius);
    transition: background 0.3s ease;
}

.stat-item:hover {
    background: var(--card-hover);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}


.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--item-radius);
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: var(--card-hover);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.activity-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.activity-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .profile-container {
        margin-top: 4rem;
        padding: 0 1rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        padding: 1.5rem;
    }

    .profile-card {
        padding: 1rem;
    }

    .activity-item {
        flex-direction: column;
        text-align: center;
    }

    .activity-icon {
        margin: 0 auto;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: fadeIn 0.5s ease forwards;
}

.profile-card:nth-child(1) { animation-delay: 0.1s; }
.profile-card:nth-child(2) { animation-delay: 0.2s; }
.profile-card:nth-child(3) { animation-delay: 0.3s; }




/* settings.css */


   .settings-container {
    max-width: 800px;
    margin: 6rem auto 2rem;
    padding: 0 1.5rem;
    color: var(--text-color);
}


.settings-header {
    text-align: center;
    margin-bottom: 3rem;
}

.settings-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.settings-header p {
    color: var(--text-secondary);
}


.settings-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    padding: 2rem;
    animation: fadeIn 0.5s ease forwards;
}


.avatar-settings {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
}

.current-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload {
    flex: 1;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--item-radius);
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-upload:hover {
    background: var(--primary-dark);
}

.upload-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}


.settings-form .form-group {
    margin-bottom: 2rem;
}

.settings-form .form-group:last-child {
    margin-bottom: 0;
}

.settings-form label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.settings-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--item-radius);
    color: var(--text-color);
}

.settings-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-update {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--item-radius);
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-update:hover {
    background: var(--primary-dark);
}


@media (max-width: 768px) {
    .settings-container {
        margin-top: 4rem;
        padding: 0 1rem;
    }

    .settings-card {
        padding: 1.5rem;
    }

    .avatar-settings {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .current-avatar {
        margin: 0 auto;
    }
}

.profile-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2d6fe0;
    padding: 5px;
    background: white;
    box-shadow: 0 5px 15px rgba(45,111,224,0.2);
    transition: transform 0.3s ease;
}

.profile-avatar img:hover {
    transform: scale(1.05);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 15px 0;
    color: #2d2d2d;
    font-size: 2.5em;
    font-weight: 700;
}

.profile-info p {
    margin: 8px 0;
    color: #666;
    font-size: 1.1em;
}

.profile-info p:first-of-type {
    color: #2d6fe0;
    font-weight: 600;
}

.profile-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.detail-section h3 {
    margin-bottom: 25px;
    color: #2d2d2d;
    font-size: 1.5em;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #2d6fe0;
    border-radius: 3px;
}

.detail-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.detail-item .label {
    width: 180px;
    font-weight: 600;
    color: #555;
}

.detail-item .value {
    color: #2d2d2d;
    flex: 1;
}

.profile-actions {
    margin-top: 40px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2d6fe0;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2d6fe0;
}

.btn:hover {
    background-color: transparent;
    color: #2d6fe0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45,111,224,0.2);
}


@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-info h1 {
        font-size: 2em;
    }

    .detail-item {
        flex-direction: column;
    }

    .detail-item .label {
        width: 100%;
        margin-bottom: 5px;
    }

    .profile-container {
        margin: 20px;
        padding: 20px;
    }
}


.detail-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;  
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #2d2d2d;
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 140px; 
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2d6fe0;
    padding: 5px;
    background: #1a1a1a;
    box-shadow: 0 5px 15px rgba(45,111,224,0.3);
    transition: transform 0.3s ease;
}
.profile-avatar img:hover {
    transform: scale(1.05);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 2em;  
    font-weight: 700;
}

.profile-info p {
    margin: 8px 0;
    color: #999;
    font-size: 1.1em;
}

.profile-info p:first-of-type {
    color: #2d6fe0;
    font-weight: 600;
}

.profile-details {
    background: #222222;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.detail-section h3 {
    margin-bottom: 25px;
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #2d6fe0;
    border-radius: 3px;
}

.detail-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    background: #252525;
}

.detail-item .label {
    width: 180px;
    font-weight: 600;
    color: #888;
}

.detail-item .value {
    color: #ffffff;
    flex: 1;
}

.profile-actions {
    margin-top: 40px;
    text-align: center;
}

.btn {
    width: 200px; 
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: block; 
    margin: 15px auto; 
    text-align: center;
}

.btn:hover {
    color: #2d6fe0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45,111,224,0.2);
}


@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-info h1 {
        font-size: 2em;
    }

    .detail-item {
        flex-direction: column;
    }

    .detail-item .label {
        width: 100%;
        margin-bottom: 5px;
    }

    .profile-container {
        margin: 20px;
        padding: 20px;
    }
}


.detail-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Settings Styles */
.settings-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.settings-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.settings-section h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #1a1a1a;
    color: var(--text-color);
    font-size: 16px;
    box-shadow: inset 0 0 0 2px var(--border-color);
    transition: box-shadow 0.3s ease;
}
.form-group input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}
.current-avatar {
    text-align: center;
    margin: 0 auto 20px;
    width: 120px;
    height: 120px;
    position: relative;
    padding: 5px;
    background: #1a1a1a;
    border-radius: 50%;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
}

.close {
position: absolute;
right: 20px;
top: 15px;
font-size: 28px;
cursor: pointer;
color: var(--text-color);
}

.avatars-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 15px;
padding: 20px 0;
}

.avatar-option {
width: 80px;
height: 80px;
position: relative;
padding: 3px;
background: #1a1a1a;
border-radius: 50%;
cursor: pointer;
margin: 0 auto;
}

.avatar-option img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
display: block;
border: 2px solid transparent;
transition: border-color 0.3s ease;
}

.avatar-option:hover img {
    border-color: var(--primary-color);
}

.avatar-option.selected img {
    border-color: var(--primary-color);
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background: #4CAF50;
    color: white;
}

.error {
    background: #f44336;
    color: white;
}
.modal-content h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}