/* ==========================================================================
   Account v2 — Modern Sidebar Layout (Compact)
   Prefix: .sh-account2-*
   Uses site container: max-width 1200px, centered
   ========================================================================== */

/* Layout Container - matches site container */
.sh-account2 {
    min-height: calc(100vh - 120px);
    background: #f8fafc;
    padding: 16px 0;
}

.sh-account2__wrapper {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .sh-account2__wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.sh-account2__container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

/* ==========================================================================
   Sidebar (Readable)
   ========================================================================== */

.sh-account2__sidebar {
    background: #fafbfc;
    border-right: 1px solid #f0f1f3;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.sh-account2__sidebar::-webkit-scrollbar {
    width: 3px;
}

.sh-account2__sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.sh-account2__sidebar-inner {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

/* Navigation Sections (Compact) */
.sh-account2__nav-section {
    padding: 6px 8px 4px;
}

.sh-account2__nav-section:first-child {
    padding-top: 0;
}

/* Remove margin-top: auto from bottom section - keep sections together */
.sh-account2__nav-section--bottom {
    border-top: 1px solid #f0f1f3;
    margin-top: 8px;
    padding-top: 8px;
}

/* Section titles - readable */
.sh-account2 .sh-account2__nav-title,
.sh-account2__sidebar .sh-account2__nav-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin: 0 0 6px 8px;
    line-height: 1.3;
}

.sh-account2__nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Navigation Items (Readable) */
.sh-account2__nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
}

.sh-account2__nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.sh-account2__nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.sh-account2__nav-item:hover svg {
    opacity: 1;
}

.sh-account2__nav-item.is-active {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
    font-weight: 600;
}

.sh-account2__nav-item.is-active svg {
    opacity: 1;
    color: #f97316;
}

.sh-account2__nav-item.is-active svg {
    opacity: 1;
    color: #f97316;
}

/* Badge for unread notifications */
.sh-account2__nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #f97316;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Unread dot for ticket cards */
.sh-ticket-card__unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #f97316;
    border-radius: 50%;
    margin-left: 6px;
    flex-shrink: 0;
}

/* Logout item */
.sh-account2__nav-item--logout {
    color: #6b7280;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f0f1f3;
    border-radius: 0 0 5px 5px;
}

.sh-account2__nav-item--logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.sh-account2__logout-form {
    margin-top: 0;
}

/* ==========================================================================
   Main Content Area (Compact)
   ========================================================================== */

.sh-account2__main {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Header (Compact) */
.sh-account2__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
}

.sh-account2__user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* Avatar - simple strict icon */
.sh-account2__avatar {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.sh-account2__user-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    max-width: 320px;
    flex: 1;
}

