/* ── SMM Panel Frontend ── */

.smm-panel {
    max-width: 620px;
    margin: 0 auto;
    padding: 36px 40px 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

/* Service Select */
.smm-service-select-wrap {
    margin-bottom: 20px;
}

.smm-service-select-wrap select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    color: #555;
    background: #f8f8fa;
    appearance: auto;
    box-sizing: border-box;
}

.smm-service-select-wrap select:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Header */
.smm-header {
    margin-bottom: 12px;
}

.smm-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.smm-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* Badges / Properties */
.smm-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 0;
}

.smm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

.smm-badge svg {
    flex-shrink: 0;
}

.smm-badge-divider {
    color: #ddd;
    font-size: 14px;
    margin: 0 4px;
    user-select: none;
}

/* Input Row */
.smm-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.smm-input-group {
    flex: 1;
    position: relative;
}

.smm-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.smm-input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1px solid #e8e8ec;
    border-radius: 14px;
    font-size: 14px;
    color: #333;
    background: #f8f8fa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.smm-input-group input:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    background: #fff;
}

.smm-input-group input::placeholder {
    color: #b0b0b0;
    font-weight: 400;
}

/* Info Message */
.smm-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f8fa;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

.smm-info svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Countdown Timer */
.smm-countdown-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.smm-countdown-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.smm-countdown-fill {
    height: 100%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 3px;
    transition: width 1s linear;
    width: 0%;
}

.smm-countdown-text {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.smm-countdown-text span {
    color: #6c5ce7;
    font-weight: 700;
}

/* Submit Button */
.smm-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--btn-color, #6c5ce7), color-mix(in srgb, var(--btn-color, #6c5ce7), #fff 20%));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.smm-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.smm-btn:active {
    transform: translateY(0);
}

.smm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Message */
.smm-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.smm-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.smm-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Hidden helper */
.smm-count-info {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .smm-panel {
        padding: 24px 20px 20px;
        margin: 0 10px;
    }

    .smm-input-row {
        flex-direction: column;
        gap: 10px;
    }

    .smm-badges {
        gap: 4px;
    }
}
