/* ============================================
   OnHizmet — Component Styles (Bionluk-style)
   ============================================ */

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: var(--font-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    line-height: 1.4;
    border: none;
}

.btn .material-icons-round {
    font-size: 18px;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253, 64, 86, 0.3);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.btn-success {
    background: var(--brand-secondary);
    color: white;
}

.btn-success:hover {
    background: var(--brand-secondary-dark);
}

.btn-danger,
.btn-error {
    background: var(--brand-primary);
    color: white;
}

.btn-danger:hover,
.btn-error:hover {
    background: var(--brand-primary-dark);
}

.btn-warning {
    background: var(--warning);
    color: var(--text-primary);
}

.btn-warning:hover {
    background: #EBA435;
}

.btn-teal {
    background: var(--brand-secondary);
    color: white;
    border-radius: var(--radius-sm);
}

.btn-teal:hover {
    background: var(--brand-secondary-dark);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--font-md);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 6px 14px;
    font-size: var(--font-sm);
}

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-md);
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-block {
    width: 100%;
}

/* ── Input Fields ── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-hint {
    font-size: var(--font-xs);
    color: var(--text-tertiary);
    margin-top: 4px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: var(--font-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-glow);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input.error {
    border-color: var(--error);
}

.form-error {
    font-size: var(--font-xs);
    color: var(--error);
    margin-top: 4px;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ── Cards ── */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-card);
}

.card-clickable:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: var(--font-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--brand-primary-glow);
    color: var(--brand-primary);
}

.badge-success {
    background: var(--success-light);
    color: var(--brand-secondary-dark);
}

.badge-warning {
    background: var(--warning-light);
    color: #B8860B;
}

.badge-error {
    background: var(--error-light);
    color: var(--brand-primary);
}

.badge-info {
    background: var(--info-light);
    color: var(--brand-accent);
}

.badge-neutral {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ── Avatar ── */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--font-sm);
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: var(--font-xs);
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: var(--font-xl);
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: var(--font-3xl);
}

/* ── Stat Card ── */
.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 20px;
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ── Status Dot ── */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.open {
    background: var(--success);
}

.status-dot.pending {
    background: var(--warning);
}

.status-dot.closed {
    background: var(--gray-400);
}

.status-dot.expired {
    background: var(--error);
}

/* ── Tabs ── */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    gap: 0;
    margin-bottom: 24px;
}

.tab {
    padding: 12px 20px;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    font-weight: 600;
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .2s ease;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: scaleIn .25s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: var(--font-xl);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

/* ── Toast ── */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--brand-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInRight .3s ease;
    font-size: var(--font-sm);
}

.toast.success {
    border-left-color: var(--brand-secondary);
}

.toast.error {
    border-left-color: var(--brand-primary);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.info {
    border-left-color: var(--info);
}

/* ── Empty State ── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
}

.empty-state .material-icons-round {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: var(--font-xl);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 400px;
}

/* ── Skeleton ── */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ── Price ── */
.price {
    font-weight: 800;
    color: var(--brand-secondary);
}

.price-sm {
    font-size: var(--font-base);
}

.price-lg {
    font-size: var(--font-2xl);
}

/* ── Tag ── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: var(--font-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
}

/* ── Divider ── */
.divider {
    height: 1px;
    background: var(--border-light);
    margin: 24px 0;
}

/* ── Dropdown ── */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
    animation: fadeInDown .2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: var(--font-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--gray-50);
}

.dropdown-item .material-icons-round {
    font-size: 18px;
    color: var(--text-tertiary);
}

/* ── Notification Badge ── */
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--brand-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.notif-menu {
    min-width: 320px;
    right: 0;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: var(--font-sm);
}

.notif-item:hover {
    background: var(--gray-50);
}

/* ── Admin Layout ── */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 72px);
}

.admin-sidebar {
    width: 240px;
    background: var(--gray-950);
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
}

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.admin-sidebar a.active {
    background: rgba(253, 64, 86, 0.2);
    color: white;
    border-right: 3px solid var(--brand-primary);
}

.admin-content {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
}

/* ── Rating Stars ── */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--warning);
}

.rating .material-icons-round {
    font-size: 16px;
}

.rating-value {
    font-weight: 700;
    font-size: var(--font-sm);
    color: var(--warning);
    margin-left: 4px;
}

/* ============================================
   Freelancer Profile Page (Bionluk-Style)
   ============================================ */
.fp-page {
    background: var(--gray-50);
}

.fp-container {
    max-width: 1100px;
}

