body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%); /* گرادینت آبی */
    color: #fff;
    min-height: 100vh;
    transition: background 0.3s;
}
.dark {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); /* گرادینت تاریک */
    color: #e2e8f0;
}

header {
    background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%); /* گرادینت هدر */
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}
.logo {

    width: 300px; /* عرض 300 پیکسل */

    height: 50px; /* ارتفاع 50 پیکسل */

    margin-left: 0.5rem;

    /* border-radius: 50%; حذف شد برای مستطیلی */

}
#theme-toggle {
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
#theme-toggle:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 1rem;
}
nav a, nav span {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 10px;
    transition: background 0.3s;
}
nav a:hover {
    background: rgba(255,255,255,0.2);
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
input {
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    width: 300px;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
button:hover {
    transform: scale(1.05);
}

.about, .how-it-works, .why-j2p, .trust, .cta, .register, .login, .dashboard {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.about h3, .how-it-works h3, .why-j2p h3, .trust h3, .cta h3, .register h2, .login h2, .dashboard h2 {
    color: #fff;
    margin-bottom: 1rem;
}
.cta a {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.cta a:hover {
    transform: scale(1.05);
}

.table-bordered {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.table-bordered th, .table-bordered td {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.75rem;
    text-align: center;
}
.table-bordered th {
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    color: #fff;
}
.dark .table-bordered th, .dark .table-bordered td {
    border-color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    color: #fff;
}

.error {
    color: #ff6b6b;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}