/* User name: compact, readable (not huge) */
h1.sh-account2__user-name,
.sh-account2__user-name,
[data-page="shop"] h1.sh-account2__user-name,
[data-page="shop"] .sh-account2__user-name,
.sh-account2 .sh-account2__user-name,
.sh-account2 h1.sh-account2__user-name {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Tablet: slightly smaller */
@media (max-width: 991px) {
    h1.sh-account2__user-name,
    .sh-account2__user-name,
    [data-page="shop"] h1.sh-account2__user-name,
    [data-page="shop"] .sh-account2__user-name {
        font-size: 24px;
    }
    .sh-account2__user-info {
        max-width: 220px;
    }
}

/* Mobile: smaller */
@media (max-width: 480px) {
    h1.sh-account2__user-name,
    .sh-account2__user-name,
    [data-page="shop"] h1.sh-account2__user-name,
    [data-page="shop"] .sh-account2__user-name {
        font-size: 20px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }
    .sh-account2__user-info {
        max-width: 100%;
    }
}

.sh-account2__user-email {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sh-account2__badge {
    padding: 2px 6px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
}

.sh-account2__badge--accent {
    background: #ffedd5;
    color: #c2410c;
}

.sh-account2__badge--secondary {
    background: #dbeafe;
    color: #1e40af;
}

.sh-account2__badge--company {
    background: #fef3c7;
    color: #92400e;
}

.sh-account2__badge--individual {
    background: #ecfdf5;
    color: #065f46;
}

/* Profile type indicator */
.sh-account2__panel .sh-profile-type {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #f0f1f3;
    border-radius: 6px;
    margin-bottom: 12px;
}

.sh-account2__panel .sh-profile-type__label {
    font-size: 12px;
    color: #6b7280;
}

.sh-account2__panel .sh-profile-type__value {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.sh-account2__panel .sh-profile-type__value--company {
    background: #fef3c7;
    color: #92400e;
}

.sh-account2__panel .sh-profile-type__value--individual {
    background: #ecfdf5;
    color: #065f46;
}

.sh-account2__admin-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sh-account2__admin-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.sh-account2__admin-link svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* KPI Cards (Compact) */
.sh-account2__kpi {
    margin-bottom: 12px;
}

.sh-account2__kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Staff KPI: 3 columns (код, скидка, покупки) */
.sh-account2__kpi-grid--staff {
    grid-template-columns: repeat(3, 1fr);
}

.sh-account2__kpi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    background: #fafbfc;
    border: 1px solid #f0f1f3;
    border-radius: 6px;
    text-decoration: none;
    cursor: default;
    /* No interactive effects - informational only */
}

/* Remove hover effect - not clickable */
.sh-account2__kpi-card:hover {
    border-color: #f0f1f3;
    background: #fafbfc;
}

/* Remove is-active state - not tabs */
.sh-account2__kpi-card.is-active {
    background: #fafbfc;
    border-color: #f0f1f3;
}

.sh-account2__kpi-value {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.sh-account2__kpi-label {
    font-size: 10px;
    color: #6b7280;
    margin-top: 1px;
}

.sh-account2__kpi-hint {
    font-size: 9px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Content Area (Readable) */
.sh-account2__content {
    flex: 1;
}

.sh-account2__content-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px;
}

.sh-account2__panel {
    background: #ffffff;
    border-radius: 6px;
    padding: 14px;
}

/* ==========================================================================
   Mobile Bottom Navigation (Compact)
   ========================================================================== */

.sh-account2__mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 4px 10px;
    padding-bottom: calc(4px + env(safe-area-inset-bottom));
    z-index: 100;
}

.sh-account2__mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px;
    color: #6b7280;
    text-decoration: none;
    font-size: 9px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.sh-account2__mobile-item svg {
    width: 16px;
    height: 16px;
}

.sh-account2__mobile-item.is-active {
    color: #f97316;
}

.sh-account2__mobile-item:hover {
    color: #f97316;
}

/* ==========================================================================
   Responsive Design (Compact)
   ========================================================================== */

@media (max-width: 1024px) {
    .sh-account2__container {
        grid-template-columns: 200px 1fr;
        gap: 16px;
    }
    
    .sh-account2__main {
        padding: 14px 16px;
    }
    
    .sh-account2__kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sh-account2 {
        padding: 12px 0;
    }
    
    .sh-account2__container {
        grid-template-columns: 1fr;
        border-radius: 8px;
    }
    
    .sh-account2__sidebar {
        display: none;
    }
    
    .sh-account2__mobile-nav {
        display: flex;
        justify-content: space-around;
    }
    
    .sh-account2__main {
        padding: 10px;
        padding-bottom: 70px;
    }
    
    .sh-account2__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .sh-account2__admin-link {
        margin-top: 6px;
    }
    
    .sh-account2__kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .sh-account2__kpi-card {
        padding: 8px 6px;
    }
    
    .sh-account2__kpi-value {
        font-size: 16px;
    }
    
    .sh-account2__panel {
        padding: 12px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .sh-account2__kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .sh-account2__kpi-card {
        padding: 8px 6px;
    }
    
    .sh-account2__kpi-value {
        font-size: 14px;
    }
    
    .sh-account2__kpi-label {
        font-size: 10px;
    }
}

/* ==========================================================================
   Panel Content Overrides (for existing tabs) — Compact
   ========================================================================== */

.sh-account2__panel .sh-tab-content {
    padding: 0;
}

.sh-account2__panel .sh-tab-content__title {
    display: none;
}

.sh-account2__panel .sh-form-card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 14px;
}

.sh-account2__panel .sh-form-card__title {
    font-size: 13px;
    padding: 0;
    margin-bottom: 10px;
    border: none;
    background: none;
    font-weight: 600;
    color: #374151;
}

/* Form styles compact */
.sh-account2__panel .sh-form__section {
    margin-bottom: 12px;
}

.sh-account2__panel .sh-form__section-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sh-account2__panel .sh-form__row {
    margin-bottom: 10px;
}

.sh-account2__panel .sh-form__row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .sh-account2__panel .sh-form__row--2col {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.sh-account2__panel .sh-form__group {
    margin-bottom: 0;
}

.sh-account2__panel .sh-form__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 4px;
}

.sh-account2__panel .sh-form__required {
    color: #ef4444;
}

.sh-account2__panel .sh-form__optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 11px;
}

.sh-account2__panel .sh-form__input,
.sh-account2__panel .sh-form__select,
.sh-account2__panel .sh-form__textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #ffffff;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    /* Защита компактности - не наследуем увеличенный font-size */
}

