:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --primary-green: #029494;
    --secondary-red: #008686;
    --text-primary: #000;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #b7bdc6;
    --background-color: #ffffff;
    --light-border: #eaecef;
    --light-bg: #f8f9fa;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 1.75rem;
    --font-size-xxxl: 3.5rem;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 10px;
    --border-radius-xl: 15px;

}

* {
    font-family: 'Poppins', Arial, sans-serif;
}

/* For Chrome, Safari, Edge, and Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input::placeholder {
    color: #00000021;
    opacity: 1;
    font-size: 16px;

}

.order-info,
.payment-fields {
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Fallback for older browsers */
}

/* Header */
.usdtdirect-header {
    background-color: var(--background-color);
    padding: 0 32px;
    /* User specified padding */
    height: 70px;
    /* User specified height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-border);
    position: relative;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.usdtdirect-header .logo-container img {
    width: 130px;
    /* User specified width */
    height: auto;
    display: block;
}

/* Desktop Navigation Links */
.usdtdirect-header .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.usdtdirect-header .nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 6px;
    /* Space for underline */
}

.usdtdirect-header .nav-links a:hover {
    color: var(--primary-green);
}

/* Underline Animation on Hover */
.usdtdirect-header .nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-green);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.usdtdirect-header .nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Desktop Auth Buttons */
.usdtdirect-header .auth-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.usdtdirect-header .auth-btn {
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.usdtdirect-header .login-btn {
    color: var(--text-primary);
    border-color: var(--light-border);
}

.usdtdirect-header .login-btn:hover {
    border-color: var(--primary-green);
}

.usdtdirect-header .signup-btn {
    background-color: var(--primary-green);
    color: white;
}

.usdtdirect-header .signup-btn:hover {
    opacity: 0.9;
}


/* Hamburger Menu Button (Mobile) */
.hamburger-menu {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Hamburger animation */
.hamburger-menu.open .bar:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    /* Hidden by default, shown via media query */
    position: absolute;
    top: 70px;
    /* Position below the header */
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    padding: 24px 32px;
    box-sizing: border-box;
    border-top: 1px solid var(--light-border);

    /* Animation setup */
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Styles for the cloned links and buttons inside mobile nav */
.mobile-nav .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
    margin-bottom: 24px;
}

.mobile-nav .nav-links a {
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-border);
}

.mobile-nav .nav-links a::after {
    display: none;
    /* No underline on mobile */
}

.mobile-nav .auth-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

.mobile-nav .auth-buttons .auth-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.mobile-nav .auth-buttons .signup-btn {
    background-color: var(--primary-green);
    color: white;
    border: none;
}

/* Responsive Media Query */
@media (max-width: 992px) {

    .header-left .nav-links,
    .header-right .auth-buttons {
        display: none;
        /* Hide desktop nav and buttons */
    }

    .hamburger-menu {
        display: flex;
        /* Show hamburger menu */
    }

    .mobile-nav {
        display: block;
        /* Make mobile nav available */
    }
}

/* --- END Header --- */

/* buysellpage */

.buysellpage {
    background-color: var(--secondary-color);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-lg) 0;
}

.main-container {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
}

