@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins Medium";
    src: url("../fonts/Poppins-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins SemiBold";
    src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins Bold";
    src: url("../fonts/Poppins-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins Black";
    src: url("../fonts/Poppins-Black.ttf") format("truetype");
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
    border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
    display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
    display: none;
}

html {
    box-sizing: border-box;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
}


/*

- Grid System

*/

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row>* {
    /*padding-right: 15px;*/
    /*padding-left: 15px;*/
    margin-bottom: 30px;
}

.col {
    max-width: 100%;
    flex-grow: 1;
}

.col-1 {
    width: 8.333333%;
    flex: 0 0 auto;
}

.col-2 {
    width: 16.666666%;
    flex: 0 0 auto;
}

.col-3 {
    width: 25%;
    flex: 0 0 auto;
}

.col-4 {
    width: 33.333333%;
    flex: 0 0 auto;
}

.col-5 {
    width: 41.666666%;
    flex: 0 0 auto;
}

.col-6 {
    width: 50%;
    flex: 0 0 auto;
}

.col-7 {
    width: 58.333333%;
    flex: 0 0 auto;
}

.col-8 {
    width: 66.666666%;
    flex: 0 0 auto;
}

.col-9 {
    width: 75%;
    flex: 0 0 auto;
}

.col-10 {
    width: 83.333333%;
    flex: 0 0 auto;
}

.col-11 {
    width: 91.666666%;
    flex: 0 0 auto;
}

.col-12 {
    width: 100%;
    flex: 0 0 auto;
}

/* sm */

@media (min-width: 576px) {

    .container {
        width: 540px;
    }
    .col-sm-1 {
        width: 8.333333%;
        flex: 0 0 auto;
    }
    .col-sm-2 {
        width: 16.666666%;
        flex: 0 0 auto;
    }
    .col-sm-3 {
        width: 25%;
        flex: 0 0 auto;
    }
    .col-sm-4 {
        width: 33.333333%;
        flex: 0 0 auto;
    }
    .col-sm-5 {
        width: 41.666666%;
        flex: 0 0 auto;
    }
    .col-sm-6 {
        width: 50%;
        flex: 0 0 auto;
    }
    .col-sm-7 {
        width: 58.333333%;
        flex: 0 0 auto;
    }
    .col-sm-8 {
        width: 66.666666%;
        flex: 0 0 auto;
    }
    .col-sm-9 {
        width: 75%;
        flex: 0 0 auto;
    }
    .col-sm-10 {
        width: 83.333333%;
        flex: 0 0 auto;
    }
    .col-sm-11 {
        width: 91.666666%;
        flex: 0 0 auto;
    }
    .col-sm-12 {
        width: 100%;
        flex: 0 0 auto;
    }
}


/* md */

@media (min-width: 768px) {
    .container {
        width: 720px;
    }
    .col-md-1 {
        width: 8.333333%;
        flex: 0 0 auto;
    }
    .col-md-2 {
        width: 16.666666%;
        flex: 0 0 auto;
    }
    .col-md-3 {
        width: 25%;
        flex: 0 0 auto;
    }
    .col-md-4 {
        width: 33.333333%;
        flex: 0 0 auto;
    }
    .col-md-5 {
        width: 41.666666%;
        flex: 0 0 auto;
    }
    .col-md-6 {
        width: 50%;
        flex: 0 0 auto;
    }
    .col-md-7 {
        width: 58.333333%;
        flex: 0 0 auto;
    }
    .col-md-8 {
        width: 66.666666%;
        flex: 0 0 auto;
    }
    .col-md-9 {
        width: 75%;
        flex: 0 0 auto;
    }
    .col-md-10 {
        width: 83.333333%;
        flex: 0 0 auto;
    }
    .col-md-11 {
        width: 91.666666%;
        flex: 0 0 auto;
    }
    .col-md-12 {
        width: 100%;
        flex: 0 0 auto;
    }
}


/* lg */

@media (min-width: 992px) {
    .container {
        width: 960px;
    }
    .col-lg-1 {
        width: 8.333333%;
        flex: 0 0 auto;
    }
    .col-lg-2 {
        width: 16.666666%;
        flex: 0 0 auto;
    }
    .col-lg-3 {
        width: 25%;
        flex: 0 0 auto;
    }
    .col-lg-4 {
        width: 33.333333%;
        flex: 0 0 auto;
    }
    .col-lg-5 {
        width: 41.666666%;
        flex: 0 0 auto;
    }
    .col-lg-6 {
        width: 50%;
        flex: 0 0 auto;
    }
    .col-lg-7 {
        width: 58.333333%;
        flex: 0 0 auto;
    }
    .col-lg-8 {
        width: 66.666666%;
        flex: 0 0 auto;
    }
    .col-lg-9 {
        width: 75%;
        flex: 0 0 auto;
    }
    .col-lg-10 {
        width: 83.333333%;
        flex: 0 0 auto;
    }
    .col-lg-11 {
        width: 91.666666%;
        flex: 0 0 auto;
    }
    .col-lg-12 {
        width: 100%;
        flex: 0 0 auto;
    }
}


/* xl */

@media (min-width: 1200px) {
    .container {
        width: 1140px;
    }
    .col-xl-1 {
        width: 8.333333%;
        flex: 0 0 auto;
    }
    .col-xl-2 {
        width: 16.666666%;
        flex: 0 0 auto;
    }
    .col-xl-3 {
        width: 25%;
        flex: 0 0 auto;
    }
    .col-xl-4 {
        width: 33.333333%;
        flex: 0 0 auto;
    }
    .col-xl-5 {
        width: 41.666666%;
        flex: 0 0 auto;
    }
    .col-xl-6 {
        width: 50%;
        flex: 0 0 auto;
    }
    .col-xl-7 {
        width: 58.333333%;
        flex: 0 0 auto;
    }
    .col-xl-8 {
        width: 66.666666%;
        flex: 0 0 auto;
    }
    .col-xl-9 {
        width: 75%;
        flex: 0 0 auto;
    }
    .col-xl-10 {
        width: 83.333333%;
        flex: 0 0 auto;
    }
    .col-xl-11 {
        width: 91.666666%;
        flex: 0 0 auto;
    }
    .col-xl-12 {
        width: 100%;
        flex: 0 0 auto;
    }
}


/* xxl */

@media (min-width: 1400px) {
    .container {
        width: 1370px;
    }
    .col-xxl-1 {
        width: 8.333333%;
        flex: 0 0 auto;
    }
    .col-xxl-2 {
        width: 16.666666%;
        flex: 0 0 auto;
    }
    .col-xxl-3 {
        width: 25%;
        flex: 0 0 auto;
    }
    .col-xxl-4 {
        width: 33.333333%;
        flex: 0 0 auto;
    }
    .col-xxl-5 {
        width: 41.666666%;
        flex: 0 0 auto;
    }
    .col-xxl-6 {
        width: 50%;
        flex: 0 0 auto;
    }
    .col-xxl-7 {
        width: 58.333333%;
        flex: 0 0 auto;
    }
    .col-xxl-8 {
        width: 66.666666%;
        flex: 0 0 auto;
    }
    .col-xxl-9 {
        width: 75%;
        flex: 0 0 auto;
    }
    .col-xxl-10 {
        width: 83.333333%;
        flex: 0 0 auto;
    }
    .col-xxl-11 {
        width: 91.666666%;
        flex: 0 0 auto;
    }
    .col-xxl-12 {
        width: 100%;
        flex: 0 0 auto;
    }
}


:root {
  --primary-color: #0056D2;
  --secondary-color: #003B9C;
  --background-light: #F4F6FA;
  --text-color: #222;
  --font-main: "Vazir", sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--background-light);
  color: var(--text-color);
  margin: 0;
  scroll-behavior: smooth;
}