.fp-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}

.fp-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
}

.fp-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* Layout */
.fp-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

/* Sidebar */
.fp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-profile-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 32px 24px;
    text-align: center;
}

.fp-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.fp-avatar {
    width: 110px;
    height: 110px;
    font-size: 40px;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.fp-online-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--success);
    border: 3px solid white;
    box-shadow: 0 0 0 1px var(--success);
}

.fp-name {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.fp-title {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.fp-rate {
    font-size: var(--font-sm);
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.fp-rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
}

/* Section Cards */
.fp-section-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
}

.fp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.fp-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.fp-section-title .material-icons-round {
    font-size: 20px;
    color: var(--text-tertiary);
}

/* Stat Rows */
.fp-stat-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.fp-stat-row:last-child {
    border-bottom: none;
}

.fp-stat-val {
    font-weight: 600;
    color: var(--text-primary);
}

/* About */
.fp-about-text {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Skills */
.fp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fp-skill-tag {
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all .15s;
}

.fp-skill-tag:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-primary-glow);
}

/* Content area */
.fp-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Portfolio empty */
.fp-portfolio-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

/* Services Grid */
.fp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.fp-service-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    background: white;
}

.fp-service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.fp-svc-cover {
    height: 150px;
    overflow: hidden;
    background: var(--gray-100);
}

.fp-svc-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-svc-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 48px;
}

.fp-svc-body {
    padding: 16px;
}

.fp-svc-seller {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fp-svc-price {
    margin-left: auto;
    text-align: right;
}

.fp-price-amount {
    font-size: var(--font-lg);
    font-weight: 800;
    color: var(--brand-secondary);
}

.fp-price-label {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
}

.fp-svc-desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Review Tabs */
.fp-review-tabs {
    display: flex;
    gap: 0;
}

.fp-tab {
    padding: 8px 18px;
    font-size: var(--font-sm);
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .15s;
}

.fp-tab:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.fp-tab:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: none;
}

.fp-tab.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* Review Stats */
.fp-review-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.fp-review-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.fp-stars {
    color: var(--warning);
    font-size: var(--font-sm);
    letter-spacing: 2px;
}

.fp-review-score {
    justify-content: center;
}

.fp-review-empty {
    padding: 16px 0;
}

/* Avatar extended sizes */
.avatar-xs {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .fp-layout {
        grid-template-columns: 1fr;
    }

    .fp-review-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-services-grid {
        grid-template-columns: 1fr;
    }

    .fp-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Edit Links */
.fp-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--brand-primary);
    cursor: pointer;
    transition: opacity .15s;
}

.fp-edit-link:hover {
    opacity: 0.7;
}

.fp-edit-inline {
    cursor: pointer;
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.5;
    transition: opacity .15s;
}

.fp-edit-inline:hover {
    opacity: 1;
}

/* ======================================
   Dashboard Layout (Bionluk-Inspired)
   ====================================== */
.db-page {
    padding: 0 !important;
}

.db-page .db-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 64px);
}

/* Sidebar */
.db-sidebar {
    background: #FAFBFC;
    border-right: 1px solid var(--border-light);
    padding: 24px 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.db-sidebar-section {
    padding: 0 12px;
}

.db-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}

.db-sidebar-item:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.db-sidebar-item.active {
    color: var(--brand-primary);
    font-weight: 700;
    background: transparent;
}

.db-sidebar-item .material-icons-round {
    font-size: 20px;
}

.db-sidebar-badge {
    margin-left: auto;
    background: var(--brand-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.db-sidebar-divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px 12px;
}

.db-sidebar-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
    padding: 0 28px 8px;
}

.db-sidebar-footer {
    padding: 24px 28px 0;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: auto;
    position: absolute;
    bottom: 20px;
}

/* Main Content */
.db-main {
    padding: 32px 40px;
    max-width: 900px;
}

/* Welcome Hero */
.db-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

/* Sections */
.db-section {
    margin-bottom: 32px;
}

.db-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.db-section-header h2 {
    font-size: var(--font-lg);
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* Job Recommendation Card */
.db-job-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    transition: box-shadow .2s;
}

.db-job-card:hover {
    box-shadow: var(--shadow-md);
}

.db-job-card-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.db-job-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.db-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border-light);
    font-size: var(--font-xs);
    color: var(--text-tertiary);
}

.db-job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CTA Cards */
.db-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.db-cta-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}

.db-cta-card:hover {
    box-shadow: var(--shadow-md);
}

