:root{
  --bg:#28A745;
  --text:#f5f7f6;
  --muted:#bfc7c5;
  --accent:#28A745;
  --accent-dark:#1f7a34;
  --radius:10px;
    --button_bg: white;
    --mandegar_white: #B4B4B4 ;
}
html, body, * {
    font-family: 'iranyekan', sans-serif !important;
}
body{
    min-width: 100vw;
    min-height: 100vh;
    margin:0;
    background: linear-gradient(to bottom right, var(--bg) , #6FD69E);
    /*background:var(--bg);*/
    color:var(--text);
}
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 2rem;
  background:#111;
}
.hero {
    padding: 20px;
    /*background: var(--bg);*/
    background: var(--accent);
    /*box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;*/
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 16px;
}
.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:var(--text);
}
.logo{
  width:40px; height:40px;
  border-radius:8px;
  /*background:var(--accent);*/
  display:flex; align-items:center; justify-content:center;
  font-weight:700;
}
.title{font-weight:700;}
.subtitle{font-size:12px; color:var(--muted);}
nav a{
  margin-left:1rem;
  text-decoration:none;
  color:var(--muted);
}
nav a.active, nav a:hover{color:var(--accent);}
main{
  max-width:800px;
  margin:2rem auto;
  padding:0 1rem;
}
/*h1{color:var(--accent);}*/
/*.cta{*/
/*  display:inline-block;*/
/*  margin-top:1rem;*/
/*  padding:.6rem 1rem;*/
/*  background:var(--accent);*/
/*  color:var(--bg);*/
/*  border-radius:var(--radius);*/
/*  text-decoration:none;*/
/*  font-weight:600;*/
/*}*/
/*footer{*/
/*  text-align:center;*/
/*  padding:1rem;*/
/*  background:#111;*/
/*  color:var(--muted);*/
/*  margin-top:2rem;*/
/*}*/


html, body {
  direction: rtl;
  text-align: right;
}

.mandegar-buttons {
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--button_bg);
    color: var(--accent);
    cursor: pointer;
    border: none;
}

.close-button-modal {
    float: left;
    font-size: 22px;
    cursor: pointer;
    color: #777;
}

.confirm-button {
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--button_bg);
    cursor: pointer;
    border: none;
}

.access-token-amount {
    padding: 12px;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /*width: 100%;*/
    background: var(--mandegar_white);
    /*color: var(--muted);*/
    text-align: center;
    padding: 2.4rem;
}

footer img {
    position: absolute;
    bottom: 10px;
    left: 10px;                   /* distance from left edge */
    height: 80px;                 /* adjust as needed */
}

/*footer a {*/
/*    color: var(--accent);*/
/*}*/

.access-token-modal {
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}

.access-token-modal-text {
    display: flex;
    flex-direction: row; /* Stack vertically */
    align-items: center;    /* Center horizontally */
    justify-content: center;
    gap: 8px;               /* Optional: add space between items */
    margin-top: 20px;
}

.input-field {
    padding: 10px;
    border-radius: var(--radius);
    border: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.message-box {
    padding: 16px;
    border: none;
    border-left: 9px solid rgb(204,137,37);
    border-radius: 8px;
    background: rgb(255,246,235);
    color: rgb(204,137,37);
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 18px; /* reserve space */
}

/* ----------------------------- */
/* 📱 Responsive Design Section  */
/* ----------------------------- */

/* Base adjustments for smoother scaling */
html {
    font-size: 16px;
}

@media (min-width: 900px) {
    /* Hamburger button */
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 900px) {
    header {
        display: flex;
        align-items: center;
        justify-content: center;
        /*flex-direction: column;*/
        /*align-items: flex-start;*/
        /*padding: 1rem;*/
    }

    .brand {
        width: 100%;
        justify-content: space-between;
    }

    nav {
        width: 100%;
        display: none; /* hidden by default on mobile */
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    nav a {
        color: var(--text);
        background: rgba(255,255,255,0.1);
        padding: 0.6rem 1rem;
        border-radius: var(--radius);
        text-align: center;
        margin-left: 0 !important;
    }

    /* Show nav when active */
    nav.active {
        display: flex;
    }

    /* Hamburger button */
    .menu-toggle {
        background: transparent;
        border: none;
        color: var(--text);
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Form responsiveness */
    .access-token-form > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .access-token-form input {
        width: 90%;
    }

    .access-token-modal-text {
        flex-direction: column;
        gap: 12px;
    }

    .mandegar-buttons {
        width: 90% !important;
    }

    footer {
        position: relative; /* prevent overlap */
        padding: 1.5rem;
    }

    footer img {
        height: 60px;
        bottom: 5px;
    }

    .hero {
        padding: 16px;
        margin: 1rem;
    }

    main {
        padding-bottom: 5rem; /* avoid footer overlap */
    }
}

main {
    padding-bottom: 6rem; /* avoid footer overlap */
}

/* Slight tweak for ultra-small phones */
@media (max-width: 500px) {
    .title {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .access-token-modal {
        gap: 16px;
    }

    .access-token-form label {
        font-size: 0.9rem;
    }

    .input-field {
        width: 100%;
    }
}


.mt-3 {
    margin-top: 12px;
}