/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.alert_box {
    z-index: 555;
    position: fixed;
    top: 0;
    width: 100%;
}

.text-danger {
    font-size: small;
    font-weight: 300;
    margin: 5px 0 0 10px;
}

/* Banner “free” word: mobile vs desktop */
.free-jantri {
    font-size: 42px;
    color: #5956e9;
}

@media (min-width: 992px) {
    .free-jantri {
        font-size: 80px;
        color: #1db954;
    }
}

/* APK / Android download button (green) */
.download-buttons-wrapper .btn-download-v3 {
    position: relative;
    overflow: hidden;
    border: none !important;
    padding: 16px 32px !important;
    box-sizing: border-box;
    background: #1db954 !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(29, 185, 84, 0.4);
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-download-v3 .btn-android-cta__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
}

.btn-download-v3 .btn-android-cta__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: block;
}

.btn-download-v3 .btn-android-cta__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    text-align: left;
}

.btn-download-v3 .btn-android-cta__line1 {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.02em;
}

.btn-download-v3 .btn-android-cta__line2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.btn-download-v3::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 65%,
        transparent 100%
    );
    transform: skewX(-22deg);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.btn-download-v3:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(29, 185, 84, 0.5);
    color: #fff !important;
    background: #20c75c !important;
}

.btn-download-v3:hover::before {
    animation: android-btn-shine 0.75s ease-out forwards;
}

/* Google Play button (black badge) */
.download-buttons-wrapper .btn-download-playstore {
    position: relative;
    overflow: hidden;
    padding: 12px 20px !important;
    box-sizing: border-box;
    background: #5956e9 !important;
    border: 1px solid #6966ff !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(89, 86, 233, 0.4);
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-download-playstore .btn-playstore-cta__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
}

.btn-download-playstore .btn-playstore-cta__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: block;
}

.btn-download-playstore .btn-playstore-cta__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    text-align: left;
}

.btn-download-playstore .btn-playstore-cta__line1 {
    font-size: 10px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-download-playstore .btn-playstore-cta__line2 {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.02em;
}

.btn-download-playstore::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 65%,
        transparent 100%
    );
    transform: skewX(-22deg);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.btn-download-playstore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(89, 86, 233, 0.5);
    color: #fff !important;
    background: #6967e9 !important;
    border-color: #7b78ff !important;
}

.btn-download-playstore:hover::before {
    animation: android-btn-shine 0.75s ease-out forwards;
}

/* iOS download button — light mode (dark Apple-style badge) */
.download-buttons-wrapper .btn-download-ios {
    position: relative;
    overflow: hidden;
    padding: 12px 20px !important;
    box-sizing: border-box;
    background: #1d1d1f !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-download-ios .btn-ios-cta__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
}

.btn-download-ios .btn-ios-cta__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: block;
}

.btn-download-ios .btn-ios-cta__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    text-align: left;
}

.btn-download-ios .btn-ios-cta__icon,
.btn-download-ios .btn-ios-cta__icon path {
    color: inherit;
    fill: currentColor;
}

.btn-download-ios .btn-ios-cta__line1 {
    font-size: 10px;
    font-weight: 400;
    color: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-download-ios .btn-ios-cta__line2 {
    font-size: 20px;
    font-weight: 500;
    color: inherit;
    letter-spacing: -0.02em;
}

.btn-download-ios::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 65%,
        transparent 100%
    );
    transform: skewX(-22deg);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.btn-download-ios:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    color: #fff !important;
    background: #2c2c2e !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.btn-download-ios:hover::before {
    animation: android-btn-shine 0.75s ease-out forwards;
}

@keyframes android-btn-shine {
    0% {
        left: -80%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        left: 130%;
        opacity: 0;
    }
}

.download-buttons-wrapper {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 15px;
    align-items: stretch;
    width: 100%;
}

.download-buttons-wrapper .axil-btn {
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    border-radius: 6px !important;
}