.db-cta-card h3 {
    font-size: var(--font-base);
    font-weight: 700;
    margin: 16px 0 8px;
}

.db-cta-card p {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.db-cta-illustration {
    width: 100%;
    height: 100px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats Bar */
.db-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.db-stat-mini {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.db-stat-mini .material-icons-round {
    font-size: 28px;
}

/* Responsive */
@media (max-width: 900px) {
    .db-page .db-layout {
        grid-template-columns: 1fr;
    }

    .db-sidebar {
        display: none;
    }

    .db-main {
        padding: 20px 16px;
    }

    .db-cta-grid {
        grid-template-columns: 1fr;
    }

    .db-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .db-job-actions.hide-mobile {
        display: none;
    }
}

/* ======================================
   Portfolio Grid
   ====================================== */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.pf-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}

.pf-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pf-item-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--gray-100);
}

.pf-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.pf-item-placeholder .material-icons-round {
    font-size: 40px;
}

.pf-item-body {
    padding: 12px 14px 14px;
}

.pf-item-body h4 {
    font-size: var(--font-sm);
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.4;
}

/* Avatar Upload Overlay */
.fp-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 110px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    z-index: 2;
    cursor: pointer;
}

.fp-avatar-wrap:hover .fp-avatar-overlay {
    opacity: 1;
}

/* ── Settings Page ── */
.settings-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .15s;
}

.settings-tab:hover {
    background: var(--gray-50);
    color: var(--text-primary);
}

.settings-tab.active {
    background: var(--brand-primary);
    color: white;
    font-weight: 600;
}

.settings-tab.active .material-icons-round {
    color: white;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-300);
    border-radius: 26px;
    cursor: pointer;
    transition: all .25s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all .25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--brand-primary);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(22px);
}

/* Theme Option Cards */
.theme-option {
    padding: 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}

.theme-option:hover {
    border-color: var(--gray-300);
}

.theme-option.active {
    border-color: var(--brand-primary);
    background: rgba(255, 107, 53, .04);
}

/* ── Level Badges ── */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.level-bronze {
    background: rgba(205, 127, 50, 0.12);
    color: #CD7F32;
}

.level-gumus {
    background: rgba(192, 192, 192, 0.18);
    color: #808080;
}

.level-altin {
    background: rgba(255, 215, 0, 0.15);
    color: #B8860B;
}

.level-platin {
    background: rgba(108, 92, 231, 0.12);
    color: #6C5CE7;
}

/* ── Favorite Button ── */
.fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all .2s;
    color: var(--text-quaternary);
}

.fav-btn:hover {
    color: #FF4757;
    transform: scale(1.15);
}

.fav-btn.fav-active {
    color: #FF4757;
}

.fav-btn .material-icons-round {
    font-size: 22px;
}

/* ── Search Filter Panel ── */
.filter-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.filter-panel h3 {
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.filter-panel .form-group {
    margin-bottom: 14px;
}

.filter-panel .form-label {
    font-size: var(--font-xs);
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.filter-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-range input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    background: var(--bg-primary);
}

/* ── Package Tabs ── */
.pkg-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.pkg-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--border-light);
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all .2s;
    background: var(--bg-secondary);
}

.pkg-tab:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.pkg-tab:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pkg-tab.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.pkg-tab:hover:not(.active) {
    background: var(--bg-tertiary);
}

.pkg-tab .pkg-tier {
    font-size: var(--font-xs);
    opacity: .7;
    display: block;
    margin-bottom: 2px;
}

.pkg-tab .pkg-price {
    font-size: var(--font-lg);
    font-weight: 700;
    display: block;
}

/* ── Order Timeline ── */
.order-timeline {
    position: relative;
    padding-left: 32px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: var(--bg-primary);
}

.timeline-item.active .timeline-dot {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.timeline-item.completed .timeline-dot {
    background: var(--success);
    border-color: var(--success);
}

.timeline-item.revision .timeline-dot {
    background: var(--warning-text, #B8860B);
    border-color: var(--warning-text, #B8860B);
}

.timeline-item.error .timeline-dot {
    background: var(--error);
    border-color: var(--error);
}

.timeline-event {
    font-weight: 600;
    font-size: var(--font-sm);
}

.timeline-desc {
    font-size: var(--font-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

.timeline-date {
    font-size: var(--font-xs);
    color: var(--text-quaternary);
    margin-top: 2px;
}

@media (max-width:768px) {
    .pkg-tabs {
        flex-direction: column;
    }

    .pkg-tab:first-child {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .pkg-tab:last-child {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
}