/* ============================================================
   COMMUNITY PAGE — REDESIGN
   Dark, Purple, Glassmorphism — aligned with Home Page
   ============================================================ */

@font-face {
    font-family: 'Delight';
    src: url('../Assets/delight-font-family/delight-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.community-main {
    min-height: 100vh;
    background: #000;
    padding-top: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.community-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: calc(64px + 4rem) 2rem 4rem;
}

/* Radiale Lila-Glows — kein Bild, kein Video */
.community-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 50% 30%, rgba(124, 58, 237, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 15% 80%, rgba(178, 120, 255, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 85% 20%, rgba(90, 30, 180, 0.09) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Bottom-Fade to black */
.community-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #000000);
    pointer-events: none;
    z-index: 1;
}

.community-hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    width: 100%;
}

.community-hero__label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-purple, #B278FF);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 1.5rem;
}

.community-hero__headline {
    font-family: 'Delight', 'Inter', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.community-hero__headline .accent {
    background: linear-gradient(135deg, #B278FF, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.community-hero__sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2.5rem;
    letter-spacing: 0.01em;
}

/* ---- Search Bar (in Filter Bar) ---- */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 9px 18px;
    transition: border-color 0.25s ease;
}

.search-bar:focus-within {
    border-color: rgba(178, 120, 255, 0.45);
}

.search-icon {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    flex-shrink: 0;
}

#community-search {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

#community-search::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   COMMUNITY SECTION
   ============================================================ */

.community-section {
    padding: 0 2rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================================
   STICKY FILTER BAR
   ============================================================ */

.community-filter-bar {
    position: sticky;
    top: 64px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(178, 120, 255, 0.08);
    margin: 0 -2rem 2.5rem;
    padding: 12px 2rem 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Role Tabs */
.role-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.role-tabs::-webkit-scrollbar { display: none; }

.role-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    padding: 7px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s ease;
    font-family: inherit;
}
.role-tab i { font-size: 0.78rem; }

.role-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.role-tab.active {
    background: linear-gradient(135deg, rgba(178, 120, 255, 0.22), rgba(124, 58, 237, 0.18));
    color: #B278FF;
    border-color: rgba(178, 120, 255, 0.45);
}

/* ArtistType Bar */
.artisttype-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    transition: all 0.3s ease;
}
.artisttype-bar::-webkit-scrollbar { display: none; }
.artisttype-bar.is-hidden { display: none; }

.type-chip {
    background: rgba(178, 120, 255, 0.08);
    border: 1px solid rgba(178, 120, 255, 0.2);
    color: rgba(178, 120, 255, 0.7);
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s ease;
    font-family: inherit;
}
.type-chip:hover {
    background: rgba(178, 120, 255, 0.16);
    color: #B278FF;
}
.type-chip.active {
    background: rgba(178, 120, 255, 0.22);
    border-color: rgba(178, 120, 255, 0.5);
    color: #fff;
}

/* Filter Meta Bar */
.filter-meta-bar {
    display: flex;
    align-items: center;
}

@keyframes spin { to { transform: rotate(360deg); } }

.results-info {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    white-space: nowrap;
    margin-left: auto;
}
.results-count {
    color: #B278FF;
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 4px;
}

/* ============================================================
   LOADING STATE
   ============================================================ */

.community-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.35);
}

.loading-dots {
    display: flex;
    gap: 8px;
}
.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #B278FF;
    animation: dotBounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1; }
}

/* ============================================================
   PROFILES GRID
   ============================================================ */

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ============================================================
   PROFILE CARD — VERTICAL LAYOUT
   ============================================================ */

.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(178, 120, 255, 0.1);
    border-radius: 20px;
    padding: 28px 18px 20px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

/* Subtle radial glow on hover */
.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(178, 120, 255, 0.06) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.profile-card:hover::before { opacity: 1; }