/* ====== Auth Pages (Login/Register) ====== */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  background: linear-gradient(160deg, #eaf2ff 0%, #f8fbff 100%);
  direction: rtl;
  text-align: center;
}

.glassy-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.1);
  padding: 3rem 2rem;
  width: 100%;
  max-width: 450px;
}

.auth-title {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: #555;
  margin-bottom: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid #ddd;
  font-family: var(--font-main);
  font-size: 1rem;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 6px rgba(0, 86, 210, 0.3);
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.app-btn--primary:hover {
  background-color: #003b9c;
}

.auth-footer {
  margin-top: 1.5rem;
  color: #555;
}
.auth-footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}
.categories-section {
  margin: 3rem 0;
  text-align: center;
}

.categories-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0056D2;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.2);
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 0.6rem;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.category-item {
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.category-item:hover {
  background: #0056D2;
  color: #fff;
  transform: translateY(-2px);
}

/* ====== Edit Profile Page ====== */
.edit-profile-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 95vh;
  background: linear-gradient(150deg, #eaf2ff 0%, #f8fbff 100%);
  direction: rtl;
  text-align: center;
}

.edit-profile-card {
  max-width: 600px;
  padding: 3rem 2.5rem;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.1);
  margin: 2rem auto;
}

.auth-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.auth-subtitle {
  color: #555;
  margin-bottom: 2.2rem;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid #d0d0d0;
  font-family: var(--font-main);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(0, 86, 210, 0.25);
  background-color: #fff;
}

.auth-form label {
  display: block;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 8px;
  text-align: right;
}

.app-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 2rem;
  font-family: var(--font-main);
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
}

.app-btn--secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 700;
}
.app-btn--secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

.back-btn {
  display: inline-block;
  margin-top: 1.5rem;
}
/* ====== Change Password Page ====== */
.password-change-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 95vh;
  background: linear-gradient(150deg, #eaf2ff 0%, #f8fbff 100%);
  direction: rtl;
  text-align: center;
}

.password-change-card {
  max-width: 600px;
  padding: 3rem 2.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.1);
  margin: 2rem auto;
}

.auth-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.auth-subtitle {
  color: #555;
  margin-bottom: 2.2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.auth-form label {
  text-align: right;
  display: block;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.7rem;
  font-size: 1rem;
  background: rgba(255,255,255,0.9);
  transition: 0.3s;
}

.auth-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 6px rgba(0, 86, 210, 0.25);
}

.app-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 2rem;
  font-family: var(--font-main);
  font-weight: 700;
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
}

.app-btn--secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.app-btn--secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

.back-btn {
  margin-top: 1.5rem;
}
/* ====== Password Change Success ====== */
.success-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  background: linear-gradient(150deg, #eaf2ff 0%, #f8fbff 100%);
  text-align: center;
  direction: rtl;
}

.success-card {
  max-width: 520px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.1);
  padding: 3rem 2.5rem;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.success-title {
  color: var(--primary-color);
  font-weight: 900;
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.success-text {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.success-btn {
  padding: 0.9rem 1.8rem;
  font-weight: 700;
  border-radius: 2rem;
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
}
/* ====== Password Reset Page ====== */
.password-reset-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 95vh;
  background: linear-gradient(150deg, #eaf3ff 0%, #f9fbff 100%);
  text-align: center;
  direction: rtl;
}

.password-reset-card {
  max-width: 520px;
  padding: 3rem 2.5rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.1);
  margin: 2rem auto;
}

.auth-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-form label {
  font-weight: 600;
  color: #333;
  text-align: right;
  display: block;
  margin-bottom: 0.4rem;
}

.auth-form input[type="email"],
.auth-form input[type="text"] {
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid #ddd;
  font-family: var(--font-main);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  text-align: right;
  transition: all 0.3s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 6px rgba(0, 86, 210, 0.2);
}

.app-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 2rem;
  font-family: var(--font-main);
  font-weight: 700;
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
}

.app-btn--secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.app-btn--secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

.back-btn {
  margin-top: 1.8rem;
}
/* ====== Password Reset Done Page ====== */
.reset-done-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 93vh;
  background: linear-gradient(150deg, #edf3ff 0%, #f8fbff 100%);
  text-align: center;
  direction: rtl;
}

.reset-done-card {
  max-width: 520px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.1);
  padding: 3.2rem 2.5rem;
  margin: 2rem auto;
}

.reset-done-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.success-title {
  color: var(--primary-color);
  font-weight: 900;
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}

.success-text {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.app-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 2rem;
  font-family: var(--font-main);
  font-weight: 700;
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
}
/* ===== Reset Password Confirm Page ===== */
.reset-confirm-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 93vh;
  background: linear-gradient(150deg, #edf3ff 0%, #f8fbff 100%);
  text-align: center;
  direction: rtl;
}