.sh-account2__panel .sh-form__input:focus,
.sh-account2__panel .sh-form__select:focus,
.sh-account2__panel .sh-form__textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.08);
}

.sh-account2__panel .sh-form__input--error,
.sh-account2__panel .sh-form__select--error,
.sh-account2__panel .sh-form__textarea--error {
    border-color: #ef4444;
}

.sh-account2__panel .sh-form__textarea {
    min-height: 60px;
    resize: vertical;
}

.sh-account2__panel .sh-form__hint {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

.sh-account2__panel .sh-form__error {
    display: block;
    font-size: 11px;
    color: #ef4444;
    margin-top: 3px;
}

.sh-account2__panel .sh-form__actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

/* Actions in row (for buttons side by side) */
.sh-account2__panel .sh-form__actions--row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Buttons compact */
.sh-account2__panel .sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.sh-account2__panel .sh-btn--primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
}

.sh-account2__panel .sh-btn--primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.sh-account2__panel .sh-btn--secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.sh-account2__panel .sh-btn--secondary:hover {
    background: #e5e7eb;
}

.sh-account2__panel .sh-btn--outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    font-size: 13px;
}

.sh-account2__panel .sh-btn--outline:hover {
    background: #f9fafb;
    color: #374151;
}

/* Alerts compact */
.sh-account2__panel .sh-alert {
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
}

.sh-account2__panel .sh-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sh-account2__panel .sh-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Info block compact */
.sh-account2__panel .sh-info-block {
    background: #f9fafb;
    border: 1px solid #f0f1f3;
    border-radius: 5px;
    padding: 8px 10px;
    margin-top: 10px;
}

.sh-account2__panel .sh-info-block__title {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 4px;
}

.sh-account2__panel .sh-info-block__text {
    font-size: 11px;
    color: #6b7280;
    margin: 0 0 6px;
    line-height: 1.4;
}

.sh-account2__panel .sh-info-block__list {
    margin: 0;
    padding-left: 14px;
    font-size: 11px;
    color: #6b7280;
}

.sh-account2__panel .sh-info-block__list li {
    margin-bottom: 2px;
}

.sh-account2__panel .sh-info-block__list li:last-child {
    margin-bottom: 0;
}

/* Requests section compact */
.sh-account2__panel .sh-requests-section {
    margin-top: 12px;
}

.sh-account2__panel .sh-requests-section__title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px;
}

