: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 {
    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; 
}


/*----------------------------Trade Suite--------------------------*/
:root {
    --navy-bg: #0a192f;
    --card-bg: #112240;
    --accent-color: #64ffda; 
    --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-marks line {
    stroke-linecap: round;
}

.clock-numbers text {
    font-family: 'Inter', sans-serif;
    user-select: none; 
    pointer-events: none;
}

.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-grid-3 {
    display: grid;
    grid-template-columns: 0.8fr 2.2fr 3.05fr;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

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

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

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

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

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

.input-note {
    text-align: center;
    font-size: 0.7rem;
    color: #a8a8a8;
}

.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);
}

.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; 
    width: 100% !important;
    max-width: 100% !important;
}

.tradingview-widget-copyright {
    display: none !important;
}

/*--------------------------------------------------------------------------------*/
.tools-container {
    display: flex;
    flex-direction: row; 
    gap: 20px;
    padding: 20px;
    align-items: stretch; 
    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: 610px;
}



.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; 
}

/*------------------------------------------Ticker--------------------------*/
.ticker-wrapper {
    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------------------------------------------*/
/*
.active-reminders {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px; 
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px; 
}
*/


.active-reminders {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 10px;

    /* smooth scroll */
    scroll-behavior: smooth;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #efa300 rgba(255,255,255,0.05);
}

/* Chrome / Edge / Safari */
.active-reminders::-webkit-scrollbar {
    width: 6px;
}

.active-reminders::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.active-reminders::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffbf00, #d5923a);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

.active-reminders::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e69900, #a06c2c);
}

.reminder-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ff8000; 
    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);
}

.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; 
    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-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-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;
}

#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;
}

/* ================= MOBILE OPTIMIZED FOR TRADE SUITE (Max 768px) ================= */

@media (max-width: 768px) {
  
  /* ۱. تنظیمات کلی و کانتینر */
  .container {
    padding: 12px;
    max-width: 100%;
  }

  section {
    margin: 15px 10px;
  }

  /* ۲. هدر و لوگوها (رفع مشکل هم‌پوشانی) */
  header {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 10px;
    gap: 15px;
    position: relative;
  }

  h1, h6 {
    font-size: 16px !important;
    margin-left: 10px !important;
  }

  .app-logo {
    height: 40px;
    position: relative; /* خروج از حالت مطلق در موبایل */
    top: 0;
    right: 0 !important;
  }

  .logo-1, .logo-2 {
    display: inline-block;
    margin-right: 10px;
  }

  .gradient-format2 {
    font-size: 14px;
    margin-left: 10px;
  }

  /* ۳. ساعت‌های سشن (تک ستونه کردن) */
  .session-grid {
    grid-template-columns: 1fr !important;
    padding: 0 10px;
  }

  .analog-clock {
    width: 120px;
    height: 120px;
  }

  /* ۴. بخش ابزارها (تقویم و ماشین حساب) */
  .tools-container {
    flex-direction: column !important;
    padding: 10px;
  }

  .calendar-card, .calc-card, .reminder-container {
    width: 100%;
    max-height: none;
    flex: none;
  }

  /* ۵. ماشین حساب لوت سایز */
  .calc-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .input-group input {
    font-size: 16px; /* جلوگیری از زوم شدن در آیفون */
    padding: 12px;
  }

  /* ۶. بخش یادآور (Reminders) */
  .input-row.split {
    flex-direction: column;
  }

  .date-wrapper, #remTime {
    width: 100% !important;
  }

  .alarm-controls {
    flex-wrap: wrap;
  }

  .alarm-btn {
    flex: 1 1 45%; /* دکمه‌ها دوتا کنار هم */
  }

  /* ۷. جداول و ویجت‌های تردینگ ویو */
  .ticker-wrapper {
    padding: 0 10px;
  }

  .time-calendar-row {
    flex-direction: column;
    padding: 15px;
  }

  .digital-box, .calendar-box {
    width: 100% !important;
  }

  /* ۸. پاپ‌آپ هشدار */
  .alert-popup {
    left: 10px;
    right: 10px;
    top: 10px;
    min-width: auto;
  }

  /* ۹. فوتر */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-right {
    justify-content: center;
  }

/* ۱. کانتینر اصلی هدر (اگر در HTML داری) یا محدود کردن فضا */
  h6.gradient-format1 {
    display: block !important;
    font-size: 20px !important;
    margin: 35px 15px 5px 15px !important; /* فاصله از بالا برای لوگوها */
    padding-right: 90px; /* فضا برای لوگوهایی که سمت راست قرار میگیرند */
    position: relative;
    text-align: left;
  }

  /* ۳. بخش لوگوها - قفل کردن دقیق روبروی عنوان */
  h6.gradient-format1 + section {
    position: absolute !important;
    top: 30px !important; /* تنظیم ارتفاع نسبت به بالای صفحه */
    right: 15px !important;
    display: flex !important;
    flex-direction: row-reverse !important; /* ترتیب لوگوها */
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000;
  }

  /* ۴. اندازه لوگوها */
  .app-logo {
    position: static !important;
    height: 38px !important;
    width: auto !important;
    margin: 0 !important;
  }

  /* ۵. شعار (All the tools...) */
  .gradient-format2 {
    font-size: 10px !important;
    margin: 10px 15px !important;
    display: block !important;
    clear: both; /* اطمینان از اینکه زیر لوگوها قرار میگیرد */
  }

  /* ۶. اصلاح سایر بخش‌های صفحه برای جلوگیری از بالا آمدن */
  .session-grid, .ticker-wrapper {
    margin-top: 20px !important;
  }

  /* ----- Economic Calendar Mobile Fix ----- */
  .calendar-card {
    padding: 10px !important;
    width: 100% !important;
    overflow: hidden !important; /* جلوگیری از بیرون زدن کلی */
  }

  .calendar-card .tradingview-widget-container {
    width: 100% !important;
    min-height: 450px !important; /* ارتفاع کمتر برای موبایل */
  }

  /* مجبور کردن آیفریم تقویم به جا شدن در عرض صفحه */
  .calendar-card iframe {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px !important;
  }

  /* اگر تقویم هنوز عریض بود، اجازه اسکرول افقی فقط به خود تقویم بده */
  .calendar-card .tradingview-widget-container-reloaded {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }


  .footer-built{
    font-size: 0.75rem;
  }
    .footer-legal{
    font-size: 0.75rem;
  }
  .footer-logo{
    height: 30px;
    width: 30px;
  }
  .contact-title{
    font-size: 20px;
  }
  .contact-text{
    font-size: 0.8rem;
  }
  .tm-mark{
    font-size: 0.8rem;
  }


  /* حذف خط گرادینت آبی مزاحم در بالای صفحه موبایل */
  .contact-section::before {
    display: none !important;
  }

  /* اگر می‌خواهی خط باقی بماند اما در جای درستش (بالای بخش تماس) باشد: */
  .contact-section {
    position: relative !important;
    margin-top: 50px !important; /* ایجاد فاصله از بخش‌های بالایی */
  }

}