.reset-confirm-card {
  max-width: 520px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.1);
  padding: 3rem 2.5rem;
}
.auth-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
}

.auth-form label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
  display: block;
}

.auth-form input[type="password"],
.auth-form input[type="text"] {
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid #ddd;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-family: var(--font-main);
  direction: rtl;
  transition: all 0.3s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 6px rgba(0, 86, 210, 0.2);
}

.app-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 2rem;
  font-family: var(--font-main);
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
}

.app-btn--secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.app-btn--secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* خطا یا لینک نامعتبر */
.invalid-link-box {
  text-align: center;
}

.error-title {
  font-size: 1.6rem;
  color: #c0392b;
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.error-message {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
/* ===== Password Reset Complete Page ===== */
.reset-complete-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 93vh;
  background: linear-gradient(150deg, #edf3ff 0%, #f8fbff 100%);
  text-align: center;
  direction: rtl;
}

.reset-complete-card {
  max-width: 520px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.1);
  padding: 3rem 2.5rem;
  margin: 2rem auto;
}

.reset-complete-icon {
  font-size: 3rem;
  color: #28a745; /* سبز موفقیت */
  margin-bottom: 1rem;
}

.success-title {
  color: var(--primary-color);
  font-weight: 900;
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}

.success-message {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* دکمه ورود */
.app-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 2rem;
  font-family: var(--font-main);
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
}
/* Hero Section */
/* ====== Home Page Styling ====== */
.home-page {
  background: linear-gradient(135deg, #fffafa, #d7e4fb);
  overflow-x: hidden;
  position: relative;
}
/* بک‌گراند کلی Home (اتم محو) */
.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/static/image/atom-1674878_1920.png') center/cover no-repeat;
  filter: blur(7px) brightness(0.7);
  opacity: 0.35;
  z-index: -2;
}
.home-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6rem 5%;
  color: #fff;
  border-radius: 0 0 80px 80px;
  overflow: hidden;
  z-index: 1;
}
/* لایه‌ پس‌زمینه با عکس و گرادینت */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,86,210,0.85), rgba(0,59,156,0.85)),
    url('/static/image/atom-1674878_1920.png') center/cover no-repeat;
  filter: blur(6px) brightness(0.8); /* محو کردن و تیره‌کردن عکس */
  z-index: -1; /* پشت محتوا بیفته */
}
.hero-content {
  position: relative;
  max-width: 500px;
  direction: rtl;
  z-index: 2;
  backdrop-filter: blur(4px); /* شیشه‌ای کردن باکس داخلی */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2.5rem;
}
.hero-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.hero-title .brand {
  color: #FFD43B;
}
.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.8rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}
.hero-illustration {
  background-size: contain;
  width: 40%;
  height: 10rem;
}

.stats-section {
  margin-top: 4rem;
  background-color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  max-width: 900px;
  margin-inline: auto;
}
.stats-box {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}
.stat h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: .5rem;
}
.stat p {
  color: #555;
  font-weight: 500;
}

.posts-section,
.popular-section,
.new-section {
  margin: 5rem auto;
  width: 90%;
  direction: rtl;
}
.posts-section h2,
.popular-section h2,
.new-section h2 {
  color: var(--secondary-color);
  border-right: 6px solid var(--primary-color);
  padding-right: 1rem;
  margin-bottom: 2rem;
  font-weight: 700;
}
.post-list, .popular-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.post-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
  transition: 0.3s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 18px rgba(0,0,0,0.1);
}
.post-card h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: .5rem;
}
.post-card p {
  color: #444;
  font-size: 0.95rem;
}

.new-posts {
  list-style: none;
  padding-right: 0;
}
.new-posts li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e0e0e0;
}
.new-posts li a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}
.new-posts li .category {
  font-size: 0.9rem;
  color: #666;
  margin-right: 0.5rem;
}

.app-btn {
  background-color: #fff;
  color: #0056D2;
  padding: 0.8rem 2rem;
  border-radius: 3rem;
  font-weight: 600;
  transition: 0.3s;
}
.app-btn:hover {
  background-color: #e4e8ff;
}
.page-center-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background: linear-gradient(135deg, #003B9C 0%, #0056D2 100%);*/
    padding: 20px;
  }
.glassy-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 16px;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  }
  .glassy-table {
    width: 100%;
    border-collapse: collapse;
    color: #cbdeec;
    min-width: 700px;
    font-family: 'Vazir', 'Shabnam', sans-serif;
  }
  .glassy-table thead th {
    background: rgba(0, 86, 210, 0.35);
    text-align: center;
    font-size: 1rem;
    padding: 14px;
  }
  .glassy-table tbody td {
    text-align: right;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .glassy-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.12);
    transition: 0.2s ease;
  }
/* ====== Glassy Fixed Header ====== */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.6); /* حالت شیشه‌ای روشن */
    backdrop-filter: blur(12px);           /* محوکننده‌ی پشت هدر */
    -webkit-backdrop-filter: blur(12px);   /* برای Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* خط ظریف پایین هدر */
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.5rem; /* بالا/پایین، چپ/راست */
}
#mainNav a,
#mainNav .nav-link {
    margin: 0 1.2rem; /* فاصله بین لینک‌ها */
    font-weight: 500;
    font-size: 1rem;
    color: #0c0c0c;
    text-decoration: none;
    transition: color 0.25s ease;
}
#mainNav a:hover,
#mainNav .nav-link:hover {
    color: var(--primary-color);
}

#mainNav .navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    margin-right: 1rem;
    color: var(--primary-color);
}

#mainNav .app-btn {
    margin-left: 1rem;
}

/* در حالت تیره navbar */
#mainNav.navbar-dark {
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* هنگام اسکرول رنگ هدر کمی پررنگ‌تر بشه */
.scrolled #mainNav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}
/* ===== Search Box in Header ===== */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2rem;
    padding: 0.3rem 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-search input[type="text"],
.nav-search input[type="search"] {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #222;
    padding: 0.4rem 0.5rem;
    width: 180px;
    font-family: var(--font-main);
    direction: rtl;
}

