/* Customer Portal & "وول‌وولک‌های من" Styles */

/* Registration & Portal Hero */
.portal-hero {
    padding: 40px 0 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}

.portal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.user-badge-name {
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Register Serial Form Card */
.register-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 40px;
}

.register-card-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.register-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.serial-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.serial-input {
    flex: 1;
    min-width: 220px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-en), var(--font-fa);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #fff;
}

.serial-input:focus {
    outline: none;
    border-color: var(--text-main);
}

/* Alerts */
.alert-box {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-top: 14px;
    display: none;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.alert-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
}

/* وول‌وولک‌های من - Section */
.my-woolwoolaks-section {
    padding-bottom: 40px;
}

.section-head-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.woolwoolaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.woolwoolak-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.woolwoolak-card:hover {
    border-color: var(--line-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.card-product-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.card-title-group h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.card-batch {
    font-size: 12px;
    color: var(--text-muted);
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.serial-pill {
    font-family: var(--font-en);
    font-weight: 800;
    letter-spacing: 1.5px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 3px 8px;
    border-radius: 4px;
}

.channel-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.channel-tag-web {
    background: #eef2ff;
    color: #4338ca;
}

.channel-tag-sms {
    background: #f0fdf4;
    color: #15803d;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 14px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 17px;
    font-weight: 800;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-main);
}