.sh-account2__panel .sh-requests-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sh-account2__panel .sh-request-card {
    background: #f9fafb;
    border: 1px solid #f0f1f3;
    border-radius: 5px;
    padding: 8px 10px;
}

.sh-account2__panel .sh-request-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.sh-account2__panel .sh-request-card__id {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
}

.sh-account2__panel .sh-request-card__date {
    font-size: 10px;
    color: #9ca3af;
}

.sh-account2__panel .sh-request-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.sh-account2__panel .sh-badge {
    display: inline-flex;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 500;
    border-radius: 3px;
}

.sh-account2__panel .sh-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.sh-account2__panel .sh-badge--success {
    background: #d1fae5;
    color: #065f46;
}

.sh-account2__panel .sh-badge--info {
    background: #dbeafe;
    color: #1e40af;
}

.sh-account2__panel .sh-request-card__type {
    font-size: 10px;
    color: #6b7280;
}

.sh-account2__panel .sh-request-card__subject {
    font-size: 11px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 2px;
}

.sh-account2__panel .sh-request-card__message {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    line-height: 1.3;
}

/* Empty state compact */
.sh-account2__panel .sh-empty {
    text-align: center;
    padding: 16px 12px;
}

.sh-account2__panel .sh-empty--compact {
    padding: 12px;
}

.sh-account2__panel .sh-empty__title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 4px;
}

.sh-account2__panel .sh-empty__text {
    font-size: 11px;
    color: #6b7280;
    margin: 0 0 10px;
}

.sh-account2__panel .sh-empty__actions {
    margin-top: 10px;
}

/* Stats row compact (Loyalty) */
.sh-account2__panel .sh-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.sh-account2__panel .sh-stat-card {
    background: #f9fafb;
    border: 1px solid #f0f1f3;
    border-radius: 6px;
    padding: 12px 10px;
    text-align: center;
}

.sh-account2__panel .sh-stat-card__value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.sh-account2__panel .sh-stat-card__label {
    display: block;
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

/* ==========================================================================
   Password Change Form (Account v2)
   ========================================================================== */

.sh-account2__password-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f1f3;
}

.sh-account2__password-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sh-account2__password-title svg {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

.sh-account2__password-form {
    max-width: 280px;
}

.sh-account2__password-form .sh-form__row {
    margin-bottom: 8px;
}

/* ==========================================================================
   Profile Layout (2-column with sidebar)
   ========================================================================== */

.sh-account2__panel .sh-profile-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
    align-items: start;
}

.sh-account2__panel .sh-profile-layout__main {
    min-width: 0;
}

.sh-account2__panel .sh-profile-layout__aside {
    min-width: 0;
}

.sh-account2__panel .sh-form-card--password {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.sh-account2__panel .sh-form-card--password > .sh-form-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-account2__panel .sh-form-card--password .sh-form-card__title svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

@media (max-width: 700px) {
    .sh-account2__panel .sh-profile-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sh-account2__panel .sh-profile-layout__aside {
        order: -1;
    }
}

/* ==========================================================================
   Compact Form for Requests Tab
   ========================================================================== */

.sh-account2__panel .sh-form-card--compact {
    max-width: 560px;
}

/* ==========================================================================
   Account v2 Card — Единый карточный стиль
   ========================================================================== */

/* Базовый класс карточки (как "Смена пароля") */
.sh-account2-card {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.sh-account2-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
}

.sh-account2-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-account2-card__title svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Вторичная карточка (меньше акцента) */
.sh-account2-card--secondary {
    background: #f9fafb;
    border-color: #f0f1f3;
    padding: 12px 14px;
}

.sh-account2-card--secondary .sh-account2-card__header {
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.sh-account2-card--secondary .sh-account2-card__title {
    font-size: 13px;
}

/* Применение стиля карточки к .sh-form-card внутри профиля (Личные данные) */
.sh-account2__panel .sh-profile-layout__main > .sh-form-card {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.sh-account2__panel .sh-profile-layout__main > .sh-form-card > .sh-form-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
}

/* Карточка формы для страницы Обращения */
.sh-account2__panel .sh-form-card--compact {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.sh-account2__panel .sh-form-card--compact > .sh-form-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
}

/* Инфоблок как вторичная карточка на странице Обращения */
.sh-account2__panel .sh-info-block--card {
    background: #f9fafb;
    border: 1px solid #f0f1f3;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 14px;
    max-width: 560px;
}

.sh-account2__panel .sh-info-block--card .sh-info-block__title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f1f3;
}

/* ==========================================================================
   ШАГ 2: Увеличенная читаемость текста в инфоблоках
   Бонусы / Обслуживание / Обращения
   ========================================================================== */

/* Увеличенный текст для инфоблоков (Бонусы, Обслуживание) */
.sh-account2__panel .sh-info-block--readable {
    padding: 14px 16px;
}

.sh-account2__panel .sh-info-block--readable .sh-info-block__title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 10px;
}

