.sl-portal-container {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2c2a2e;
}

.sl-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px;
}

.sl-portal-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #7a3b69;
}

.sl-portal-header p {
    margin: 0 0 20px;
    color: #6b6570;
}

.sl-input-group {
    margin-bottom: 16px;
}

.sl-input-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #4a4650;
}

.sl-input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd6e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.sl-input-group input:focus {
    outline: none;
    border-color: #b06aa0;
    box-shadow: 0 0 0 3px rgba(176,106,160,0.15);
}

.sl-btn {
    display: inline-block;
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.sl-btn-primary {
    background: linear-gradient(135deg, #b06aa0, #7a3b69);
    color: #fff;
    transition: opacity 0.15s;
}

.sl-btn-primary:hover { opacity: 0.9; }
.sl-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.sl-alert {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.sl-alert-error { background: #fdecea; color: #9a2b1f; border: 1px solid #f5c6c0; }
.sl-alert-success { background: #eaf7ee; color: #1e6b39; border: 1px solid #bfe6cb; }

.sl-hint-text {
    margin-top: 14px;
    font-size: 12px;
    color: #9a93a0;
    text-align: center;
}

.sl-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.sl-topbar h3 { margin: 0; font-size: 20px; }

.sl-btn-logout {
    background: none;
    border: 1px solid #ddd6e0;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #6b6570;
}

.sl-loyalty-card {
    position: relative;
    background: linear-gradient(135deg, #7a3b69, #3e2140);
    color: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    overflow: hidden;
}

.sl-card-tier-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.sl-pts-display { margin-bottom: 10px; }

.sl-pts-number {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.sl-pts-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.sl-card-spend {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 16px;
}

.sl-progress-track {
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.sl-progress-fill {
    background: #fff;
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.sl-progress-label {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.9;
}

.sl-section { margin-top: 28px; }
.sl-section h3 { font-size: 17px; margin-bottom: 12px; }

.sl-hint-left {
    text-align: left;
    margin: -6px 0 12px;
}

.sl-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.sl-reward-card {
    border: 1px solid #eee0ea;
    border-radius: 12px;
    padding: 16px;
    background: #fdf9fc;
}

.sl-reward-card h4 { margin: 0 0 6px; font-size: 15px; }
.sl-reward-card p { margin: 0 0 10px; font-size: 13px; color: #6b6570; }

.sl-reward-points {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #7a3b69;
    margin-bottom: 10px;
}

.sl-btn-redeem {
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: 7px;
    background: #7a3b69;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.sl-btn-redeem:disabled {
    background: #d9d2d6;
    cursor: not-allowed;
}

.sl-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sl-history-table th, .sl-history-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #f0eaf0;
}

.sl-history-table th {
    color: #9a93a0;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sl-pts-positive { color: #1e8a4a; font-weight: 700; }
.sl-pts-negative { color: #b23838; font-weight: 700; }

@media (max-width: 480px) {
    .sl-box { padding: 22px; }
    .sl-loyalty-card { padding: 20px; }
    .sl-pts-number { font-size: 34px; }
}
