/**
 * ============================================================================
 * ELDER SPORES ONLINE - MY BUILDS STYLES
 * ============================================================================
 * Styling for the My Builds page
 * 
 * @version 1.0.1
 * @created 2025-12-27
 * @updated 2025-12-27 - Fixed spacing and font clamping to match community.css
 */

/* =============================================================================
   MY BUILDS CATALOG CONTAINER
   ============================================================================= */

.mybuilds-catalog {
    position: absolute;
    bottom: 2%;
    left: 16.4%;
    width: 66%;
    height: 81%;
    background-color: var(--color-background);
    border: var(--border-standard);
    border-radius: 30px;
    padding: 1%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    gap: 1.5%;
}

/* =============================================================================
   MY BUILDS CONTAINER (LEFT PANEL)
   ============================================================================= */

.mybuilds-container {
    position: relative;
    width: 68%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: .5%;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #000000 25%, #2a3a28);
    background-position: center;
    border: var(--border-thick);
    border-radius: 20px;
    overflow: hidden;
}

/* My Builds Header */
.mybuilds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 2.5%;
    flex-shrink: 0;
}

/* My Builds Label */
.mybuilds-label {
    text-align: left;
    text-justify: center;
    font-size: clamp(3vb, 1.9rem, 3vb);
    font-weight: 600;
    color: #3bb900;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(0, 0, 0);
}

/* Create New Build Button */
.create-build-btn {
    display: flex;
    align-items: center;
    gap: 2%;
    margin-bottom: 10px;
    padding: 1% 2.5%;
    background: linear-gradient(135deg, rgba(59, 185, 0, 0.3) 0%, rgba(40, 120, 0, 0.2) 100%);
    border: 2px solid #3bb900;
    border-radius: 10px;
    color: #3bb900;
    font-size: clamp(1.6vb, 1.1rem, 1.6vb);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.create-build-btn:hover {
    background: linear-gradient(135deg, rgba(59, 185, 0, 0.5) 0%, rgba(40, 120, 0, 0.3) 100%);
    box-shadow: 0 0 15px rgba(59, 185, 0, 0.4);
    transform: scale(1.05);
}

.create-build-btn .create-icon {
    font-size: 1.2em;
    font-weight: bold;
}

/* My Builds Grid Container */
.mybuilds-grid-container {
    position: relative;
    top: -2%;
    width: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    gap: 16px 12px;
    padding: 2%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mybuilds-grid-container::-webkit-scrollbar {
    display: none;
}

/* =============================================================================
   EMPTY STATE
   ============================================================================= */

.mybuilds-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5%;
    color: rgba(255, 255, 255, 0.6);
}

.mybuilds-empty .empty-icon {
    font-size: clamp(5vb, 4rem, 5vb);
    margin-bottom: 3%;
    opacity: 0.5;
}

.mybuilds-empty .empty-message {
    font-size: clamp(2.2vb, 1.5rem, 2.2vb);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2%;
    text-shadow: 0 0 10px rgba(0, 0, 0);
}

.mybuilds-empty .empty-hint {
    font-size: clamp(1.4vb, 1rem, 1.4vb);
    color: rgba(255, 255, 255, 0.5);
    max-width: 60%;
    line-height: 1.5;
}

/* =============================================================================
   MY BUILD CARDS
   ============================================================================= */

.mybuild-card {
    position: relative;
    width: 100%;
    min-width: 150px;
    aspect-ratio: 5 / 3;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.5s ease, box-shadow 0.5s ease, background-size 0.5s ease;
    font-size: clamp(1.2vb, 0.9rem, 1.2vb);
    color: var(--color-text-secondary, #a0a0a0);
    background-size: auto 80%;
    background-position: 98% 82%;
    background-repeat: no-repeat;
    overflow: hidden;
    border: 2px solid #1b4b04;
    background-color: rgba(0, 0, 0, 1);
}

.mybuild-card:hover {
    border: 3px solid #3bb900;
    box-shadow: 0 0 12px #51ff00;
    transform: scale(1.05);
}

.mybuild-card.selected {
    border: 3px solid #3bb900;
    box-shadow: 0 0 12px #51ff00;
    transform: scale(1.05);
}

/* Thumbnail background - full cover instead of positioned icon */
.mybuild-card.has-thumbnail {
    background-size: cover;
    background-position: center;
}

/* =============================================================================
   MY BUILD CARD CONTENT (Inner Elements)
   ============================================================================= */

.mybuild-card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8%;
}

.mybuild-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5%;
}

.mybuild-card-name {
    font-size: clamp(1.6vb, 1.1rem, 1.6vb);
    font-weight: 700;
    color: var(--color-primary, #c4a663);
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 1),
        0 2px 12px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 1),
        -1px -1px 2px rgba(0, 0, 0, 1);
    line-height: 1.2;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mybuild-card-icons {
    display: flex;
    gap: 4%;
    flex-shrink: 0;
}