.sh-account2__panel .sh-info-block--readable .sh-info-block__text {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 10px;
    line-height: 1.6;
}

.sh-account2__panel .sh-info-block--readable .sh-info-block__list {
    font-size: 13px;
    color: #4b5563;
    padding-left: 18px;
    line-height: 1.6;
}

.sh-account2__panel .sh-info-block--readable .sh-info-block__list li {
    margin-bottom: 6px;
}

.sh-account2__panel .sh-info-block--readable .sh-info-block__list li:last-child {
    margin-bottom: 0;
}

/* Увеличенный текст для инфоблока-карточки (Обращения) */
.sh-account2__panel .sh-info-block--card.sh-info-block--readable .sh-info-block__title {
    font-size: 14px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.sh-account2__panel .sh-info-block--card.sh-info-block--readable .sh-info-block__list {
    font-size: 13px;
    line-height: 1.6;
    padding-left: 18px;
}

.sh-account2__panel .sh-info-block--card.sh-info-block--readable .sh-info-block__list li {
    margin-bottom: 6px;
}

/* Увеличенный текст для empty-блоков (Бонусы, Обслуживание) */
.sh-account2__panel .sh-empty--readable .sh-empty__title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 6px;
}

.sh-account2__panel .sh-empty--readable .sh-empty__text {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.6;
}

/* ==========================================================================
   Footer links for forms (Забыли пароль?)
   ========================================================================== */

.sh-account2__panel .sh-form__footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f1f3;
    text-align: center;
}

.sh-account2__panel .sh-form__link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sh-account2__panel .sh-form__link:hover {
    color: #f97316;
    text-decoration: underline;
}

/* ==========================================================================
   Order Item Cancel Button
   ========================================================================== */

.sh-order-item {
    position: relative;
}

.sh-order-item__cancel {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: #9ca3af;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sh-order-item__cancel:hover {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.sh-order-item__cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sh-order-item__cancel svg {
    flex-shrink: 0;
}

/* Text danger button style */
.sh-btn--text {
    background: transparent;
    border: none;
}

.sh-btn--danger {
    color: #9ca3af;
}

.sh-btn--danger:hover {
    color: #dc2626;
}
/* Order card summary rows (discounts, bonuses) */
.sh-order-card__summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sh-order-card__row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--sh-text-muted);
}

.sh-order-card__row--discount {
    color: #059669;
}

.sh-order-card__row--bonus {
    color: #f97316;
}

/* Order item image link */
.sh-order-item__image-link {
    display: block;
    flex-shrink: 0;
}

.sh-order-item__image-link:hover .sh-order-item__image {
    opacity: 0.85;
}

.sh-order-item__name a {
    color: inherit;
    text-decoration: none;
}

.sh-order-item__name a:hover {
    color: var(--sh-accent);
    text-decoration: underline;
}

