/*-----------------------------------------------CONSTANT PART OF APP---------------------------------*/
:root {
  --bg: #8a8cff;
  --card: #111827;
  --border: #1f2933;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --danger: #ef4444;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
}

.external-box {
  margin-top: 20px;
  float: right;
}

p {
  font-size: 16px;        
  color: #ffffff;
  margin-bottom: 14px;
  margin-left: 20px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

section {
  margin-left: 24px;
  margin-right: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 24px;
  margin-bottom: 14px;
  margin-top: 24px;
}

label { 
  display: block; 
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.demo {
  background: #1e293b;
  color: var(--muted);
}

.badge.pro {
  background: var(--success);
  color: #022c22;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

button {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #020617;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow:
    0 0 0 rgba(56, 189, 248, 0.0);
}

button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.6),
    0 0 24px rgba(99, 102, 241, 0.4);
}

button:active {
  transform: scale(0.97);
  box-shadow:
    0 0 8px rgba(56, 189, 248, 0.8);
}

button.danger {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #020617;
}

button.danger:hover {
  box-shadow:
    0 0 12px rgba(239, 68, 68, 0.6),
    0 0 24px rgba(249, 115, 22, 0.4);
}

button.primary {
  background: var(--accent);
  color: #fff9bb;
  border: none;
}







h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 20px;

  background: linear-gradient(135deg, #38bdf8, #38bdf8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h5 {
  font-size: 14px;        
  color: #ffffff;
}

h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 28px 0 6px 24px;
}

h6 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 28px 0 6px 24px;
}

.gradient-format1 {
  display: inline-block;
  background: linear-gradient(135deg,  #a33e00, #ff6f00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(56,189,248,0.3));
}

.gradient-format2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(135deg,#525252,#9d9d9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(56,189,248,0.3));
}

/*========================= CONTACT ============================*/

.contact-section {
  /*padding: 10px 10px;
  background: linear-gradient(135deg, #000229, #070056);
  position: relative;*/

    background: var(--card-bg);
    border-radius: 15px;
    padding: 2px;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: transform 0.3s ease;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #a1e3ff, #6366f1);
  opacity: 0.6;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto 20px;
  text-align: center;
}

.contact-header {
  margin-bottom: 30px;
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
  display: inline-block;
  background: linear-gradient(135deg, #ff5100, #ffdbc4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-text {
  font-size: 1rem;
  background: linear-gradient(135deg,  #ffffff, #747474);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #b7c0ff;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.7;
}

/*=================================== CONTACT CARDS ================================*/

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 16px 28px;
  min-width: 260px;
  border-radius: 14px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(130,150,255,0.4);
}

.contact-label {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffb97f;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 500;
}

/*================================== FOOTER ========================================*/
.footer {
  background: #0a0c10;
  padding: 40px 20px 25px;
  font-size: 14px;
  color: #8b8f98;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-built {
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 40px;
  width: 40px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
  border-radius: 8px;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-legal {
  margin-bottom: 20px;
  text-align: center;
}

.footer-legal a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s ease;
}

.footer-legal a:hover {
  color: #df8200;
}

.footer-right {
  display: flex;
  align-items: center;   /* این مهم‌ترین خطه */
  gap: 10px;
}

.footer-right:hover .footer-logo {
  transform: scale(1.05);
  transition: 0.3s ease;
}
/*=============================== TRADE MARK ================================*/

.tm-mark {
    position: relative;
    top: -15px;         /* کمی بالاتر از لبه لوگو */
    right: 8px;      /* چسبیده به لبه سمت راست لوگو */
    font-size: 20px;   /* سایز ظریف */
    font-weight: normal;
    color: #ffffff;    /* رنگ آبی درخشان لایسنس */
    opacity: 1;      /* کمی شفافیت برای شیک‌تر شدن */
}


/*******************************************************************************/
.app-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
  border-radius: 12px;
  transition: transform 0.3s ease;
  position: absolute;
  top: 50px;
}

.app-logo:hover {
  transform: scale(1.1);
}

.logo-1 {
  right: 50px; /* لوگوی اول چسبیده به راست */
}

.logo-2 {
  right: 120px; /* لوگوی دوم با فاصله کنار اولی (50 + 55 عرض لوگو + 15 فاصله) */
}

/*------------------------------------------------CONSTANT PART OF APP END--------------------------------------*/

.container {
    width: 100%;
    max-width: 800px;
    background: #252525;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/*
h1, h3 {
    text-align: center;
    color: #00bcd4;
}
*/
textarea {
    width: 100%;
    height: 200px;
    background: #121212;
    color: #00ff41;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    direction: ltr; /* کدها چپ‌چین باشند */
}

.controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/*
.input-group {
    display: flex;
    gap: 10px;
}
*/
input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    background: #333;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.8;
}

#testBtn { background-color: #2196F3; color: white; width: 100%; }
#saveBtn { background-color: #4CAF50; color: white; }

hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 30px 0;
}

