.dateswap-shell {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
    font-family: inherit;
}

.dateswap-header,
.dateswap-tabs,
.dateswap-actions,
.dateswap-inline-actions,
.dateswap-thread-toolbar,
.dateswap-notification-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.dateswap-header {
    margin-bottom: 20px;
}

.dateswap-header h2 {
    margin: 0 0 4px;
}

.dateswap-logout {
    text-decoration: none;
}

.dateswap-auth-grid,
.dateswap-browse-grid,
.dateswap-matches-grid,
.dateswap-form-grid {
    display: grid;
    gap: 20px;
}

.dateswap-auth-grid,
.dateswap-matches-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dateswap-browse-grid {
    grid-template-columns: minmax(320px, 720px);
    justify-content: center;
}

.dateswap-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dateswap-card,
.dateswap-profile-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.dateswap-card {
    padding: 20px;
}

.dateswap-main-card {
    min-height: 540px;
}

.dateswap-tabs {
    margin-bottom: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.dateswap-tab,
.dateswap-button,
.dateswap-thumb,
.dateswap-photo-nav {
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

.dateswap-tab,
.dateswap-button {
    border-radius: 999px;
    padding: 12px 18px;
}

.dateswap-tab {
    background: #eef2ff;
    color: #1f2937;
}

.dateswap-tab.is-active,
.dateswap-button {
    background: linear-gradient(135deg, #ff4f7a, #ff7b54);
    color: #fff;
}

.dateswap-button-secondary {
    background: #111827;
    color: #fff;
}

.dateswap-button-danger {
    background: #b91c1c;
    color: #fff;
}

.dateswap-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    margin-left: 8px;
}

.dateswap-view {
    display: none;
}

.dateswap-view.is-active {
    display: block;
}

#dateswap-card-stack {
    margin-bottom: 16px;
}

.dateswap-profile-card {
    overflow: hidden;
}

.dateswap-card-photo {
    aspect-ratio: 4 / 5;
    background: #f3f4f6;
    position: relative;
    cursor: pointer;
}

.dateswap-card-photo img,
.dateswap-photo-grid img,
.dateswap-match-item img,
.dateswap-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dateswap-card-body {
    padding: 18px;
}

.dateswap-card-body h3,
.dateswap-card h3 {
    margin-top: 0;
}
.dateswap-card-body h3 a,
.dateswap-card-photo-link,
.dateswap-card-bio-link {
    color: inherit;
    text-decoration: none;
}

.dateswap-card-body h3 a:hover,
.dateswap-card-bio-link:hover {
    text-decoration: underline;
}

.dateswap-field-hint {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

.dateswap-card-meta {
    color: #6b7280;
    margin: 0 0 8px;
}

.dateswap-empty-state {
    padding: 32px;
    text-align: center;
    color: #6b7280;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
}

.dateswap-report-box {
    margin-top: 14px;
}

.dateswap-report-box textarea,
.dateswap-message-form textarea,
.dateswap-card textarea,
.dateswap-card input,
.dateswap-card select,
.dateswap-card label input,
.dateswap-card label textarea,
.dateswap-card label select {
    width: 100%;
    box-sizing: border-box;
}

.dateswap-card input,
.dateswap-card textarea,
.dateswap-card select {
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
}

.dateswap-card label {
    display: block;
    font-weight: 600;
}

.dateswap-card label + label,
.dateswap-card .dateswap-form-grid,
.dateswap-card .dateswap-photo-section,
.dateswap-card button[type="submit"] {
    margin-top: 14px;
}

.dateswap-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.dateswap-photo-grid img,
.dateswap-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
}

.dateswap-card-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.dateswap-thumb {
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
}

.dateswap-thumb.is-active {
    border-color: #ff4f7a;
}

.dateswap-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.dateswap-photo-nav.is-prev {
    left: 12px;
}

.dateswap-photo-nav.is-next {
    right: 12px;
}

.dateswap-photo-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    font-size: 12px;
}

.dateswap-match-list,
.dateswap-notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dateswap-match-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
}

.dateswap-match-item.is-active {
    border-color: #ff4f7a;
    box-shadow: 0 0 0 2px rgba(255, 79, 122, 0.15);
}

.dateswap-match-item img {
    height: 56px;
    border-radius: 50%;
}

.dateswap-match-item span {
    display: block;
}

.dateswap-match-item small,
.dateswap-notification-copy small {
    display: block;
    color: #6b7280;
    margin-top: 4px;
}

.dateswap-match-controls {
    display: flex;
    gap: 10px;
}

.dateswap-match-controls.is-hidden {
    display: none;
}

.dateswap-thread-header {
    font-weight: 700;
    margin-bottom: 12px;
}

.dateswap-thread {
    min-height: 320px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fafafa;
}

.dateswap-chat-bubble {
    max-width: 78%;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
}

.dateswap-chat-bubble.is-own {
    margin-left: auto;
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.dateswap-chat-bubble small {
    display: block;
    margin-top: 6px;
    opacity: 0.7;
}

.dateswap-message-form {
    margin-top: 14px;
}

.dateswap-notification-item {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
}

.dateswap-notification-item.is-unread {
    border-color: #ff4f7a;
    box-shadow: 0 0 0 2px rgba(255, 79, 122, 0.12);
}

.dateswap-message {
    margin-top: 12px;
    min-height: 20px;
    color: #1f2937;
}

.dateswap-message.is-error {
    color: #b91c1c;
}

.dateswap-message.is-success {
    color: #047857;
}

@media (max-width: 900px) {
    .dateswap-browse-grid {
        grid-template-columns: 1fr;
    }

    .dateswap-thread-toolbar,
    .dateswap-notification-toolbar,
    .dateswap-match-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .dateswap-card-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.dateswap-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.dateswap-profile-modal.is-hidden {
    display: none;
}

.dateswap-profile-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.75);
}

.dateswap-profile-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    margin: 16px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.3);
    padding: 20px;
}

.dateswap-profile-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.9);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.dateswap-profile-modal-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
}

.dateswap-profile-modal-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    background: #f3f4f6;
}

.dateswap-profile-modal-photo img,
.dateswap-profile-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dateswap-profile-modal-thumbs {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
}

.dateswap-profile-modal-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.dateswap-profile-modal-thumb.is-active {
    border-color: #ff4f7a;
}

.dateswap-profile-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.dateswap-profile-pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #1f2937;
    font-size: 14px;
}

.dateswap-profile-modal-copy h3 {
    margin: 0 0 10px;
    font-size: 30px;
}

.dateswap-profile-modal-bio {
    margin: 0;
    color: #374151;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .dateswap-profile-modal-grid {
        grid-template-columns: 1fr;
    }
}
