/* RentMe - Modern Mobile App Styling (Vanilla CSS) */
:root {
    --primary: #ff2d55;
    --primary-gradient: linear-gradient(135deg, #ff2d55 0%, #ff5277 50%, #9013fe 100%);
    --primary-glow: rgba(255, 45, 85, 0.35);
    --secondary: #9013fe;
    --bg-dark: #090c15;
    --bg-card: rgba(20, 24, 38, 0.75);
    --bg-card-hover: rgba(28, 34, 54, 0.85);
    --bg-surface: #111625;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 45, 85, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bottom-nav-height: 64px;
    --header-height: 60px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #030712;
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 45, 85, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(144, 19, 254, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, #030712 100%);
    background-attachment: fixed;
}

/* App Container (Mobile viewport shell on desktop, 100% on phone) */
.app-container {
    width: 100%;
    max-width: 440px;
    height: 100vh;
    max-height: 920px;
    background-color: var(--bg-dark);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
    }
    .app-container {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

/* App Header */
.app-header {
    height: var(--header-height);
    background: rgba(15, 20, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
    z-index: 40;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
    -webkit-text-fill-color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-badge-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 45, 85, 0.12);
    border: 1px solid rgba(255, 45, 85, 0.3);
    border-radius: var(--radius-full);
    color: #ff5277;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-badge-btn:hover {
    background: rgba(255, 45, 85, 0.22);
    transform: translateY(-1px);
}

.user-switch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-full);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.user-switch-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* App Main Content Area (Scrollable) */
.app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
    position: relative;
    scroll-behavior: smooth;
}

.app-content::-webkit-scrollbar {
    width: 4px;
}
.app-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Story Highlights / Quick Category Bar */
.stories-bar {
    display: flex;
    gap: 12px;
    padding: 14px 16px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.story-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 2.5px;
    background: var(--primary-gradient);
    position: relative;
    transition: transform 0.25s ease;
}

.story-ring.active {
    box-shadow: 0 0 14px var(--primary-glow);
}

.story-item:hover .story-ring {
    transform: scale(1.05);
}

.story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-dark);
}

.story-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    max-width: 62px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Filter Chips */
.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 6px 16px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-chip.active, .filter-chip:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Search and Location Filter Bar */
.search-location-bar {
    padding: 0 16px 14px;
    display: flex;
    gap: 8px;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input-wrap input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px 10px 36px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: border 0.2s, background 0.2s;
}

.search-input-wrap input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 14px;
    pointer-events: none;
}

.city-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 10px;
    color: var(--text-main);
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.city-select option {
    background: var(--bg-surface);
    color: var(--text-main);
}

/* Companion Grid / Cards */
.companion-grid {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.companion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    position: relative;
}

.companion-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
}

.card-media {
    position: relative;
    width: 100%;
    height: 380px;
    background: #1e2538;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.companion-card:hover .card-media img {
    transform: scale(1.03);
}

/* Skeleton / Shimmer placeholder */
.skeleton {
    background: linear-gradient(90deg, #182033 25%, #25314d 50%, #182033 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 5;
}

.badge-tag {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-gender-gf {
    background: rgba(255, 45, 85, 0.85);
    color: #fff;
}

.badge-gender-bf {
    background: rgba(59, 130, 246, 0.85);
    color: #fff;
}

.badge-verified {
    background: rgba(16, 185, 129, 0.85);
    color: #fff;
}

.badge-rented {
    background: rgba(234, 179, 8, 0.95);
    color: #000;
    font-weight: 800;
}

.media-play-preview {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 5;
}

.card-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 12, 21, 0.95) 0%, rgba(9, 12, 21, 0.4) 40%, transparent 80%);
    pointer-events: none;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 5;
}

.card-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}

.card-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.card-name span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.card-price {
    font-size: 18px;
    font-weight: 800;
    color: #ff5277;
}

.card-price small {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Likes / Interests Tags */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.interest-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    font-size: 11px;
    padding: 3px 8px;
    color: #e2e8f0;
}

.card-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    position: relative;
    z-index: 15;
}

