/* ===== Account / Profile UI ===== */
.profile-shell {
    padding: 28px 0 48px;
    background:
        radial-gradient(ellipse 70% 40% at 10% 0%, color-mix(in srgb, var(--button-color, #0f766e) 10%, transparent), transparent 55%),
        #f5f6f8;
    min-height: 60vh;
}
.profile-shell .container {
    max-width: 1140px;
}
.profile-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* Sidebar */
.profile-nav {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
    position: sticky;
    top: 16px;
}
.profile-nav__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-bottom: 1px solid #eef2f7;
    text-decoration: none !important;
    color: inherit;
}
.profile-nav__avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}
.profile-nav__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.profile-nav__meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
}
.profile-nav__links {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 2px;
}
.profile-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 550;
    transition: background .15s ease, color .15s ease;
}
.profile-nav__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.75;
}
.profile-nav__link:hover {
    background: #f3f4f6;
    color: #111827 !important;
}
.profile-nav__link.is-active {
    background: color-mix(in srgb, var(--button-color, #0f766e) 12%, #fff);
    color: var(--button-color, #0f766e) !important;
}
.profile-nav__link.is-active svg {
    opacity: 1;
    color: var(--button-color, #0f766e);
}
.profile-nav__link--logout {
    margin-top: 6px;
    border-top: 1px solid #eef2f7;
    border-radius: 0 0 10px 10px;
    color: #b91c1c !important;
}
.profile-nav__link--logout:hover {
    background: #fef2f2;
}

/* Main panel */
.profile-main {
    min-width: 0;
}
.profile-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}
.profile-panel__head {
    margin-bottom: 18px;
}
.profile-panel__title {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 750;
    color: #111827;
    letter-spacing: -0.02em;
}
.profile-panel__sub,
.profile-panel__desc {
    margin: 0 0 16px;
    font-size: 0.92rem;
    color: #6b7280;
}

/* Dashboard cards */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.profile-tile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    min-height: 108px;
}
.profile-tile:hover {
    border-color: color-mix(in srgb, var(--button-color, #0f766e) 45%, #e5e7eb);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    transform: translateY(-2px);
    color: inherit;
}
.profile-tile__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--button-color, #0f766e) 12%, #fff);
    color: var(--button-color, #0f766e);
}
.profile-tile__icon svg {
    width: 20px;
    height: 20px;
}
.profile-tile__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.profile-tile__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

/* Orders */
.profile-order {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.profile-order:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}
.profile-order__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.profile-order__code {
    font-size: 14px;
    color: #6b7280;
}
.profile-order__code strong {
    color: #111827;
    font-size: 15px;
}
.profile-order__date {
    font-size: 13px;
    color: #6b7280;
}
.profile-order__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
}
.profile-order__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13.5px;
    color: #374151;
}
.profile-order__price {
    color: #059669;
    font-weight: 700;
}
.profile-order__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
}
.profile-order__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.profile-btn--primary {
    background: var(--button-color, #0f766e);
    color: var(--button-text-color, #fff) !important;
}
.profile-btn--primary:hover {
    filter: brightness(0.95);
    color: var(--button-text-color, #fff) !important;
}
.profile-btn--soft {
    background: #ecfdf5;
    color: #047857 !important;
}
.profile-btn--ghost {
    background: #f3f4f6;
    color: #111827 !important;
}
.profile-empty {
    text-align: center;
    padding: 36px 16px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    background: #fafafa;
    color: #6b7280;
}
.profile-badge-ok {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    font-size: 12.5px;
    font-weight: 650;
}

/* Override legacy profile styles inside shell */
.profile-shell .profile-list-group,
.profile-shell .profile-card-user,
.profile-shell a.profile-a-href,
.profile-shell a.profile-user {
    all: unset;
    display: contents;
}

@media (max-width: 991.98px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-nav {
        position: static;
    }
    .profile-nav__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
    .profile-nav__link--logout {
        grid-column: 1 / -1;
        border-top: 0;
        margin-top: 0;
    }
}

@media (max-width: 575.98px) {
    .profile-shell {
        padding: 16px 0 36px;
    }
    .profile-panel {
        padding: 16px;
        border-radius: 14px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-nav__links {
        grid-template-columns: 1fr;
    }
    .profile-order__body {
        grid-template-columns: 1fr;
    }
    .profile-order__actions {
        justify-content: stretch;
    }
    .profile-order__actions .profile-btn,
    .profile-order__actions form {
        width: 100%;
    }
    .profile-order__actions .profile-btn {
        width: 100%;
    }
}

/* ===== Forms inside profile ===== */
.profile-panel__head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.profile-panel__head-row .profile-panel__title {
    margin-bottom: 0;
}
.profile-form-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}
.profile-form-section:first-of-type {
    margin-top: 8px;
}
.profile-form-section__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}
.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #fff;
    margin-bottom: 12px;
}
.profile-shell .form-group,
.profile-shell .form-group.m-b-20 {
    margin-bottom: 14px;
}
.profile-shell label,
.profile-shell .control-label {
    display: block;
    font-size: 12.5px;
    font-weight: 650;
    color: #374151;
    margin-bottom: 6px;
}
.profile-shell .required {
    color: #dc2626;
}
.profile-shell .form-control,
.profile-shell .border-form-control,
.profile-shell select.form-control,
.profile-shell textarea.form-control {
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    min-height: 44px;
    padding: 10px 12px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    background: #fff;
}
.profile-shell textarea.form-control {
    min-height: 110px;
}
.profile-shell .form-control:focus,
.profile-shell select.form-control:focus,
.profile-shell textarea.form-control:focus {
    border-color: var(--button-color, #0f766e) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--button-color, #0f766e) 18%, transparent) !important;
}
.profile-shell .btn,
.profile-shell button[type="submit"] {
    border-radius: 10px !important;
    font-weight: 650 !important;
    min-height: 44px;
    padding: 10px 16px !important;
}
.profile-shell .btn-primary,
.profile-shell .btn-success {
    background: var(--button-color, #0f766e) !important;
    border-color: var(--button-color, #0f766e) !important;
    color: var(--button-text-color, #fff) !important;
}
.profile-shell hr {
    border: 0;
    border-top: 1px solid #eef2f7;
    margin: 14px 0;
}

/* List cards */
.profile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.profile-list-item__img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.profile-list-item__body {
    flex: 1;
    min-width: 0;
}
.profile-list-item__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 650;
    color: #111827;
}
.profile-list-item__title a {
    color: inherit;
    text-decoration: none;
}
.profile-list-item__meta {
    font-size: 12.5px;
    color: #6b7280;
}
.profile-list-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Order detail */
.od-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: #374151;
}
.od-summary strong {
    color: #111827;
}
.od-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
}
.od-product__img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}
.od-product__title {
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 6px;
}
.od-product__title a {
    color: #111827;
    text-decoration: none;
}
.od-product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 10px;
}
.od-product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.od-product__actions a,
.od-product__actions .solo-button-tekrar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 600;
}
.od-product__actions .solo-button-tekrar {
    background: var(--button-color, #0f766e);
    border-color: var(--button-color, #0f766e);
    color: var(--button-text-color, #fff) !important;
    cursor: pointer;
}
.od-totals {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
}
.od-totals__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 13.5px;
}
.od-totals__row--grand {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 15px;
    font-weight: 700;
}
.od-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.od-address-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}
.od-address-card h5 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}
.od-address-card__row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
    font-size: 13px;
    padding: 4px 0;
    color: #4b5563;
}
.od-address-card__row strong {
    color: #111827;
    font-weight: 600;
}
@media (max-width: 767.98px) {
    .od-address-grid {
        grid-template-columns: 1fr;
    }
    .od-address-card__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .profile-list-item {
        flex-wrap: wrap;
    }
    .profile-list-item__actions {
        width: 100%;
    }
}