.profile-card:hover {
    border-color: rgba(178, 120, 255, 0.35);
    box-shadow: 0 16px 48px rgba(178, 120, 255, 0.1);
    transform: translateY(-5px);
}

/* ---- Avatar ---- */
.profile-card__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 16px;
}

.profile-card__avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(178, 120, 255, 0.25);
    display: block;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-card--artist .profile-card__avatar {
    border-color: rgba(178, 120, 255, 0.4);
}
.profile-card--artist:hover .profile-card__avatar {
    border-color: rgba(178, 120, 255, 0.7);
    box-shadow: 0 0 0 5px rgba(178, 120, 255, 0.1), 0 0 28px rgba(178, 120, 255, 0.22);
}

.profile-card--organizer .profile-card__avatar {
    border-color: rgba(255, 255, 255, 0.22);
}
.profile-card--organizer:hover .profile-card__avatar {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.05);
}

/* ---- Role Badge ---- */
.profile-card__role-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}
.profile-card__role-badge--artist {
    background: #6D28D9;
    color: #fff;
}
.profile-card__role-badge--organizer {
    background: #1c1c22;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ---- Body ---- */
.profile-card__body {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
}

.profile-card__name-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.profile-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 4px;
}

.profile-card__city {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 12px;
}
.profile-card__city i { margin-right: 3px; font-size: 0.68rem; }

/* ---- Bio (organizer) ---- */
.profile-card__bio {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Action Buttons ---- */
.profile-card__actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.profile-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.profile-action-btn--follow:hover {
    background: rgba(178, 120, 255, 0.2);
    border-color: rgba(178, 120, 255, 0.5);
    color: #B278FF;
}
.profile-action-btn--follow-active {
    background: rgba(178, 120, 255, 0.2) !important;
    border-color: rgba(178, 120, 255, 0.5) !important;
    color: #B278FF !important;
}
.profile-action-btn--follow-active:hover {
    background: rgba(178, 120, 255, 0.3) !important;
}
.profile-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.profile-action-btn--msg:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* ---- Tags ---- */
.profile-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.profile-tag {
    background: rgba(178, 120, 255, 0.1);
    color: rgba(178, 120, 255, 0.85);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.67rem;
    font-weight: 600;
    border: 1px solid rgba(178, 120, 255, 0.18);
}
.profile-tag--more {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    gap: 12px;
}
.empty-icon {
    font-size: 3rem;
    color: rgba(178, 120, 255, 0.2);
}
.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}
.empty-state p {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.88rem;
}
.community-reset-btn {
    margin-top: 8px;
    background: rgba(178, 120, 255, 0.12);
    border: 1px solid rgba(178, 120, 255, 0.35);
    color: #B278FF;
    padding: 10px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    font-family: inherit;
}
.community-reset-btn:hover {
    background: rgba(178, 120, 255, 0.22);
    border-color: rgba(178, 120, 255, 0.6);
    color: #fff;
}

/* ============================================================
   ERROR STATE
   ============================================================ */

.community-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.38);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.community-error i { font-size: 2.5rem; color: #e05; }

/* ============================================================
   ANIMATION
   ============================================================ */

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 768px) {
    .profiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .community-section {
        padding: 0 3rem 6rem;
    }
    .community-filter-bar {
        margin: 0 -3rem 2.5rem;
        padding: 12px 3rem 10px;
    }
}

@media (min-width: 1200px) {
    .profiles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .community-section {
        padding: 0 4rem 6rem;
    }
    .community-filter-bar {
        margin: 0 -4rem 2.5rem;
        padding: 12px 4rem 10px;
    }
}