.btn-rent-quick {
    flex: 1;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-rent-quick:hover {
    filter: brightness(1.1);
}

.btn-view-profile {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-profile:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Bottom Navigation Bar - Sleek Mobile Luxury App Style */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 16px;
    border-radius: 16px;
    flex: 1;
    max-width: 88px;
    -webkit-appearance: none;
    appearance: none;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: #94a3b8;
    fill: none;
    stroke-width: 2;
    transition: all 0.25s ease;
}

.nav-item:hover {
    color: #f1f5f9;
}

.nav-item:hover svg {
    stroke: #f1f5f9;
}

.nav-item.active {
    color: #ff2d55 !important;
    font-weight: 700;
    background: rgba(255, 45, 85, 0.08) !important;
}

.nav-item.active svg {
    stroke: #ff2d55 !important;
    transform: translateY(-2px) scale(1.08);
    filter: drop-shadow(0 2px 8px rgba(255, 45, 85, 0.5));
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 14px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-gradient);
    box-shadow: 0 0 8px #ff2d55;
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 18px;
    background: #ff2d55;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Modal Bottom Sheets (Profile Detail, Wallet Add Money, Role Switcher) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet {
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    background: var(--bg-surface);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border: 1px solid var(--border-color);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-sheet {
    transform: translateY(0);
}

.modal-handle-bar {
    width: 42px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 10px auto 4px;
    cursor: pointer;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 14px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
}

.modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    max-height: calc(88vh - 70px);
}

/* Profile Detail Elements */
.profile-hero-gallery {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
    margin-bottom: 16px;
    background: #182033;
}

.profile-hero-gallery img, .profile-hero-gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

.gallery-thumb.active {
    border-color: #ff3366;
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 16px 0 8px;
}

/* Contact Info Unlock Box */
.unlock-box {
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.unlock-box.locked {
    background: rgba(255, 45, 85, 0.08);
    border: 1px dashed rgba(255, 45, 85, 0.35);
}

.unlock-box.unlocked {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13.5px;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-val {
    font-weight: 600;
    color: #fff;
}

.contact-val.masked {
    filter: blur(3.5px);
    user-select: none;
}

/* UPI Payment & 10-Minute Timer Screen */
.payment-timer-card {
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.15) 0%, rgba(144, 19, 254, 0.15) 100%);
    border: 1px solid rgba(255, 45, 85, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.timer-display {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ff3366;
    font-family: monospace;
    margin: 10px 0;
    text-shadow: 0 0 16px var(--primary-glow);
}

.timer-progress-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.timer-progress-bar {
    height: 100%;
    width: 100%;
    background: var(--primary-gradient);
    transition: width 1s linear;
}

.qr-code-wrap {
    background: #fff;
    padding: 12px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 14px auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.qr-code-wrap img {
    display: block;
    width: 180px;
    height: 180px;
}

.upi-id-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin: 10px 0;
}

.copy-btn {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

/* Chat Screen */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(18, 24, 38, 0.9);
    border-bottom: 1px solid var(--border-color);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.chat-partner-info h4 {
    font-size: 15px;
    color: #fff;
    margin: 0;
}

.chat-partner-info small {
    color: var(--success);
    font-size: 11px;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
}

.message-bubble.me {
    align-self: flex-end;
    background: var(--primary-gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.message-bubble.them {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.message-time {
    font-size: 9.5px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(14, 18, 30, 0.95);
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--primary-glow);
    flex-shrink: 0;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 25, 40, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.3s ease forwards;
}

.toast.success { border-color: rgba(16, 185, 129, 0.5); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Controls & Edit Profile */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: #fff;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px var(--primary-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 75px;
}

.form-select option {
    background: var(--bg-surface);
    color: #fff;
}

.media-upload-box {
    border: 2px dashed rgba(255, 45, 85, 0.4);
    background: rgba(255, 45, 85, 0.04);
    border-radius: var(--radius-lg);
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.media-upload-box:hover {
    background: rgba(255, 45, 85, 0.08);
    border-color: var(--primary);
}

.media-preview-container {
    margin-top: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 240px;
    display: none;
    background: #000;
}

.media-preview-container img, .media-preview-container video {
    width: 100%;
    height: 100%;
    max-height: 240px;
    object-fit: contain;
    display: block;
}

/* Posts / Feed Styling */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.post-author-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
}

.post-time {
    font-size: 11px;
    color: var(--text-dim);
}

.post-media-wrap {
    width: 100%;
    max-height: 420px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.post-media-wrap img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.post-media-wrap video {
    width: 100%;
    max-height: 420px;
    background: #000;
    display: block;
}

.post-body {
    padding: 12px 16px 16px;
}

.post-caption {
    font-size: 13.5px;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.post-like-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.post-like-btn.liked, .post-like-btn:hover {
    color: #ff2d55;
    transform: scale(1.05);
}

.post-like-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Screen Post / Upload View Styling */
.posting-as-card {
    transition: all 0.2s ease;
}
.posting-as-card:hover {
    background: rgba(255, 45, 85, 0.12) !important;
}
#screen-post-form .media-upload-box {
    padding: 26px 16px;
    background: rgba(255, 45, 85, 0.05);
    border: 2px dashed rgba(255, 45, 85, 0.45);
}
#screen-post-form .media-upload-box:hover {
    border-color: #ff2d55;
    background: rgba(255, 45, 85, 0.1);
}
#screen-post-preview-container img, #screen-post-preview-container video {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