.nav-search input::placeholder {
    color: #666;
    opacity: 0.8;
}

.nav-search button {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-search button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}
/* ====== Search Results Page ====== */
.search-results-section {
  padding: 4rem 0;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.15);
  color: #043250;
}

.search-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.search-title {
  font-size: 2rem;
  font-weight: 700;
  color: #4e96c5;
}

.search-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.search-keyword {
  color: #4da3ff;
  font-weight: bold;
}

.glassy-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sub-title {
  font-size: 1.2rem;
  color: #9cc6ff;
  margin-bottom: 1rem;
  border-right: 4px solid #4da3ff;
  padding-right: 10px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.category-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cdb41d;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.category-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  color: #cdb41d;
}

.category-arrow {
  opacity: 0;
  transition: opacity 0.25s;
}

.category-card:hover .category-arrow {
  opacity: 0.7;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.result-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #cdb41d;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.25);
}

.result-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #cdb41d;
}

.result-description {
  font-size: 0.9rem;
  color: rgb(71, 70, 70);
  line-height: 1.5;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.no-results {
  text-align: center;
  margin-top: 4rem;
  line-height: 1.8;
}

.app-btn--primary {
  background: #0056D2;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.app-btn--primary:hover {
  background: #003B9C;
}

/* ===== Sub Header Section (navigation.html) ===== */
.sub-header {
    position: relative;
    width: 100%;
    background: rgba(0, 86, 210, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 3rem 1rem;
    direction: rtl;
    font-family: var(--font-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
}

.sub-header__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sub-header__caption {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.sub-header__btn {
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 3rem;
    padding: 0.7rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sub-header__btn:hover {
    background-color: #e4e8ff;
    transform: translateY(-3px);
}

/* Features Section */
.features {
  background-color: #fff;
  padding: 5rem 0;
}
.features .col-4 {
  text-align: center;
}
.feature-box {
  background: #F9FBFF;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
/* ===== Profile Section ===== */
.profile-section {
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.profile-header {
    background-color: #F4F6FA;
    border-radius: 1rem;
    padding: 2rem 1rem;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.user-name {
    font-weight: 700;
    color: #003B9C;
}
.profile-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* اجازه می‌دهد در موبایل به خط بعدی بروند */
    gap: 1rem; /* فاصله یکنواخت بین دکمه‌ها */
    margin-top: 1.5rem;
}

.profile-actions .app-btn {
    font-size: 1rem;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    flex: 0 0 auto;
    transition: all 0.3s ease;
}

.app-btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.app-btn--outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.app-btn--danger {
    background-color: #dc3545;
    color: #fff;
}
.app-btn--green {
    background-color: #28a745;
    color: #fff;
}
.app-btn--green:hover {
    background-color: #23923d;
}

.profile-divider {
    border: none;
    border-top: 2px solid #e5e7eb;
}

.post-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.5rem;
    transition: all 0.2s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.post-card__body {
    min-height: 180px;
}
.post-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.post-desc {
    font-size: 1rem;
    color: #555;
}
.post-status {
    font-weight: 600;
    color: #333;
}

.post-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.edit-btn, .delete-btn {
    border: none;
    background: var(--primary-color);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}
.delete-btn {
    background: #dc3545;
}
.edit-btn:hover {
    background-color: #003B9C;
}
.delete-btn:hover {
    background-color: #c82333;
}
.legal-warning {
  position: relative;
  border-radius: 1.4rem;
  padding: 1.6rem 1.9rem;
  margin: 1.5rem auto;
  width: 70%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  color: #1e1e1e;
  transition: all 0.35s ease;
  overflow: hidden;
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  text-align: right;
}
.legal-warning:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 86, 210, 0.15);
}

.warning-icon, .legal-warning i {
  margin-left: 0.6rem;
  vertical-align: middle;
}

.legal-warning h5 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: rgba(0, 0, 0, 0.78);
}

.legal-warning a {
  color: #0056D2;
  font-weight: 600;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.legal-warning a:hover {
  color: #003B9C;
  text-shadow: 0 0 6px rgba(0, 86, 210, 0.25);
}

.legal-warning--notice {
  background: rgba(255, 241, 180, 0.4);
  border: 1px solid rgba(255, 212, 59, 0.25);
}
.legal-warning--notice::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #FFD43B, #FFC800);
  opacity: 0.8;
  border-radius: 0 1rem 1rem 0;
}
.legal-warning--notice .warning-icon {
  color: #FFD43B;
  font-size: 1.3rem;
}

.legal-warning--payout {
  background: rgba(230, 245, 255, 0.5);
  border: 1px solid rgba(0, 86, 210, 0.25);
}
.legal-warning--payout::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #0056D2, #003B9C);
  opacity: 0.75;
  border-radius: 0 1rem 1rem 0;
}
.legal-warning--payout i.fa-wallet {
  color: #0056D2;
  font-size: 1.2rem;
}

.legal-warning--payout:hover {
  background: rgba(240, 248, 255, 0.6);
  box-shadow: 0 18px 50px rgba(0, 86, 210, 0.18);
}

.payout-amount {
  background: rgba(0, 86, 210, 0.08);
  color: #003B9C;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  display: inline-block;
  font-weight: 700;
  margin-top: 0.3rem;
}
.payout-zero {
  color: #888;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .legal-warning {
    color: #eaeaea;
    border-color: rgba(255, 255, 255, 0.08);
  }
  .legal-warning--notice {
    background: rgba(255, 230, 120, 0.08);
  }
  .legal-warning--payout {
    background: rgba(0, 86, 210, 0.1);
  }
}
/* ====== Post List Page ====== */
.post-list-page {
  padding-top: 4rem; /* به خاطر هدر ثابت */
  padding-bottom: 6rem;
  background: linear-gradient(180deg, #e9f0f8 0%, #dbe3f8 100%);
  min-height: 100vh;
}

.glassy-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1rem 2rem;
  box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}

.category-pill {
  padding: 0.5rem 1.2rem;
  background: rgba(255,255,255,0.25);
  border-radius: 2rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(0,86,210,0.15);
}
.category-pill:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,86,210,0.2);
}
.category-pill.active {
  background: var(--primary-color);
  color: #fff;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.post-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  direction: rtl;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,86,210,0.15);
}

