/* Generated by script */
@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
body { font-family: 'Vazirmatn', sans-serif;background-color: aliceblue; }
.wrapper {
    display: flex;
    flex-direction: column; /* آیتم‌ها را به صورت ستونی مرتب می‌کند */
    min-height: 100vh; /* حداقل ارتفاع را برابر با ارتفاع viewport (صفحه نمایش) قرار می‌دهد */
    /* یا min-height: 100%; اگر body را به عنوان container flex تنظیم کرده‌اید */
}

.select2-container .select2-selection--single {
    height: calc(2.25rem + 2px); /* برای همخوانی با ارتفاع input بوت‌استرپ */
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem; /* پدینگ داخلی */
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
    left: 0.75rem; /* موقعیت پیکان در RTL */
    right: auto;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    right: auto;
    left: 2rem; /* موقعیت دکمه Clear در RTL */
}
.copy-btn{
    font-size: 1.3rem;
    padding: 0;
    border: none;
}
.table-responsive {
    overflow-x: unset;
}
.datepicker-plot-area .datepicker-day-view .table-days td span, .datepicker-plot-area .datepicker-year-view .year-item, .datepicker-plot-area .datepicker-month-view .month-item,button, input, optgroup, select, textarea,.datepicker-plot-area .toolbox,.datepicker-plot-area .datepicker-navigator .pwt-btn-switch,.datepicker-plot-area .datepicker-day-view .month-grid-box .header .header-row-cell {
    font-family: 'Vazirmatn', sans-serif;
}
.table {
    text-align: center;
}
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-left: 8px;
    padding-right: 20px;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    left: 1rem;
}
.table>:not(caption)>*>* {
    padding: 0.1rem 0.1rem;
}
.table-bordered>:not(caption)>*>* {
    vertical-align: middle;
}
.cursor-p{
    cursor: pointer;
}
table.dataTable>thead .sorting:before, table.dataTable>thead .sorting_asc:before, table.dataTable>thead .sorting_desc:before, table.dataTable>thead .sorting_asc_disabled:before, table.dataTable>thead .sorting_desc_disabled:before {
    left: 1em;
    right: auto !important;
}
table.dataTable>thead .sorting:after, table.dataTable>thead .sorting_asc:after, table.dataTable>thead .sorting_desc:after, table.dataTable>thead .sorting_asc_disabled:after, table.dataTable>thead .sorting_desc_disabled:after {
    left: .5em;
    right: auto !important;
}
table.dataTable>thead>tr>th:not(.sorting_disabled), table.dataTable>thead>tr>td:not(.sorting_disabled) {

    padding: 0.5rem 0 0 1rem !important;
}
.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
border-radius: 5px 0 0 5px;
}
.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3), .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control, .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select, .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-radius: 0 5px 5px 0;
}
.form-check .form-check-input {
    float: right;
    margin-left: 0.5em;
}
.page-item:last-child .page-link {
    border-radius: 5px 0 0 5px;
}
.page-item:first-child .page-link {
    border-radius: 0 5px 5px 0;
}
.ticket-header{
    background: whitesmoke;
    margin: 5px;
    border: 1px solid #a3a3a3;
    border-radius: 5px;
    padding: 5px;
}
.admin-ticket{
    background: cornsilk;
}
.user-ticket{
    background: floralwhite;
}
.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating)
{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    text-align: right;
    direction: rtl;
}

.form-container {
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}
.bg-lighti{
    background-color: #e9e9e9;
}
.turnstile-container { margin-top: 1rem; margin-bottom: 1rem; }

/* Base styles */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    border-radius: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0; /* Reduced padding for mobile */
    text-align: center;
    min-height: 85vh; /* Adjusted for better mobile fit */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before { /* Overlay for gradient effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-section h1 {
    font-size: 2.8em; /* Adjusted for mobile */
    margin-bottom: 15px;
    font-weight: 700;
}
.hero-section p {
    font-size: 1.1em; /* Adjusted for mobile */
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Shorten Form */
.shorten-form {
    background-color: white;
    padding: 25px; /* Adjusted padding */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 600px; /* Adjusted max-width */
    margin: 0 auto;
}
.shorten-form .form-control {
    border-radius: 8px;
    height: 48px; /* Adjusted height */
    font-size: 1em; /* Adjusted font size */
    border: 1px solid #ddd;
}
.shorten-form .btn {
    border-radius: 8px;
    height: 48px; /* Adjusted height */
    font-size: 1em; /* Adjusted font size */
    font-weight: 600;
    background-color: #764ba2;
    border-color: #764ba2;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.shorten-form .btn:hover {
    background-color: #6a408e;
    border-color: #6a408e;
}

/* Feature Section */
.features-section, .how-it-works-section, .cta-section {
    padding: 50px 0; /* Adjusted padding */
    background-color: aliceblue;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}
.section-title {
    font-size: 2.2em; /* Adjusted font size */
    font-weight: 700;
    color: #444;
    margin-bottom: 40px;
}
.feature-item {
    cursor: pointer;
    background:white;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 25px; /* Added margin for spacing on small screens */
}
.feature-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}
.feature-item h3 {
    font-size: 1.4em; /* Adjusted font size */
    margin-bottom: 10px;
    font-weight: 600;
}
.feature-item p {
    font-size: 0.95em;
}

