@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Space+Grotesk:wght@300..700&display=swap');

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: #fff;
}

.main-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.header-section {
    width: 100%;
    max-width: 448px;
    text-align: center;
    margin-top: 32px;
    color: #fff;
    margin-bottom: 110px;
    background-color: #F57C00;
    padding: 20px 24px 60px 24px;
    border-radius: 24px 24px 0px 0px;
}

.main-title {
    font-size: 2.1rem;
    font-weight: 500;
    margin-bottom: 0px;
    margin-top: 0px;
}

.subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 32px;
    margin-top: 0px;
}

.login-container {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 448px;
    width: 100%;
    padding: 48px 24px 32px 24px;
    margin-top: -128px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
}

.logo-circle img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0px;
}

.form-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #222;
}

.login-form input {
    padding: 18px 16px;
    border: 1px solid #F57C00;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 16px;
    outline: none;
    transition: border 0.2s;
}

.login-form input:focus {
    border: 1px solid #F57C00;
}

.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.forgot-link {
    color: #F57C00;
    text-decoration: none;
    font-size: 1rem;
}

.submit-btn, .create-btn {
    background: #F57C00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.create-btn {
    background: #fff;
    color: #F57C00;
    border: 1px solid #F57C00;
}

.submit-btn:hover, .create-btn:hover {
    background: #F57C00;
    color: #fff;
}

.create-btn:hover {
    background: #F57C00;
    color: #fff;
}

.app-header {
    width: 100vw;
    max-width: 448px;
    margin: 0 auto;
    background: #F57C00;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.menu-btn {
    background: none;
    border: none;
    padding: 0;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.app-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    flex: 1;
    text-align: left;
    margin-left: 8px;
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wallet-section svg {
    display: inline-block;
    vertical-align: middle;
}

.wallet-balance {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 2px;
}

.info-bar {
    width: 100vw;
    max-width: 448px;
    margin: 0 auto;
    background: #F57C00;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 2px 0;
    text-align: center;
}

.info-bar marquee {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.banner {
    width: 100vw;
    max-width: 448px;
    margin: 0 auto;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
    background: #222;
}

.banner-slider {
    width: 100vw;
    max-width: 448px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    background: #222;
    height: 220px;
}

.banner-slider .slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
    height: 320px;
}

.banner-slider img {
    width: 100vw;
    max-width: 448px;
    object-fit: cover;
    height: 320px;
    flex-shrink: 0;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 1;
}

.slider-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff8;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.slider-dots .active {
    background: #fff;
}

@media (max-width: 600px) {
    .banner-slider, .banner-slider img, .banner-slider .slides {
        height: 90px;
    }
}

.banner img {
    width: 100%;
    display: block;
    max-height: 120px;
    object-fit: cover;
}

.date-whatsapp {
    width: 100vw;
    max-width: 448px;
    margin: 0 auto;
    background: #F57C00;
    border-radius: 18px;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 10px 10px 10px 10px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#currentDateTime {
    color: #fff;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 4px 18px;
    color: #4F4F4F;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 8px;
    font-family: 'Poppins', Arial, sans-serif;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background 0.2s;
    width: 100%;
    text-align: center;
    justify-content: center;
    /* margin: 0px 18px; */
}

.whatsapp-btn:hover {
    background: #e0e0e0;
}

.whatsapp-btn img {
    width: 28px;
    height: 28px;
}

.markets-list {
    width: 100vw;
    max-width: 448px;
    margin: 0 auto 80px auto;
    padding: 0 0 8px 0;
}

.market-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 18px;
    overflow: hidden;
    border: 2px solid#F57C00;
}

.market-header {
    background: #F57C00;
    color: #fff;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 16px;
    border-bottom: 2px solid #fff;
    text-align: center;
    margin: auto;
    justify-content: center;
}

.market-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.market-body {
    display: flex;
    align-items: center;
    padding: 12px 10px 12px 10px;
    gap: 10px;
    position: relative;
}

.market-icon {
    flex-shrink: 0;
    margin-right: 8px;
}

.market-info {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.market-numbers {
    font-size: 1.3rem;
    color: #F57C00;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.arrow {
    color: #F57C00;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 4px;
}

.market-status {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: #F57C00;
}

span.text-green {
    color: green;
}

.market-status.closed {
    color: #F57C00;
}

.market-times {
    font-size: 0.98rem;
    color: #888;
    font-weight: 500;
}

.market-play-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    transition: transform 0.1s;
}