.post-title a {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
}
.post-title a:hover {
  color: var(--secondary-color);
}
.post-desc {
  color: #444;
  margin: 1rem 0;
  line-height: 1.7;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: auto;
}
.read-more {
  background: var(--primary-color);
  color: white;
  border-radius: 2rem;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.read-more:hover {
  background: var(--secondary-color);
}

.no-posts {
  text-align: center;
  font-size: 1.2rem;
  padding: 3rem 0;
  color: #666;
}
.glassy-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  padding: 0.4rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.category-pill.active,
.category-pill:hover {
  background: #0056D2;
  color: #fff;
}

.special-btn {
  cursor: pointer;
  border: none;
}

.category-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.category-modal.hidden {
  display: none;
}

.category-modal-content {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 600px;
  max-height: 70vh;
  overflow-y: auto;
  text-align: right;
  color: #fff;
}

.category-modal-content a {
  display: inline-block;
  margin: 0.3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.3rem 0.7rem;
  color: #fff;
  text-decoration: none;
}

.category-modal-content a:hover {
  background: #0056D2;
}

.close-btn {
  float: left;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
}
.active-category {
  margin: 1rem 0 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  color: #043250;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.active-category strong {
  color: #0056D2;
  font-weight: 600;
}
.main-pill {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,86,210,0.25);
  border-radius: 2rem;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  color: var(--accent-color, #007185);
  cursor: pointer;
  transition: 0.3s;
}
.main-pill:hover {
  background: var(--accent-color);
  color: #fff;
}

.glassy-subbar {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1rem auto 2rem;
  padding: 1rem;
  background: rgba(240,240,255,0.3);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
}

.sub-pill {
  background: #ffffff30;
  padding: 0.4rem 1.2rem;
  border-radius: 1.8rem;
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 500;
  transition: all 0.25s ease;
}

.sub-pill:hover {
  background: var(--accent-color);
  color: #fff;
}

.hidden { display: none; }
.loading { color: #0056D2; font-weight: 600; text-align: center; }

/* دسته‌های کلی */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  justify-content: center;
}

.main-pill {
  background: #686767;
  color:  #f3f3f3;
  border: 1px solid #00718550;
  border-radius: 50px;
  padding: 8px 18px;
  cursor: pointer;
  transition: 0.25s ease;
}

.main-pill:hover, .main-pill.active {
  background: #007185;
  color: #fff;
}

/* نوار زیردسته‌ها */
.subcategory-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 18px;
  animation: fadeIn 0.3s ease;
}

.sub-pill {
  background: #00a1ad22;
  color: #00a1ad;
  border: 1px solid #00a1ad50;
  border-radius: 30px;
  padding: 6px 14px;
  text-decoration: none;
  transition: all 0.25s;
}

.sub-pill:hover {
  background: #00a1ad;
  color: #fff;
}

.loading, .no-sub, .error-msg {
  color: #ccc;
  font-size: 14px;
  padding: 6px;
}

.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ======= Glassy Pagination (Veernet) ======= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 3rem auto 1.5rem;
  flex-wrap: wrap;
  direction: rtl;
  font-family: var(--font-main);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  padding: 1rem 1.8rem;
  border-radius: 3rem;
  box-shadow: 0 3px 15px rgba(0, 86, 210, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-btn {
  text-decoration: none;
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.55rem 1.1rem;
  border-radius: 50%;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(0, 86, 210, 0.15);
  box-shadow: 0 2px 8px rgba(0, 86, 210, 0.08);
  transition: all 0.25s ease;
}

.page-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 86, 210, 0.2);
}

.page-btn.active {
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.25);
  transform: translateY(-2px);
}

.page-btn--nav {
  border-radius: 40%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 86, 210, 0.08);
  font-size: 1.2rem;
  border: 1px solid rgba(0, 86, 210, 0.15);
}
.page-btn--nav:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
}

.page-dots {
  color: #888;
  font-size: 1.1rem;
  margin: 0 0.4rem;
  user-select: none;
}

/* ======== Post Detail Page (Veernet Style) ======== */
.post-detail {
  max-width: 950px;
  margin: 0 auto;
  padding: 2rem 1.4rem;
  background-color: #fff;
  color: #222;
}

