/* Mona SMM Panel Public / Frontend CSS */

.mona-frontend-container {
    max-width: 1140px;
    margin: 20px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.mona-frontend-container * {
    box-sizing: border-box;
}

/* Header & Profile Bar */
.mona-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 16px;
}

.mona-user-brief {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mona-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.mona-welcome-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.mona-user-role {
    font-size: 12px;
    color: #64748b;
}

/* Balance Pill */
.mona-balance-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 16px;
    text-align: right;
}

.mona-balance-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.mona-balance-amount {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.mona-balance-unit {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

/* Navigation Tabs */
.mona-nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.mona-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mona-tab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mona-tab-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25);
}

/* Tab Contents */
.mona-tab-content {
    display: none;
}

.mona-tab-content.active {
    display: block;
}

/* Stats Row */
.mona-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.mona-stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.mona-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.mona-stat-val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.stat-blue   { border-top: 4px solid #3b82f6; }
.stat-amber  { border-top: 4px solid #f59e0b; }
.stat-green  { border-top: 4px solid #10b981; }
.stat-red    { border-top: 4px solid #ef4444; }
.stat-purple { border-top: 4px solid #8b5cf6; }

/* Quick CTA */
.mona-quick-cta {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.mona-quick-cta h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    color: #ffffff;
}

.mona-quick-cta p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

/* Grids & Cards */
.mona-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .mona-grid-2 {
        grid-template-columns: 1fr;
    }
}

.mona-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mona-box-title {
    margin: 0 0 18px 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

/* Forms & Inputs */
.mona-field {
    margin-bottom: 16px;
}

.mona-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.mona-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.15s ease;
}

.mona-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mona-input-sm {
    padding: 6px 10px;
    font-size: 13px;
    width: auto;
}

.mona-field-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

/* Cost & Balance Summary Card */
.mona-cost-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 18px 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
}

.summary-val {
    font-weight: 600;
    color: #1e293b;
}

.highlight-cost {
    font-size: 15px;
    font-weight: 700;
    color: #2563eb;
}

.total-line {
    border-top: 1px dashed #cbd5e1;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 700;
    color: #0f172a;
}

/* Buttons */
.mona-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mona-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.mona-btn-primary:hover {
    background: #1d4ed8;
}

.mona-btn-accent {
    background: #f59e0b;
    color: #ffffff;
}

.mona-btn-accent:hover {
    background: #d97706;
}

.mona-btn-block {
    width: 100%;
}

.mona-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    background: #f1f5f9;
    color: #334155;
}

.mona-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.mona-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.mona-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.mona-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Service Info Box */
.mona-info-box {
    background: #fcfcfd;
}

.mona-info-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f1f5f9;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 12px 0;
}

.meta-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
}

.meta-val {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.mona-info-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 16px;
}

.mona-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #16a34a;
}

.mona-service-features li {
    margin-bottom: 6px;
}

/* Tables */
.mona-table-responsive {
    overflow-x: auto;
}

.mona-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.mona-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.mona-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.mona-table tr:hover td {
    background: #f8fafc;
}

.mona-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.mona-table-filters {
    display: flex;
    gap: 8px;
}

.mona-table-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

/* Badges */
.mona-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-completed  { background: #dcfce7; color: #15803d; }
.status-pending, .status-processing, .status-in_progress, .status-open { background: #fef3c7; color: #b45309; }
.status-cancelled, .status-failed, .status-closed { background: #fee2e2; color: #b91c1c; }
.status-partial, .status-refunded { background: #e0f2fe; color: #0369a1; }

/* Wallet Card */
.mona-wallet-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.wallet-badge {
    font-size: 11px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.15);
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.wallet-big-amount {
    font-size: 36px;
    font-weight: 800;
    margin: 14px 0 6px;
    color: #f8fafc;
}

.wallet-big-amount small {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}

/* Tickets */
.mona-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mona-ticket-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mona-ticket-item:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

/* Auth Card */
.mona-auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 480px;
    margin: 40px auto;
}

.mona-auth-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