.left-content h1 {
    font-size: var(--font-size-xxxl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.left-content p {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
}

.right-card {
    border: 2px solid var(--border-color);
    border-radius: 35px;
}

.nav-tabs {
    border-bottom: none;
    height: 60px;
    display: flex;
    margin: 0;
}

.nav-tabs .nav-item {
    border-top-left-radius: 35px;

}

.nav-tabs .nav-link {
    flex: 1;
    padding: var(--spacing-md) 0;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    background: var(--light-bg);
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    border-radius: 0;
}

.nav-tabs .nav-item:first-child .nav-link {
    border-top-left-radius: 35px;
    width: 100%;
}

.nav-tabs .nav-item:last-child .nav-link {
    border-top-right-radius: 35px;
    width: 100%;
}

.nav-tabs .nav-link.active {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: var(--font-size-xl);
}

.form-group-custom {
    border: 2px solid #e8e8e8;
    /* This is your normal border color */
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    transition: border-color 0.3s ease;
    /* Add a smooth transition for the border */
}

/* Highlight the container when any child (e.g., input) is focused */
.form-group-custom:focus-within {
    border-color: var(--primary-green);
}

/* Error message styling */
.form-group-custom .error-message {
    color: red;
    font-size: 0.875rem;
    margin-top: 0px;
    display: none;
    visibility: visible;
    opacity: 1;
    text-align: left;
}

/* Optional: input invalid state */
input.invalid {
    border-color: red;
    outline: none;
}

/* Error state for the form group */
.form-group-custom.has-error {
    border: 2px solid red;
}



.payment-options {
    border: 2px solid #e8e8e8;
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-md);
    margin-bottom: 0.5rem;
}

.payment-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.payment-option:hover {
    border-color: var(--primary-green);
}

.payment-option.selected {
    border-color: var(--primary-green);
}

.payment-name {
    font-weight: bold;
    color: #333;
}

.payment-amount {
    color: #666;
    margin-left: var(--spacing-xs);
    font-size: var(--font-size-xs);
}

/* NEW: Hide Font Awesome icon by default */
.check-icon {
    display: none !important;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 1rem;
}

/* NEW: Show icon when parent is selected */
.payment-option.selected .check-icon {
    display: block !important;
}


.error-message {
    color: red;
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
    display: none;
    /* Hidden by default */
}

.usdt-value {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 20px;
    display: flex;
    align-items: start;
}

.place-order-btn {
    width: 100%;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-weight: bold;
    font-size: var(--font-size-base);
    border: none;
    transition: background-color 0.2s;
}

.btn-buy {
    background-color: var(--primary-green);
    color: var(--secondary-color);
}

.btn-buy:hover:not(:disabled) {
    /* Added :not(:disabled) */
    background-color: var(--secondary-red);
    /* Corrected hover color */
    color: var(--secondary-color);
}

.btn-buy:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.btn-sell {
    background-color: var(--secondary-red);
    color: var(--secondary-color);
}

.btn-sell:hover:not(:disabled) {
    /* Added :not(:disabled) */
    background-color: var(--primary-green);
    /* Corrected hover color */
    color: var(--secondary-color);
}

.btn-sell:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}


.form-control-custom {
    border: none;
    padding: 0.75rem;
    font-size: var(--font-size-xl);
    background: transparent;
}

.form-control-custom:focus {
    box-shadow: none;
    background: transparent;
    outline: none;
}

.select-custom {
    border: none;
    font-weight: 600;
    font-size: var(--font-size-xl);
    background: transparent;
    padding: 0 0.75rem;
    box-shadow: none;
    outline: none;
}

.color-width {
    width: 2px;
    height: 9px;
    position: absolute;
    box-sizing: border-box;
    top: 19px;
    left: 9px;
    border-radius: var(--border-radius-sm);
}

.red {
    background-color: #f50d0d;
}

.yellow {
    background-color: #f6ff00;
}

.green {
    background-color: #6fff00;
}