#soundList {
    list-style: none;
    padding: 0;
}

.btn-group button {
    padding: 6px 8px; /* پدینگ کمتر */
    font-size: 11px; /* فونت کوچک‌تر */
    border-radius: 4px;
    white-space: nowrap; /* جلوگیری از شکستن متن دکمه */
}

.wav-btn {
    background-color: #27ae60; /* سبز برای دانلود */
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.wav-btn:hover {
    background-color: #2ecc71;
}


/*--------------------------------------------------------------------*/
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #eeeeee;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    /* تغییر از rtl به ltr */
    direction: ltr; 
}

/* اصلاح چیدمان اینپوت و دکمه Save */
.input-group {
    display: flex;
    flex-direction: row; /* چیدمان افقی */
    gap: 10px;
}

/* اصلاح لیست صداها */
.sound-item {
    background: #333;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* تغییر بوردر از راست به چپ */
    border-left: 4px solid #00bcd4; 
    border-right: none;
}


.sound-info {
    /* تغییر cursor از pointer به default */
    cursor: default; 
    flex-grow: 1;
    text-align: left;
}

.btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    /* دکمه‌ها در سمت راست قرار بگیرند */
    justify-content: flex-end; 
}

#discardBtn {
    background-color: #616161;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
}

#discardBtn:hover {
    background-color: #424242;
}