/* How it works section */
.step-box {
    padding: 25px;
    border:1px solid #c5c5c5;
    border-radius: 8px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    margin-bottom: 25px; /* Added margin for spacing on small screens */
}
.step-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.step-box .step-number {
    font-size: 2em; /* Adjusted font size */
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}
.step-box h3 {
    font-size: 1.3em; /* Adjusted font size */
    margin-bottom: 8px;
    font-weight: 600;
}
.step-box p {
    font-size: 0.9em;
}

/* CTA Section */
.cta-section {
    background-color: #343a40;
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
}
.cta-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
}
/*.cta-section .btn {
    background-color: #667eea;
    border-color: #667eea;
    font-weight: 600;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cta-section .btn:hover {
    background-color: #556cdc;
    border-color: #556cdc;
}*/
.cta-section .btn:hover{
    color: var(--bs-btn-active-color);
    background-color: var(--bs-btn-active-bg);
    border-color: var(--bs-btn-active-border-color);
}
.cta-section .btn-reg{
    background-color: #ffc107;
    border-color: #ffc107;
    color: #161616;
}
.cta-section .btn-contact{
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

/* Footer */
.footer {
    background-color: #222;
    color: #eee;
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
}
.footer p {
    font-size: 0.9em;
    margin-bottom: 0;
}


/* Responsive adjustments */
@media (max-width: 767.98px) { /* Small devices (mobile) */
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 0.95em;
    }
    .shorten-form {
        padding: 20px;
    }
    .shorten-form .input-group {
        flex-direction: column; /* Stack input and button */
    }
    .shorten-form .form-control,
    .shorten-form .btn {
        width: 100%; /* Full width */
        margin-bottom: 10px; /* Space between stacked elements */
    }
    .shorten-form .btn {
        margin-left: 0 !important; /* Override me-1 */
    }
    .section-title {
        font-size: 1.8em;
    }
    .feature-item, .step-box {
        margin-bottom: 20px;
    }
}

@media (max-width: 380px) { /* Extra small devices (very small mobile screens) */
    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 0.85em;
    }
    .shorten-form .form-control,
    .shorten-form .btn {
        height: 45px; /* Slightly smaller height */
        font-size: 0.9em;
    }
    .feature-item h3 {
        font-size: 1.2em;
    }
    .feature-item p {
        font-size: 0.85em;
    }
    .step-box .step-number {
        font-size: 1.8em;
    }
    .step-box h3 {
        font-size: 1.1em;
    }
    .step-box p {
        font-size: 0.8em;
    }
    .cta-section h2 {
        font-size: 1.8em;
    }
}
.ticket-text{
    white-space: pre-wrap;
}
.otp-input {
        width: 45px !important; /* یا هر اندازه‌ای که مناسب است */
        height: 50px;
        font-size: 1.5rem;
        border: 1px solid #ced4da;
        border-radius: .25rem;
        transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.otp-input:focus {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}
#countdown {
            font-size: 2.5em;
            font-weight: bold;
            color: #0d6efd;
            margin-bottom: 20px;
}
#redirectLink {
            font-size: 1.1em;
            color: #007bff;
            text-decoration: none;
}
.ad-space {
            background-color: #e9ecef;
            padding: 20px;
            margin: 30px 0;
            border-radius: 5px;
            min-height: 100px; /* فضای فرضی برای تبلیغ */
            display: flex;
            justify-content: center;
            align-items: center;
            color: #6c757d;
            font-style: italic;
}
.icon-circle {
    width: 70px;
    height: 70px;
    background-color: darkslateblue;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}
.feature-item:hover .icon-circle {
    background-color: blueviolet;
    box-shadow: 3px 3px 3px #8146b3;
}