/* ===== Header ===== */
.post-detail-header {
  text-align: center;
  margin-bottom: 2rem;
}
.post-detail-title {
  font-size: 2rem;
  font-weight: 600;
  color: #0056d2;
  margin-bottom: 0.7rem;
}
.post-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: #666;
}
.text-success { color: #00a1ad; }
.text-danger { color: #ff4040; }
.text-warning { color: #cc9600; }
.text-muted { color: #888; }

/* ===== Gallery ===== */
.post-detail-gallery {
  margin-bottom: 2rem;
  overflow: hidden;
}
.gallery-track {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.6rem;
  padding-bottom: 0.6rem;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb {
  background-color: #00a1ad;
  border-radius: 3px;
}
.gallery-item {
  flex: 0 0 230px;
  height: 160px;
  border-radius: 6px;
  object-fit: cover;
  scroll-snap-align: center;
  transition: opacity 0.25s;
}
.gallery-item:hover { opacity: 0.85; }

/* Desktop — vertical center */
@media (min-width: 769px) {
  .gallery-track {
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
  }
  .gallery-item {
    width: 75%;
    height: auto;
  }
}

/* ===== Post Content ===== */
.post-detail-content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #2e2e2e;
  margin-bottom: 2.5rem;
  text-align: justify;
}
.post-detail-content p { margin-bottom: 1rem; }

/* ===== Download Section ===== */
.download-section {
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
}
.download-section p { color: #666; font-size: 0.95rem; }
.post-file {
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.btn {
  background-color: #0056d2;
  border: none;
  color: #fff;
  border-radius: 5px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background-color .25s ease;
}
.btn:hover { background-color: #3f86ec; }
.btn-success { background-color: #7fa8e3; }
.btn-success:hover { background-color: #7c9fd3; }

/* ===== Comments Section ===== */
.comments-section {
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}
.comments-section h3 {
  font-size: 1.2rem;
  color: #0056d2;
  margin-bottom: 1rem;
}
.comment-box {
  background-color: #f6f6f6;
  border-radius: 5px;
  border: 1px solid #e1e1e1;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.comment-author {
  color: #3b7ddd;
  font-weight: 600;
}
.comment-text {
  color: #333;
}
.comment-form input[type="submit"] {
  background-color: #3670c3;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color .25s ease;
}
.comment-form input[type="submit"]:hover { background-color: #00a1ad; }

/* ===== Related Posts ===== */
.related-posts {
  border-top: 1px solid #eee;
  padding-top: 1.6rem;
  margin-top: 3rem;
}
.related-posts h4 {
  color: #0056d2;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.related-card {
  background-color: #fcfcfc;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: border-color .25s ease;
}
.related-card:hover { border-color: #0056d2; }
.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.related-card-title {
  text-align: center;
  font-size: 0.9rem;
  padding: 0.6rem;
  color: #444;
}


/* ====== Veernet Footer ====== */
.veer-footer {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-color);
  font-family: var(--font-main);
  padding-top: 2rem;
  margin-top: 4rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 250px;
  min-width: 240px;
}

.footer-title {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links li a:hover {
  color: var(--primary-color);
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 2rem;
  padding: 1rem 0;
  background: rgba(0, 86, 210, 0.05);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  margin: 0;
  font-weight: 600;
  color: var(--primary-color);
}

.footer-bottom small {
  color: #666;
}
.legal-warning {
  max-width: 800px;
  background: rgba(255, 212, 59, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 212, 59, 0.4);
  color: #222;
  border-radius: 1rem;
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  text-align: right;
}

.warning-icon {
  color: #FFD43B;
  font-size: 1.4rem;
}

.legal-warning p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.legal-warning strong {
  color: var(--primary-color);
}
/* ====== Ticket Support Page (Veernet Style) ====== */
.ticket-section {
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf2ff 0%, #f8fbff 100%);
  direction: rtl;
  text-align: center;
  font-family: var(--font-main);
  padding: 2rem;
}

.ticket-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ticket-card {
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  border-radius: 1.5rem;
  padding: 2.8rem 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 86, 210, 0.15);
  animation: glassyFade 0.8s ease-in-out forwards;
}

@keyframes glassyFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ticket-header {
  margin-bottom: 2rem;
}
.ticket-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.ticket-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.ticket-subtitle {
  font-size: 1rem;
  color: #555;
}

.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.ticket-form input[type="text"],
.ticket-form input[type="email"],
.ticket-form select,
.ticket-form textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 0.8rem;
  border: 2px solid rgba(0, 86, 210, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: #222;
  transition: all 0.3s ease;
}
.ticket-form input:focus,
.ticket-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 86, 210, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 1);
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.9rem;
  font-weight: 700;
  transition: 0.3s;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
}

.ticket-messages .alert {
  margin-top: 1rem;
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-error,
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.back-btn {
  display: inline-block;
  margin-top: 1.8rem;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}
.back-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}
/* ====== Create / Edit Post Page (Veernet Premium Style) ====== */

.createpost-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f1f6ff 0%, #ffffff 100%);
  padding: 3rem 1rem;
  text-align: center;
  direction: rtl;
  font-family: var(--font-main);
}

.glassy-box.createpost-card {
  width: 100%;
  max-width: 750px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 86, 210, 0.12);
  padding: 3rem 2.5rem;
  animation: fadeInUp 0.7s ease-out both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.createpost-header {
  margin-bottom: 2rem;
}
.createpost-icon {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.createpost-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.createpost-subtitle {
  color: #666;
  font-size: 1rem;
}

.createpost-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: right;
}

.createpost-form label {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  display: block;
}
.createpost-form input[type="text"],
.createpost-form input[type="file"],
.createpost-form textarea,
.createpost-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(0, 86, 210, 0.15);
  font-size: 1rem;
  transition: all 0.3s ease;
  color: #222;
}
.createpost-form input:focus,
.createpost-form textarea:focus,
.createpost-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0,86,210,0.15);
  background: rgba(255,255,255,1);
}

.form-group-title {
  font-weight: 800;
  color: #333;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}
.form-group-title i {
  color: var(--secondary-color);
}

.app-btn--primary {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.app-btn--primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}
.back-btn {
  display: inline-block;
  margin-top: 2rem;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 2rem;
  padding: 0.6rem 1.4rem;
  transition: all 0.3s ease;
}
.back-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
/* ====== OTP Verification Page (Veernet Style) ====== */

.verify-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 95vh;
  background: linear-gradient(140deg, #eaf2ff 0%, #f9fbff 100%);
  font-family: var(--font-main);
  direction: rtl;
  text-align: center;
  padding: 2rem;
}

.verify-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 86, 210, 0.12);
  animation: fadeInUp 0.7s ease-out both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.verify-icon {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}
.verify-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.verify-subtitle {
  color: #555;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.verify-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.verify-input {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.4rem;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 2px solid rgba(0, 86, 210, 0.12);
  background: rgba(255, 255, 255, 0.85);
  width: 60%;
  font-weight: 800;
  transition: all 0.3s ease;
}
.verify-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(0, 86, 210, 0.25);
  background: rgba(255, 255, 255, 1);
}

.app-btn--primary {
  background-color: var(--primary-color);
  border-radius: 2rem;
  padding: 0.9rem 1.4rem;
  color: #fff;
  font-weight: 700;
  transition: all 0.3s ease;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.back-btn {
  display: inline-block;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  margin-top: 1.5rem;
  font-weight: 600;
  transition: 0.3s;
}
.back-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.verify-messages .alert {
  margin-top: 1rem;
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.alert-success {
  background-color: #d4edda;
  color: #155724;
}
.alert-error,
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}
/* ====== Verify Phone (Veernet Style) ====== */

.verifyphone-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  background: linear-gradient(135deg, #f3f7ff 0%, #ffffff 100%);
  padding: 2.5rem 1rem;
  text-align: center;
  direction: rtl;
  font-family: var(--font-main);
}

.verifyphone-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 86, 210, 0.12);
  animation: fadeInUp 0.7s ease-out both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.verifyphone-header {
  margin-bottom: 2rem;
}
.verifyphone-icon {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.verifyphone-title {
  color: var(--primary-color);
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.verifyphone-subtitle {
  font-size: 1rem;
  color: #555;
}

.verifyphone-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: right;
}
.verifyphone-form label {
  display: block;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}
.verifyphone-form input[type="text"],
.verifyphone-form input[type="tel"],
.verifyphone-form input[type="number"],
.verifyphone-form input[type="email"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  border: 2px solid rgba(0, 86, 210, 0.15);
  background: rgba(255, 255, 255, 0.82);
  color: #222;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.verifyphone-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0,86,210,0.15);
  background: rgba(255,255,255,1);
  outline: none;
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.back-btn {
  display: inline-block;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  margin-top: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.back-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.verifyphone-messages .alert {
  margin-top: 1rem;
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.alert-success {
  background-color: #d4edda;
  color: #155724;
}
.alert-error,
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}
/* ====== Veernet Checkout / Order Page ====== */

.order-section {
  direction: rtl;
  background: linear-gradient(140deg, #f3f6ff 0%, #ffffff 100%);
  min-height: 100vh;
  padding: 5rem 1rem;
  font-family: var(--font-main);
}

.order-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.glassy-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  border-radius: 1.3rem;
  box-shadow: 0 10px 30px rgba(0, 86, 210, 0.12);
  animation: fadeInUp 0.7s ease both;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.order-summary {
  flex: 1 1 320px;
  padding: 2rem 2.2rem;
}
.summary-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.summary-icon {
  font-size: 2.6rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0.6rem 0;
  font-weight: 600;
}
.item-title {
  color: #333;
}
.item-price {
  color: var(--primary-color);
}
.summary-total {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  text-align: left;
  border-top: 2px solid rgba(0,86,210,0.15);
  padding-top: 1rem;
}

.order-form-box {
  flex: 1 1 540px;
  padding: 2.5rem 2.2rem;
}
.order-header {
  text-align: center;
  margin-bottom: 2rem;
}
.order-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}
.order-subtitle {
  color: #666;
  font-size: 0.95rem;
}

.order-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}
.order-form input[type="text"],
.order-form input[type="tel"],
.order-form input[type="email"],
.order-form textarea,
.order-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: rgba(255,255,255,0.85);
  border: 2px solid rgba(0, 86, 210, 0.15);
  transition: all 0.3s ease;
}
.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0,86,210,0.15);
  outline: none;
}

.app-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  margin-top: 1rem;
  transition: all 0.3s ease;
}
.app-btn--primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}
/* ======= Veernet Cart Page ======= */
.cart-section {
  direction: rtl;
  background: linear-gradient(135deg, #f3f7ff 0%, #ffffff 100%);
  min-height: 90vh;
  padding: 6rem 1.5rem;
  font-family: var(--font-main);
}

.header h1 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  align-items: center;
}

