:root {
    --iskolik-primary: #5638ee;
    --iskolik-primary-hover: #4326d9;
    --iskolik-primary-soft: #f2f0ff;
    --iskolik-accent: #ff6b4a;
    --iskolik-success: #10b981;
    --iskolik-success-soft: #ecfdf5;
    --iskolik-warning: #f59e0b;
    --iskolik-dark: #111827;
    --iskolik-gray-bg: #f8fafc;
    --iskolik-border: #e2e8f0;
    --iskolik-text: #1f2937;
    --iskolik-text-muted: #64748b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--iskolik-gray-bg);
    color: var(--iskolik-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

/* Brand Buttons */
.btn-bionluk, .btn-iskolik {
    background-color: var(--iskolik-primary);
    border-color: var(--iskolik-primary);
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}
.btn-bionluk:hover, .btn-bionluk:focus,
.btn-iskolik:hover, .btn-iskolik:focus {
    background-color: var(--iskolik-primary-hover);
    border-color: var(--iskolik-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(86, 56, 238, 0.28);
}

.btn-outline-bionluk, .btn-outline-iskolik {
    color: var(--iskolik-primary);
    border-color: var(--iskolik-primary);
    font-weight: 600;
    background: transparent;
    transition: all 0.2s ease;
}
.btn-outline-bionluk:hover, .btn-outline-iskolik:hover {
    background-color: var(--iskolik-primary);
    color: #fff;
    border-color: var(--iskolik-primary);
    box-shadow: 0 4px 12px rgba(86, 56, 238, 0.2);
}

.btn-success-bionluk, .btn-success-iskolik {
    background-color: var(--iskolik-success);
    border-color: var(--iskolik-success);
    color: #fff;
    font-weight: 600;
}
.btn-success-bionluk:hover, .btn-success-iskolik:hover {
    background-color: #059669;
    border-color: #059669;
    color: #fff;
}

/* Color Utilities */
.text-bionluk, .text-iskolik {
    color: var(--iskolik-primary) !important;
}
.bg-bionluk-soft, .bg-iskolik-soft {
    background-color: var(--iskolik-primary-soft) !important;
    color: var(--iskolik-primary) !important;
}
.bg-success-soft {
    background-color: var(--iskolik-success-soft) !important;
    color: var(--iskolik-success) !important;
}

/* Navbar */
.iskolik-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--iskolik-border);
    padding: 0.75rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.iskolik-brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--iskolik-dark) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.iskolik-brand .brand-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--iskolik-primary) 0%, #7c3aed 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(86, 56, 238, 0.3);
}
.iskolik-brand .brand-name {
    color: var(--iskolik-dark);
}
.iskolik-brand .brand-dot {
    color: var(--iskolik-primary);
}

/* Category Subnav Strip */
.category-subnav {
    background-color: #ffffff;
    border-bottom: 1px solid var(--iskolik-border);
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.45rem 0;
    -webkit-overflow-scrolling: touch;
}
.category-subnav::-webkit-scrollbar {
    height: 3px;
}
.category-subnav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.category-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.category-nav-link:hover, .category-nav-link.active {
    color: var(--iskolik-primary);
    background-color: var(--iskolik-primary-soft);
    font-weight: 600;
}

/* Service Card (Gig Card) - Pixel Perfect */
.service-card {
    background: #ffffff;
    border: 1px solid var(--iskolik-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.service-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f1f5f9;
}
.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.service-card:hover .service-card-img {
    transform: scale(1.04);
}

.service-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.service-card-title {
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.45;
    color: #1e293b;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.85rem;
    text-decoration: none;
}
.service-card-title:hover {
    color: var(--iskolik-primary);
}

.service-card-footer {
    border-top: 1px solid #f1f5f9;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Avatars */
.seller-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.seller-avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.seller-avatar-lg {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ============================================================
   KUSURSUZ PROFİL BAŞLIĞI (Kaymaları %100 Önleyen Yeni Yapı)
   ============================================================ */
.profile-header-card {
    background: #ffffff;
    border: 1px solid var(--iskolik-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

.profile-cover-banner {
    height: 160px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    position: relative;
}

.profile-header-body {
    padding: 0 1.75rem 1.75rem 1.75rem;
    position: relative;
    background: #ffffff;
}

.profile-avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -55px;
    margin-bottom: 1rem;
}

.profile-avatar-wrapper {
    position: relative;
}
.profile-avatar-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    background: #ffffff;
    display: block;
}

.profile-user-info {
    margin-top: 0.5rem;
}

/* Category Cards on Home */
.category-card {
    background: #ffffff;
    border: 1px solid var(--iskolik-border);
    border-radius: 14px;
    padding: 1.4rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--iskolik-text);
    display: block;
    transition: all 0.2s ease;
    height: 100%;
}
.category-card:hover {
    border-color: var(--iskolik-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(86, 56, 238, 0.12);
    color: var(--iskolik-primary);
}
.category-card .icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--iskolik-primary-soft);
    color: var(--iskolik-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}
.category-card:hover .icon-wrapper {
    background: var(--iskolik-primary);
    color: #ffffff;
}

/* Escrow Banner / How it works */
.escrow-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #31104b 100%);
    border-radius: 20px;
    color: #ffffff;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

/* Chat Styles */
.chat-container {
    height: 600px;
    background: #ffffff;
    border: 1px solid var(--iskolik-border);
    border-radius: 16px;
    overflow: hidden;
}

.chat-sidebar {
    height: 100%;
    border-right: 1px solid var(--iskolik-border);
    overflow-y: auto;
}

.chat-conversation-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.chat-conversation-item:hover, .chat-conversation-item.active {
    background-color: var(--iskolik-primary-soft);
}

.chat-messages-area {
    height: 490px;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f8fafc;
}

.message-bubble {
    max-width: 72%;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.message-bubble.sent {
    align-self: flex-end;
    background-color: var(--iskolik-primary);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.message-bubble.received {
    align-self: flex-start;
    background-color: #ffffff;
    color: var(--iskolik-dark);
    border: 1px solid var(--iskolik-border);
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Timeline steps */
.order-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}
.order-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}
.order-step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}
.order-step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.order-step-item.active .order-step-icon {
    border-color: var(--iskolik-primary);
    background: var(--iskolik-primary);
    color: #ffffff;
}
.order-step-item.completed .order-step-icon {
    border-color: var(--iskolik-success);
    background: var(--iskolik-success);
    color: #ffffff;
}

/* Footer */
.iskolik-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--iskolik-border);
    padding: 3.5rem 0 2rem;
    margin-top: 3.5rem;
}
.iskolik-footer a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}
.iskolik-footer a:hover {
    color: var(--iskolik-primary);
}