.dropdown-wrapper {
    position: relative;
    width: 140px;
    user-select: none;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dropdown Toggle */
.dropdown-toggle {
    font-size: var(--font-size-base);
    font-weight: 600;
    background: var(--secondary-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dropdown-toggle:hover {
    border-color: var(--primary-green);
}

.dropdown-toggle .icon {
    width: 24px;
    height: auto;
    margin-right: var(--spacing-sm);
    border-radius: 50%;
    object-fit: contain;
}

.selected-text {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.arrow {
    font-size: var(--font-size-sm);
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #666;
}

.dropdown-toggle.active .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #eef2f7;
}

.dropdown-item .icon {
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-sm);
    border-radius: 50%;
    object-fit: contain;
}

.fee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.confirmation-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-custom {
    background: var(--secondary-color);
    border-radius: 35px;
    width: 90%;
    max-width: 600px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

.modal-header-custom {
    background: var(--light-bg);
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    padding: var(--spacing-lg);
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

.modal-header-custom h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.modal-body-custom {
    padding: var(--spacing-lg);
}

.confirmation-details {
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.details-left,
.details-right {
    flex: 1;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--light-bg);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.detail-value {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-value .icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.payment-method-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-color-indicator {
    width: 3px;
    height: 12px;
    border-radius: 2px;
}

.confirm-btn {
    width: 100%;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-weight: bold;
    font-size: var(--font-size-base);
    border: none;
    transition: background-color 0.2s;
}

.confirm-btn.buy {
    background-color: var(--primary-green);
    color: var(--secondary-color);
}

.confirm-btn.sell {
    background-color: var(--secondary-red);
    color: var(--secondary-color);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal {
    justify-content: center;
}

.modal.show .modal-dialog {
    width: 100% !important;
}

@media (max-width: 1024px) {
    .buysellpage .row {
        flex-direction: column;
    }

    .buysellpage .col-lg-6 {
        flex: 0 0 auto;
        text-align: center;
    }
}


@media (max-width: 834px) {
    .nav-tabs {
        height: 50px;
    }

    .left-content {
        display: none;
    }

    .left-content h1 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 0rem;
    }

    .left-content p {
        text-align: center;
    }

    .left-content {
        margin-bottom: var(--spacing-lg);
    }

    .nav-tabs .nav-link {
        font-size: var(--font-size-base);
        padding: 0.75rem 0;
    }

    .nav-tabs .nav-link.active {
        font-size: var(--font-size-sm);
    }

    .form-control-custom {
        padding: 0rem;
        width: 20px;
    }

    .payment-option {
        padding: var(--spacing-sm);
    }

    .color-width {
        top: 18px;
        left: 6px;
        height: 8px;
    }

    .dropdown-wrapper {
        width: 110px;
    }

    .usdt-value, .payment-name {
        font-size: 12px;
    }

    .payment-amount {
        font-size: 10px;
    }

    .dropdown-toggle {
        font-size: 15px;
    }

    .dropdown-toggle .icon {
        width: 22px;
        height: auto;
    }
    
       .limitamount {
        margin-top: 15px;
        font-size: 10px;
    }
    
    #p2pTabsContent{
        padding : 0.5rem !important;
    }
    
    .right-card{
        border-radius: 15px;
        text-align:left;
    }
    
    #sell-tab{
        border-top-right-radius : 12px;
    }
    
    #buy-tab{
        border-top-left-radius : 12px;
    }
    
    .form-group-custom{
        margin-bottom:0.5rem;
    }


}

/* buysellpageend */

/* General Styles */
.usdtp2pbuypayment {
    --highlight-color: #029494;
    --background-color: #ffffff;
    --surface-color: #ffffff;
    --text-primary: #1e2329;
    --text-secondary: #707a8a;
    --border-color: #eaecef;
    --yellow-color: #FCD535;
    --green-color: #2ebd85;
    --system-msg-bg: #f5f5f5;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 2%;
}

.usdtp2pbuypayment .container {
    display: flex;
    flex-wrap: wrap;
    gap: 130px;
    width: 100%;
    max-width: 1320px;
    overflow: auto;
}

.usdtp2pbuypayment .order-details,
.usdtp2pbuypayment .chat-window {
    min-width: 320px;
}

.usdtp2pbuypayment .order-details {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.usdtp2pbuypayment .chat-window {
    flex: 1;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: calc(95vh - 40px);
    max-height: 750px;
}

/* Left Side: Order Details */
.usdtp2pbuypayment .header {
    margin-bottom: 32px;
}

.usdtp2pbuypayment .header h1 {
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.usdtp2pbuypayment .header #timer {
    color: var(--highlight-color);
}

.usdtp2pbuypayment .header .order-number {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Stepper styles */
.usdtp2pbuypayment .stepper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.usdtp2pbuypayment .step {
    position: relative;
    padding-left: 40px;
    padding-bottom: 16px;
}

.usdtp2pbuypayment .step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    height: calc(100%);
    width: 2px;
    background-color: var(--text-primary);
}

.usdtp2pbuypayment .step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: var(--text-primary);
    font-size: 24px;
}

.usdtp2pbuypayment .step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.usdtp2pbuypayment .step.completed .step-number {
    color: white;
}

.step.completed::before {
    background: #029494 !important;
}

.usdtp2pbuypayment .step.completed .step-icon .fa-diamond {
    color: var(--primary-green);
}

.usdtp2pbuypayment .step.completed .step-icon .fa-check {
    font-size: 12px;
}

.usdtp2pbuypayment .section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usdtp2pbuypayment .detail-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.usdtp2pbuypayment .order-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 14px;
}

.usdtp2pbuypayment .order-info div {
    display: flex;
    justify-content: space-between;
}

.usdtp2pbuypayment .order-info span:first-child {
    color: var(--text-secondary);
}

.usdtp2pbuypayment .order-info strong {
    font-weight: 500;
    color: var(--text-primary);
}

.usdtp2pbuypayment .payment-fields .field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.usdtp2pbuypayment .payment-fields .field:last-child {
    margin-bottom: 0;
}

.usdtp2pbuypayment .payment-fields .field span {
    color: var(--text-secondary);
}

.usdtp2pbuypayment .payment-fields .field div {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.usdtp2pbuypayment .payment-fields .field strong {
    font-weight: 500;
    text-align: end;
}

.usdtp2pbuypayment .copy-icon {
    color: var(--highlight-color);
    cursor: pointer;
}

.usdtp2pbuypayment .tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.usdtp2pbuypayment .sub-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.usdtp2pbuypayment .action-buttons {
    display: flex;
    gap: 28px;
    margin-top: 16px;
    align-items: center;
    width: 80%;


}

.usdtp2pbuypayment .action-buttons button {
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.usdtp2pbuypayment .btn-primary {
    flex-grow: 1;
    background-color: var(--highlight-color);
    color: #ffffff;
    border: 1px solid var(--highlight-color);
}

.usdtp2pbuypayment .btn-secondary {
    background-color: transparent;
    border: none;
    color: var(--highlight-color);
    padding: 0;
}

/* Right Side: Chat Window */
.usdtp2pbuypayment .chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.usdtp2pbuypayment .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usdtp2pbuypayment .avatar {
    background-color: #707a8a;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
}

.usdtp2pbuypayment .user-info span {
    font-weight: 600;
}

.usdtp2pbuypayment .user-info .fa-shield-halved {
    color: var(--green-color);
}

.usdtp2pbuypayment .user-info small {
    color: var(--text-secondary);
    font-size: 12px;
}

.usdtp2pbuypayment .online-dot {
    color: var(--green-color);
    font-size: 8px;
    vertical-align: middle;
}

.usdtp2pbuypayment .chat-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.usdtp2pbuypayment .system-alert {
    background-color: rgba(2, 148, 148, 0.08);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(2, 148, 148, 0.1);
    text-align: center;
}

.usdtp2pbuypayment .system-alert-error {
    background-color: rgba(148, 2, 2, 0.08);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 8px;
    border: 1px solid rgba(2, 148, 148, 0.1);
}

.usdtp2pbuypayment .system-alert i {
    font-size: 12px;
    cursor: pointer;
}

.usdtp2pbuypayment .system-alert-error i::before,
.usdtp2pbuypayment .system-alert i::before {
    color: var(--text-secondary);
}

.usdtp2pbuypayment .system-alert a {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 500;
}

.usdtp2pbuypayment .system-alert-error a {
    color: #940202;
    text-decoration: none;
    font-weight: 500;
}

.usdtp2pbuypayment .timestamp {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.usdtp2pbuypayment .timestamp span {
    background-color: #eaecef;
    padding: 4px 8px;
    border-radius: 12px;
}

.usdtp2pbuypayment .message {
    padding: 12px;
    border-radius: 8px;
    max-width: 90%;
    font-size: 14px;
    position: relative;
    line-height: 1.5;
    white-space: normal;
}

.usdtp2pbuypayment .message p {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.usdtp2pbuypayment .message .message-time {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 8px;
}

/* --- NEW CHAT STYLES --- */
/* 1. Admin/System Messages */
.usdtp2pbuypayment .system-message {
    background-color: rgba(46, 235, 133, 0.1);
    /* Light green */
    border: 1px solid rgba(46, 235, 133, 0.2);
    color: #1f7a4a;
    align-self: center;
    width: 90%;
    max-width: 100%;
    text-align: center;
}

.usdtp2pbuypayment .system-message.danger {
    background-color: rgba(220, 53, 69, 0.1);
    /* Light red */
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #842029;
}

/* 2. Seller Message (Right Aligned Box and Text) */
.usdtp2pbuypayment .seller-message {
    background-color: #02949438;
    /* Light blue */
    align-self: flex-end;
    text-align: left;
}

/* 3. Buyer Message (Left Aligned Box, Right Aligned Text) */
.usdtp2pbuypayment .buyer-message {
    background-color: var(--system-msg-bg);
    /* Grey */
    align-self: flex-start;
    text-align: left;
}

/* --- END NEW CHAT STYLES --- */


.usdtp2pbuypayment .chat-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--surface-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.usdtp2pbuypayment .chat-footer #chat-form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.usdtp2pbuypayment .chat-footer .fa-plus {
    font-size: 18px;
    margin-right:10px;
    cursor: pointer;
    color: var(--text-secondary);
}

.usdtp2pbuypayment .chat-footer input {
    flex-grow: 1;
    background-color: var(--system-msg-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 14px;
}

.usdtp2pbuypayment .chat-footer input::placeholder {
    color: var(--text-secondary);
}

.usdtp2pbuypayment .chat-footer input:focus {
    outline: none;
    border-color: var(--highlight-color);
}

/* --- Mobile Chat Popup Styles --- */
/* Initially hidden, will be shown on mobile via media query */
#chat-icon-mobile {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: var(--highlight-color);
    color: white;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.2s ease-in-out;
}

#chat-icon-mobile:hover {
    transform: scale(1.1);
}

#close-chat-popup {
    display: none;
    /* Hidden on desktop */
}

.order-buy {
    background-color: var(--highlight-color);
    color: white !important;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 50%;
}

@media (max-width: 768px) {

    .usdtp2pbuypayment .header h1 {
        font-size: 1.5rem !important;
    }
    
    .modal-dialog{
    margin:0px;
}

    .usdtp2pbuypayment .action-buttons button {
        font-size: 12px;
    }

    .usdtp2pbuypayment .action-buttons {
        width: 100%;
    }
    
    .usdt-value{
        margin-right:23px;
    }


    /* --- Mobile Chat Popup Overrides --- */
    /* Adjust main container for single-column layout */
    .usdtp2pbuypayment .container {
        flex-direction: column;
        gap: 30px;
        /* Reduced gap for mobile */
    }

    .usdtp2pbuypayment .order-details {
        flex-basis: 100%;
    }

    /* Style the chat window as a popup, hidden by default */
    .usdtp2pbuypayment .chat-window {
        display: flex;
        /* Keep display flex for children alignment */
        position: fixed;
        bottom: 90px;
        right: 15px;
        width: calc(100% - 30px);
        max-width: 380px;
        height: 70vh;
        max-height: 550px;
        z-index: 1000;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
        border-radius: 12px;
        /* Animation Properties */
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.95);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    /* This class will be toggled by JS to show the popup */
    .usdtp2pbuypayment .chat-window.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    /* Show and style the close button for the popup */
    #close-chat-popup {
        display: block;
        cursor: pointer;
        font-size: 22px;
        color: var(--text-secondary);
    }

    /* Show and style the floating chat icon */
    #chat-icon-mobile {
        display: flex;
        background-color: #029494;
    }

    .usdtp2pbuypayment .chat-header {
        background-color: var(--highlight-color);
    }

    .usdtp2pbuypayment .user-info span {
        color: white;
    }

    .usdtp2pbuypayment .user-info small {
        color: white;
    }

    .fa-xmark:before {
        color: white;
    }
}

/* Footer Section */
.footer {
    background-color: #fff;
    /* White background */
    padding: 2rem 1rem;
    /* py-8 px-4 */
    /* Responsive padding for small screens, similar to sm:px-6 lg:px-8 */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {

    /* Equivalent to sm: breakpoint */
    .footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {

    /* Equivalent to lg: breakpoint */
    .footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Horizontal line */
.footer-line {
    border-top: 1px solid #14b8a6;
    /* border-teal-500 */
    width: 100%;
    max-width: 64rem;
    /* max-w-4xl (1024px) */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    /* mb-6 */
    border-radius: 9999px;
    /* rounded-full */
}

/* Copyright and description text */
.footer-text {
    text-align: center;
    color: #4b5563;
    /* text-gray-600 */
    font-size: 0.875rem;
    /* text-sm */
}

@media (min-width: 640px) {

    /* Equivalent to sm: breakpoint */
    .footer-text {
        font-size: 1rem;
        /* sm:text-base */
    }
}

.footer-text-highlight {
    color: #0d9488;
    /* text-teal-600 */
    font-weight: 500;
    /* font-medium */
}

/* Force long words/numbers to break */
.usdtp2pbuypayment {
    overflow-wrap: break-word;
    word-break: normal;
}

/* On mobile screens, stack the main content columns */
@media (max-width: 992px) {
    .usdtp2pbuypayment .container {
        flex-direction: column;
    }
}



/* Styles for the Appeal Modal - Applied universally for both desktop and mobile */

body.modal-open {
    overflow: hidden;
}

/* --- Appeal Modal --- */

/* Default (Desktop) styles for the dialog */
#appealModal .modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}

#appealModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Mobile-first: Fullscreen modal on small screens */
@media (max-width: 767.98px) {
    #appealModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        /* Make dialog fill the screen height */
    }

    #appealModal .modal-content {
        height: 100%;
        /* Use fixed height to match viewport */
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        /* Prevent content from overflowing the container */
    }

    #appealModal .modal-body {
        /* Make body scrollable and fill available space */
        overflow-y: auto;
        flex-grow: 1;
    }
}

/* --- Modal Header Styling --- */
#appealModal .modal-header {
    background-color: #029494;
    /* Main theme color for desktop */
    color: #fff;
    padding: 1rem 1.25rem;
    border-bottom: none;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Style the title */
#appealModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
}