.download-buttons-wrapper .axil-btn.btn-download-v3 {
    border-radius: 06px !important;
    white-space: normal;
}

.download-buttons-wrapper .axil-btn.btn-download-playstore,
.download-buttons-wrapper .axil-btn.btn-download-ios {
    border-radius: 6px !important;
    white-space: normal;
}

.download-buttons-wrapper .download-btn-main,
.download-buttons-wrapper .download-btn-v3,
.download-buttons-wrapper .download-btn-playstore,
.download-buttons-wrapper .download-btn-ios {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    align-self: stretch !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}

.download-buttons-wrapper .download-btn-main {
    position: relative;
    overflow: hidden;
}

.download-buttons-wrapper .download-btn-main .download-btn-main__inner {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.download-buttons-wrapper .download-btn-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 65%,
        transparent 100%
    );
    transform: skewX(-22deg);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.download-buttons-wrapper .download-btn-main:hover::before {
    animation: android-btn-shine 0.75s ease-out forwards;
}

/* Desktop: PC button only as wide as its label (not equal flex stretch) */
@media (min-width: 769px) {
    .download-buttons-wrapper .download-btn-main {
        flex: 0 0 auto !important;
        padding: 14px 20px !important;
        max-width: max-content;
    }
    .download-buttons-wrapper .download-btn-playstore,
    .download-buttons-wrapper .download-btn-ios {
        flex: 0 0 auto !important;
    }
}

