/* =============================================
   MANTAR BAYI MODULU - Frontend Styles
   ============================================= */

/* --- User Panel --- */
.mbm-user-panel { max-width: 800px; margin: 0 auto; color: inherit; }
.mbm-panel-header { margin-bottom: 24px; }
.mbm-panel-header h3 { margin: 0; }
.mbm-panel-stats {
    display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.mbm-stat-item {
    padding: 16px 24px; text-align: center; flex: 1; min-width: 100px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.mbm-stat-item svg { opacity: 0.5; margin-bottom: 2px; }
.mbm-stat-number { display: block; font-size: 28px; font-weight: 700; }
.mbm-stat-label { display: block; font-size: 12px; opacity: 0.6; }
.mbm-panel-empty { text-align: center; padding: 40px 20px; }

/* --- Panel Tabs --- */
.mbm-panel-tabs {
    display: flex; gap: 0; margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
}
.mbm-panel-tabs::-webkit-scrollbar { display: none; }
.mbm-panel-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 20px; border: none; background: none;
    cursor: pointer; font-size: 14px; font-weight: 600;
    white-space: nowrap; color: inherit; opacity: 0.5;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: opacity 0.2s, border-color 0.2s;
}
.mbm-panel-tab:hover { opacity: 0.8; }
.mbm-panel-tab.active { opacity: 1; border-bottom-color: currentColor; }
.mbm-panel-tab svg { flex-shrink: 0; }
.mbm-tab-panel { display: none; }
.mbm-tab-panel.active { display: block; }

/* --- TRABİS Form --- */
.mbm-trabis-info { font-size: 13px; opacity: 0.6; margin: 0 0 20px; line-height: 1.5; }
.mbm-trabis-form { display: flex; flex-wrap: wrap; gap: 14px; max-width: 100%; }
.mbm-trabis-row { display: flex; flex-direction: column; gap: 4px; flex: 1 1 calc(50% - 7px); min-width: 200px; }
.mbm-trabis-row-full { flex: 1 1 100%; }
.mbm-trabis-row label { font-size: 13px; font-weight: 600; }
.mbm-trabis-row label small { font-weight: 400; opacity: 0.5; }
.mbm-trabis-row .mbm-edit-input { width: 100%; }
.mbm-trabis-row textarea.mbm-edit-input { resize: vertical; }
.mbm-trabis-type-group { display: flex; gap: 20px; padding: 8px 0; }
.mbm-trabis-radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; font-weight: 400; }
.mbm-trabis-radio input[type="radio"] { margin: 0; }
.mbm-trabis-save { display: inline-flex; align-items: center; gap: 6px; }
.mbm-trabis-save svg { flex-shrink: 0; }
.mbm-trabis-message { font-size: 13px; padding: 10px; border-radius: 4px; display: none; flex: 1 1 100%; }
.mbm-trabis-message.success { display: block; background: rgba(40,167,69,0.15); }
.mbm-trabis-message.error { display: block; background: rgba(220,53,69,0.12); }