/* Style the desktop close button to be white */
#appealModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Mobile-specific header styles */
@media (max-width: 767.98px) {
    #appealModal .modal-header {
        background-color: #029494;
        /* White background on mobile */
        color: #fff;
        /* Dark text on mobile */
        justify-content: flex-start;
        /* Align items to the start */
        border-radius: 0;
        position: relative;
        flex-shrink: 0;
        /* Prevent header from shrinking */
    }

    #appealModal .back-arrow {
        font-size: 1.5rem;
        color: #fff;
        /* Dark arrow on mobile */
        cursor: pointer;
        z-index: 2;
        /* Ensure it's clickable */
    }

    /* Center the title on mobile using absolute positioning relative to the header */
    #appealModal .modal-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 40px;
        /* Add padding to prevent overlap with back/close icons */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* --- Modal Body & Form --- */
#appealModal .modal-body {
    padding: 1.5rem;
}

/* Appeal Stepper */
#appealModal .appeal-steps {
    display: flex;
    justify-content: space-between;
    /* Changed from space-around */
    align-items: flex-start;
    margin-bottom: 2rem;
    /* Increased margin */
    position: relative;
}

/* The connecting line for the stepper */
#appealModal .appeal-steps .line {
    position: absolute;
    top: 14px;
    /* Vertically center with the step number circles */
    left: 12%;
    /* Adjust start and end points */
    right: 12%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 0;
    /* Behind the step numbers */
}