.mybuild-card-icons .build-icon {
    font-size: clamp(1.9vb, 1.3rem, 1.9vb);
    opacity: 0.8;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.8);
}

.mybuild-card-icons .build-icon.locked {
    color: #ff6b6b;
}

.mybuild-card-icons .build-icon.shared {
    color: #4CAF50;
}

.mybuild-card-meta {
    display: flex;
    align-items: center;
    gap: 3%;
    font-size: clamp(1.5vb, 1.0rem, 1.5vb);
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 1),
        0 2px 12px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 1),
        -1px -1px 2px rgba(0, 0, 0, 1);
}

.mybuild-class {
    color: rgba(255, 255, 255, 0.9);
}

.mybuild-divider {
    opacity: 0.5;
}

.mybuild-type {
    font-size: clamp(1.9vb, 1.3rem, 1.9vb);
    display: flex;
    align-items: center;
}

.mybuild-type .hand-icon {
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.8);
}

/* AI type icon in build cards */
.mybuild-type .type-icon-img {
    height: 1.3em;
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1));
}

/* Card Footer */
.mybuild-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.mybuild-card-footer .build-icon.shared {
    font-size: clamp(1.9vb, 1.3rem, 1.9vb);
    color: #4CAF50;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.8);
}

/* =============================================================================
   BUILD DETAILS PANEL (RIGHT PANEL)
   ============================================================================= */

.mybuilds-details {
    position: relative;
    width: 32%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #000000 15%, #3a2a00);
    border: var(--border-thick);
    border-color: #b96300;
    border-radius: 20px;
    overflow: hidden;
    white-space: pre-line;
}

.mybuilds-details-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3% 2%;
    border-bottom: 2px solid rgba(185, 99, 0, 0.4);
    flex-shrink: 0;
}

.mybuilds-details-label {
    font-size: clamp(2.2vb, 1.4rem, 2.2vb);
    font-weight: 600;
    color: #ff9500;
    letter-spacing: 0.12em;
    text-shadow: 0 0 10px rgba(0, 0, 0);
}

/* Details Empty State */
.details-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10%;
    color: rgba(255, 255, 255, 0.5);
}

.details-empty-icon {
    font-size: clamp(4vb, 3rem, 4vb);
    margin-bottom: 5%;
    opacity: 0.4;
}

.details-empty-message {
    font-size: clamp(1.4vb, 1rem, 1.4vb);
    line-height: 1.5;
}

/* Details Content */
.details-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4%;
    gap: 3%;
    overflow-y: auto;
    overflow-x: visible;
    scrollbar-width: none;
}

.details-content::-webkit-scrollbar {
    display: none;
}

/* Details Section */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 2%;
}