@media (min-width: 1600px) {
    .profiles-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 767px) {
    .community-hero {
        padding: calc(64px + 2.5rem) 1.5rem 3rem;
        min-height: 45vh;
    }
    .community-hero__headline {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
    }
    .community-section {
        padding: 0 1rem 4rem;
    }
    .community-filter-bar {
        margin: 0 -1rem 2rem;
        padding: 12px 1rem 10px;
    }
    .location-filter-wrap {
        max-width: 100%;
    }
    .profile-card {
        padding: 22px 14px 16px;
    }
    .profile-card__avatar {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 400px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

*:focus {
    outline: 2px solid rgba(178, 120, 255, 0.6);
    outline-offset: 2px;
}
button:focus, a:focus {
    outline-color: rgba(178, 120, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   PROFILE DETAIL SHEET (Bottom-Sheet / Modal)
   ============================================================ */

.pd-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.pd-overlay--visible {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.pd-sheet {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    overflow-y: auto;
    background: #0e0e12;
    border-radius: 24px 24px 0 0;
    padding: 28px 22px 48px;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.pd-sheet--visible { transform: translateY(0); }

.pd-sheet::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 24px;
}

.pd-close {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.pd-close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.pd-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.pd-avatar-wrap { flex-shrink: 0; }

.pd-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(178, 120, 255, 0.5);
    display: block;
}
.pd-avatar--organizer {
    border-color: rgba(255, 255, 255, 0.3);
}

.pd-header-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.pd-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.pd-role-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}
.pd-role-badge--artist {
    background: rgba(178, 120, 255, 0.22);
    color: #B278FF;
    border: 1px solid rgba(178, 120, 255, 0.4);
}
.pd-role-badge--organizer {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.pd-follow-row {
    display: flex;
    gap: 10px;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
}
.pd-btn--primary {
    background: #B278FF;
    color: #fff;
    flex: 1;
    justify-content: center;
}
.pd-btn--primary:hover { background: #c89aff; }
.pd-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
    justify-content: center;
}
.pd-btn--secondary:hover { background: rgba(255, 255, 255, 0.14); }

.pd-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.pd-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.pd-section-title i { margin-right: 5px; }

.pd-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
    white-space: pre-line;
}

.pd-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}
.pd-info-row:last-child { margin-bottom: 0; }
.pd-info-row i {
    color: rgba(255, 255, 255, 0.35);
    width: 16px;
    text-align: center;
}

.pd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.pd-tag {
    background: rgba(178, 120, 255, 0.18);
    color: #B278FF;
    border: 1px solid rgba(178, 120, 255, 0.3);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.pd-social-icons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.pd-social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pd-social-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: translateY(-2px);
}
.pd-social-link--spotify { color: #1DB954; }
.pd-social-link--spotify:hover { border-color: #1DB954; }
.pd-social-link--soundcloud { color: #ff5500; }
.pd-social-link--soundcloud:hover { border-color: #ff5500; }

.pd-soundcloud-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 4px;
}

.pd-btn--following {
    background: rgba(178, 120, 255, 0.2) !important;
    color: #B278FF !important;
    border: 1px solid rgba(178, 120, 255, 0.5) !important;
}
.pd-btn--following:hover {
    background: rgba(178, 120, 255, 0.3) !important;
}
.pd-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pd-msg-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(178, 120, 255, 0.3);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pd-msg-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
    padding-bottom: 8px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.pd-msg-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.pd-msg-input:focus { border-bottom-color: #B278FF; }
.pd-msg-input--error { border-bottom-color: #e05 !important; }

.pd-msg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pd-msg-chars {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}
.pd-msg-send {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #B278FF;
    border: none;
    color: #fff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.pd-msg-send:hover { background: #c89aff; }
.pd-msg-send:disabled { opacity: 0.5; cursor: not-allowed; }

.pd-msg-success {
    text-align: center;
    color: #4caf82;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pd-msg-success i { font-size: 1.1rem; }

.pd-toast {
    position: sticky;
    bottom: 12px;
    left: 0; right: 0;
    margin: 12px 0 0;
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.pd-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop: centered modal */
@media (min-width: 600px) {
    .pd-overlay { align-items: center; }
    .pd-sheet {
        border-radius: 24px;
        max-height: 85vh;
        margin-bottom: 0;
    }
    .pd-sheet::before { display: none; }
}