#appealModal .appeal-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
    z-index: 1;
    /* Keep step content above the line */
    background-color: #fff;
    /* Match modal body background */
    padding: 0 0.25rem;
    /* Padding to hide the line behind text */
}

#appealModal .appeal-step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #029494;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border: 2px solid #029494;
    position: relative;
    /* Ensure it's on top of its background */
    background-color: #e9ecef;
    /* Default background for the number */
}

#appealModal .appeal-step.active .step-number {
    background-color: #029494;
    border-color: #029494;
    color: #fff;
}

#appealModal .appeal-step.active {
    color: #333;
    font-weight: 500;
}

/* Disclaimer */
#appealModal .appeal-disclaimer {
    font-size: 0.8rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Form Group and Labels */
#appealModal .appeal-form .form-group {
    margin-bottom: 1.5rem;
}

#appealModal .appeal-form label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    text-align: left;
}

/* Select Input */
#appealModal .appeal-form .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
}

/* Textarea with character count */
#appealModal .appeal-form .textarea-wrapper {
    position: relative;
}

#appealModal .appeal-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
    padding: 0.75rem 1rem;
}

#appealModal .appeal-form .char-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    color: #6c757d;
}

/* File Upload Section */
#appealModal .appeal-file-upload-section p {
    font-weight: 500;
    color: #828282;
    margin-bottom: 0.5rem;
    text-align: left;
    font-size: 0.9rem;
}