/*---------------------------------------------------------------------*/
/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid #00bcd4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
    min-width: 200px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #252525;
    margin: 15% auto;
    padding: 25px;
    border: 1px solid #444;
    width: 350px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-confirm { background: #f44336; color: white; } /* قرمز برای حذف */
.btn-cancel { background: #757575; color: white; }





/**********************************************************************************************/

:root {
  --bg: #8a8cff;
  --card: #111827;
  --border: #1f2933;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --danger: #ef4444;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
}

.external-box {
  margin-top: 20px;
  float: right;
}

p {
  font-size: 16px;        
  color: #ffffff;
  margin-bottom: 14px;
  margin-left: 20px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

section {
  margin-left: 24px;
  margin-right: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 24px;
  margin-bottom: 14px;
  margin-top: 24px;
}

label { 
  display: block; 
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.demo {
  background: #1e293b;
  color: var(--muted);
}

.badge.pro {
  background: var(--success);
  color: #022c22;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

button {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #020617;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow:
    0 0 0 rgba(56, 189, 248, 0.0);
}

button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.6),
    0 0 24px rgba(99, 102, 241, 0.4);
}

button:active {
  transform: scale(0.97);
  box-shadow:
    0 0 8px rgba(56, 189, 248, 0.8);
}

button.danger {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #020617;
}

button.danger:hover {
  box-shadow:
    0 0 12px rgba(239, 68, 68, 0.6),
    0 0 24px rgba(249, 115, 22, 0.4);
}

button.primary {
  background: var(--accent);
  color: #fff9bb;
  border: none;
}

input {
  background: linear-gradient(180deg, #020617, #020617);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  width: 120px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

input:hover {
  border-color: #334155;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

input:focus-visible {
  transform: translateY(-1px);
}

input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}

input.success {
  border-color: var(--success);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

/* ====================================== */

.unlimit {
  font-size: 12px;
  color: #69a2ff;
}

hr {
  border: none;
  border-top: 1px solid #2ad4ff;
  margin: 12px 0;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #000721;   
  
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;

  padding-right: 36px;

  color: #eee;
  border: 1px solid #595198;
  border-radius: 6px;
}


h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 20px;

  background: linear-gradient(135deg, #38bdf8, #38bdf8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h5 {
  font-size: 14px;        
  color: #ffffff;
}

h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 28px 0 6px 24px;
}

h6 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 28px 0 6px 24px;
}

.gradient-format1 {
  display: inline-block;
  background: linear-gradient(135deg,  #a33e00, #ff6f00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(56,189,248,0.3));
}

.gradient-format2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(135deg,#525252,#9d9d9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(56,189,248,0.3));
}

/*========================= CONTACT ============================*/

.contact-section {
  /*padding: 10px 10px;
  background: linear-gradient(135deg, #000229, #070056);
  position: relative;*/

    background: var(--card-bg);
    border-radius: 15px;
    padding: 2px;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: transform 0.3s ease;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #a1e3ff, #6366f1);
  opacity: 0.6;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto 20px;
  text-align: center;
}

.contact-header {
  margin-bottom: 30px;
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
  display: inline-block;
  background: linear-gradient(135deg, #ff5100, #ffdbc4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-text {
  font-size: 1rem;
  background: linear-gradient(135deg,  #ffffff, #747474);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #b7c0ff;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.7;
}

/*=================================== CONTACT CARDS ================================*/

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 16px 28px;
  min-width: 260px;
  border-radius: 14px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(130,150,255,0.4);
}

.contact-label {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffb97f;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 500;
}

/*================================== FOOTER ========================================*/
.footer {
  background: #0a0c10;
  padding: 40px 20px 25px;
  font-size: 14px;
  color: #8b8f98;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-built {
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 40px;
  width: 40px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
  border-radius: 8px;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-legal {
  margin-bottom: 20px;
  text-align: center;
}

.footer-legal a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s ease;
}

.footer-legal a:hover {
  color: #df8200;
}

.footer-right {
  display: flex;
  align-items: center;   /* این مهم‌ترین خطه */
  gap: 10px;
}

.footer-right:hover .footer-logo {
  transform: scale(1.05);
  transition: 0.3s ease;
}
/*=============================== TRADE MARK ================================*/

.tm-mark {
    position: relative;
    top: -15px;         /* کمی بالاتر از لبه لوگو */
    right: 8px;      /* چسبیده به لبه سمت راست لوگو */
    font-size: 20px;   /* سایز ظریف */
    font-weight: normal;
    color: #ffffff;    /* رنگ آبی درخشان لایسنس */
    opacity: 1;      /* کمی شفافیت برای شیک‌تر شدن */
}


/*******************************************************************************/
.app-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
  border-radius: 12px;
  transition: transform 0.3s ease;
  position: absolute;
  top: 50px;
}

.app-logo:hover {
  transform: scale(1.1);
}

.logo-1 {
  right: 50px; /* لوگوی اول چسبیده به راست */
}

.logo-2 {
  right: 120px; /* لوگوی دوم با فاصله کنار اولی (50 + 55 عرض لوگو + 15 فاصله) */
}


/*----------------------------Trade Suite--------------------------*/
:root {
    --navy-bg: #0a192f;
    --card-bg: #112240;
    --accent-color: #64ffda; /* یا هر رنگی که در گرادینت Adel داری */
    --text-main: #e6f1ff;
    --text-dim: #8892b0;
    --open-green: #00ff41;
    --close-red: #ff4b2b;
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 0px 20px 0px 20px;
    width: 100%;
}

.session-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: transform 0.3s ease;
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.analog-clock {
    width: 150px;
    height: 150px;
    margin: 15px auto;
}
/*
.clock-face {
    fill: none;
    stroke: var(--text-dim);
    stroke-width: 1;
}

*/
.clock-marks line {
    stroke-linecap: round;
}

.clock-numbers text {
    font-family: 'Inter', sans-serif;
    user-select: none; /* جلوگیری از انتخاب شدن متن اعداد */
    pointer-events: none;
}
/*
.clock-face {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 0.5;
}
*/


/* رینگ اصلی دور ساعت */
.clock-face {
    fill: var(--card-bg); /* داخلی‌ترین بخش ساعت */
    stroke: #233554; /* رنگ پایه رینگ */
    stroke-width: 4; /* ضخامت رینگ */
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

/* افکت نوری برای وقتی که سشن باز است */
.status-open + .clock-container .clock-face {
    stroke: var(--accent-color); /* تغییر رنگ رینگ به رنگ برند در زمان باز بودن */
    transition: stroke 0.5s ease;
    filter: drop-shadow(0 0 8px var(--accent-color));
    
}

/* دایره مرکزی که عقربه‌ها به آن وصل هستند */
.center-dot {
    fill: var(--accent-color);
    stroke: var(--navy-bg);
    stroke-width: 1;
}

.hand {
    stroke-linecap: round;
    transform-origin: 50px 50px;
    transition: transform 0.5s cubic-bezier(0.4, 2.08, 0.55, 0.44); /* حرکت نرم عقربه */
}

.hour-hand { stroke: var(--text-main); stroke-width: 3; }
.min-hand { stroke: var(--text-dim); stroke-width: 2; }
.sec-hand { stroke: var(--accent-color); stroke-width: 1; }

.status-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.status-open { color: var(--open-green); background: rgba(0, 255, 65, 0.1); }
.status-closed { color: var(--close-red); background: rgba(255, 75, 43, 0.1); }

.countdown {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--accent-color);
}

/*------------------------------------Lot Size-----------------------------------*/
/*.calc-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin: 20px;
    border: 2px solid #233554;
    max-width: 500px;
}*/

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    background: var(--navy-bg);
    border: 1px solid #233554;
    color: var(--text-main);
    padding: 10px;
    border-radius: 8px;
    outline: none;
    margin-bottom: 20px;
}

.input-group input:focus {
    border-color: var(--accent-color);
}

.calc-result {
    background: var(--navy-bg);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    color: var(--text-dim);
}

.result-item.highlight {
    color: var(--accent-color);
    font-size: 1.2rem;
    border-top: 1px solid #233554;
    padding-top: 10px;
    margin-top: 10px;
}

.highlight-direction {
    font-size: 1rem;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

/* استایل برای حالت خرید */
.buy-mode {
    color: #00ff88; /* سبز نئونی */
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* استایل برای حالت فروش */
.sell-mode {
    color: #ff4b2b; /* قرمز روشن */
    background: rgba(255, 75, 43, 0.1);
    border: 1px solid rgba(255, 75, 43, 0.3);
}

/* تغییر رنگ Border اینپوت‌ها بر اساس جهت */
.input-buy-focus:focus { border-color: #00ff88 !important; }
.input-sell-focus:focus { border-color: #ff4b2b !important; }

/*----------------------------------------News-------------------------------*/

/* مدیریت کانتینر والد برای ویجت */
.news-wrapper .tradingview-widget-container {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center; /* وسط‌چین کردن ویجت */
    background: transparent !important;
}

/* اصلاح نمایش خودِ ویجت از بیرون */
.news-wrapper iframe {
    border-radius: 12px !important; /* هماهنگی با گوشه‌های گرد باکس Adel */
    width: 100% !important;
    max-width: 100% !important;
}

/* حذف بخش کپی‌رایت که ظاهر را بهم می‌ریزد، بدون دست زدن به HTML */
.tradingview-widget-copyright {
    display: none !important;
}

/*--------------------------------------------------------------------------------*/
.tools-container {
    display: flex;
    flex-direction: row; /* قرارگیری کنار هم */
    gap: 20px;
    padding: 20px;
    align-items: stretch; /* هماهنگ کردن ارتفاع هر دو باکس */
    /*max-width: 1200px;*/
    width: 100%;
    margin: 0 auto;
}

.calendar-card {
    flex: 1; /* هر دو باکس به یک اندازه فضا بگیرند */
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid #233554;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 600px;
}



.calc-card {
    flex: 1; /* هر دو باکس به یک اندازه فضا بگیرند */
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid #233554;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* تنظیم اختصاصی برای ویجت داخل باکس */
.calendar-card .tradingview-widget-container {
    flex-grow: 1; /* ویجت کل فضای باقی‌مانده باکس را پر کند */
    min-height: 400px; 
}

/* ریسپانسیو برای موبایل: زیر هم قرار بگیرند */
@media (max-width: 768px) {
    .tools-container {
        flex-direction: column;
    }
}

/*------------------------------------------Ticker--------------------------*/
.ticker-wrapper {
    /*margin: 40px; */
    padding: 0px 20px 0px 20px;
}

.ticker-container {
    background: var(--card-bg);
    border: 2px solid #233554; /* رینگ ضخیم مشابه ساعت‌ها */
    border-radius: 12px;
    overflow: hidden; /* برای اینکه لبه‌های تیز ویجت بیرون نزند */
    padding: 5px 0; /* کمی فاصله عمودی برای زیبایی */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* هماهنگ کردن فونت داخلی ویجت با تم سایت (تا جای ممکن) */
tv-ticker-tape {
    font-family: 'Inter', sans-serif !important;
}

h3{
  text-align: center;
  color: #e07400;
}


/*-----------------------------------Reminder------------------------------------------*/
/*
.reminder-container {
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid #233554;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
*/
/*
.reminder-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
    */
/*
.input-row.split {
    display: flex;
    gap: 10px;
}
*/

/*
.reminder-inputs input:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

#setReminderBtn {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: #0a192f;
    font-weight: 800;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s;
}

#setReminderBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}
*/

/* کانتینر لیست یادآوری‌ها */
.active-reminders {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px; /* فاصله بین آیتم‌ها */
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px; /* فاصله برای اسکرول‌بار */
}

/* استایل هر آیتم یادآوری */
.reminder-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #00d2ff; /* نوار رنگی کنار هر آیتم */
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.reminder-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(3px);
}

.reminder-item-text {
    display: block;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.reminder-item-time {
    display: block;
    font-size: 0.75rem;
    color: #8892b0; /* رنگ مات برای ساعت */
    font-family: 'Inter', sans-serif;
}

/* دکمه حذف ظریف‌تر */
.delete-rem {
    background: transparent;
    border: none;
    color: #ff4b2b;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s;
}

.delete-rem:hover {
    background: rgba(255, 75, 43, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/*-----------------------------------Reminder (Aligned)------------------------------------------*/

.reminder-container {
    flex: 1;
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid #233554;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reminder-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px; /* فاصله بین ردیف‌ها */
}

.reminder-inputs input {
    width: 100%;
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid #233554;
    color: #e6f1ff;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

/* ردیف دوم: تاریخ و ریجن */
.input-row.split {
    display: flex;
    gap: 10px; /* فاصله بین دو اینپوت */
    width: 100%;
}

/* اختصاص سهم عرض به هر کدام */
.input-row.split input[type="datetime-local"] {
    flex: 1.5; /* تاریخ کمی عریض‌تر باشد */
}

.input-row.split select {
    flex: 1; /* منطقه زمانی جمع‌وجورتر */
}

/* استایل یکسان برای تمام ورودی‌ها و دکمه */
.reminder-inputs input, 
.reminder-inputs select,
#setReminderBtn {
    height: 45px; /* قد یکسان برای همه ابزارها */
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box; /* برای محاسبه دقیق پدینگ در عرض */
}

.reminder-inputs input, 
.reminder-inputs select {
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid #233554;
    color: #e6f1ff;
    padding: 0 12px; /* پدینگ داخلی */
    outline: none;
    transition: all 0.3s ease;
}

.reminder-inputs input:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

/* دکمه ست کردن - تراز با بقیه */
#setReminderBtn {
    width: 100%;
    background: linear-gradient(135deg, #ff9500 0%, #ca6800 100%);
    color: #0a192f;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#setReminderBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
    filter: brightness(1.1);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 480px) {
    .input-row.split {
        flex-direction: column; /* در موبایل زیر هم بروند */
    }
    .reminder-inputs input, .reminder-inputs select, #setReminderBtn {
        height: 40px;
    }
}


/* ردیف دوم حالا فقط شامل تاریخ است */
.input-row.split input[type="datetime-local"] {
    flex: 1 !important; /* تمام عرض را می‌گیرد */
    width: 100%;
}

/* نمایش تعداد آلارم‌ها (اختیاری - برای زیبایی) */
.active-reminders::before {
    content: "Active Alarms (" attr(data-count) "/10)";
    display: block;
    font-size: 0.7rem;
    color: #8892b0;
    margin-bottom: 10px;
}

/****************************************************************************/

.alert-popup {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #ff4b2b 0%, #ff8100 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    z-index: 9999; /* بالاتر از همه المان‌ها */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    min-width: 280px;
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-content p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.alert-content button {
    background: white;
    color: #ff4b2b;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 800;
    margin-left: auto;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/*---------------------------------Calendar--------------------------------------*/
/* ردیف اصلی برای قرارگیری ساعت و تقویم کنار هم */
.time-calendar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: rgba(0, 0, 0, 0.05);
    padding: 0 20px 0 20px;
    border-radius: 8px;
}

/* باکس ساعت دیجیتال با تم لیزری/نئونی */
.digital-box {
    background: #0a0a0a; /* پس‌زمینه تیره برای جلوه لیزر */
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #333;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.current-time {
    font-family: 'Courier New', Courier, monospace; /* فونت دیجیتالی */
    color: #00ff41; /* سبز لیزری معروف (Matrix style) */
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.7); /* افکت تابش نئون */
    letter-spacing: 2px;
}

/* استایل تقویم رومیزی (سمت راست) */
.calendar-box {
    display: flex;
    flex-direction: column;
    min-width: 55px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid #ccc;
    width: 35%;
}

.cal-day {
    background: #d32f2f;
    color: white;
    font-size: 0.7rem;
    padding: 2px;
    text-align: center;
    font-weight: bold;
}

.cal-date {
    color: #333;
    font-size: 0.8rem;
    padding: 5px;
    text-align: center;
    font-weight: 900;
}

/**************************************************************************************/
/* کانتینر اصلی دکمه‌ها */
.alarm-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}


/* اصلاح تراز عمودی دکمه */
.alarm-btn {
    position: relative;
    flex: 1;
    min-height: 40px; /* یک ارتفاع ثابت کمک می‌کند تراز بودن را بهتر حس کنی */
    display: flex;
    align-items: center;    /* تراز عمودی */
    justify-content: center; /* تراز افقی */
    padding: 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* تراز داخلی محتوا */
    gap: 4px;
    pointer-events: none; /* جلوگیری از تداخل با کلیک */
}

/* برای اینکه آیکون و متن در یک راستا باشند */
.btn-content i {
    font-size: 1rem;
    line-height: 1; /* حذف فاصله اضافی زیر آیکون */
    margin: 0;
}

.btn-content span {
    font-size: 0.8rem;
    line-height: 1;
    margin: 0;
    white-space: nowrap; /* جلوگیری از شکستن خط */
}


/* افکت درخشش پشت دکمه */
.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    opacity: 0.2;
    z-index: 1;
}

/* استایل اختصاصی برای OPEN (سبز) */
.open-alarm-btn {
    --glow-color: #00ff41;
}
.open-alarm-btn:hover {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.05);
}
.open-alarm-btn:hover .btn-content {
    color: #00ff41;
}

/* استایل اختصاصی برای CLOSE (قرمز) */
.close-alarm-btn {
    --glow-color: #ff4b4b;
}
.close-alarm-btn:hover {
    border-color: #ff4b4b;
    background: rgba(255, 75, 75, 0.05);
}
.close-alarm-btn:hover .btn-content {
    color: #ff4b4b;
}

/* انیمیشن هاور */
.alarm-btn:hover .btn-glow {
    width: 150px;
    height: 150px;
}

.alarm-btn:active {
    transform: scale(0.95);
}


/*----------------------------REMINDER DATE---------------------------*/
.date-wrapper {
    position: relative;
    width: fit-content;
}

#remTime {
    background: rgba(15, 23, 42, 0.6); /* پس‌زمینه سرمه‌ای هماهنگ با لوگو */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    padding: 10px 15px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    /* برای حذف ظاهر پیش‌فرض در برخی مرورگرها */
    appearance: none;
    -webkit-appearance: none;
}

/* استایل بخش آیکون تقویم که خودِ input دارد */
#remTime::-webkit-calendar-picker-indicator {
    filter: invert(50%) sepia(100%) saturate(500%) hue-rotate(10deg); /* تغییر رنگ آیکون به تم نارنجی */
    cursor: pointer;
    opacity: 0.8;
}

#remTime:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #ff7a00; /* رنگ نارنجی لوگو در هنگام هاور */
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.2);
}

#remTime:focus {
    border-color: #ff7a00;
}

