/* My Designs page */
.my-designs-page {
    min-height: calc(100vh - 160px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 90px 20px 30px; /* top padding to avoid fixed header overlap */
}

.my-designs-container {
    max-width: 1100px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

.header-title {
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 6px 0 0 0;
    color: #6b7280;
    font-weight: 600;
}

.card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid #e2e8f0;
    border-left: 2px solid #cbd5e1;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.03);
}

.vip-locked h2 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.vip-locked p {
    margin: 0 0 14px 0;
    color: #374151;
    font-weight: 600;
    line-height: 1.55;
}

.btn {
    border: 1px solid transparent;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #2c3e50;
    border-color: #e2e8f0;
}

.designs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.counts {
    color: #374151;
    font-weight: 900;
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.design-card {
    border: 1px solid #e2e8f0;
    border-left: 2px solid rgba(99, 102, 241, 0.35);
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.design-thumb {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #f3f4f6;
}

.design-meta {
    padding: 12px;
    display: grid;
    gap: 8px;
}

.design-title {
    font-weight: 900;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.design-sub {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.9rem;
}

.design-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.btn-danger {
    background: transparent;
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.25);
}

.design-actions .btn {
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 800;
}

.design-actions .btn:hover {
    background: rgba(15, 23, 42, 0.03);
}

.design-actions .btn-danger:hover {
    background: rgba(185, 28, 28, 0.06);
}

.loading,
.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 28px 10px;
    color: #6b7280;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .my-designs-page { padding: 84px 12px 16px; }
    .page-header { justify-content: flex-start; }
    .header-title { text-align: left; }
}

/* Hide global page-header underline on My Designs page only */
.my-designs-page .page-header::after {
    display: none;
}

