/* Existing styles kept for compatibility, with additions for new modal design */

/* Core coin styles */
.wp-manga-chapter .coin {
    background: #dcdcdc;
    padding: 3px 5px;
    border-radius: 3px;
    width: 50px;
    margin-right: 10px;
    display: inline-block;
    text-align: center;
}

.wp-manga-chapter.premium-block .coin {
    background: #fe6a10;
    color: #FFF;
}

.coin i {
    padding-right: 5px;
}

.premium .fas.fa-lock, .premium .fas.fa-lock-open {
    margin: 0 10px;
}

/* Updated modal button styles to match new design */
body.modal-open #frm-wp-manga-buy-coin.modal .modal-content .button {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-weight: 500;
    color: #fff;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    width: 100%;
}

body.modal-open #frm-wp-manga-buy-coin.modal .modal-content .button.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

body.modal-open #frm-wp-manga-buy-coin.modal .modal-content .button.button-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

body.modal-open #frm-wp-manga-buy-coin.modal .modal-content .button.button-primary i {
    display: none;
}

body.modal-open #frm-wp-manga-buy-coin.modal .modal-content .button.button-primary.disabled i {
    display: inline-block;
}

body.modal-open #frm-wp-manga-buy-coin.modal .modal-content .button.btn-cancel {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    width: auto;
}

body.modal-open #frm-wp-manga-buy-coin.modal .modal-content .button.btn-cancel:hover {
    background: #e0e0e0;
}

body.modal-open #frm-wp-manga-buy-coin.modal .modal-content .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    justify-content: center;
}

/* New custom modal design styles - matching the attached image aesthetic */
#frm-wp-manga-buy-coin .custom-modal-design {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    background: #fff;
}

#frm-wp-manga-buy-coin .custom-header {
    background: #fff;
    border-bottom: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#frm-wp-manga-buy-coin .custom-header .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#frm-wp-manga-buy-coin .custom-header .close {
    font-size: 24px;
    color: #999;
    opacity: 1;
    background: none;
    border: none;
    cursor: pointer;
}

#frm-wp-manga-buy-coin .custom-header .close:hover {
    color: #333;
}

#frm-wp-manga-buy-coin .custom-body {
    padding: 24px;
    background: #fff;
}

#frm-wp-manga-buy-coin .choose-method {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

#frm-wp-manga-buy-coin .unlock-option {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

#frm-wp-manga-buy-coin .unlock-option:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#frm-wp-manga-buy-coin .option-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

#frm-wp-manga-buy-coin .unlock-option h6 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

#frm-wp-manga-buy-coin .unlock-option p {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
}

#frm-wp-manga-buy-coin .btn-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

#frm-wp-manga-buy-coin .btn-option:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#frm-wp-manga-buy-coin .btn-option:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    color: #999;
}

#frm-wp-manga-buy-coin .cookies .cookies-count {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

#frm-wp-manga-buy-coin .cookies .cookie-icon {
    font-size: 18px;
    margin-right: 4px;
}

#frm-wp-manga-buy-coin .message-login,
#frm-wp-manga-buy-coin .message-sufficient-min,
#frm-wp-manga-buy-coin .message-sufficient,
#frm-wp-manga-buy-coin .message-lack-of-coin {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 16px 0;
}

#frm-wp-manga-buy-coin .hidden {
    display: none;
}

#frm-wp-manga-buy-coin .auth-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 16px 0;
}

#frm-wp-manga-buy-coin .btn-auth {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

#frm-wp-manga-buy-coin .btn-auth:hover {
    background: #e0e0e0;
}

#frm-wp-manga-buy-coin .get-cookies-link {
    display: block;
    text-align: center;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin: 12px 0;
}

#frm-wp-manga-buy-coin .get-cookies-link:hover {
    text-decoration: underline;
}

#frm-wp-manga-buy-coin .chapter-title {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-style: italic;
}

/* Animation for smooth entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#frm-wp-manga-buy-coin .unlock-option {
    animation: fadeInUp 0.3s ease;
}

/* Cookie note style */
#frm-wp-manga-buy-coin .cookie-note {
    font-size: 85%;
    color: #777;
    display: block;
    margin-top: 3px;
    line-height: 1.3;
}

/* Existing styles for other components - unchanged */
#frm-wp-manga-buy-coin .coin {
    color: #FF0000;
    font-size: 1.5em;
}

.message-sufficient.hidden {
    display: none;
}

.message-lack-of-coin.hidden {
    display: none;
}

.content-blocked.premium-block {
    padding: 100px 0;
    background: #F2F2F2;
    border: 1px solid #CCC;
    text-align: center;
    margin-bottom: 15px;
}

.content-blocked.premium-block a {
    color: #FF0000;
}

.wp-manga-chapter-coin-shortcode.shortcode-my-bought .title {
    margin-bottom: 20px;
}

.user-balance-panel .user-balance {
    display: block;
}

.user-balance {
    font-size: 20px;
    font-weight: bold;
}

.shortcode-top-bought .item-thumb {
    position: relative;
}

.shortcode-top-bought .item-thumb .index {
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-block;
    width: 40px;
    height: 40px;
    font-size: 19px;
    text-align: center;
    background: rgba(255, 248, 26, 0.6);
    border-radius: 999em;
}

.shortcode-top-bought .item-thumb .index.index-1 {
    font-size: 25px;
    width: 50px;
    height: 50px;
}

.wp-manga-chapter-coin-shortcode .badge-pos-2 .manga-title-badges {
    position: absolute;
    top: 5px;
    left: 5px;
}

.form.myCRED-buy-form .form-group {}

.form.myCRED-buy-form {
    text-align: center;
    background: #f2f2f2;
    padding: 20px 40px;
    border: 1px solid #CCC;
    width: 100%;
}

.form.myCRED-buy-form label,
.form.myCRED-buy-form .form-control-static {
    font-size: 24px;
    font-weight: bold;
}

.form.myCRED-buy-form .form-control-static {
    color: #FF0000;
    font-size: 50px;
}

button#checkout-action-button,
.form.myCRED-buy-form input[type="submit"] {
    background: #007bff;
    color: #FFF;
}

.form.myCRED-buy-form input[type="submit"]:hover {
    background: #0069d9;
    color: #FFF;
}

.form.myCRED-buy-form input[name="amount"] {
    background: #FFF;
    font-size: 24px;
}

.widget.widget-my-cred .myCRED-balance {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
}

.widget.widget-my-cred .myCRED-balance:before {
    content: "\f51e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin: 0 5px;
}

.manga-shortcodes.manga-chapters-listing .coin {
    display: none;
}

/* Fix for typo in original: 'soid' -> 'solid' */
.form.myCRED-buy-form {
    border: 1px solid #CCC; /* Corrected from 'soid' */
}