/* --- Domain Cards --- */
.mbm-domain-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px;
}
.mbm-domain-item {
    padding: 20px; display: flex; flex-direction: column; gap: 12px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    transition: box-shadow 0.2s ease;
    background: inherit; color: inherit;
}
.mbm-domain-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.mbm-domain-item.mbm-expired { border-left: 4px solid; border-left-color: currentColor; opacity: 0.85; }
.mbm-domain-item.mbm-expiring { border-left: 4px solid; border-left-color: currentColor; opacity: 0.95; }
.mbm-domain-item-top {
    display: flex; justify-content: space-between; align-items: center;
}
.mbm-domain-item-name { font-size: 18px; font-weight: 700; }
.mbm-domain-item-days { font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 4px; opacity: 0.7; }
.mbm-domain-item-days svg { flex-shrink: 0; }
.mbm-domain-item-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.mbm-domain-item-badge { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 600; border-radius: 4px; }
.mbm-badge-active { background: rgba(40,167,69,0.15); color: inherit; }
.mbm-badge-expiring { background: rgba(255,193,7,0.2); color: inherit; }
.mbm-badge-expired { background: rgba(220,53,69,0.12); color: inherit; }
.mbm-domain-item-details { font-size: 13px; display: flex; flex-direction: column; gap: 4px; opacity: 0.8; }
.mbm-detail-line { display: flex; gap: 8px; }
.mbm-detail-label { min-width: 40px; opacity: 0.6; }
.mbm-domain-item-actions { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #e0e0e0; }
.mbm-domain-item-actions .button { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mbm-domain-item-actions .button svg { flex-shrink: 0; }

/* --- Hosting Modal Steps --- */
.mbm-hosting-modal-step { display: flex; flex-direction: column; gap: 14px; }
.mbm-hosting-modal-step.hidden { display: none; }
.mbm-modal-step-title { font-weight: 700; font-size: 16px; margin: 0; }
.mbm-hosting-domain-list { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.mbm-hosting-domain-item {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    border: 1px solid #e0e0e0; border-radius: 6px; cursor: pointer;
    transition: all 0.15s; font-size: 14px;
}
.mbm-hosting-domain-item:hover { border-color: currentColor; }
.mbm-hosting-domain-item.selected { border-color: #007cba; background: rgba(0,124,186,0.06); font-weight: 600; }
.mbm-hosting-domain-item input[type="radio"] { margin: 0; flex-shrink: 0; }
.mbm-hosting-domain-or {
    text-align: center; font-size: 12px; opacity: 0.4;
    display: flex; align-items: center; gap: 12px;
}
.mbm-hosting-domain-or::before, .mbm-hosting-domain-or::after { content: ''; flex: 1; height: 1px; background: #e0e0e0; }
.mbm-hosting-domain-external { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mbm-hosting-domain-external .mbm-edit-input { flex: 1; min-width: 140px; }
.mbm-ext-domain-note {
    font-size: 12px; opacity: 0.7; display: flex; align-items: center; gap: 5px;
    padding: 8px 10px; background: rgba(255,193,7,0.1); border-radius: 4px; width: 100%;
}
.mbm-ext-domain-note svg { flex-shrink: 0; opacity: 0.6; }
.mbm-hosting-period-select { width: 100%; padding: 10px; font-size: 15px; border: 1px solid #e0e0e0; border-radius: 6px; }
.mbm-hosting-period-total { font-size: 24px; font-weight: 700; text-align: center; padding: 8px 0; }
.mbm-hosting-add-cart { width: 100%; padding: 12px !important; font-size: 15px !important; }

.mbm-hosting-card {
    padding: 24px; display: flex; flex-direction: column; gap: 20px;
    border: 1px solid #e0e0e0; border-radius: 10px;
    transition: box-shadow 0.2s ease;
    background: inherit; color: inherit;
}
.mbm-hosting-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.mbm-hosting-card-top {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.mbm-hosting-card-name { display: flex; align-items: center; gap: 10px; }
.mbm-hosting-card-name strong { font-size: 18px; font-weight: 700; }
.mbm-hosting-card-domain { font-size: 14px; display: flex; align-items: center; gap: 6px; opacity: 0.8; }
.mbm-hosting-card-domain svg { flex-shrink: 0; opacity: 0.5; }
.mbm-hosting-card-days {
    display: inline-flex; align-items: center; gap: 3px;
    margin-left: 4px; padding: 2px 8px; border-radius: 12px;
    font-size: 12px; font-weight: 600;
    background: rgba(40,167,69,0.15);
}

/* --- Quota Grid --- */
.mbm-hosting-card-quotas {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.mbm-hosting-quota {
    display: flex; flex-direction: column; gap: 6px;
}
.mbm-quota-header {
    display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.mbm-quota-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; opacity: 0.7; }
.mbm-quota-label svg { flex-shrink: 0; opacity: 0.5; }
.mbm-quota-value { font-size: 12px; opacity: 0.6; white-space: nowrap; }

/* --- Progress Bars --- */
.mbm-progress-bar {
    height: 6px; background: rgba(0,0,0,0.08); border-radius: 3px; overflow: hidden;
}
.mbm-progress-fill {
    height: 100%; border-radius: 3px; background: #28a745; transition: width 0.5s ease;
}
.mbm-progress-fill.mbm-progress-warn { background: #ffc107; }
.mbm-progress-fill.mbm-progress-danger { background: #dc3545; }

/* --- Hosting Info Row --- */
.mbm-hosting-card-info {
    display: flex; gap: 24px; flex-wrap: wrap; padding: 12px 0;
    border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}
.mbm-hosting-info-item { display: flex; flex-direction: column; gap: 2px; }
.mbm-info-label { opacity: 0.5; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.mbm-info-value { font-weight: 600; }

/* --- Hosting Actions --- */
.mbm-hosting-card-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.mbm-hosting-card-actions .button {
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.mbm-hosting-card-actions .button svg { flex-shrink: 0; }

/* Responsive */
@media screen and (max-width: 600px) {
    .mbm-hosting-card-quotas { grid-template-columns: 1fr; }
    .mbm-hosting-card-top { flex-direction: column; align-items: flex-start; }
    .mbm-hosting-card-info { flex-direction: column; gap: 8px; }
    .mbm-hosting-card-actions { flex-direction: column; }
    .mbm-hosting-card-actions .button { justify-content: center; }
}


/* --- Modal Base --- */
.mbm-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999999; display: flex; align-items: center; justify-content: center;
}
.mbm-modal.hidden { display: none; }
.mbm-modal-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1;
}
.mbm-modal-content {
    position: relative; z-index: 2; background: #fff; color: inherit; border-radius: 8px;
    width: 90%; max-width: 450px; box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    max-height: 90vh; overflow-y: auto;
}
.mbm-modal-wide { max-width: 560px !important; }
.mbm-modal-small { max-width: 400px !important; }
.mbm-modal-header {
    padding: 15px 20px; border-bottom: 1px solid #e0e0e0;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; background: #fff; border-radius: 8px 8px 0 0; z-index: 1;
}
.mbm-modal-header h3 { margin: 0; font-size: 16px; flex: 1; text-align: center; }
.mbm-modal-close {
    background: none; border: none; font-size: 24px;
    cursor: pointer; color: inherit; padding: 0; line-height: 1;
    flex-shrink: 0; opacity: 0.5;
}
.mbm-modal-close:hover { opacity: 1; }
.mbm-modal-body { padding: 20px; text-align: center; }
.mbm-modal-body .mbm-renew-cart-btn { display: inline-block; width: auto; min-width: 200px; }
.mbm-modal-domain-name { font-size: 18px; font-weight: 700; text-align: center; }
.mbm-modal-field { margin-bottom: 16px; text-align: center; }
.mbm-modal-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.mbm-modal-field select,
.mbm-modal-field .mbm-domain-years { display: inline-block; width: auto; min-width: 200px; margin: 0 auto; box-sizing: border-box; }
.mbm-modal-message {
    padding: 10px; border-radius: 4px; display: none; font-size: 13px; margin-top: 12px;
}
.mbm-modal-message.success { display: block; background: rgba(40,167,69,0.15); }
.mbm-modal-message.error { display: block; background: rgba(220,53,69,0.12); }

/* --- Modal Back Button --- */
.mbm-modal-back-btn {
    background: none; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; color: inherit; padding: 0;
    margin-right: 12px; white-space: nowrap;
    flex-shrink: 0; opacity: 0.6;
}
.mbm-modal-back-btn:hover { opacity: 1; }
.mbm-modal-back-btn.hidden { display: none; }
.mbm-modal-back-btn svg { flex-shrink: 0; }

/* --- Category Grid --- */
.mbm-cat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.mbm-cat-btn {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 8px;
    padding: 20px 12px; border: 1px solid; border-color: inherit; border-radius: 8px;
    background: transparent; cursor: pointer; transition: all 0.2s ease;
    text-align: center; color: inherit;
}
.mbm-cat-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    opacity: 0.85;
}
.mbm-cat-btn svg { opacity: 0.6; }
.mbm-cat-btn:hover svg { opacity: 1; }
.mbm-cat-btn span { font-size: 12px; font-weight: 600; line-height: 1.3; }

/* --- Category Panels --- */
.mbm-cat-panel { display: flex; flex-direction: column; gap: 12px; }
.mbm-cat-panel.hidden { display: none; }
.mbm-cat-status-text { font-size: 14px; padding: 10px 12px; background: transparent; border: 1px solid; border-color: inherit; border-radius: 6px; margin: 0; opacity: 0.8; }
.mbm-cat-message {
    padding: 10px 12px; border-radius: 4px; display: none; font-size: 13px; margin-top: 4px;
}
.mbm-cat-message.success { display: block; background: rgba(40,167,69,0.15); }
.mbm-cat-message.error { display: block; background: rgba(220,53,69,0.12); }

/* --- Edit Fields --- */
.mbm-edit-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid; border-bottom-color: inherit; }
.mbm-edit-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.mbm-edit-fields { display: flex; flex-direction: column; gap: 10px; }
.mbm-edit-buttons { flex-direction: row; gap: 8px; }
.mbm-edit-buttons .button { display: inline-flex; align-items: center; gap: 6px; justify-content: center; flex: 1; }
.mbm-edit-buttons .button svg { flex-shrink: 0; }
.mbm-field-row { display: flex; gap: 8px; align-items: center; }
.mbm-field-row label { min-width: 40px; font-size: 13px; font-weight: 600; }
.mbm-edit-input { flex: 1; padding: 8px 10px; box-sizing: border-box; border: 1px solid; border-color: inherit; border-radius: 4px; font-size: 14px; background: transparent; color: inherit; }
.mbm-edit-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(0,0,0,0.1); }
.mbm-edit-note { font-size: 12px; margin: 4px 0; opacity: 0.6; display: flex; align-items: center; gap: 6px; }
.mbm-edit-note svg { flex-shrink: 0; }
.mbm-cat-save { display: inline-flex; align-items: center; gap: 6px; }
.mbm-cat-save svg { flex-shrink: 0; }
.mbm-cat-action { display: inline-flex; align-items: center; gap: 6px; }
.mbm-cat-action svg { flex-shrink: 0; }
.mbm-edit-transfer-result { font-size: 13px; padding: 8px; border-radius: 4px; margin-top: 8px; }
.mbm-edit-transfer-result.success { background: rgba(40,167,69,0.15); }
.mbm-edit-transfer-result.error { background: rgba(220,53,69,0.12); }

/* --- EPP Panel --- */
.mbm-epp-note { font-size: 13px; opacity: 0.6; margin: 0 0 12px; line-height: 1.5; }
.mbm-epp-result { margin-top: 12px; }
.mbm-epp-result.hidden { display: none; }
.mbm-epp-result label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.mbm-epp-code-box {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid; border-color: inherit; border-radius: 6px;
    padding: 10px 12px;
}
.mbm-epp-code-box code {
    flex: 1; font-size: 16px; font-weight: 700; letter-spacing: 1px;
    word-break: break-all; font-family: monospace;
}
.mbm-epp-copy { flex-shrink: 0; padding: 4px 8px !important; }
.mbm-epp-copy svg { display: block; }

/* --- Domain Search --- */
.mbm-domain-search { max-width: 700px; margin: 30px auto; width: 100%; }
.mbm-search-box {
    display: flex; gap: 0; border: none; overflow: hidden;
    background: transparent;
    border-radius: 8px;
}
.mbm-search-field { display: flex; align-items: center; }
.mbm-search-name {
    flex: 6; min-width: 0;
}
.mbm-search-name .mbm-domain-input {
    border-radius: 8px 0 0 8px;
}
.mbm-search-tld {
    flex: 2; min-width: 0;
}
.mbm-search-tld .mbm-domain-tld {
    border-radius: 0;
}
.mbm-search-btn { flex: 2; min-width: 0; }
.mbm-domain-input {
    width: 100%; border: none; padding: 12px 16px;
    outline: none; background: #fff !important;
    box-sizing: border-box; color: inherit;
}
.mbm-domain-tld {
    width: 100%; border: none; padding: 12px 10px;
    outline: none; background: #fff;
    cursor: pointer; box-sizing: border-box;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 30px; color: inherit;
}
.mbm-domain-check-btn {
    border-radius: 0 8px 8px 0 !important;
    height: 100% !important;
    white-space: nowrap;
    width: 100%; border: none !important;
    padding: 12px 16px !important;
    cursor: pointer;
}
.mbm-domain-result { margin-top: 20px; }

.mbm-search-all-results { display: flex; flex-direction: column; gap: 6px; }
.mbm-all-result-item {
    display: flex; align-items: center; padding: 12px 16px;
    border-radius: 8px; gap: 12px;
}
.mbm-all-result-item.available { background: rgba(40,167,69,0.12); }
.mbm-all-result-item.unavailable { background: transparent; opacity: 0.5; }
.mbm-all-result-name { flex: 2; min-width: 120px; }
.mbm-all-result-status { flex: 1; min-width: 70px; }
.mbm-all-result-price { flex: 1; min-width: 80px; white-space: nowrap; text-align: right; }
.mbm-all-result-action { flex: 0 0 auto; }
.mbm-available-badge-small {
    display: inline-block; background: rgba(40,167,69,0.2);
    padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600;
}
.mbm-unavailable-badge-small {
    display: inline-block; background: transparent; opacity: 0.5;
    padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600;
}

/* --- Cart Modals --- */
.mbm-cart-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999999; display: flex; align-items: center; justify-content: center;
}
.mbm-cart-modal.hidden { display: none; }
.mbm-cart-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1;
}
.mbm-cart-modal-content {
    position: relative; z-index: 2; background: #fff; color: inherit; border-radius: 12px;
    width: 90%; max-width: 420px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 30px; text-align: center;
}
.mbm-cart-modal-content h3 { margin: 0 0 8px; font-size: 20px; }
.mbm-cart-modal-content p { margin: 0 0 20px; opacity: 0.6; font-size: 14px; }
.mbm-cart-modal-content .mbm-domain-years {
    width: 100%; padding: 12px; border: 2px solid; border-color: inherit;
    border-radius: 8px; font-size: 16px; margin-bottom: 20px; box-sizing: border-box;
    background: transparent; color: inherit;
}
.mbm-cart-modal-content .mbm-cart-modal-total {
    font-size: 22px; font-weight: 700; margin-bottom: 20px;
}
.mbm-cart-modal-content .button-primary { width: 100%; padding: 14px !important; font-size: 16px !important; }
.mbm-cart-modal-content .button { width: 100%; padding: 14px !important; font-size: 16px !important; margin-top: 8px; }
.mbm-upsell-title { font-size: 22px; font-weight: 700; margin-bottom: 5px; }

.mbm-domain-status { padding: 25px; border-radius: 8px; text-align: center; }
.mbm-domain-status.available { background: rgba(40,167,69,0.12); }
.mbm-domain-status.not-available { background: rgba(220,53,69,0.12); }
.mbm-domain-name { font-size: 20px; font-weight: 700; margin-bottom: 10px; }

.mbm-available-badge {
    display: inline-block; background: rgba(40,167,69,0.2);
    padding: 5px 15px; border-radius: 4px; font-weight: 600;
}
.mbm-unavailable-badge {
    display: inline-block; background: rgba(220,53,69,0.15);
    padding: 5px 15px; border-radius: 4px; font-weight: 600;
}

.mbm-domain-price-box { margin-top: 15px; }
.mbm-price-info { margin-bottom: 12px; }
.mbm-price-label { font-size: 14px; opacity: 0.6; }
.mbm-price-value { font-size: 26px; font-weight: 700; }
.mbm-price-note { display: block; font-size: 12px; opacity: 0.5; margin-top: 2px; }

.mbm-years-selector {
    margin-bottom: 15px;
}
.mbm-years-selector label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 14px; }
.mbm-domain-years {
    width: 100%; padding: 8px 12px;
    border: 1px solid #e0e0e0; border-radius: 4px; font-size: 14px;
    background: transparent; color: inherit; box-sizing: border-box;
}

.mbm-cart-success {
    padding: 15px; background: rgba(40,167,69,0.15); border-radius: 4px;
}
.mbm-domain-note {
    margin-top: 10px; font-size: 13px; opacity: 0.6;
}

/* --- Domain Price Cards --- */
.mbm-price-cards-wrap { max-width: 1000px; margin: 0 auto; padding: 20px 0; }
.mbm-price-cards-title { text-align: center; margin: 0 0 24px; font-size: 22px; }
.mbm-price-cards {
    display: grid; gap: 16px;
}
.mbm-price-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 24px 16px; border: 1px solid; border-color: inherit;
    border-radius: 10px; text-decoration: none; color: inherit;
    transition: all 0.25s ease; text-align: center;
    background: transparent;
}
.mbm-price-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: currentColor;
}
.mbm-price-card-ext { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.mbm-price-card-price { display: flex; flex-direction: column; gap: 2px; }
.mbm-price-card-price strong { font-size: 20px; font-weight: 700; }
.mbm-price-card-price small { font-size: 12px; opacity: 0.55; }
.mbm-price-card-na { font-size: 13px; opacity: 0.5; }
.mbm-price-card-action {
    font-size: 13px; font-weight: 600; opacity: 0.7;
    margin-top: 4px; transition: opacity 0.2s;
}
.mbm-price-card:hover .mbm-price-card-action { opacity: 1; }

@media screen and (max-width: 768px) {
    .mbm-price-cards { grid-template-columns: repeat(2, 1fr) !important; }
}
@media screen and (max-width: 400px) {
    .mbm-price-cards { grid-template-columns: 1fr !important; }
}

/* --- Hosting Plans (Grid) --- */
.mbm-hosting-plans { max-width: 1000px; margin: 0 auto; }
.mbm-hosting-plans h3 { text-align: center; margin-bottom: 25px; }
.mbm-cart-domain-info {
    background: transparent; border: 1px solid; border-color: inherit; border-radius: 6px;
    padding: 12px 15px; margin-bottom: 20px; text-align: center; font-size: 14px;
}
.mbm-plan-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.mbm-plan-card {
    border: 1px solid; border-color: inherit; border-radius: 10px; padding: 30px 25px;
    text-align: center; background: transparent; position: relative;
    transition: box-shadow 0.3s; color: inherit;
}
.mbm-plan-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.mbm-plan-popular { border-width: 2px; }
.mbm-plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 4px 15px;
    border-radius: 20px; font-size: 12px; font-weight: 600;
}
.mbm-plan-name { font-size: 18px; margin: 0 0 15px; }
.mbm-plan-price { margin-bottom: 20px; }
.mbm-plan-amount { font-size: 36px; font-weight: 800; }
.mbm-plan-period { font-size: 14px; opacity: 0.6; }

.mbm-plan-features {
    list-style: none; padding: 0; margin: 0 0 20px; text-align: left;
}
.mbm-plan-features li {
    padding: 6px 0 6px 25px; position: relative; font-size: 14px;
    border-bottom: 1px solid; border-bottom-color: inherit;
}
.mbm-plan-features li:before {
    content: '\2713'; position: absolute; left: 0; font-weight: 700;
}
.mbm-plan-periods { margin-bottom: 15px; }
.mbm-plan-periods label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.mbm-plan-periods select {
    width: 100%; padding: 8px 10px; border: 1px solid; border-color: inherit;
    border-radius: 4px; font-size: 13px; background: transparent; color: inherit;
}
.mbm-plan-card .button-primary { width: 100%; padding: 12px !important; font-size: 15px !important; }
.mbm-plan-message {
    padding: 10px; border-radius: 4px; margin-top: 10px; font-size: 13px;
}
.mbm-plan-message.success { background: rgba(40,167,69,0.15); }
.mbm-plan-message.error { background: rgba(220,53,69,0.12); }

/* --- Alert Messages --- */
.mbm-alert {
    padding: 12px 15px; border-radius: 4px; margin-bottom: 15px; font-size: 14px;
}
.mbm-alert-warning { background: rgba(255,193,7,0.15); }
.mbm-alert-success { background: rgba(40,167,69,0.15); }
.mbm-alert-error { background: rgba(220,53,69,0.12); }

/* --- External Domain Info --- */
.mbm-domain-external { background: rgba(255,193,7,0.1); }
.mbm-domain-external label { font-size: 14px; }
.mbm-ns-info { font-size: 12px; line-height: 1.5; }
.mbm-ns-info ul { margin: 5px 0 0 0; padding: 0; list-style: none; }
.mbm-ns-info li { font-family: monospace; font-size: 13px; padding: 2px 0; }

/* --- Misc --- */
.mbm-error { opacity: 0.7; font-size: 14px; }

/* --- Responsive --- */
@media screen and (max-width: 600px) {
    .mbm-domain-grid { grid-template-columns: 1fr; }
    .mbm-search-box {
        flex-direction: column; gap: 0; box-shadow: none;
        border-radius: 0;
    }
    .mbm-search-field {
        width: 100%; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        border-radius: 8px; margin-bottom: 8px;
    }
    .mbm-search-name .mbm-domain-input { border-radius: 8px; }
    .mbm-search-tld .mbm-domain-tld { border-radius: 8px; }
    .mbm-domain-check-btn { border-radius: 8px !important; }
    .mbm-plan-grid { grid-template-columns: 1fr; }
    .mbm-domain-item-top { flex-direction: column; align-items: flex-start; gap: 4px; }
    .mbm-domain-item-meta { gap: 8px; }
    .mbm-domain-item-actions { flex-wrap: wrap; }
    .mbm-domain-item-actions .button { width: auto; text-align: center; justify-content: center; }
    .mbm-field-row { flex-direction: column; align-items: stretch; }
    .mbm-field-row label { min-width: auto; margin-bottom: 4px; }
    .mbm-edit-buttons { flex-direction: column; }
    .mbm-modal-wide { max-width: 95% !important; }
    .mbm-stat-item { padding: 12px 16px; }
    .mbm-all-result-item { flex-wrap: wrap; }
    .mbm-all-result-name { flex: 1 1 100%; }
    .mbm-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .mbm-cat-btn { padding: 16px 10px; }
    .mbm-cat-btn svg { width: 20px; height: 20px; }
    .mbm-cat-btn span { font-size: 11px; }
    .mbm-panel-tab { padding: 10px 14px; font-size: 13px; }
    .mbm-trabis-row { flex: 1 1 100%; }
}

@media screen and (max-width: 400px) {
    .mbm-cat-grid { grid-template-columns: 1fr; }
    .mbm-edit-buttons { flex-direction: column; }
}

/* ========================================
   SUPPORT TICKETS
   ======================================== */
.mbm-tickets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.mbm-tickets-header h3 {
    margin: 0;
}
.mbm-tickets-header .button svg {
    vertical-align: middle;
    margin-right: 4px;
}
.mbm-ticket-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.mbm-ticket-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.mbm-ticket-item-subject {
    font-size: 14px;
}
.mbm-ticket-item-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #72777c;
    margin-bottom: 8px;
}
.mbm-ticket-item-actions {
    display: flex;
    gap: 6px;
}
.mbm-ticket-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}
.mbm-badge-open { background: #007cba; }
.mbm-badge-replied { background: #f0ad4e; }
.mbm-badge-closed { background: #72777c; }

.mbm-ticket-detail-view {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}
.mbm-ticket-detail-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.mbm-ticket-detail-header h3 {
    margin: 0;
}
.mbm-ticket-detail-header h3 small {
    font-weight: normal;
    color: #72777c;
    font-size: 13px;
}
.mbm-ticket-detail-message {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 12px;
}
.mbm-ticket-reply-admin {
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
}
.mbm-ticket-reply-user {
    background: #f0f0f1;
    border-left: 3px solid #007cba;
}
.mbm-ticket-msg-author {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
}
.mbm-ticket-msg-author small {
    font-weight: normal;
    color: #72777c;
}
.mbm-ticket-msg-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.mbm-ticket-reply-box {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}
.mbm-ticket-reply-box h4 {
    margin: 0 0 8px 0;
}
.mbm-ticket-reply-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}
.mbm-ticket-new-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}
.mbm-ticket-new-form h4 {
    margin: 0 0 15px 0;
}
.mbm-ticket-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.mbm-ticket-form-message {
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
}
.mbm-ticket-form-message.success {
    background: #d4edda;
    color: #155724;
}
.mbm-ticket-form-message.error {
    background: #f8d7da;
    color: #721c24;
}
.mbm-ticket-reply-msg.success {
    background: #d4edda;
    color: #155724;
    padding: 6px 10px;
    border-radius: 4px;
}
.mbm-ticket-reply-msg.error {
    background: #f8d7da;
    color: #721c24;
    padding: 6px 10px;
    border-radius: 4px;
}
.mbm-ticket-back-list-btn svg {
    vertical-align: middle;
    margin-right: 4px;
}
.mbm-empty-text {
    text-align: center;
    padding: 40px;
    color: #72777c;
    font-size: 15px;
}

/* Admin tickets */
.mbm-ticket-toolbar {
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.mbm-ticket-toolbar select {
    min-width: 160px;
}
.mbm-ticket-view h2 small {
    font-weight: normal;
    color: #72777c;
    font-size: 14px;
}
.mbm-admin-reply-send {
    margin-top: 8px;
}

/* Credential rows */
.mbm-credential-row {
    margin-bottom: 14px;
}
.mbm-credential-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.7;
}
.mbm-credential-field {
    display: flex;
    gap: 6px;
    align-items: center;
}
.mbm-credential-field input {
    flex: 1;
    font-family: monospace;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #f6f7f7;
    cursor: text;
}
.mbm-cred-copy svg {
    vertical-align: middle;
}

/* Hosting renew modal */
#mbm-hosting-renew-modal .mbm-modal-body p {
    margin: 0 0 8px;
    font-size: 14px;
}
#mbm-hosting-renew-modal .mbm-modal-field {
    margin-top: 14px;
}
#mbm-hosting-renew-modal .mbm-modal-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}