.market-play-btn:active {
    transform: scale(0.95);
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 448px;
    background: #F57C00;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 68px;
    z-index: 99;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 4px 0 0 0;
    flex: 1;
    transition: color 0.2s;
}

.nav-item.active, .nav-item:active, .nav-item:focus {
    color: #000000;
}

.nav-icon {
    margin-bottom: 2px;
}

.nav-label {
    font-size: 0.85rem;
    margin-top: 1px;
}

/* Mobile Menu (Sidebar) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100vh;
    background: #F57C00;
    color: #fff;
    z-index: 200;
    transition: left 0.3s;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 16px;
    border-bottom: 1px solid #fff4;
}

.close-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    margin-left: 12px;
    line-height: 1;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #fff2;
}

.mobile-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-menu a:hover {
    background: #F57C00;
    color: #fff;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 150;
    display: none;
}

.overlay.show {
    display: block;
}

.refer-container {
    max-width: 449px;
    margin: 0px auto;
    background: #fff;
    border-radius: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding-bottom: 30px;
}

.refer-header {
    background: #F57C00;
    color: #fff;
    padding: 0;
    position: relative;
    padding-bottom: 20px;
}

.refer-header-bar {
    display: flex;
    align-items: center;
    padding: 16px 18px 0 18px;
}

.refer-header-bar i {
    font-size: 22px;
    margin-right: 10px;
    cursor: pointer;
}

.refer-header-bar span {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.refer-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #F57C00;
    border-bottom: 4px solid #29b6f6;
    border-radius: 0 0 8px 8px;
    margin: 12px 18px 0 18px;
    padding: 12px 10px 12px 10px;
    animation: rotate 3s linear infinite;
    border: 5px solid;
    border-image: conic-gradient(from var(--angle), #F57C00, #1b3552, #82e8f1, #F57C00) 1;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.refer-banner-img {
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.refer-banner-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.refer-banner-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.refer-content {
    padding: 10px 18px 0 18px;
    text-align: center;
}

.refer-label {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    margin-bottom: 7px;
    text-align: center;
}

.refer-code-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
    background: #f57c00;
    border-radius: 10px;
}

.refer-code {
    background: #F57C00;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    padding: 8px 35px;
    border-radius: 6px;
    letter-spacing: 2px;
    border: none;
    outline: none;
}

.copy-btn {
    background: #fff;
    color: #222;
    border: 2px solid #F57C00;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s, color 0.2s;
    line-height: 16px;
}

.copy-btn.copied {
    background: #F57C00;
    color: #fff;
    border: 2px solid #F57C00;
}

.refer-share-label {
    color: #F57C00;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
    text-align: center;
}

.refer-share-btns {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 18px;
}

.refer-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: #43a047;
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.refer-share-btn img {
    height: 35px;
    padding: 5px;
}

.refer-share-btn i {
    font-size: 21px;
}

.refer-howto {
    margin-top: 12px;
    text-align: left;
    font-size: 15px;
    color: #222;
    padding: 0 8px;
    margin-bottom: 50px;
}

.refer-howto b {
    font-size: 15px;
    font-weight: 600;
}

.refer-howto ul {
    margin: 7px 0 0 0;
    padding-left: 25px;
}

.refer-howto li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #222;
}

.refer-howto .emoji {
    font-size: 18px;
    display: inline-block;
    animation: horizontal-shaking 2s infinite;
    margin-right: 10px;
}

@keyframes horizontal-shaking {
    0% {
        transform: translateX(0)
    }

    25% {
        transform: translateX(5px)
    }

    50% {
        transform: translateX(-5px)
    }

    75% {
        transform: translateX(5px)
    }

    100% {
        transform: translateX(0)
    }
}

.container {
    max-width: 420px;
    margin: 0 auto 80px auto;
    padding: 16px;
}

.header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: #F57C00;
    padding: 18px 16px;
    border-radius: 0 0 18px 18px;
    margin-bottom: 18px;
}

.back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    color: #222;
    font-size: 1rem;
    margin-bottom: 10px;
}

.balance {
    font-weight: 600;
}

.input {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border: 1.5px solid #F57C00;
    border-radius: 8px;
    margin-bottom: 16px;
    outline: none;
    box-sizing: border-box;
}

.amount-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.amt-btn {
    flex: 1;
    background: #fff;
    border: 1.5px solid #F57C00;
    color: #F57C00;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.amt-btn:active, .amt-btn.selected {
    background: #F57C00;
    color: #fff;
}

.min-deposit {
    text-align: center;
    color: #555;
    font-size: 1rem;
    margin-bottom: 18px;
}

.upi-btn {
    width: 100%;
    background: #fff;
    border: 1px solid #F57C00;
    color: #222;
    border-radius: 12px;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 10px;
}

.upi-logo {
    width: 28px;
    height: 28px;
}

.withdraw-btn {
    width: 100%;
    background: #F57C00;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.btn-jantri {
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    color: #fff;
    padding: 8px 15px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    margin-right: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 5px;
    margin-bottom: 15px;
}

.grid-container div {
    background: #f44336;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid #f44336;
    transition: background 0.2s;
}

.grid-container div.selected {
    background: #fff;
    color: #f44336;
    font-weight: bold;
}

.bid-button {
    width: 100%;
    background: #f44336;
    color: white;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tab-btn {
    background: none;
    border: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 9px 18px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    background: #f2f2f2;
}

.tab-btn.active {
    background: #F57C00;
    color: #fff;
}

.tab-content {
    margin-top: 20px;
    padding-bottom: 100px;
}

.jantri-parent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.jantri-box2 {
    margin: 0;
    width: 10% !important;
}

.jantri-box2 span {
    background: #F57C00;
    color: #fff;
    font-size: 14px;
    padding: 2px;
    text-align: center;
    width: 100%;
    display: block;
}

.jantri-box2 .edittext {
    border-radius: 0 !important;
    font-size: 13px;
    font-weight: 500;
    min-height: 40px;
    padding: 0 !important;
    text-align: center;
}

.edittext {
    align-items: flex-start;
    align-self: stretch;
    background-color: #fff;
    background-color: #fff;
    border: 1px solid #F57C00 !important;
    border: 1px solid #F57C00 !important;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    font-size: 14px;
    justify-content: flex-start;
    padding: 11px !important;
    width: 100%;
}

.haruf {
    margin-top: 10px;
    text-align: left;
}

.bid-bar {
    align-items: center;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    max-width: 475px;
    position: fixed;
    width: 94%;
    margin: auto;
    justify-content: center;
    left: 0;
    right: 0;
}

.bid-bar button {
    width: 87%;
}

/* Responsive Design */
@media (max-width: 600px) {
    .header-section, .login-container {
        max-width: 98vw;
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .logo-circle {
        width: 100px;
        height: 100px;
        top: -40px;
    }

    .logo-circle img {
        width: 60px;
        height: 60px;
    }

    .app-header, .info-bar, .banner, .date-whatsapp, .markets-list, .bottom-nav {
        max-width: 100vw;
    }

    .banner img {
        max-height: 90px;
    }

    .market-card {
        border-radius: 12px;
    }

    .date-whatsapp {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .refer-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .refer-header-bar,
    .refer-banner,
    .refer-content {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 448px) {
    .header-section, .login-container {
        max-width: 100vw;
        padding-left: 2vw;
        padding-right: 2vw;
    }

    .app-header, .info-bar, .banner, .date-whatsapp, .markets-list, .bottom-nav {
        max-width: 100vw;
    }

    .grid-container div {
        font-size: 12px;
        padding: 6px 0;
    }

    .bid-button {
        font-size: 14px;
        padding: 10px;
    }
}

/* Always keep max-width 448px for desktop */
@media (min-width: 449px) {
    .header-section, .login-container {
        max-width: 448px;
    }

    .app-header, .info-bar, .banner, .date-whatsapp, .markets-list, .bottom-nav {
        max-width: 448px;
    }

    .main-title {
        font-size: 1.8rem;
        font-weight: 500;
        margin-bottom: 5px;
        margin-top: 0px;
    }
}

/* Always keep max-width 448px for desktop */
@media (max-width: 425px) {

    .main-title {
        font-size: 1.8rem;
        font-weight: 500;
        margin-bottom: 5px;
        margin-top: 0px;
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 20px;
        margin-top: 0px;
        font-weight: 400;
    }

    .header-section, .login-container {
        max-width: 100vw;
        padding-left: 15px;
        padding-right: 15px;
    }

    .login-container {
        padding: 48px 15px 20px 15px;
    }
}

/* Always keep max-width 448px for desktop */
@media (min-width: 375px) {
    .market-times {
        font-size: 0.80rem;
        color: #888;
        font-weight: 500;
    }
}