:root {
    --fb-bg: #f0f2f5;
    --fb-primary: #1877f2;
    --fb-primary-rgb: 24, 119, 242;
    --fb-secondary: #e4e6eb;
    --fb-text: #050505;
    --fb-text-muted: #65676b;
    --fb-card-bg: #ffffff;
    --fb-border: #dddfe2;
    
    /* Pastel Modern Palette */
    --fb-primary-soft: #e7f3ff;
    --fb-success: #42b72a;
    --fb-success-soft: #e7f8ed;
    --fb-danger: #fa3e3e;
    --fb-danger-soft: #fbe9e9;
    --fb-warning: #f1c40f;
    --fb-warning-soft: #fff9e6;
    --fb-info: #00bcd4;
    --fb-info-soft: #e0f7fa;
    
    --fb-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    --fb-radius: 8px;
    --fb-radius-lg: 12px;
}

body.brand-page-bg {
    background-color: var(--fb-bg) !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--fb-text);
}

.fb-card-modern {
    background: var(--fb-card-bg);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow);
    padding: 20px;
    margin-bottom: 16px;
    border: none;
}

.fb-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--fb-text);
}

.fb-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.fb-info-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-text-muted);
    font-size: 18px;
}

.fb-info-text {
    flex: 1;
    font-size: 15px;
    color: var(--fb-text);
    line-height: 1.4;
}

/* Appointment Module */
.fb-appointment-card {
    background: var(--fb-card-bg);
    border-radius: var(--fb-radius-lg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-bottom: 30px;
}

.fb-selection-card {
    border: 2px solid #f0f2f5;
    border-radius: var(--fb-radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    height: 100%;
    position: relative;
}

.fb-selection-card:hover {
    background: #f8f9fa;
    border-color: var(--fb-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.fb-selection-card.active {
    border-color: var(--fb-primary);
    background: var(--fb-primary-soft);
}

.fb-selection-card.active::after {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--fb-primary);
    font-size: 18px;
}

.fb-time-btn {
    border: 1px solid var(--fb-border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    color: var(--fb-text);
}

.fb-time-btn:hover:not(.disabled) {
    background: #f0f2f5;
    border-color: var(--fb-primary);
    color: var(--fb-primary);
}

.fb-time-btn.active {
    background: var(--fb-primary) !important;
    color: #fff !important;
    border-color: var(--fb-primary) !important;
    box-shadow: 0 4px 12px rgba(var(--fb-primary-rgb), 0.3);
}

.fb-time-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #adb5bd;
}

/* Calendar */
.fb-calendar-day {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    margin: 2px auto;
}

.fb-calendar-day.active-day {
    background: var(--fb-primary-soft);
    color: var(--fb-primary);
}

.fb-calendar-day.selected {
    background: var(--fb-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(var(--fb-primary-rgb), 0.3);
}

.fb-calendar-day.disabled {
    color: #ccd0d5;
    cursor: default;
}

/* Footer modern buttons */
.fb-footer-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f0f2f5;
    border-radius: 25px;
    color: var(--fb-text);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.fb-footer-action:hover {
    background: #e4e6eb;
    transform: translateY(-2px);
    color: var(--fb-primary);
}

.fb-footer-icon-circle {
    width: 28px;
    height: 28px;
    background: #e4e6eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.fb-footer-action:hover .fb-footer-icon-circle {
    background: var(--fb-primary);
    color: #fff;
}

/* Modern Buttons */
.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none !important;
}

.fb-btn-primary {
    background-color: var(--fb-primary);
    color: #fff;
}

.fb-btn-primary:hover {
    background-color: #166fe5;
    transform: translateY(-1px);
}

.fb-btn-secondary {
    background-color: var(--fb-secondary);
    color: var(--fb-text);
}

.fb-btn-secondary:hover {
    background-color: #d8dadf;
}

.fb-btn-success {
    background-color: var(--fb-success-soft);
    color: var(--fb-success);
    border-color: rgba(66, 183, 42, 0.2);
}

.fb-btn-danger {
    background-color: var(--fb-danger-soft);
    color: var(--fb-danger);
    border-color: rgba(250, 62, 62, 0.2);
}

.fb-btn-warning {
    background-color: var(--fb-warning-soft);
    color: var(--fb-warning);
    border-color: rgba(241, 196, 15, 0.2);
}

.fb-btn-info {
    background-color: var(--fb-info-soft);
    color: var(--fb-info);
    border-color: rgba(0, 188, 212, 0.2);
}

/* Service Cards */
.fb-service-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--fb-border);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fb-service-img-container {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f2f5;
}

.fb-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fb-service-card:hover .fb-service-img {
    transform: scale(1.05);
}

.fb-service-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fb-service-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--fb-text);
}

.fb-service-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--fb-primary);
    margin-bottom: 8px;
}

.fb-service-meta {
    font-size: 13px;
    color: var(--fb-text-muted);
    margin-bottom: 12px;
}

.fb-service-description {
    font-size: 14px;
    color: var(--fb-text-muted);
    line-height: 1.5;
    flex: 1;
}

/* Transitions */
.transition-base {
    transition: all 0.2s ease;
}

.aspect-ratio-square {
    aspect-ratio: 1 / 1;
}

.object-fit-cover {
    object-fit: cover;
}

/* Line clamp support */
.fb-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.fb-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* Facebook Header Structure */
.fb-header-container {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-radius: 8px;
}

.fb-cover-photo {
    width: 100%;
    height: 340px;
    background: #dddfe2;
    overflow: hidden;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.fb-cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-header-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-top: -80px; /* Profile pic overlap */
    padding-bottom: 20px;
}

.fb-profile-pic-container {
    width: 168px;
    height: 168px;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.fb-profile-pic-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
}

.fb-header-info {
    flex: 1;
    margin-left: 16px;
    margin-bottom: 16px;
}

.fb-header-info h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #050505;
}

.fb-header-info .fb-header-subtitle {
    font-size: 15px;
    color: #65676b;
    font-weight: 600;
}

.fb-header-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
}

/* Tab Bar */
.fb-tab-bar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    border-top: 1px solid var(--fb-border);
}

.fb-nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fb-nav-item {
    position: relative;
}

.fb-nav-link {
    display: block;
    padding: 16px 20px;
    font-weight: 600;
    color: #65676b;
    text-decoration: none !important;
    font-size: 15px;
    transition: background 0.2s;
}

.fb-nav-link:hover {
    background: #f0f2f5;
    border-radius: 4px;
}

.fb-nav-item.active .fb-nav-link {
    color: var(--fb-primary);
}

.fb-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--fb-primary);
}

/* Responsive Fixes */
@media (max-width: 900px) {
    .fb-header-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -100px;
    }
    .fb-header-info {
        margin-left: 0;
        margin-top: 10px;
    }
    .fb-header-actions {
        margin-bottom: 10px;
    }
    .fb-nav-link {
        padding: 12px 10px;
        font-size: 13px;
    }
}
