#buttonText{
    min-width: 250px;
}

#customErrorMsg{
    border-left: 4px solid #ef4444;
    padding: 16px;
    margin: 0 0 20px;
    background-color: #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    color: #f87171;
    border-radius: 8px;
}

.metamaskImage{
    width: 30%;
    height: 30%;
}

.moweb3-text-danger{
    color: #ef4444;
}

.moweb3-license-plan tr:nth-child(odd) {
    background-color: #1f2937;
}

.moweb3-lic-head {
    background: #111827!important;
    color: #fff;
}

#handleTokenIdOverflow{
    max-width: 200px;
    overflow: hidden;
    color: #60a5fa !important;
    text-decoration: underline;
    cursor: pointer;
}

.shadow-cstm {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
}

.moweb3-btn-cstm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)!important;
    border: none;
    margin-right: 10px;
    font-size: 1.1rem;
    padding: .5rem 1.5rem;
    color: #fff!important;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.moweb3-btn-cstm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.cursor-disabled:hover {
    cursor: not-allowed;
}

.moweb3-h3, .moweb3-h2 {
    margin-block-start: 0em;
    margin-block-end: 0em;
    color: #f9fafb!important;
}

.moweb3-h3{
    font-size: 1.17rem;
    font-weight: 600;
}

.moweb3-h2 {
    font-weight: 700;
}

.web3modal-modal-lightbox,.pera-wallet-connect-modal{
    z-index: 1056 !important;
}

.center {
    display: flex;
    justify-content: center;
}

div.hover:hover {
    background-color: #374151;
    border-radius: 12px;
}

.moweb3-hr {
    margin: 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #374151, transparent);
}

.mo_web3_subsites_settings_table td{
    border: 1px solid #374151;
    text-align: left;
    padding: 8px;
    text-align: center;
}

/* The moweb3-modal (background) */
.moweb3-handle-multi-click.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* The moweb3-modal (background) */
.moweb3-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.moweb3-inline-form-input{
    margin-bottom: 5%!important;
    border: 1px solid #4b5563!important;
    border-radius: 8px!important;
    background-color: #1f2937!important;
    color: #f9fafb!important;
    display: block!important;
    width: 100%!important;
    padding: 10px!important;
}

.moweb3-inline-form-input:focus {
    outline: none;
    border-color: #667eea!important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* moweb3-modal Content */
.moweb3-modal-content {
    position: relative;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    margin: auto;
    padding: 0;
    border: 1px solid #374151;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.3s;
    animation-name: animatetop;
    animation-duration: 0.3s;
}

/* Responsive breakpoints - mobile first approach */
@media screen and (min-width: 480px) {
    .moweb3-modal-content {
        width: 85%;
    }
}

@media screen and (min-width: 640px) {
    .moweb3-modal-content {
        width: 70%;
        max-width: 500px;
    }
}

@media screen and (min-width: 768px) {
    .moweb3-modal-content {
        width: 55%;
        max-width: 520px;
    }
}

@media screen and (min-width: 1024px) {
    .moweb3-modal-content {
        width: 40%;
        max-width: 540px;
    }
}

@media screen and (min-width: 1280px) {
    .moweb3-modal-content {
        width: 32%;
        max-width: 560px;
    }
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes animatetop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* The Close Button */
.moweb3-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: #9ca3af;
    background-color: rgba(75, 85, 99, 0.3);
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
    cursor: pointer;
    border: 1px solid rgba(156, 163, 175, 0.1);
}

.moweb3-close:hover,
.moweb3-close:focus {
    color: #f9fafb;
    background-color: rgba(75, 85, 99, 0.5);
    transform: scale(1.05);
    border-color: rgba(156, 163, 175, 0.2);
}

.moweb3-close:active {
    transform: scale(0.95);
}

.moweb3-modal-header {
    padding: 24px 64px 16px 24px;
    background: transparent;
    color: #f9fafb;
    position: relative;
}

.moweb3-center {
    text-align: center;
}

.moweb3-hover {
    transition: all 0.2s ease;
    border-radius: 12px;
    cursor: pointer;
}

.moweb3-hover:hover {
    background-color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.moweb3-hover:active {
    transform: translateY(0);
}

.moweb3-add-padding {
    padding: 16px 20px;
}

.moweb3-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 12px;
}

/* Custom scrollbar for modal body */
.moweb3-modal-body::-webkit-scrollbar {
    width: 8px;
}

.moweb3-modal-body::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

.moweb3-modal-body::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.moweb3-modal-body::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.moweb3-modal-footer {
    padding: 16px 24px;
    background: transparent;
}

.moweb3-btn {
    border: none!important;
    color: white!important;
    padding: 12px 24px!important;
    text-align: center!important;
    text-decoration: none!important;
    display: inline-block!important;
    font-size: 16px!important;
    font-weight: 600!important;
    margin: 4px 2px!important;
    transition: all 0.3s ease!important;
    cursor: pointer!important;
    border-radius: 8px!important;
    width: auto!important;
}

.moweb3-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)!important;
    color: white!important;
    border: none!important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.moweb3-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.moweb3-btn-primary:active {
    transform: translateY(0);
}

.moweb3-remove-margin{
    margin-block-start: 0em;
    margin-block-end: 0em;
    color: #9ca3af;
    font-size: 0.875rem;
}

.moweb3-button-loader {
    position: relative;
    display: inline-block;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.moweb3-button-loader .moweb3-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
    z-index: 1;
}

.moweb3-button-loader .moweb3-button-text {
    position: relative;
    z-index: 2;
    padding: 12px 24px;
}

@keyframes loader-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.moweb3-button-loader:disabled .moweb3-button-text {
    opacity: 0.5;
    cursor: not-allowed;
}

.moweb3-display-inline{
    display: inline;
}

.moweb3-notice{
    padding: 16px;
    border: 1px solid #374151;
    margin: 15px;
    background-color: #1f2937;
    border-radius: 8px;
    color: #60a5fa;
}

/* Wallet option styling improvements */
.moweb3-wallet-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.moweb3-wallet-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.moweb3-wallet-info {
    flex: 1;
}

/* Mobile specific improvements */
@media screen and (max-width: 640px) {
    .moweb3-modal {
        padding-top: 20px;
    }
    
    .moweb3-modal-header {
        padding: 20px 56px 12px 16px;
    }
    
    .moweb3-h2 {
        font-size: 1.25rem!important;
    }
    
    .moweb3-add-padding {
        padding: 14px 16px;
    }
    
    .moweb3-btn {
        padding: 10px 20px!important;
        font-size: 15px!important;
    }
    
    .moweb3-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

/* Add focus states for accessibility */
.moweb3-hover:focus,
.moweb3-btn:focus,
.moweb3-close:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Improve clickable area on mobile */
@media (hover: none) and (pointer: coarse) {
    .moweb3-hover {
        min-height: 80px;
    }
    
    .moweb3-close {
        padding: 8px;
        margin: -8px;
    }
}