#appealModal .image-upload-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

#appealModal .appeal-upload-box,
#appealModal .uploaded-preview {
    width: 100px;
    height: 100px;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    transition: background-color 0.2s, border-color 0.2s;
    gap: 0.25rem;
    /* Use gap for spacing instead of margin */
}

#appealModal .appeal-upload-box:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

#appealModal .appeal-upload-box i {
    color: #adb5bd;
    font-size: 1.8rem;
}

#appealModal .appeal-upload-box span {
    font-size: 0.8rem;
    color: #6c757d;
}

#appealModal .uploaded-preview img,
#appealModal .uploaded-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#appealModal .uploaded-preview .fa-play {
    position: absolute;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.5rem;
    font-size: 1.2rem;
}

#appealModal .delete-upload {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    cursor: pointer;
    z-index: 2;
    border: 1px solid #fff;
}

/* --- Modal Footer --- */
#appealModal .modal-footer {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background-color: #fff;
}

@media (max-width: 767.98px) {
    #appealModal .modal-footer {
        flex-shrink: 0;
        /* Prevent footer from shrinking */
        border-top: none;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        /* Add a subtle shadow on top */
    }
}

/* Submit Button */
#appealModal .appeal-submit-btn {
    background-color: #029494;
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
}

#appealModal .appeal-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Mobile-specific adjustments */
@media (max-width: 767.98px) {
    #appealModal .modal-body {
        padding: 1.25rem;
        /* Slightly reduce padding on mobile */
    }

    #appealModal .appeal-step {
        font-size: 0.75rem;
        /* Make stepper text smaller */
        padding: 0;
        /* Remove padding to avoid large gaps */
    }

    /* Make the main upload box a full-width dropzone */
    #appealModal .appeal-upload-box {
        width: 100%;
        height: 130px;
        flex-direction: row;
        /* Align icon/text horizontally */
        gap: 1rem;
    }

    /* Style the generated previews into a grid */
    #appealModal .uploaded-preview {
        width: calc(33.333% - 7px);
        /* 3 per row with 10px gap */
        height: auto;
        aspect-ratio: 1 / 1;
        /* Keep them square */
    }
}

.paymentoption {
    margin-bottom: 10px;
}

.payment-buttons {
    width: 33% !important;
}

.buyer-name {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);

}

.verifypayment {
    --main-color: #029494;
    /* Main theme color */
    font-family: 'Poppins', sans-serif;
    color: #1e2329;
}

