/**
 * SMM Today - Modern Clean Payment Styles
 * New design with different colors and formatting
 */

/* Main Container - Light background */
.smm-service-details {
    margin: 12px 0;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #2d3748;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Service Details - New colors */
.service-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.service-detail-card {
    background: white;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.service-detail-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 20px;
    margin-bottom: 10px;
    color: #805ad5;
    background: rgba(128, 90, 213, 0.1);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-content h5 {
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-content p {
    margin: 0;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
}

.service-price {
    color: #3182ce;
    font-weight: 700;
    font-size: 15px;
}

.service-min-val, .service-max-val {
    background: #805ad5;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    margin: 0 2px;
}

/* Order Details - New design */
.order-details-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.field-label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    display: block;
}

.link_txtbox {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    color: #2d3748;
    background: white;
    transition: all 0.2s ease;
}

.link_txtbox:focus {
    outline: none;
    border-color: #805ad5;
    box-shadow: 0 0 0 2px rgba(128, 90, 213, 0.1);
}

/* Payment Section - Different colors */
.smm-payment-integrated {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.smmtoday-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.secure-badge {
    font-size: 13px;
    color: #38a169;
    font-weight: 500;
    margin: 0;
}

.payment-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

/* Payment Gateways - Purple colors */
.smmtoday-payment-gateways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.smm-payment-gateway-card {
    background: white;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smm-payment-gateway-card:hover {
    border-color: #805ad5;
}

.smm-payment-gateway-card.active {
    background: #805ad5;
    border-color: #805ad5;
}

.smm-payment-gateway-card.active .gateway-name {
    color: white;
    font-weight: 600;
}

.smm-payment-gateway-card.active::after {
    content: "✓";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: white;
    color: #805ad5;
    border-radius: 50%;
    font-size: 9px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gateway-name {
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    margin: 0;
}

/* Buy Now Button - New color */
.smmtoday-buy-now-container {
    margin: 20px 0 0 0;
    text-align: center;
}

.smmtoday-buy-now-button {
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background: #cbd5e0;
    color: #718096;
    border: none;
    cursor: not-allowed;
    transition: all 0.2s ease;
    min-width: 180px;
}

.smmtoday-buy-now-button.active {
    background: #3182ce;
    color: white;
    cursor: pointer;
}

.smmtoday-buy-now-button.active:hover {
    background: #2c5aa0;
}

/* Responsive */
@media (max-width: 768px) {
    .smm-service-details {
        padding: 16px;
        margin: 8px 0;
    }
    
    .service-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .smmtoday-payment-gateways-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .smmtoday-payment-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/**
 * SMM Today - Compact Payment Styles
 * Compact design without large spaces
 */

/* Payment Section - Compact and coordinated */
.smm-payment-integrated {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.smmtoday-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.secure-badge {
    font-size: 13px;
    color: #38a169;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.payment-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

/* Payment Gateways - Compact without repetition */
.smmtoday-payment-gateways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
    margin-bottom: 12px;
}

.smm-payment-gateway-card {
    background: white;
    border-radius: 6px;
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.smm-payment-gateway-card:hover {
    border-color: #805ad5;
}

.smm-payment-gateway-card.active {
    background: #805ad5;
    border-color: #805ad5;
}

.smm-payment-gateway-card.active .gateway-name {
    color: white;
    font-weight: 600;
}

/* Hide extra icon */
.gateway-icon-wrapper {
    display: none;
}

.gateway-fallback {
    display: none;
}

.gateway-selected-indicator {
    display: none;
}

.smm-payment-gateway-card.active::after {
    content: "✓";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: white;
    color: #805ad5;
    border-radius: 50%;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gateway-name {
    font-size: 11px;
    font-weight: 500;
    color: #4a5568;
    margin: 0;
    line-height: 1.2;
}

/* Balance Info - Compact */
.balance-info {
    text-align: center;
    margin: 8px 0;
    padding: 6px;
    background: #f7fafc;
    border-radius: 4px;
    color: #4a5568;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

/* Payment Features - Compressed */
.payment-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 400;
    color: #718096;
}

.feature-icon {
    font-size: 12px;
    color: #805ad5;
}

/* Buy Now Button - Inside frame */
.smmtoday-buy-now-container {
    margin: 12px 0 0 0;
    text-align: center;
    width: 100%;
}

.smmtoday-buy-now-button {
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    background: #cbd5e0;
    color: #718096;
    border: none;
    cursor: not-allowed;
    transition: all 0.2s ease;
    min-width: 160px;
    width: auto;
    display: inline-block;
}

.smmtoday-buy-now-button.active {
    background: #3182ce;
    color: white;
    cursor: pointer;
}

.smmtoday-buy-now-button.active:hover {
    background: #2c5aa0;
}

/* Responsive */
@media (max-width: 768px) {
    .smmtoday-payment-header {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .smmtoday-payment-gateways-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .payment-features {
        gap: 8px;
    }
}

.smmtoday-buy-now-container {
    margin: 15px 0 0 0;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.smmtoday-buy-now-button {
    padding: 16px 50px;
    font-size: 20px;
    font-weight: 900;
    border-radius: 10px;
    background: linear-gradient(45deg, #176d8f, #35a2b5);
    color: #fff;
    border: 2px solid #cbd5e0;
    cursor: not-allowed;
    transition: all 0.3s ease;
    min-width: 250px;
    width: 90%;
    max-width: 300px;
    display: inline-block;
    flex-direction: row; /* To stay in one line */
}

.smmtoday-buy-now-button.active {
    background: #3182ce;
    color: white;
    cursor: pointer;
    border-color: #3182ce;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.smmtoday-buy-now-button.active:hover {
    background: #2c5aa0;
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.payment-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 140px;
    justify-content: center;
}

.feature-icon {
    font-size: 15px;
    color: #805ad5;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.secure-badge {
    font-size: 14px;
    color: #b8860b;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fffaf0, #fffaf0);
    padding: 5px 18px;
    border-radius: 25px;
    border: 1.5px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.secure-icon {
    font-size: 16px;
    color: #b8860b;
}

.smm-payment-gateway-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    border: none;
    position: relative;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center; /* To center in the middle */
    transition: all 0.3s ease;
}

.gateway-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    line-height: 1.2;
    padding: 0 6px;
    text-align: center; /* To center the text */
}

.smm-payment-gateway-card.active::after {
    content: "✓";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(72, 187, 120, 0.5);
    z-index: 10;
}

/* Space under Secure Payment */
.smmtoday-payment-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Space under payment gateways */
.smmtoday-payment-gateways-grid {
    margin-bottom: 10px;
}

/* Space under payment features */
.payment-features {
    margin: 10px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Service Details Header */
.smm-service-details > h3:first-of-type {
    font-size: 14px;
    color: #2d774a;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    padding: 5px 18px;
    border-radius: 25px;
    border: 1.5px solid #48bb78;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    width: fit-content;
}

.smm-service-details > h3:first-of-type::before {
    content: "⚙️";
    font-size: 16px;
}

/* Order Details Header */
.smm-service-details .order-details-section > h3 {
    font-size: 14px;
    color: #2c5aa0;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e3f2fd, #90cdf4);
    padding: 5px 18px;
    border-radius: 25px;
    border: 1.5px solid #3182ce;
    box-shadow: 0 2px 8px rgba(128, 90, 213, 0.15);
    width: fit-content;
}

.smm-service-details .order-details-section > h3::before {
    content: "📦";
    font-size: 16px;
}

/* Service Details spacing */
.smm-service-details h3:first-child {
    margin-bottom: 25px;
}

.service-details-grid {
    margin-bottom: 25px;
    gap: 15px;
}

.service-detail-card {
    padding: 15px 10px;
}

.service-icon {
    margin-bottom: 12px;
}

.service-content h5 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.service-content p {
    margin-top: 5px;
}

/* Arrow between numbers without being in a frame */
.service-detail-card:last-child .service-content p {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-card:last-child .service-content p::before {
    content: "➡️";
    color: #667eea;
    font-weight: bold;
    font-size: 20px;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.service-detail-card:last-child .service-content p .service-min-val {
    order: 1;
}

.service-detail-card:last-child .service-content p .service-max-val {
    order: 3;
}

/* Validation message formatting */
.smmtoday-validation-messages .validation-message {
    display: none;
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

.smmtoday-validation-messages .quantity-error {
    background: #fef2f2;
    border-left-color: #dc2626;
    color: #dc2626;
}

.smmtoday-validation-messages .link-error {
    background: #fffbeb;
    border-left-color: #d97706;
    color: #d97706;
}

.smmtoday-validation-messages .payment-error {
    background: #f0fdf4;
    border-left-color: #16a34a;
    color: #16a34a;
}

.smmtoday-validation-messages .validation-icon {
    margin-right: 8px;
}

/* Button shake effect */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

#smmtoday-buy-now-btn.shake {
    animation: shake 0.5s ease-in-out;
}

.smmtoday-validation-messages .validation-message.shake {
    animation: slideIn 0.3s ease, shake 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}