/* Star Matkinim – Portal */
.smp-portal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    direction: rtl;
    color: #1a1a1a;
}

/* ---- Login ---- */
.smp-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 20px;
    min-height: 420px;
}

.smp-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.10);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
}

.smp-logo {
    text-align: center;
    margin-bottom: 32px;
}
.smp-logo h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}
.smp-subtitle {
    margin: 0;
    font-size: 14px;
    color: #888;
}

.smp-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
}
.smp-alert-error {
    background: #fff4f4;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

.smp-field { margin-bottom: 22px; }
.smp-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.smp-field input[type="text"],
.smp-field input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 9px;
    font-size: 15px;
    box-sizing: border-box;
    direction: ltr;
    text-align: right;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}
.smp-field input:focus {
    border-color: #1a6fc4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 111, 196, 0.12);
    background: #fff;
}

.smp-pass-field { position: relative; }
.smp-pass-field input { padding-left: 46px; }
.smp-eye {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 19px;
    padding: 0;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 0.15s;
}
.smp-eye:hover { opacity: 1; }

.smp-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.18s, transform 0.1s;
    line-height: 1.4;
}
.smp-btn-primary {
    background: #1a6fc4;
    color: #ffffff;
    width: 100%;
    text-align: center;
}
.smp-btn-primary:hover { background: #155ba0; }
.smp-btn-primary:active { transform: scale(0.98); }

/* ---- Dashboard ---- */
.smp-dashboard { }

.smp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1a6fc4 0%, #1558a0 100%);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
}
.smp-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}
.smp-coupon-badge { font-size: 13px; opacity: 0.85; }
.smp-coupon-badge code {
    background: rgba(255, 255, 255, 0.22);
    padding: 2px 9px;
    border-radius: 4px;
    font-family: monospace;
}
.smp-btn-logout {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.35);
    white-space: nowrap;
    flex-shrink: 0;
}
.smp-btn-logout:hover {
    background: rgba(255, 255, 255, 0.30);
    color: #fff;
    text-decoration: none;
}

.smp-stats {
    display: flex;
    border: 1px solid #e0e7ef;
    border-top: none;
    background: #f4f7fb;
}
.smp-stat {
    flex: 1;
    padding: 18px 16px;
    text-align: center;
    border-left: 1px solid #e0e7ef;
}
.smp-stat:last-child { border-left: none; }
.smp-stat-num {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #1a6fc4;
    line-height: 1.2;
    direction: ltr;
}
.smp-stat-num .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }
.smp-stat-lbl {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e0e7ef;
    border-top: none;
}

.smp-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid #dde4ec;
    background: #ffffff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.4;
}
.smp-filter-btn:hover {
    background: #eef3fb;
    border-color: #b0c4de;
    color: #1a6fc4;
}
.smp-filter-btn.smp-filter-active {
    background: #1a6fc4;
    border-color: #1a6fc4;
    color: #ffffff;
    font-weight: 600;
}

.smp-no-filter-results {
    padding: 36px 20px;
    text-align: center;
    border: 1px solid #e0e7ef;
    border-top: none;
    border-radius: 0 0 12px 12px;
    color: #888;
    font-size: 15px;
    margin: 0;
}

.smp-table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e7ef;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.smp-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}
.smp-orders-table th {
    background: #f0f4f9;
    padding: 12px 14px;
    text-align: right;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    border-bottom: 2px solid #dde4ec;
    white-space: nowrap;
}
.smp-orders-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #eef1f5;
    vertical-align: top;
    color: #333;
    line-height: 1.5;
}
.smp-orders-table tr:last-child td { border-bottom: none; }
.smp-orders-table tr:hover td { background: #f8fafc; }

.smp-order-num { font-weight: 600; color: #1a6fc4; }

.smp-items span {
    display: block;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

.smp-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.smp-status-completed  { background: #d4edda; color: #155724; }
.smp-status-processing { background: #cce5ff; color: #004085; }
.smp-status-on-hold    { background: #fff3cd; color: #856404; }
.smp-status-pending    { background: #f0f0f0; color: #555; border: 1px solid #ddd; }
.smp-status-cancelled  { background: #f8d7da; color: #721c24; }
.smp-status-refunded   { background: #ead5f5; color: #5c0d7a; }
.smp-status-failed     { background: #f5d5d5; color: #7a0d0d; }

.smp-empty {
    padding: 44px 20px;
    text-align: center;
    border: 1px solid #e0e7ef;
    border-top: none;
    border-radius: 0 0 12px 12px;
    color: #888;
    font-size: 15px;
}

.smp-error { color: #c0392b; }

/* ---- Responsive ---- */
@media (max-width: 680px) {
    .smp-card { padding: 28px 20px; }
    .smp-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .smp-orders-table { font-size: 13px; }
    .smp-orders-table th,
    .smp-orders-table td { padding: 9px 10px; }
}