.details-section-label {
    font-size: clamp(1.2vb, 0.85rem, 1.2vb);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.details-section-label .optional-tag {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85em;
    text-transform: none;
}

.details-section-label .required-tag {
    color: #ff9500;
    font-size: 0.85em;
    text-transform: none;
}

/* Build Info Section */
.details-info {
    padding-bottom: 4%;
    border-bottom: 1px solid rgba(185, 99, 0, 0.3);
}

.details-build-name-input {
    width: 100%;
    font-size: clamp(1.9vb, 1.2rem, 1.9vb);
    font-weight: 700;
    color: var(--color-primary, #c4a663);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(185, 99, 0, 0.3);
    border-radius: 6px;
    padding: 2% 3%;
    margin-top: 2%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.details-build-name-input:focus {
    outline: none;
    border-color: #ff9500;
}

.details-build-name-input::placeholder {
    color: rgba(196, 166, 99, 0.3);
    font-weight: 400;
}

.details-build-meta {
    display: flex;
    align-items: center;
    gap: 3%;
    font-size: clamp(1.2vb, 0.85rem, 1.2vb);
    color: rgba(255, 255, 255, 0.7);
}

.details-divider {
    opacity: 0.4;
}

/* Thumbnail Upload */
.thumbnail-upload-area {
    width: 100%;
    aspect-ratio: 500 / 300;
    border: 2px dashed rgba(185, 99, 0, 0.4);
    border-radius: 8px;
    background: rgba(0, 0, 0, 1);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
}

.thumbnail-upload-area:hover {
    border-color: #ff9500;
}

.thumbnail-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.thumbnail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5%;
    color: rgba(255, 255, 255, 0.4);
}

.thumbnail-icon {
    font-size: clamp(5vb, 2.2rem, 5vb);
}

.thumbnail-hint {
    font-size: clamp(1vb, 0.75rem, 1vb);
}

.thumbnail-actions {
    display: flex;
    gap: 3%;
    margin-top: 2%;
}

.thumbnail-btn {
    flex: 1;
    padding: 2.5% 0;
    border-radius: 6px;
    font-size: clamp(1.1vb, 0.8rem, 1.1vb);
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail-btn.upload-btn {
    background: rgba(185, 99, 0, 0.3);
    border: 1px solid #b96300;
    color: #ff9500;
}

.thumbnail-btn.upload-btn:hover {
    background: rgba(185, 99, 0, 0.5);
}

.thumbnail-btn.remove-btn {
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.5);
    color: #ff6b6b;
}

.thumbnail-btn.remove-btn:hover {
    background: rgba(255, 100, 100, 0.3);
}

/* Input Fields */
.details-input {
    width: 100%;
    padding: 3%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(185, 99, 0, 0.3);
    border-radius: 6px;
    color: white;
    font-size: clamp(1.3vb, 1rem, 1.3vb);
    box-sizing: border-box;
}

.details-input:focus {
    outline: none;
    border-color: #ff9500;
}

.details-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.video-notice {
    font-size: clamp(0.9vb, 0.7rem, 0.9vb);
    color: rgba(255, 200, 100, 0.6);
    margin-top: 1%;
}

/* Textarea */
.details-textarea {
    width: 100%;
    min-height: 127px;
    padding: 3%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(185, 99, 0, 0.3);
    border-radius: 6px;
    color: white;
    font-size: clamp(1.3vb, 1rem, 1.3vb);
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.details-textarea:focus {
    outline: none;
    border-color: #ff9500;
}

.details-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.char-counter {
    text-align: right;
    font-size: clamp(0.9vb, 0.7rem, 0.9vb);
    color: rgba(255, 255, 255, 0.4);
}

/* Written Guide Editor */
.written-guide-editor {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(185, 99, 0, 0.3);
    border-radius: 6px;
    min-height: 200px;
    transition: border-color 0.2s ease;
}

.written-guide-editor:focus-within {
    border-color: #ff9500;
}

/* Quill Toolbar Customization */
.written-guide-editor .ql-toolbar {
    background: rgba(185, 99, 0, 0.15);
    border: none;
    border-bottom: 1px solid rgba(185, 99, 0, 0.3);
    border-radius: 6px 6px 0 0;
    padding: 8px;
}

.written-guide-editor .ql-toolbar .ql-stroke {
    stroke: rgba(255, 149, 0, 0.8);
}

.written-guide-editor .ql-toolbar .ql-fill {
    fill: rgba(255, 149, 0, 0.8);
}

.written-guide-editor .ql-toolbar .ql-picker-label {
    color: rgba(255, 149, 0, 0.8);
}

.written-guide-editor .ql-toolbar button:hover,
.written-guide-editor .ql-toolbar button.ql-active {
    background: rgba(255, 149, 0, 0.2);
}

.written-guide-editor .ql-toolbar button:hover .ql-stroke,
.written-guide-editor .ql-toolbar button.ql-active .ql-stroke {
    stroke: #ff9500;
}

.written-guide-editor .ql-toolbar button:hover .ql-fill,
.written-guide-editor .ql-toolbar button.ql-active .ql-fill {
    fill: #ff9500;
}

/* Quill Editor Content Area */
.written-guide-editor .ql-container {
    border: none;
    font-size: clamp(1.3vb, 1rem, 1.3vb);
    min-height: 160px;
    max-height: 400px;
    overflow-y: auto;
    position: relative;
}

/* Position Quill tooltip below toolbar to avoid clipping */
.written-guide-editor .ql-tooltip {
    position: absolute;
    z-index: 1000;
    top: 45px !important;
    left: 0 !important;
    transform: none !important;
}

.written-guide-editor .ql-tooltip.ql-editing {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.written-guide-editor .ql-editor {
    color: white;
    padding: 12px;
    line-height: 1.6;
}

.written-guide-editor .ql-editor.ql-blank::before {
    color: rgba(255, 255, 255, 0.3);
    font-style: normal;
}

.written-guide-editor .ql-editor h2 {
    color: #ff9500;
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
}

.written-guide-editor .ql-editor strong {
    color: #c4a663;
    font-weight: 600;
}

.written-guide-editor .ql-editor a {
    color: #3bb900;
    text-decoration: underline;
}

.written-guide-editor .ql-editor ul {
    padding-left: 1.5em;
}

.written-guide-editor .ql-editor li {
    margin-bottom: 0.3em;
}

/* Content Tags */
.tag-primary-group {
    display: flex;
    gap: 5%;
    margin-top: 3%;
    margin-bottom: 2%;
    margin-left: 28%;
}

.tag-radio {
    display: flex;
    align-items: center;
    gap: 5%;
    cursor: pointer;
}

.tag-radio input {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(185, 99, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-radio input:checked {
    border-color: #ff9500;
    background: #ff9500;
}

.tag-radio-label {
    font-size: clamp(1.3vb, 0.95rem, 1.3vb);
    color: rgba(255, 255, 255, 0.8);
}

.tag-secondary-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 3%;  /* row-gap column-gap */
    padding: 3%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.tag-group-label {
    width: 100%;
    font-size: clamp(1vb, 0.75rem, 1vb);
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2%;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 4%;
    cursor: pointer;
    white-space: nowrap;
    padding: 1.5% 2% 1.5% 2%;
    background: rgba(185, 99, 0, 0.15);
    border: 1px solid rgba(185, 99, 0, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tag-checkbox:hover {
    border-color: rgba(185, 99, 0, 0.6);
}

.tag-checkbox input {
    appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    flex-shrink: 0;
    border: 2px solid rgba(185, 99, 0, 0.5);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-checkbox input:checked {
    border-color: #ff9500;
    background: #ff9500;
}

.tag-checkbox span {
    font-size: clamp(1.3vb, 0.9rem, 1.3vb);
    color: rgba(255, 255, 255, 0.7);
    padding: 5px;
}

/* =============================================================================
   CONTENT TAGS - TWO COLUMN LAYOUT
   ============================================================================= */

.tag-secondary-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.tag-secondary-container.two-column {
    flex-direction: row;
    gap: 16px;
}

.tag-secondary-container.two-column .tag-secondary-group {
    flex: 1;
    align-self: flex-start;
    border: 1px solid rgba(196, 166, 99, 0.2);
    border-radius: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.tag-column-header {
    display: none;
    width: 100%;
    flex-basis: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(196, 166, 99, 0.8);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(196, 166, 99, 0.2);
    text-align: center;
}

.tag-secondary-container.two-column .tag-column-header {
    display: block;
}

/* Primary tag checkboxes styling */
.tag-checkbox.primary-tag {
    font-weight: 600;
}

.tag-checkbox.primary-tag span {
    color: var(--color-primary, #c4a663);
}

.tag-checkbox.primary-tag input:checked + span {
    color: #3bb900;
}

/* =============================================================================
   TERTIARY TAGS CONTAINER
   ============================================================================= */

.tag-tertiary-container {
    display: none;
    margin-top: 8px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(196, 166, 99, 0.2);
    border-radius: 8px;
}

.tag-tertiary-container .tag-column-header {
    display: block;
    width: 100%;
    flex-basis: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0px;
    color: rgba(196, 166, 99, 0.8);
    border-bottom: 1px solid rgba(196, 166, 99, 0.2);
    text-align: center;
}

.tag-tertiary-options {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0px;
    gap: 8px;
}

.tag-checkbox.tertiary-tag {
    display: none;
}

.tag-checkbox.tertiary-tag input:checked + span {
    color: var(--color-primary, #c4a663);
}

/* Share Section */
.details-share-section {
    margin-top: auto;
    padding-top: 4%;
    border-top: 1px solid rgba(185, 99, 0, 0.3);
}

.share-build-btn {
    width: 100%;
    padding: 4%;
    background: linear-gradient(135deg, rgba(59, 185, 0, 0.3) 0%, rgba(40, 120, 0, 0.2) 100%);
    border: 2px solid #3bb900;
    border-radius: 8px;
    color: #3bb900;
    font-size: clamp(1.4vb, 1rem, 1.4vb);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3%;
}

.share-build-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(59, 185, 0, 0.5) 0%, rgba(40, 120, 0, 0.3) 100%);
    box-shadow: 0 0 15px rgba(59, 185, 0, 0.4);
}

.share-build-btn.disabled,
.share-build-btn:disabled {
    background: rgba(100, 100, 100, 0.2);
    border-color: rgba(100, 100, 100, 0.4);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.share-build-btn.shared {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.3) 0%, rgba(185, 99, 0, 0.2) 100%);
    border-color: #ff9500;
    color: #ff9500;
}

.share-lock-icon {
    font-size: 1.1em;
}

.share-requirements {
    text-align: center;
    font-size: clamp(0.9vb, 0.7rem, 0.9vb);
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2%;
}

/* Dual buttons when build is shared */
.shared-actions {
    display: flex;
    gap: 3%;
    width: 100%;
}

.shared-action-btn {
    flex: 1;
    padding: 3.5%;
    border-radius: 8px;
    font-size: clamp(1.2vb, 0.9rem, 1.2vb);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shared-action-btn.update-btn {
    background: linear-gradient(135deg, rgba(59, 185, 0, 0.3) 0%, rgba(40, 120, 0, 0.2) 100%);
    border: 2px solid #3bb900;
    color: #3bb900;
}

.shared-action-btn.update-btn:hover {
    background: linear-gradient(135deg, rgba(59, 185, 0, 0.5) 0%, rgba(40, 120, 0, 0.3) 100%);
    box-shadow: 0 0 12px rgba(59, 185, 0, 0.4);
}

.shared-action-btn.unshare-btn {
    background: rgba(255, 100, 100, 0.15);
    border: 2px solid rgba(255, 100, 100, 0.5);
    color: #ff6b6b;
}

.shared-action-btn.unshare-btn:hover {
    background: rgba(255, 100, 100, 0.3);
    box-shadow: 0 0 12px rgba(255, 100, 100, 0.3);
}

/* Action Buttons */
.details-actions {
    display: flex;
    gap: 3%;
    margin-top: 3%;
}

.details-action-btn {
    flex: 1;
    padding: 3%;
    border-radius: 6px;
    font-size: clamp(1.2vb, 0.85rem, 1.2vb);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.details-action-btn.edit-btn {
    background: rgba(185, 99, 0, 0.3);
    border: 1px solid #b96300;
    color: #ff9500;
}

.details-action-btn.edit-btn:hover {
    background: rgba(185, 99, 0, 0.5);
    box-shadow: 0 0 10px rgba(185, 99, 0, 0.3);
}

.details-action-btn.delete-btn {
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.4);
    color: #ff6b6b;
}

.details-action-btn.delete-btn:hover {
    background: rgba(255, 100, 100, 0.3);
    box-shadow: 0 0 10px rgba(255, 100, 100, 0.3);
}

/* =============================================================================
   RIGHT-CLICK CONTEXT MENU
   ============================================================================= */

.build-context-menu {
    position: fixed;
    z-index: 10000;
    min-width: 180px;
    background: linear-gradient(to bottom, #1a1a22 0%, #0d0d12 100%);
    border: 2px solid rgba(185, 99, 0, 0.6);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.2vb, 0.9rem, 1.2vb);
    cursor: pointer;
    transition: background 0.15s ease;
}

.context-menu-item:hover {
    background: rgba(185, 99, 0, 0.3);
}

.context-menu-item.danger {
    color: #ff6b6b;
}

.context-menu-item.danger:hover {
    background: rgba(255, 100, 100, 0.2);
}

.context-icon {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.context-menu-divider {
    height: 1px;
    background: rgba(185, 99, 0, 0.3);
    margin: 4px 0;
}

/* =============================================================================
   BUILD CARD TOOLTIPS
   ============================================================================= */

.build-tooltip {
    position: fixed;
    z-index: 10001;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98), rgba(20, 20, 25, 0.99));
    border: 2px solid rgba(196, 166, 99, 0.6);
    border-radius: 12px;
    padding: 15px 18px;
    max-width: 350px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    display: none;
}

.build-tooltip-content {
    width: 100%;
    height: auto;
}

.tooltip-build-name {
    font-size: clamp(2vb, 1.4rem, 2vb);
    font-weight: 700;
    color: var(--color-primary, #c4a663);
    margin-bottom: 8px;
    text-shadow: 
        0 0 3px rgba(0, 0, 0, 1),
        0 2px 3px rgba(0, 0, 0, 1),
        1px 1px 2px rgba(0, 0, 0, 0.5),
        -1px -1px 2px rgba(0, 0, 0, 0.3);
}

.tooltip-class,
.tooltip-curse,
.tooltip-subclass {
    font-size: clamp(1.5vb, 1.0rem, 1.5vb);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.tooltip-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.tooltip-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(196, 166, 99, 0.4) 50%, 
        transparent 100%);
    margin: 10px 0;
}

.tooltip-subclass-header {
    font-size: clamp(1.5vb, 1.0rem, 1.5vb);
    color: var(--color-primary, #c4a663);
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
}

.tooltip-skilllines {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.tooltip-skilllines li {
    font-size: clamp(1.5vb, 1.0rem, 1.5vb);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2px;
}

/* Class-specific skill line colors */
.tooltip-skilllines li[data-class="arcanist"] { color: #32cd32; }
.tooltip-skilllines li[data-class="dragonknight"] { color: #ff8c00; }
.tooltip-skilllines li[data-class="necromancer"] { color: #c144ff; }
.tooltip-skilllines li[data-class="nightblade"] { color: #ff000d; }
.tooltip-skilllines li[data-class="sorcerer"] { color: #3e5eff; }
.tooltip-skilllines li[data-class="templar"] { color: #ffd700; }
.tooltip-skilllines li[data-class="warden"] { color: #14efff; }

.tooltip-description {
    font-size: clamp(1.5vb, 1.0rem, 1.5vb);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    white-space: pre-line;
    max-height: 150px;
    overflow-y: auto;
}

/* AI Build Notice */
.tooltip-ai-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1.3vb, 0.85rem, 1.3vb);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.tooltip-ai-icon {
    height: 2em;
    width: auto;
    flex-shrink: 0;
}

.tooltip-shared-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2rem;
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 1),
        1px 1px 2px rgba(0, 0, 0, 1),
        -1px -1px 2px rgba(0, 0, 0, 1);
}

.build-tooltip-content {
    position: relative;
}

/* =============================================================================
   MY BUILDS FILTER BAR (Absolute positioning like community.css)
   ============================================================================= */

.mybuilds-filters-container {
    position: absolute;
    bottom: 5%;
    left: 15%;
    width: 70%;
    height: 40%;
    z-index: 100;
}

/* Display Filter Buttons - Absolute positioned */
.mybuilds-filters-container .filter-btn {
    position: absolute;
    top: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70%;
    background: rgba(40, 40, 55, 0.8);
    border: 2px solid rgba(196, 166, 99, 0.3);
    color: var(--color-text-secondary, #a0a0a0);
    border-radius: 24px;
    font-size: clamp(1.8vb, 1.3rem, 1.8vb);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

/* Position each filter button */
.mybuilds-filters-container .filter-btn[data-filter="all"] {
    left: 0%;
    width: 10%;
}

.mybuilds-filters-container .filter-btn[data-filter="handcrafted"] {
    left: 11%;
    width: 13%;
}

.mybuilds-filters-container .filter-btn[data-filter="ai"] {
    left: 25%;
    width: 11%;
}

/* Hover state */
.mybuilds-filters-container .filter-btn:hover {
    background: rgba(60, 60, 80, 0.9);
    border-color: rgba(196, 166, 99, 0.6);
    color: var(--color-text-primary, #e0e0e0);
    transform: scale(1.05);
}

/* Active state */
.mybuilds-filters-container .filter-btn.active {
    background: linear-gradient(135deg, 
        rgba(59, 185, 0, 0.3) 0%, 
        rgba(40, 120, 0, 0.2) 100%);
    font-weight: bold;
    border-color: #3bb900;
    color: #3bb900;
}

/* First Divider */
.filter-divider {
    position: absolute;
    left: 37%;
    top: 25%;
    width: 2px;
    height: 50%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(238, 190, 88, 0.5) 50%,
        transparent 100%);
}

/* Build Storage Info */
.build-storage-info {
    position: absolute;
    left: 38%;
    top: 15%;
    height: 70%;
    display: flex;
    align-items: center;
    gap: 8%;
    white-space: nowrap;
}

.storage-label {
    font-size: clamp(1.8vb, 1.3rem, 1.8vb);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    white-space: nowrap;
}

.storage-count {
    font-size: clamp(1.8vb, 1.3rem, 1.8vb);
    font-weight: 600;
    color: #3bb900;
    text-shadow: 0 0 8px rgba(59, 185, 0, 0.3);
    transform: translateY(-17%);
    white-space: nowrap;
}

.storage-count.near-limit {
    color: #ffa500;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

.storage-count.at-limit {
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}

/* Second Divider */
.filter-divider-secondary {
    position: absolute;
    left: 48%;
    top: 25%;
    width: 2px;
    height: 50%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(238, 190, 88, 0.5) 50%,
        transparent 100%);
}

/* Profile Status Group */
.profile-status-group {
    position: absolute;
    left: 49%;
    top: 15%;
    height: 70%;   
    display: flex;
    align-items: center;
    gap: 8%;
}

/* Privacy Toggle Container */
.privacy-toggle-container {
    display: flex;
    align-items: center;
    gap: 2%;
    height: 100%;
}

.privacy-label {
    font-size: clamp(1.8vb, 1.3rem, 1.8vb);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* Privacy Toggle */
.privacy-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8%;
    cursor: pointer;
    height: 70%;
}

.privacy-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.privacy-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.privacy-toggle-slider {
    position: relative;
    height: 100%;
    aspect-ratio: 2 / 1;
    width: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: background 0.3s ease;
}

.privacy-toggle-slider::before {
    position: absolute;
    content: '';
    height: 72%;
    aspect-ratio: 1 / 1;
    width: auto;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.privacy-toggle input:checked + .privacy-toggle-slider {
    background: rgba(59, 185, 0, 0.4);
}

.privacy-toggle input:checked + .privacy-toggle-slider::before {
    transform: translateY(-50%) translateX(140%);
    background: #3bb900;
}

.privacy-toggle.disabled .privacy-toggle-slider {
    background: rgba(100, 100, 100, 0.3);
}

.privacy-toggle-text {
    font-size: clamp(1.8vb, 1.3rem, 1.8vb);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    min-width: 55px;
}

/* Share Page Button */
.share-page-btn {
    display: flex;
    align-items: center;
    gap: 2%;
    padding: 2% 3%;
    height: 100%;
    background: rgba(40, 40, 55, 0.8);
    border: 2px solid rgba(196, 166, 99, 0.3);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1.8vb, 1.3rem, 1.8vb);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.share-page-btn:hover:not(:disabled) {
    background: rgba(60, 60, 80, 0.9);
    border-color: rgba(196, 166, 99, 0.6);
    color: var(--color-text-primary, #e0e0e0);
    transform: scale(1.05);
}

.share-page-btn:disabled,
.share-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.share-page-btn .share-icon {
    font-size: 1.1em;
}

/* Third Divider */
.filter-divider-tertiary {
    position: absolute;
    left: 82.5%;
    top: 25%;
    width: 2px;
    height: 50%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(238, 190, 88, 0.5) 50%,
        transparent 100%);
}

/* Subscriber Status Group */
.subscriber-status-group {
    position: absolute;
    left: 83.5%;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    display: flex;
    align-items: center;
    gap: 5%;
    white-space: nowrap;
}

.subscriber-label {
    font-size: clamp(1.8vb, 1.3rem, 1.8vb);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    white-space: nowrap;
}

/* Tier Badge (matches settings.css) */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.4vb, 1rem, 1.4vb);
    padding: 2% 5%;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tier-badge.tier-free {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.tier-badge.tier-basic {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.tier-badge.tier-premium {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.tier-badge.tier-lifetime {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 107, 107, 0.3));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

/* =============================================================================
   BUILDS SECTION HEADERS (Shared/Private)
   ============================================================================= */

.builds-section-header {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary, #b8b8b8);
    padding: 8px 0 4px 4px;
    margin-top: 16px;
    border-bottom: 1px solid var(--border-color, #3a3a3a);
}

.builds-section-header:first-child {
    margin-top: 0;
}

.builds-section-grid {
    display: contents;
}

/* =============================================================================
   TOAST NOTIFICATION
   ============================================================================= */

.mybuilds-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(40, 40, 40, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 10001;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.mybuilds-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* =============================================================================
   OVERFLOW MENU (Narrow Width Responsive)
   ============================================================================= */

.filter-overflow-container {
    position: absolute;
    right: 1%;
    top: 50%;
    transform: translateY(-50%);
    display: none; /* Hidden by default, shown via media query */
    z-index: 100;
}

.filter-overflow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    background: rgba(40, 40, 55, 0.9);
    border: 2px solid rgba(196, 166, 99, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-overflow-btn:hover {
    background: rgba(60, 60, 80, 0.95);
    border-color: #3bb900;
}

.filter-overflow-container:has(.filter-overflow-dropdown.open) .filter-overflow-btn {
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
    background: rgba(60, 60, 80, 0.95);
}

.filter-overflow-container:has(.filter-overflow-dropdown.open) .filter-overflow-btn .overflow-dots {
    color: #ffd700;
}

.filter-overflow-btn .overflow-dots {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    letter-spacing: 2px;
    line-height: 1;
}

.filter-overflow-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: rgba(30, 30, 40, 0.98);
    border: 2px solid rgba(196, 166, 99, 0.4);
    border-radius: 10px;
    padding: 12px;
    display: none; /* Toggled by JS */
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.filter-overflow-dropdown.open {
    display: flex;
}

.overflow-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 4px;
}

.overflow-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    white-space: nowrap;
}

.overflow-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(196, 166, 99, 0.3) 50%,
        transparent 100%);
    margin: 4px 0;
}

/* Overflow Toggle (matches main toggle style) */
.overflow-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.overflow-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.overflow-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.overflow-toggle-slider {
    position: relative;
    width: 36px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: background 0.3s ease;
}

.overflow-toggle-slider::before {
    position: absolute;
    content: '';
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.overflow-toggle input:checked + .overflow-toggle-slider {
    background: rgba(59, 185, 0, 0.4);
}

.overflow-toggle input:checked + .overflow-toggle-slider::before {
    transform: translateX(18px);
    background: #3bb900;
}

.overflow-toggle-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    min-width: 50px;
}

/* Overflow Profile Button */
.overflow-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(40, 40, 55, 0.8);
    border: 1px solid rgba(196, 166, 99, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.overflow-profile-btn:hover {
    background: rgba(60, 60, 80, 0.9);
    border-color: rgba(196, 166, 99, 0.6);
}

.overflow-icon {
    font-size: 1rem;
}

/* Tier-locked builds (free tier exceeding 5 build limit) */
.mybuild-card.tier-locked {
    opacity: 0.5;
    filter: grayscale(70%);
    position: relative;
}

.mybuild-card.tier-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    border-radius: inherit;
}

.mybuild-card.tier-locked:hover {
    opacity: 0.6;
    filter: grayscale(50%);
}

.tier-locked-icon {
    color: #f59e0b !important;
    font-size: 1.1em;
}

/* Disabled edit button state */
#edit-build-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Disabled shared action buttons */
#unshare-build-btn.disabled,
#update-build-info-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(50%);
}

/* Disabled context menu items */
.context-menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #888;
}

.context-menu-item.disabled:hover {
    background: transparent;
}

/* Disabled header buttons */
#create-build-btn.disabled,
#my-profile-btn.disabled,
#overflow-profile-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(50%);
}

/* =============================================================================
   RESPONSIVE: Three-Stage Overflow Menu
   ============================================================================= */

/* Stage 1: Hide Subscription first (medium narrow) */
@media (max-width: 1610px) {
    /* Hide subscription elements */
    .filter-divider-tertiary,
    .subscriber-status-group {
        display: none !important;
    }
    
    /* Show overflow menu */
    .filter-overflow-container {
        display: block;
    }
    
    /* Hide profile items in overflow (still in main bar) */
    .overflow-profile-status,
    .overflow-profile-btn,
    .filter-overflow-dropdown .overflow-divider:nth-child(2),
    .filter-overflow-dropdown .overflow-divider:nth-child(4) {
        display: none;
    }

    /* Adjust Remaining Elements */
    .mybuilds-filters-container .filter-btn[data-filter="all"] {
        width: 11.5%;
    }
    .mybuilds-filters-container .filter-btn[data-filter="handcrafted"] {
        left: 12.5%;
        width: 12.5%;
    }
    .mybuilds-filters-container .filter-btn[data-filter="ai"] {
        left: 26%;
        width: 13%;
    }
    .filter-divider {
        left: 40%;
    }
    .build-storage-info {
        left: 41%;
    }
    .filter-divider-secondary {
        left: 52.5%;
    }
    .profile-status-group {
        left: 53.5%;
    }
}

/* Guest empty state secondary messages */
.empty-hint-subscription {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255, 200, 100, 0.8);
    font-style: italic;
}

.details-empty-hint {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 200, 100, 0.7);
    font-style: italic;
}

/* Stage 2: Also hide My Profile Page button (narrower) */
@media (max-width: 1310px) {
    /* Hide profile button from main bar */
    .profile-status-group .share-page-btn {
        display: none !important;
    }
    
    /* Show profile button in overflow */
    .overflow-profile-btn,
    .filter-overflow-dropdown .overflow-divider:nth-child(4) {
        display: flex;
    }
    
    .overflow-profile-btn {
        display: flex;
    }
    
    /* Profile status toggle still hidden in overflow */
    .overflow-profile-status,
    .filter-overflow-dropdown .overflow-divider:nth-child(2) {
        display: none;
    }

    /* Adjust Remaining Elements */
    .mybuilds-filters-container .filter-btn[data-filter="all"] {
        width: 13%;
    }
    .mybuilds-filters-container .filter-btn[data-filter="handcrafted"] {
        left: 14%;
        width: 14%;
    }
    .mybuilds-filters-container .filter-btn[data-filter="ai"] {
        left: 29%;
        width: 14.5%;
    }
    .filter-divider {
        left: 44.5%;
    }
    .build-storage-info {
        left: 46%;
    }
    .filter-divider-secondary {
    left: 62%;
    }
    .profile-status-group {
    left: 63.5%;
    }
}

/* Stage 3: Also hide Profile Status toggle (very narrow) */
@media (max-width: 1015px) {
    /* Hide entire profile status group */
    .profile-status-group,
    .filter-divider-secondary {
        display: none !important;
    }
    
    /* Show all overflow items */
    .overflow-profile-status,
    .filter-overflow-dropdown .overflow-divider:nth-child(2) {
        display: flex;
    }

    /* Adjust Remaining Elements */
    .mybuilds-filters-container .filter-btn[data-filter="all"] {
        width: 14.5%;
    }
    .mybuilds-filters-container .filter-btn[data-filter="handcrafted"] {
        left: 15.5%;
        width: 15.5%;
    }
    .mybuilds-filters-container .filter-btn[data-filter="ai"] {
        left: 32%;
        width: 16%;
    }
    .filter-divider {
        left: 49.5%;
    }
    .build-storage-info {
        left: 51%;
    }
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 1400px) {
    .mybuilds-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mybuilds-container {
        width: 60%;
    }
    
    .mybuilds-details {
        width: 40%;
    }
}

@media (max-width: 1100px) {
    .mybuilds-catalog {
        flex-direction: column;
        gap: 2%;
    }
    
    .mybuilds-container {
        width: 100%;
        height: 55%;
    }
    
    .mybuilds-details {
        width: 100%;
        height: 43%;
    }
    
    .mybuilds-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mybuilds-catalog {
        left: 2%;
        width: 96%;
    }
    
    .mybuilds-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}