/* ==========================================================================
   Order Item Cancelled State
   ========================================================================== */

.sh-order-item--cancelled {
    opacity: 0.6;
    background: #fafafa;
    border-radius: 4px;
}

.sh-order-item__status-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    margin-top: 4px;
}

.sh-order-item__status-badge--cancelled {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.sh-order-item__price--cancelled {
    text-decoration: line-through;
    color: #9ca3af;
}

/* ==========================================================================
   Order Item Price Display (main + old price)
   ========================================================================== */

.sh-order-item__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 90px;
}

.sh-order-item__price-original {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.sh-order-item__price-final {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.sh-order-item--cancelled .sh-order-item__price-final {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 400;
}

/* Order card subtotal row */
.sh-order-card__row--subtotal {
    color: #6b7280;
}

/* Orders "Show All" Button Container */
.sh-orders-more {
    margin-top: 16px;
    text-align: center;
}

/* ==========================================================================
   Staff Discount Conditions Block (Profile page only)
   ========================================================================== */

.sh-staff-conditions {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 8px;
}

.sh-staff-conditions__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #854d0e;
}

.sh-staff-conditions__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #713f12;
}

/* Модификатор для страницы обращений */
.sh-staff-conditions--requests {
    margin-top: 0;
    margin-bottom: 20px;
}

/* ==========================================================================
   Profile Customer Type Toggle (Staff)
   ========================================================================== */

.sh-profile-type-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.sh-profile-type-toggle__label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.sh-profile-type-toggle__buttons {
    display: flex;
    gap: 4px;
    background: #e5e7eb;
    padding: 3px;
    border-radius: 6px;
}

.sh-profile-type-toggle__btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sh-profile-type-toggle__btn:hover {
    color: #374151;
}

.sh-profile-type-toggle__btn.is-active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Tickets (Тикет-система)
   ========================================================================== */

/* Ticket Card in List */
.sh-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sh-ticket-card {
    display: grid;
    grid-template-columns: 4px 1fr auto;
    gap: 0 14px;
    align-items: center;
    padding: 14px 16px 14px 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    overflow: hidden;
}

.sh-ticket-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

