/* BookNow Public Styles */
.bn-service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Affiliate Dashboard & Auth
   ========================================================================== */

/* Notice */
.bn-notice {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bn-notice--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.bn-notice--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* Login Form */
.bn-affiliate-login {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.bn-affiliate-login h2 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 24px;
}

.bn-affiliate-login .login-username,
.bn-affiliate-login .login-password {
    margin-bottom: 16px;
}

.bn-affiliate-login label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.bn-affiliate-login input[type="text"],
.bn-affiliate-login input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.bn-affiliate-login .login-remember {
    margin-bottom: 20px;
}

.bn-affiliate-login .login-submit input {
    width: 100%;
    padding: 14px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.bn-affiliate-login .login-submit input:hover {
    background: #1d4ed8;
}

.bn-affiliate-login__links {
    margin-top: 20px;
    text-align: center;
}

.bn-affiliate-login__links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.bn-affiliate-login__links a:hover {
    color: #2563eb;
}

/* Pending Message */
.bn-affiliate-pending {
    max-width: 500px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.bn-affiliate-pending__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    padding: 20px;
    background: #fef3c7;
    border-radius: 50%;
    color: #d97706;
}

.bn-affiliate-pending__icon svg {
    width: 100%;
    height: 100%;
}

.bn-affiliate-pending__title {
    margin: 0 0 20px;
    font-size: 24px;
    color: #111827;
}

.bn-affiliate-pending__message {
    margin-bottom: 30px;
    color: #4b5563;
    line-height: 1.7;
}

.bn-affiliate-pending__message p {
    margin: 0 0 12px;
}

.bn-affiliate-pending__contact {
    padding: 20px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 24px;
}

.bn-affiliate-pending__contact p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #6b7280;
}

.bn-affiliate-pending__email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.bn-affiliate-pending__email svg {
    width: 18px;
    height: 18px;
}

.bn-affiliate-pending__email:hover {
    text-decoration: underline;
}

/* Dashboard */
.bn-affiliate-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.bn-affiliate-dashboard__header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.bn-affiliate-dashboard__avatar img {
    border-radius: 50%;
}

.bn-affiliate-dashboard__welcome {
    flex: 1;
}

.bn-affiliate-dashboard__welcome h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.bn-affiliate-dashboard__company {
    margin: 0;
    color: #6b7280;
}

.bn-affiliate-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.bn-stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.bn-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.bn-stat-card__label {
    font-size: 14px;
    color: #6b7280;
}

.bn-affiliate-dashboard__sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.bn-dashboard-section {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.bn-dashboard-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #111827;
}

.bn-dashboard-section__empty {
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

.bn-affiliate-dashboard__profile {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.bn-affiliate-dashboard__profile h3 {
    margin: 0 0 20px;
    font-size: 18px;
}

.bn-profile-details {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px 20px;
    margin: 0;
}

.bn-profile-details dt {
    font-weight: 500;
    color: #6b7280;
}

.bn-profile-details dd {
    margin: 0;
    color: #111827;
}

/* Buttons */
.bn-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.bn-btn--primary {
    background: #2563eb;
    color: #fff;
}

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

.bn-btn--outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.bn-btn--outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.bn-btn--sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .bn-affiliate-dashboard__header {
        flex-direction: column;
        text-align: center;
    }
    
    .bn-affiliate-dashboard__stats {
        grid-template-columns: 1fr;
    }
    
    .bn-affiliate-dashboard__sections {
        grid-template-columns: 1fr;
    }
    
    .bn-profile-details {
        grid-template-columns: 1fr;
    }
    
    .bn-profile-details dt {
        margin-top: 12px;
    }
}