/* Custom Modal Styling */
.verifypayment .modal-content {
    border-radius: 12px;
    border: none;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.verifypayment .modal-header {
    border-bottom: none;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    /* Center title */
    position: relative;
}

.verifypayment .modal-header .btn-close {
    position: absolute;
    right: 1.5rem;
}

/* Styles for the first modal's header */
.verifypayment #paymentModal .modal-header {
    background-color: var(--main-color);
    color: white;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.verifypayment #paymentModal .modal-header .btn-close {
    filter: invert(1) brightness(2);
}

/* Styles for the second modal's header */
.verifypayment #securityModal .modal-header {
    background-color: var(--main-color);
    color: white;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.verifypayment #securityModal .modal-header .btn-close {
    filter: invert(1) brightness(2);
}


.verifypayment .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.verifypayment .modal-body {
    padding: 0.5rem 1.5rem 1.5rem;
}

.verifypayment .modal-footer {
    border-top: 1px solid #eaecef;
    padding: 1rem 1.5rem;
}

.verifypayment #paymentModal .modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.verifypayment #paymentModal .modal-body li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #474d57;
    display: flex;
    align-items: flex-start;
}

.verifypayment #paymentModal .modal-body li .fa-check {
    color: #2ebd85;
    margin-right: 10px;
    margin-top: 4px;
}

.verifypayment #paymentModal .modal-body li .fa-warning {
    color: #029494;
    margin-right: 10px;
    margin-top: 4px;
}

.verifypayment .form-check-label {
    font-size: 0.9rem;
    color: #1e2329;
}

.verifypayment .form-check-input:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.verifypayment .btn-confirm-release {
    background-color: var(--main-color);
    color: #ffffff;
    font-weight: 600;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
}

.verifypayment .btn-confirm-release:active {
    background-color: var(--main-color);
    color: #ffffff;
    font-weight: 600;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
}

.verifypayment .btn-confirm-release:disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    border-color: #e9ecef;
}

.verifypayment .btn-confirm-release:not(:disabled):hover {
    background-color: var(--main-color);
    filter: brightness(1.1);
}

/* STYLES FOR SECURITY MODAL */
.verifypayment #securityModal .modal-body .text-muted {
    font-size: 0.9rem;
}

.verifypayment #securityModal .modal-body .counter {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e2329;
    margin: 0.5rem 0 1.5rem 0;
}

.verifypayment #securityModal .verification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eaecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    background-color: #f8f9fa;
}

.verifypayment #securityModal .verification-item:hover {
    background-color: var(--main-color);
    color: white;
}

.verifypayment #securityModal .verification-item:hover .fa-solid {
    color: white;
}

.verifypayment #securityModal .verification-item.completed {
    cursor: default;
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: white;
}

.verifypayment #securityModal .verification-item.completed .fa-solid {
    color: white;
}

.verifypayment #securityModal .verification-item.completed .fa-chevron-right {
    display: none;
}

.verifypayment #securityModal .verification-item .fa-check-circle {
    display: none;
}

.verifypayment #securityModal .verification-item.completed .fa-check-circle {
    display: inline-block;
    color: white;
    /* Ensure checkmark is white on colored background */
}

.verifypayment #securityModal .verification-item span {
    font-weight: 500;
}

.verifypayment #securityModal .verification-item .fa-solid {
    color: #707a8a;
}

.verifypayment #securityModal .security-link {
    font-size: 0.875rem;
    color: #707a8a;
    text-decoration: none;
    font-weight: 500;
}

.verifypayment #securityModal .security-link:hover {
    text-decoration: underline;
}

.verifypayment #securityModal .protected-by {
    font-size: 0.8rem;
    color: #b0b8c2;
}

