:root {
    --primary-color: #833ab4;
    --secondary-color: #fd1d1d;
    --accent-color: #fcb045;
    --dark-bg: #121212;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-radius: 12px;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    direction: rtl;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 25px;
}

h1, h2, h3 {
    color: #111;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(131, 58, 180, 0.1);
}

.btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 15px;
}

.btn:hover {
    opacity: 0.9;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th, table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f1f3f5;
}
/* =========================================================
   تنظیمات عمومی صفحه اصلی
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body.home-page {
    overflow-x: hidden;
    background: #f8f9fc;
}

.home-page * {
    box-sizing: border-box;
}

.home-page a {
    text-decoration: none;
}

.home-page p {
    line-height: 1.9;
}

.main-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(20, 20, 40, 0.06);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 7px 30px rgba(30, 20, 60, 0.05);
    backdrop-filter: blur(14px);
}

.header-container {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #171326;
}

.logo-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(
        135deg,
        #833ab4 0%,
        #fd1d1d 55%,
        #fcb045 100%
    );
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(131, 58, 180, 0.24);
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo-content strong {
    font-size: 17px;
}

.logo-content small {
    margin-top: 3px;
    color: #898496;
    font-size: 11px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-navigation a {
    color: #4e495b;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation .navigation-register,
.main-navigation .navigation-dashboard {
    padding: 11px 18px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: #fff;
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.18);
}

.main-navigation .navigation-register:hover,
.main-navigation .navigation-dashboard:hover {
    color: #fff;
    transform: translateY(-1px);
}

.main-navigation .navigation-logout {
    color: #dc3545;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: #f2eef7;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: #342b43;
}

/* =========================================================
   بخش Hero
   ========================================================= */

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 25%, rgba(252, 176, 69, 0.15), transparent 28%),
        radial-gradient(circle at 8% 70%, rgba(131, 58, 180, 0.14), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f9f5ff 47%, #fff6f5 100%);
}

.hero-container {
    position: relative;
    z-index: 3;
    display: grid;
    min-height: 680px;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 70px;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.hero-shape-one {
    top: -130px;
    left: -110px;
    width: 350px;
    height: 350px;
    background: rgba(131, 58, 180, 0.06);
}

.hero-shape-two {
    right: 40%;
    bottom: -180px;
    width: 380px;
    height: 380px;
    background: rgba(253, 29, 29, 0.05);
}

.hero-badge,
.hero-welcome {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 9px 15px;
    border: 1px solid rgba(131, 58, 180, 0.13);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.75);
    color: #833ab4;
    font-size: 13px;
    font-weight: 800;
}