@media (max-width: 768px) {
    .download-buttons-wrapper {
        gap: 8px !important;
    }
    .download-buttons-wrapper .axil-btn {
        height: 55px !important;
        min-height: 55px !important;
        max-height: 55px !important;
        padding: 0 10px !important;
        font-size: 14px !important;
        overflow: hidden;
    }
    .download-btn-v3,
    .download-btn-playstore,
    .download-btn-ios {
        padding: 0 8px !important;
    }
    .btn-download-playstore .btn-playstore-cta__inner,
    .btn-download-ios .btn-ios-cta__inner {
        gap: 6px !important;
    }
    .btn-download-playstore .btn-playstore-cta__text,
    .btn-download-ios .btn-ios-cta__text {
        min-width: 0;
    }
    .btn-download-playstore .btn-playstore-cta__line1,
    .btn-download-playstore .btn-playstore-cta__line2,
    .btn-download-ios .btn-ios-cta__line1,
    .btn-download-ios .btn-ios-cta__line2,
    .download-buttons-wrapper .download-btn-main,
    .download-buttons-wrapper .download-btn-main .download-btn-main__inner {
        white-space: nowrap !important;
    }
    .btn-download-v3 .btn-android-cta__line1 {
        font-size: 12px;
    }
    .btn-download-v3 .btn-android-cta__line2 {
        font-size: 17px;
    }
    .btn-download-playstore .btn-playstore-cta__line1 {
        font-size: 7px;
        letter-spacing: 0.04em;
        line-height: 1.1;
    }
    .btn-download-playstore .btn-playstore-cta__line2 {
        font-size: 12px;
        line-height: 1.1;
    }
    .btn-download-ios .btn-ios-cta__line1 {
        font-size: 7px;
        letter-spacing: 0.04em;
        line-height: 1.1;
    }
    .btn-download-ios .btn-ios-cta__line2 {
        font-size: 12px;
        line-height: 1.1;
    }
    .download-buttons-wrapper .axil-btn svg {
        height: 22px !important;
        width: 22px !important;
    }
    .download-buttons-wrapper .btn-download-v3 .btn-android-cta__icon {
        width: 28px !important;
        height: 28px !important;
    }
    .download-buttons-wrapper .btn-download-playstore .btn-playstore-cta__icon {
        width: 24px !important;
        height: 24px !important;
    }
    .download-buttons-wrapper .btn-download-ios .btn-ios-cta__icon {
        width: 24px !important;
        height: 24px !important;
    }
    .download-buttons-wrapper .axil-btn span {
        gap: 4px !important;
    }
    .download-buttons-wrapper .download-btn-main {
        padding: 0 8px !important;
        font-size: 11px !important;
    }
    .download-buttons-wrapper .download-btn-main .download-btn-main__inner {
        gap: 4px !important;
        font-size: 11px !important;
    }
    .download-buttons-wrapper .download-btn-main .download-btn-main__inner svg {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 480px) {
    .download-buttons-wrapper {
        gap: 5px !important;
    }
    .download-buttons-wrapper .axil-btn {
        height: 55px !important;
        min-height: 55px !important;
        max-height: 55px !important;
        padding: 0 6px !important;
        font-size: 13px !important;
    }
    .download-btn-v3,
    .download-btn-playstore,
    .download-btn-ios {
        padding: 0 6px !important;
    }
    .btn-download-playstore .btn-playstore-cta__inner,
    .btn-download-ios .btn-ios-cta__inner {
        gap: 4px !important;
    }
    .btn-download-playstore .btn-playstore-cta__line1 {
        font-size: 6px;
    }
    .btn-download-playstore .btn-playstore-cta__line2 {
        font-size: 11px;
    }
    .btn-download-ios .btn-ios-cta__line1 {
        font-size: 6px;
    }
    .btn-download-ios .btn-ios-cta__line2 {
        font-size: 11px;
    }
    .download-buttons-wrapper .axil-btn svg {
        height: 18px !important;
        width: 18px !important;
    }
    .download-buttons-wrapper .btn-download-v3 .btn-android-cta__icon {
        width: 24px !important;
        height: 24px !important;
    }
    .download-buttons-wrapper .btn-download-playstore .btn-playstore-cta__icon {
        width: 22px !important;
        height: 22px !important;
    }
    .download-buttons-wrapper .btn-download-ios .btn-ios-cta__icon {
        width: 22px !important;
        height: 22px !important;
    }
    .btn-download-v3 .btn-android-cta__line1 {
        font-size: 11px;
    }
    .btn-download-v3 .btn-android-cta__line2 {
        font-size: 15px;
    }
    .download-buttons-wrapper .download-btn-main {
        padding: 0 6px !important;
        font-size: 10px !important;
    }
    .download-buttons-wrapper .download-btn-main .download-btn-main__inner {
        font-size: 10px !important;
        gap: 3px !important;
    }
    .download-buttons-wrapper .download-btn-main .download-btn-main__inner svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Format Modal Dark Mode Support */
.format-code-box {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #212529;
    border: 1px solid #e9ecef;
    line-height: 1.6;
    word-break: break-all;
    overflow-x: auto;
    display: block;
    margin-top: 5px;
}

.active-dark-mode .format-code-box {
    background: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid #3e3e3e;
}

.active-dark-mode .format-code-box strong {
    color: #d4d4d4;
}

.active-dark-mode .modal-content {
    background-color: var(--dark-bg-color);
    color: var(--dark-body-text);
}

.active-dark-mode .modal-header {
    border-bottom-color: var(--dark-border-gray);
}

.active-dark-mode .modal-footer {
    border-top-color: var(--dark-border-gray);
}

.active-dark-mode .modal-title {
    color: var(--dark-title-light);
}

.active-dark-mode .alert-info {
    background-color: #1a3a52;
    border-color: var(--dark-border-gray);
    color: var(--dark-body-text);
}

.active-dark-mode .btn-close {
    filter: invert(1);
}

/* Android download CTA – darker green on dark mode */
.active-dark-mode .download-buttons-wrapper .btn-download-v3 {
    background: #137f39 !important;
}

/* Google Play CTA – dark mode (muted indigo, distinct from light purple) */
.active-dark-mode .download-buttons-wrapper .btn-download-playstore {
    background: #2a2848 !important;
    border: 1px solid #2a2848 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.active-dark-mode .download-buttons-wrapper .btn-download-playstore:hover {
    color: #fff !important;
    background: #3d3a6e !important;
    border-color: #9b98ff !important;
    box-shadow: 0 8px 24px rgba(123, 120, 255, 0.25);
}

/* iOS download button — dark mode */
.active-dark-mode .download-buttons-wrapper .btn-download-ios {
    background: #212121 !important;
    border: 1px solid rgb(44, 44, 65) !important;
    color: #fffbff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.active-dark-mode .download-buttons-wrapper .btn-download-ios .btn-ios-cta__line1,
.active-dark-mode .download-buttons-wrapper .btn-download-ios .btn-ios-cta__line2 {
    color: inherit;
}

.active-dark-mode .download-buttons-wrapper .btn-download-ios:hover {
    color: #fffbff !important;
    background: #2a2a2a !important;
    border-color: rgb(44, 44, 65) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Gosheet PC banner – grayscale in dark mode */
.active-dark-mode .gosheet-pc-banner {
    filter: grayscale(1);
}

/* YouTube watch modal */
.modal-dialog.youtube-watch-dialog {
    max-width: 960px;
    width: min(960px, calc(100% - 32px));
    margin: 1rem auto;
}

.youtube-watch-modal.modal-content {
    position: relative;
    background: #1c1c1c;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    padding: 0;
}

.active-dark-mode .youtube-watch-modal.modal-content {
    background: #1c1c1c;
    color: #fff;
}

.youtube-watch-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.35;
    cursor: not-allowed;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.youtube-watch-close:not(:disabled) {
    opacity: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
}

.youtube-watch-close:not(:disabled):hover {
    background: rgba(0, 0, 0, 0.9);
}

.youtube-watch-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    height: min(62vh, 540px);
    min-height: 320px;
    max-height: none;
    overflow: hidden;
    background: #000;
}

.youtube-watch-player-wrap iframe,
.youtube-watch-modal #youtubeWatchPlayer,
.youtube-watch-modal #youtubeEntryPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-watch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: #151515;
    color: #fff;
}

.youtube-watch-status {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
    min-width: 0;
}

.youtube-watch-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.youtube-watch-seconds {
    font-size: 20px;
    font-weight: 700;
    color: #f5c518;
    line-height: 1;
}

.youtube-watch-sec-label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.youtube-watch-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px 16px;
    background: #1c1c1c;
}

.youtube-watch-cancel-btn,
.youtube-watch-confirm-btn {
    min-width: 110px;
    border-radius: 8px;
}

.youtube-watch-cancel-btn:disabled,
.youtube-watch-confirm-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Tablet */
@media (max-width: 991.98px) {
    .modal-dialog.youtube-watch-dialog {
        max-width: 720px;
        width: calc(100% - 24px);
    }

    .youtube-watch-player-wrap {
        height: min(50vh, 400px);
        min-height: 260px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .modal-dialog.youtube-watch-dialog {
        width: calc(100% - 20px);
        max-width: none;
        margin: 0.75rem auto;
    }

    .youtube-watch-modal.modal-content {
        border-radius: 14px;
    }

    .youtube-watch-close {
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
        font-size: 22px;
    }

    .youtube-watch-player-wrap {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .youtube-watch-bar {
        padding: 10px 12px;
        gap: 8px;
    }

    .youtube-watch-status {
        font-size: 12px;
    }

    .youtube-watch-seconds {
        font-size: 16px;
    }

    .youtube-watch-sec-label {
        font-size: 12px;
    }

    .youtube-watch-footer {
        padding: 10px 12px 14px;
        justify-content: stretch;
    }

    .youtube-watch-cancel-btn,
    .youtube-watch-confirm-btn {
        flex: 1;
        width: auto;
        min-width: 0;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .youtube-watch-status {
        font-size: 11px;
    }

    .youtube-watch-seconds {
        font-size: 15px;
    }
}