/* Левая полоса статуса */
.sh-ticket-card__bar {
    width: 4px;
    height: 100%;
    min-height: 48px;
    border-radius: 0 2px 2px 0;
    background: #e5e7eb;
}
.sh-ticket-card--new .sh-ticket-card__bar { background: #3b82f6; }
.sh-ticket-card--in_review .sh-ticket-card__bar { background: #f59e0b; }
.sh-ticket-card--resolved .sh-ticket-card__bar { background: #10b981; }
.sh-ticket-card--rejected .sh-ticket-card__bar { background: #ef4444; }

.sh-ticket-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sh-ticket-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.sh-ticket-card__id {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.sh-ticket-card__subject {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-ticket-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #9ca3af;
}

.sh-ticket-card__messages {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sh-ticket-card__messages svg {
    width: 14px;
    height: 14px;
}

/* Правая часть - статус и стрелка */
.sh-ticket-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-left: 12px;
}

.sh-ticket-card__arrow {
    color: #d1d5db;
    transition: color 0.15s, transform 0.15s;
}
.sh-ticket-card__arrow svg {
    width: 20px;
    height: 20px;
}
.sh-ticket-card:hover .sh-ticket-card__arrow {
    color: #6b7280;
    transform: translateX(2px);
}

/* Индикатор нового ответа */
.sh-ticket-card--unread {
    background: #fafbff;
    border-color: #bfdbfe;
    border-left: 3px solid #3b82f6;
}
.sh-ticket-card--unread .sh-ticket-card__subject {
    font-weight: 600;
}

.sh-ticket-card__unread-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .sh-ticket-card {
        grid-template-columns: 4px 1fr;
        padding: 12px 14px 12px 0;
    }
    .sh-ticket-card__right {
        display: none;
    }
    .sh-ticket-card__header {
        flex-wrap: wrap;
    }
}

/* Ticket Detail Page */
.sh-ticket-header {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.sh-ticket-header__main {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

/* Main ticket title - explicit size (override global h1 styles) */
.sh-ticket-header .sh-ticket-title,
h1.sh-ticket-title {
    margin: 8px 0 10px !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 650 !important;
    color: #111827 !important;
}

.sh-ticket-header__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.sh-ticket-header__subject {
    margin: 0 0 6px;
    font-size: 14px;
    color: #4b5563;
}

.sh-ticket-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #9ca3af;
}

/* Messages Thread */
.sh-ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sh-ticket-message {
    padding: 12px 14px;
    border-radius: 10px;
}

.sh-ticket-message--user {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-right: 48px;
}

.sh-ticket-message--staff {
    background: #fffaf5;
    border: 1px solid #fed7aa;
    border-left: 3px solid #f97316;
    margin-left: 48px;
}

.sh-ticket-message__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.sh-ticket-message__author {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.sh-ticket-message--staff .sh-ticket-message__author {
    color: #c2410c;
}

.sh-ticket-message__date {
    font-size: 11px;
    color: #9ca3af;
}

.sh-ticket-message__body {
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
}

@media (max-width: 640px) {
    .sh-ticket-message--user {
        margin-right: 16px;
    }
    .sh-ticket-message--staff {
        margin-left: 16px;
    }
}

/* Reply Form */
.sh-ticket-reply {
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.sh-ticket-reply__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* Reply Form Fields */
.sh-ticket-reply .sh-form__textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sh-ticket-reply .sh-form__textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.sh-ticket-reply .sh-form__textarea--error {
    border-color: #ef4444;
}

.sh-ticket-reply .sh-form__textarea--error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.sh-ticket-reply .sh-form__error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
}

.sh-ticket-reply .sh-form__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

/* Pagination */
.sh-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* Badge sizes & colors for tickets */
.sh-badge--lg {
    padding: 6px 12px;
    font-size: 13px;
}

.sh-badge--sm {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.25;
    border-radius: 999px;
}

/* Status badges in ticket list - more prominent */
.sh-ticket-card .sh-badge {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1.3;
    white-space: nowrap;
}

.sh-badge--primary {
    background: #dbeafe;
    color: #1d4ed8;
}
.sh-badge--warning {
    background: #fef3c7;
    color: #b45309;
}
.sh-badge--success {
    background: #d1fae5;
    color: #047857;
}
.sh-badge--danger {
    background: #fee2e2;
    color: #b91c1c;
}
.sh-badge--secondary {
    background: #f3f4f6;
    color: #4b5563;
}

/* Breadcrumb */
.sh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.sh-breadcrumb__link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}

.sh-breadcrumb__link:hover {
    color: #111827;
}

.sh-breadcrumb__sep {
    color: #d1d5db;
    font-size: 11px;
}

.sh-breadcrumb__current {
    color: #374151;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
    .sh-ticket-message--user,
    .sh-ticket-message--staff {
        margin-left: 0;
        margin-right: 0;
    }
    
    .sh-ticket-header__main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   Requests Tab: Two-Column Header Layout
   ========================================================================== */

.sh-req-head {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.sh-req-head__form {
    min-width: 0;
}

.sh-req-head__form .sh-form-card {
    margin-bottom: 0;
}

.sh-req-head__info {
    min-width: 0;
}

/* Info Card (compact sidebar) */
.sh-info-card {
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.sh-info-card__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.sh-info-card__list {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.sh-info-card__list li {
    margin-bottom: 6px;
}

.sh-info-card__list li:last-child {
    margin-bottom: 0;
}

/* Load error message */
.sh-load-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b91c1c;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 768px) {
    .sh-req-head {
        grid-template-columns: 1fr;
    }
    
    .sh-req-head__info {
        order: -1;
    }
}