.verifypayment .btn-primary {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

/* modelpopup */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Updated main container with new ID */
.modal-header {
    border-bottom: 1px solid var(--light-border);
    padding: var(--spacing-md);
    background-color: #029494 !important;
}

.modal-title {
    color: var(--secondary-color);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.modal-header .btn-close {
    color: var(--secondary-color);
    filter: invert(1) !important;
}

.popup-login-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 90vh;
    width: 500px;
    animation: slideIn 0.3s ease;
    width: 100%;

}

.popup-login {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    margin: 20px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: var(--error-red);
    background-color: var(--light-bg);
}

.popup-login .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.popup-login .logo img {
    width: 150px;
}

.popup-login .loginscreentop {
    margin-bottom: var(--spacing-xl);
}

.popup-login .loginscreentop h1 {
    font-size: var(--font-size-xxl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.popup-login .loginscreentop .qr-code {
    float: right;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-top: -35px;
    color: var(--text-muted);
}

.popup-login.password-screen .loginscreentop h1,
.popup-login.otp-screen .loginscreentop h1 {
    margin-bottom: var(--spacing-md);
}

.popup-login .form-group {
    margin-bottom: var(--spacing-lg);
}

.popup-login .form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.popup-login .form-input {
    width: 100%;
    padding: 15px 0px 15px 5px;
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    background-color: var(--light-bg);
    transition: border-color 0.2s ease;
}

.popup-login .form-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.popup-login .form-input::placeholder {
    color: var(--text-muted);
}

.popup-login .primary-btn {
    width: 100%;
    padding: 15px 17px;
    background-color: var(--primary-green);
    color: var(--secondary-color);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: var(--spacing-lg);
}

.popup-login .primary-btn:hover {
    background-color: var(--secondary-red);
    color: var(--secondary-color);
}

.popup-login .create-account {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.popup-login .create-account a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.popup-login .create-account a:hover {
    color: var(--secondary-red);
}

/* Password input styles */
.popup-login .password-input-container {
    position: relative;
}

.popup-login .password-input-container .form-input[type="password"] {
    letter-spacing: 2px;
}

.popup-login .password-input-container .form-input[type="password"]::placeholder {
    letter-spacing: normal;
}

.popup-login .password-toggle {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.popup-login .password-toggle button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-login .password-toggle button:hover {
    background-color: var(--light-border);
}

.popup-login .password-toggle svg {
    width: 16px;
    height: 16px;
}

/* User info styles */
.popup-login .user-info {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

/* OTP Screen Styles */
.otp-description {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    line-height: 1.5;
}

.otp-input-container {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.otp-input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid var(--light-border);
    border-radius: var(--border-radius-sm);
    background-color: var(--light-bg);
    transition: border-color 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.resend-code {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.resend-code button {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.resend-code button:hover {
    color: var(--error-red);
}

.resend-code button:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: none;
}

.back-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: var(--font-size-sm);
    cursor: pointer;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Style for the error message text */
.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 10px;
    text-align: center;
    min-height: 1.2em;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.error-message.show {
    visibility: visible;
    opacity: 1;
}

.otp-input.error {
    box-shadow: 0 0 0 1px red !important;
    border: 1px solid red;
}

.otp-input-container.error-container {
    transition: border-bottom 0.3s ease-in-out;
}

.back-btn:hover {
    color: var(--secondary-red);
}

@media (max-width: 480px) {
    .popup-login {
        margin: var(--spacing-sm);
        padding: var(--spacing-lg) var(--spacing-md);
        width: 345px;
    }

    .otp-input-container {
        gap: var(--spacing-xs);
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* modelpopup end */


/* new Changes */
.btn-th-green:active,
.btn-th-green{
    background-color: var(--primary-green);
    color: var(--secondary-color);
    width: 100%;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-weight: bold;
    font-size: var(--font-size-base);
    border: none;
    transition: background-color 0.2s;
}

.btn-th-green:hover:not(:disabled) {
    /* Added :not(:disabled) */
    background-color: var(--secondary-red);
    /* Corrected hover color */
    color: var(--secondary-color);
}

.btn-th-green:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}


/* loader PAge*/
.loader-wrapper {
    position: fixed;
    /* Fixes the loader in the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* Loader background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Ensures loader is on top of everything */
    transition: opacity 0.75s, visibility 0.75s;
    /* Smooth fade-out */
}

.loader {
    border: 8px solid #f3f3f3;
    /* Light grey */
    border-top: 8px solid #029494;
    /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    /* Animation definition */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* When the loader is hidden */
.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.limitamount {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    align-items: center;
    align-content: center;
}

/* UPDATED: Cancel Appeal Modal Specific Styles */
#cancelAppealModal .modal-body {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#cancelAppealModal .warning-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;

}

#cancelAppealModal .modal-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

#cancelAppealModal .modal-footer {
    display: flex;
    gap: 1rem;
}

#cancelAppealModal .modal-footer .btn {
    flex: 1;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-weight: 600;
}


#cancelAppealModal .btn-secondary {
    background-color: var(--light-bg);
    border-color: var(--light-bg);
    color: var(--text-primary);
}

.infoformbtn:hover {
    background-color: var(--primary-green) !important;
    opacity: 0.9;
    color: #fff;

}

.cancel-appeal-link {
    cursor: pointer;
}

.upload-box {
    width: 100%;
    height: 130px;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    transition: background-color 0.2s, border-color 0.2s;
}

.upload-box-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .upload-box {
        width: 150px;
        height: 150px;
        border: 2px dashed #17a2b8;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .upload-box:hover {
        background-color: #f1f3f5;
    }

    .upload-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .file-input {
        display: none;
    }

/*div#uploadedFilesDisplay {*/
/*    display: flex;*/
/*    margin: 20px 0px;*/
/*}*/