.hero-content h1 {
    max-width: 690px;
    margin: 0 0 23px;
    color: #171326;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.35;
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: linear-gradient(
        90deg,
        #833ab4,
        #d22f7b,
        #fd1d1d
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content > p {
    max-width: 680px;
    margin: 0;
    color: #696473;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.home-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.primary-home-button {
    background: linear-gradient(135deg, #833ab4, #fd1d1d);
    color: #fff;
    box-shadow: 0 12px 30px rgba(131, 58, 180, 0.22);
}

.secondary-home-button {
    border-color: rgba(131, 58, 180, 0.2);
    background: #fff;
    color: #6d2c96;
}

.hero-security-items {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    color: #706a79;
    font-size: 12px;
    font-weight: 700;
}

.hero-security-items span::first-letter {
    color: #1ca66a;
}

/* =========================================================
   پیش‌نمایش استوری
   ========================================================= */

.hero-visual {
    position: relative;
    display: flex;
    min-height: 520px;
    align-items: center;
    justify-content: center;
}

.story-preview {
    position: relative;
    z-index: 2;
    width: 300px;
    padding: 13px;
    border: 7px solid #1b1720;
    border-radius: 38px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(40, 20, 55, 0.22);
    transform: rotate(-3deg);
}

.story-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 5px 12px;
}

.story-avatar {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 3px solid #d62976;
    border-radius: 50%;
    background: #f5eafb;
    color: #833ab4;
    font-size: 11px;
    font-weight: 900;
}

.story-top div:last-child {
    display: flex;
    flex-direction: column;
}

.story-top strong {
    color: #23202a;
    font-size: 13px;
}

.story-top small {
    margin-top: 3px;
    color: #96919a;
    font-size: 10px;
}

.story-image {
    position: relative;
    display: flex;
    height: 390px;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(180deg, transparent 15%, rgba(19, 9, 29, 0.84) 100%),
        linear-gradient(135deg, #833ab4, #d62976 45%, #f77737 100%);
}

.story-image::before,
.story-image::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.story-image::before {
    top: 50px;
    right: -50px;
    width: 190px;
    height: 190px;
    background: rgba(255, 255, 255, 0.13);
}

.story-image::after {
    top: 105px;
    left: -35px;
    width: 130px;
    height: 130px;
    background: rgba(255, 210, 70, 0.22);
}

.story-image-overlay {
    position: relative;
    z-index: 2;
    padding: 25px 21px;
    color: #fff;
}

.story-image-overlay span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
}

.story-image-overlay strong {
    display: block;
    font-size: 24px;
    line-height: 1.6;
}

.story-button {
    margin-top: 10px;
    padding: 11px;
    border-radius: 12px;
    background: #f5f1f8;
    color: #713294;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}

.floating-stat {
    position: absolute;
    z-index: 4;
    min-width: 135px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 15px 45px rgba(47, 27, 55, 0.13);
    backdrop-filter: blur(12px);
}

.floating-stat span,
.floating-stat strong {
    display: block;
}

.floating-stat span {
    margin-bottom: 4px;
    color: #807a85;
    font-size: 11px;
}

.floating-stat strong {
    color: #26202b;
    font-size: 17px;
}

.floating-stat-click {
    top: 85px;
    right: 0;
}

.floating-stat-income {
    bottom: 80px;
    left: 0;
}

/* =========================================================
   آمار
   ========================================================= */

.statistics-section {
    position: relative;
    z-index: 5;
    margin-top: -40px;
}

.statistics-grid {
    display: grid;
    padding: 22px;
    border: 1px solid rgba(70, 50, 90, 0.07);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(35, 20, 50, 0.08);
    grid-template-columns: repeat(4, 1fr);
}

.statistic-card {
    display: flex;
    min-height: 85px;
    align-items: center;
    gap: 14px;
    padding: 15px 22px;
    border-left: 1px solid #eeeaf1;
}

.statistic-card:last-child {
    border-left: 0;
}

.statistic-icon {
    display: flex;
    width: 48px;
    min-width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
}

.purple-icon {
    background: #f2e8f8;
    color: #833ab4;
}

.pink-icon {
    background: #fde8f1;
    color: #d62976;
}

.orange-icon {
    background: #fff0e4;
    color: #e76b24;
}

.green-icon {
    background: #e7f8f0;
    color: #15945c;
}

.statistic-card strong,
.statistic-card span {
    display: block;
}

.statistic-card strong {
    margin-bottom: 5px;
    color: #251f2c;
    font-size: 24px;
}

.statistic-card span {
    color: #817b86;
    font-size: 12px;
}

/* =========================================================
   بخش‌های عمومی
   ========================================================= */

.home-section {
    padding: 105px 0;
}

.section-heading {
    max-width: 690px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading > span {
    display: inline-block;
    margin-bottom: 11px;
    color: #833ab4;
    font-size: 13px;
    font-weight: 900;
}

.section-heading h2 {
    margin: 0 0 15px;
    color: #201a27;
    font-size: clamp(28px, 4vw, 42px);
}

.section-heading p {
    margin: 0;
    color: #76707d;
    font-size: 15px;
}

.features-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    padding: 30px;
    border: 1px solid rgba(56, 40, 70, 0.07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(41, 25, 52, 0.055);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 55px rgba(41, 25, 52, 0.1);
}

.feature-icon {
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f3e7fa, #ffe6e9);
    color: #833ab4;
    font-size: 14px;
    font-weight: 900;
}

.feature-card h3 {
    margin: 0 0 11px;
    font-size: 18px;
}

.feature-card p {
    margin: 0;
    color: #77717e;
    font-size: 13px;
}

/* =========================================================
   مراحل فعالیت
   ========================================================= */

.process-section {
    background: #211a2b;
}

.process-section .section-heading h2 {
    color: #fff;
}

.process-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

.process-item {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.process-number {
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #833ab4, #fd1d1d);
    color: #fff;
    font-weight: 900;
}

.process-item h3 {
    margin: 0 0 11px;
    color: #fff;
    font-size: 17px;
}

.process-item p {
    margin: 0;
    color: #bbb4c3;
    font-size: 13px;
}

/* =========================================================
   نقش‌های کاربری
   ========================================================= */

.roles-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(2, 1fr);
}

.role-card {
    position: relative;
    overflow: hidden;
    padding: 45px;
    border-radius: 25px;
}

.role-card::after {
    position: absolute;
    top: -80px;
    left: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    content: "";
}

.advertiser-role {
    background: linear-gradient(135deg, #833ab4, #b52b7f);
    color: #fff;
}

.publisher-role {
    background: linear-gradient(135deg, #252039, #493f65);
    color: #fff;
}

.role-content {
    position: relative;
    z-index: 2;
}

.role-label {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 11px;
    font-weight: 800;
}

.role-card h3 {
    margin: 20px 0 10px;
    color: #fff;
    font-size: 30px;
}

.role-card p {
    max-width: 500px;
    color: rgba(255, 255, 255, 0.78);
}

.role-card ul {
    margin: 22px 0 28px;
    padding: 0;
    list-style: none;
}

.role-card li {
    margin: 11px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.role-card li::before {
    margin-left: 8px;
    color: #ffcf78;
    content: "✓";
}

.role-card .primary-home-button {
    background: #fff;
    color: #7b329e;
    box-shadow: none;
}

.publisher-button {
    background: linear-gradient(135deg, #ffb13b, #f77737);
    color: #211a2b;
}

/* =========================================================
   دعوت به اقدام
   ========================================================= */

.call-to-action-section {
    padding: 15px 0 90px;
}

.call-to-action-box {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    padding: 45px 55px;
    border-radius: 25px;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.13), transparent 22%),
        linear-gradient(135deg, #833ab4, #d62976 55%, #fd1d1d);
    color: #fff;
}

.call-to-action-box span {
    font-size: 13px;
    font-weight: 800;
}

.call-to-action-box h2 {
    margin: 10px 0;
    color: #fff;
    font-size: 31px;
}

.call-to-action-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.white-home-button {
    min-width: 150px;
    background: #fff;
    color: #833ab4;
}

/* =========================================================
   فوتر
   ========================================================= */

.main-footer {
    background: #17131e;
    color: #fff;
}

.footer-grid {
    display: grid;
    gap: 40px;
    padding-top: 65px;
    padding-bottom: 55px;
    grid-template-columns: 1.7fr repeat(3, 1fr);
}

.footer-logo {
    color: #fff;
}

.footer-about p {
    max-width: 390px;
    margin-top: 19px;
    color: #a9a3ae;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 15px;
}

.footer-links a {
    color: #a9a3ae;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #88818e;
    text-align: center;
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

/* =========================================================
   واکنش‌گرایی
   ========================================================= */

@media (max-width: 992px) {
    .mobile-menu-button {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 78px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 15px;
        border: 1px solid #eee8f2;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 20px 45px rgba(35, 20, 50, 0.12);
    }

    .main-navigation.menu-open {
        display: flex;
    }

    .main-navigation a {
        padding: 11px 13px;
        border-radius: 9px;
    }

    .hero-container {
        padding-top: 70px;
        padding-bottom: 90px;
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content > p {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions,
    .hero-security-items {
        justify-content: center;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .statistic-card:nth-child(2) {
        border-left: 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .logo-content small {
        display: none;
    }

    .hero-section,
    .hero-container {
        min-height: auto;
    }

    .hero-container {
        gap: 35px;
        padding-top: 55px;
    }

    .hero-content h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-actions .home-button {
        width: 100%;
    }

    .hero-visual {
        min-height: 470px;
    }

    .story-preview {
        width: 265px;
    }

    .story-image {
        height: 345px;
    }

    .floating-stat {
        min-width: 115px;
        padding: 12px;
    }

    .statistics-section {
        margin-top: -25px;
    }

    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .statistic-card,
    .statistic-card:nth-child(2) {
        border-bottom: 1px solid #eeeaf1;
        border-left: 0;
    }

    .statistic-card:last-child {
        border-bottom: 0;
    }

    .home-section {
        padding: 75px 0;
    }

    .features-grid,
    .process-grid,
    .roles-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .role-card {
        padding: 32px 25px;
    }

    .call-to-action-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px 25px;
    }

    .call-to-action-box h2 {
        font-size: 25px;
    }

    .white-home-button {
        width: 100%;
    }
}