.glassy-cart {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  box-shadow: 0 15px 40px rgba(0,86,210,0.1);
  padding: 2.2rem;
  max-width: 850px;
  margin: auto;
  animation: fadeInUp 0.7s ease-out both;
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.9);
  border-radius: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,86,210,0.15);
}
.product-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid rgba(0,86,210,0.2);
}

.product-info {
  flex-grow: 1;
  padding: 0 1rem;
}
.product-info h3 {
  color: #222;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.product-info h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}
.product-info h3 a:hover {
  color: var(--secondary-color);
}
.product-info .price {
  font-weight: 700;
  color: var(--primary-color);
}

.delete {
  background: rgba(255, 67, 67, 0.9);
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.delete:hover {
  background-color: #dc3545;
  transform: scale(1.05);
}

.empty-cart {
  text-align: center;
  color: #777;
  margin: 3rem 0;
  font-size: 1.1rem;
}

.cart-total-price {
  background: rgba(0,86,210,0.06);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  margin: 2rem 0 1rem;
  text-align: right;
  font-weight: 700;
  color: var(--secondary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-total-price span {
  color: var(--primary-color);
}

.checkout-button {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.checkout-button a {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 2rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.continue-btn a {
  background: var(--primary-color);
  color: #fff;
}
.continue-btn a:hover {
  background: var(--secondary-color);
}

.back-btn a {
  background: rgba(255,255,255,0.8);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.back-btn a:hover {
  background: var(--primary-color);
  color: #fff;
}
/* ====== Veernet Ultra Cart Style ====== */
.cart-section {
  direction: rtl;
  font-family: var(--font-main);
  background: linear-gradient(135deg, #eaf1ff, #ffffff 65%);
  min-height: 100vh;
  padding: 7rem 1rem 4rem;
}

.glassy-header {
  text-align: center;
  margin-bottom: 3rem;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.6);
  padding: 1.8rem;
  border-radius: 1.2rem;
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.08);
  max-width: 700px;
  margin-inline: auto;
}
.glassy-header h1 {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 2rem;
}
.glassy-header p {
  color: #666;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.2rem auto;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,86,210,0.05);
  transition: all 0.4s ease;
  max-width: 900px;
  border: 1px solid rgba(0,86,210,0.1);
}
.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,86,210,0.1);
}

.product-image img {
  width: 100px;
  height: 100px;
  border-radius: 1rem;
  object-fit: cover;
  border: 2px solid rgba(0,86,210,0.2);
}

.product-info {
  flex: 1;
  margin-right: 1rem;
}
.product-info h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.price-tag {
  color: #333;
  font-weight: 600;
}
.price-tag .price {
  color: var(--primary-color);
}

.delete {
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background: rgba(255, 60, 60, 0.9);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}
.delete:hover {
  background: #dc3545;
  transform: scale(1.1);
}

.empty-cart {
  text-align: center;
  color: #777;
  font-size: 1.1rem;
  padding: 3rem 0;
}

.glassy-footer {
  max-width: 900px;
  margin: 3rem auto 1rem;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(15px);
  border-radius: 1.2rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 6px 20px rgba(0,86,210,0.08);
}
.cart-total-price {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: right;
  font-size: 1.1rem;
}
.cart-total-price span {
  color: var(--primary-color);
}

.checkout-button {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.checkout-button a {
  padding: 0.9rem 1.8rem;
  border-radius: 2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}
.continue-btn a {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0,86,210,0.2);
}
.continue-btn a:hover {
  background-color: var(--secondary-color);
}

.back-btn a {
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.back-btn a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {

    .home-hero {
        flex-direction: column;
        text-align: center;
        border-radius: 0 0 40px 40px;
    }
    .hero-illustration {
        width: 80%;
        margin-top: 2rem;
    }
    #mainNav {
        flex-wrap: wrap;
        justify-content: center;
    }

    #mainNav a {
        margin: 0.6rem 1rem;
        display: inline-block;
    }
    .nav-search {
        margin-top: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .nav-search input[type="text"],
    .nav-search input[type="search"] {
        width: 60%;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .category-pill {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    }
    .post-card {
      padding: 1.2rem;
    }
    .edit-profile-card {
    padding: 2.2rem 1.5rem;
    }
    .auth-title {
      font-size: 1.6rem;
    }
    .app-btn {
      width: 100%;
    }
    .password-change-card {
    padding: 2.2rem 1.5rem;
    }
    .auth-title {
      font-size: 1.6rem;
    }
    .app-btn {
      width: 100%;
    }
    .success-card {
    padding: 2rem 1.5rem;
    }
    .success-title {
      font-size: 1.6rem;
    }
    .success-text {
      font-size: 1rem;
    }
    .success-btn {
      width: 100%;
    }
    .password-reset-card {
    padding: 2.2rem 1.5rem;
    }
    .auth-title {
      font-size: 1.6rem;
    }
    .auth-form input {
      font-size: 0.95rem;
    }
    .app-btn {
      width: 100%;
    }
    .reset-done-card {
    padding: 2.2rem 1.4rem;
    }
    .success-title {
      font-size: 1.6rem;
    }
    .success-text {
      font-size: 1rem;
    }
    .app-btn {
      width: 100%;
    }
    .reset-confirm-card {
    padding: 2.2rem 1.4rem;
    }
    .auth-title {
      font-size: 1.6rem;
    }
    .auth-form input {
      font-size: 0.95rem;
    }
    .app-btn {
      width: 100%;
    }
    .reset-complete-card {
    padding: 2.2rem 1.4rem;
    }
    .success-title {
      font-size: 1.6rem;
    }
    .success-message {
      font-size: 1rem;
    }
    .app-btn {
      width: 100%;
    }
    .search-title {
    font-size: 1.8rem;
    }
    .result-card {
      padding: 1.5rem;
    }
    .result-title {
      font-size: 1.1rem;
    }
    .pagination {
    gap: 0.4rem;
    padding: 0.8rem 1.2rem;
    }
    .page-btn {
      font-size: 0.9rem;
      padding: 0.45rem 0.9rem;
    }
    .page-btn--nav {
      width: 38px;
      height: 38px;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-actions {
        text-align: center;
    }
    .post-card {
        margin-top: 1rem;
    }
    .post-detail {
        padding: 7rem 1rem 4rem;
    }
    .post-detail-title {
        font-size: 1.6rem;
    }
    .footer-top {
    flex-direction: column;
    text-align: center;
    }
    .footer-socials {
      justify-content: center;
    }
    .legal-warning {
    flex-direction: column;
    text-align: center;
    }
    .warning-icon {
      margin-bottom: 0.5rem;
    }
    .order-section {
    padding: 3rem 1rem;
    }
    .order-summary, .order-form-box {
      flex: 1 1 100%;
    }
    .product-item {
    flex-direction: column;
    text-align: center;
    }
    .product-item img {
      margin-bottom: 1rem;
    }
    .product-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    }
    .delete {
      margin-top: 0.5rem;
    }
    .category-pill {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  .post-card {
    padding: 1.2rem;
    margin-top: 1rem;
  }

  .post-detail {
    padding: 7rem 1rem 4rem;
  }

  .post-detail-title {
    font-size: 1.6rem;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .legal-warning {
    flex-direction: column;
    text-align: center;
  }

  /* گالری نسخه موبایل */
  .post-detail-gallery {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .post-detail-gallery::after {
    content: "";
    flex: 0 0 1rem;
  }

  .gallery-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.8rem;
    width: max-content;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity; /* نه اجباری، فقط کمک‌*/
    padding: 0 0.8rem;
  }

  .post-detail-gallery img,
  .post-detail-gallery .gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 240px;
    scroll-snap-align: center;
  }
  body, html {
    overflow-x: hidden;
  }

  /* علاقه‌ای به مات یا blur نداریم */
  .gallery-item.active {
    transform: scale(1.02);
    filter: brightness(1.05) saturate(1.05);
  }
  .glassy-table {
      font-size: 0.9rem;
      min-width: 600px;
    }
  /*---------------------------------------------------------*/
  .glassy-table {
    min-width: 100% !important;  /* حذف محدودیت عرض ثابت */
    width: 100% !important;
    display: block;
    border-collapse: collapse;
  }

  .glassy-table-wrapper {
    overflow-x: hidden !important; /* جلوگیری از اسکرول افقی */
    padding: 0;
    margin: 1rem auto;
  }

  .glassy-table thead {
    display: none;
  }

  .glassy-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.9rem 1rem;
  }

  .glassy-table td {
    display: block;
    text-align: right;
    padding: 0.5rem 0.6rem;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .glassy-table td:first-child {
    font-weight: 700;
    color: #FFD43B;
  }

  .glassy-table td:nth-child(2)::before {
    content: "سایت‌های دیگر: ";
    color: #ff7675;
    font-weight: 600;
    display: block;
  }

  .glassy-table td:nth-child(3)::before {
    content: "Veernet: ";
    color: #03d1df;
    font-weight: 600;
    display: block;
  }
}
@media (max-width: 576px) {
  .ticket-card {
    padding: 2rem 1.5rem;
  }
  .ticket-title {
    font-size: 1.5rem;
  }
  .glassy-box.createpost-card {
    padding: 2rem 1.5rem;
  }
  .createpost-title {
    font-size: 1.6rem;
  }
  .verify-card {
    padding: 2rem 1.5rem;
  }
  .verify-input {
    width: 80%;
    font-size: 1.3rem;
    letter-spacing: 0.3rem;
  }
  .verifyphone-card {
    padding: 2rem 1.5rem;
  }
  .verifyphone-title {
    font-size: 1.6rem;
  }
}
@media (max-width: 480px) {
  .post-meta {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
  }
  .post-detail-title { font-size: 1.6rem; }
}