@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
    --bg-warm: #E6E2D3;
    --card-white: rgba(255, 255, 255, 0.5);
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --blue-accent: #2196F3;
    --gold: #A855F7;
    /* Purple accent for stars to match image */
    --purple-light: #F3E8FF;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --border-light: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.profile-header {
    background: var(--card-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--border-light);
    border-bottom: none;
}

.profile-pic-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blue-accent);
    padding: 3px;
    background: white;
    filter: brightness(1.02) contrast(0.98) saturate(0.9);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.profile-pic:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0;
    color: var(--text-primary);
}

.rating-prime {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: -5px;
}

.rating-large {
    font-size: 3rem;
    font-weight: 300;
    display: flex;
    align-items: baseline;
}

.rating-large .decimals {
    font-size: 1.5rem;
    margin-left: 2px;
}

.prime-badge {
    background: #222;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prime-badge span {
    font-size: 0.9rem;
}

/* Tabs Navigation */
.nav-tabs {
    background: var(--card-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    display: flex;
    padding: 0 30px;
    gap: 40px;
    border-bottom: 1px solid var(--border-light);
}

.tab {
    padding: 15px 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
    letter-spacing: 2px;
}

.tab.active {
    color: var(--text-primary);
    border-bottom-color: #aa9988;
}

/* Tab Panes */
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Layout Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

/* Sidebar */
.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 5px;
}

.trending-item,
.rated-item {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.trending-item:hover,
.rated-item:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(8px);
    box-shadow: -5px 0 0 #f3f1e9;
}

.trending-item .name,
.rated-item .name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.trending-item .desc,
.rated-item .desc {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Posts / Moments */
.post-card {
    background: var(--card-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.post-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-avatar:hover {
    transform: scale(1.2);
}

.post-user-info {
    font-size: 0.85rem;
}

.post-user-info .name {
    font-weight: 600;
}

.post-user-info .rating {
    color: var(--text-muted);
    margin-left: 5px;
}

.post-body {
    padding: 0 15px 15px;
}

.post-caption {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.post-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-bottom: 0;
}

.post-img,
.post-video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sub-img,
.sub-video {
    width: 100%;
    height: 146px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-img:hover {
    filter: brightness(1) contrast(1) saturate(1) sepia(0);
    transform: scale(1.02) translateY(-5px);
    z-index: 10;
}

.post-sub-images {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-img {
    height: 148px;
    width: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sub-img:hover {
    transform: scale(1.05) translateX(-5px);
    z-index: 10;
}

.post-footer {
    padding: 12px 15px;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars-interactive {
    display: flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-input {
    display: none;
}

.star-label {
    cursor: pointer;
    font-size: 1.2rem;
    color: #ddd;
    transition: color 0.2s ease, transform 0.2s ease;
}

.stars-interactive>input:checked~label,
.stars-interactive>label:hover,
.stars-interactive>label:hover~label {
    color: #ccbb99;
}

.star-label:hover {
    transform: scale(2.5) rotate(12deg);
    color: var(--gold) !important;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-label:active {
    transform: scale(1.5) rotate(-15deg);
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
}

.social-notification {
    background: var(--card-white) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-left: 4px solid var(--blue-accent) !important;
}

/* Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        color: var(--text-primary);
    }

    50% {
        color: var(--blue-accent);
        text-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
    }

    100% {
        color: var(--text-primary);
    }
}

.reveal {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.revealed {
    visibility: visible;
    animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-scale.revealed {
    animation: revealScale 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Stagger Delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.glow {
    animation: glow 1.5s ease-in-out;
}

/* Footer */
.profile-footer {
    margin-top: 40px;
    margin-bottom: 60px;
    background: var(--card-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 30px 25px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Social row */
.footer-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-light);
    display: inline-block;
    flex-shrink: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 8px 14px;
    border-radius: 99px;
    border: 1px solid var(--border-light);
    background: transparent;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-label {
    line-height: 1;
}

.social-link:hover {
    color: var(--text-primary);
    border-color: #aa9988;
    background: rgba(170, 153, 136, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    letter-spacing: 2.2px;
}

/* Footer divider */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-light) 30%, var(--border-light) 70%, transparent);
}

/* Attribution legend */
.design-attribution {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.attribution-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
}

.attribution-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.attribution-text em {
    font-style: italic;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.attribution-subtle {
    opacity: 0.7;
    font-size: 0.72rem;
}

/* Media Loading States */
.media-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.post-images .media-container {
    height: 300px;
}

.post-sub-images .media-container {
    height: 148px;
}

.post-img,
.post-video,
.sub-img,
.sub-video,
.modal-image,
.modal-video {
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-container.loaded .post-img,
.media-container.loaded .post-video,
.media-container.loaded .sub-img,
.media-container.loaded .sub-video,
.media-container.loaded .modal-image,
.media-container.loaded .modal-video,
.media-container.loaded .clickable-gallery-img {
    opacity: 1;
}

.nosedive-spinner {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 5;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.media-container.loaded .nosedive-spinner {
    opacity: 0;
    visibility: hidden;
}

.spinner-ring {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(168, 85, 247, 0.1);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: nosedive-spin 1s linear infinite;
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.4));
}

.spinner-star {
    position: absolute;
    color: var(--gold);
    font-size: 1.2rem;
    animation: nosedive-pulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

@keyframes nosedive-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes nosedive-pulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Comments Section Styles */
.comments-section {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border-light);
}

.comments-list {
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.comment-item {
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
}

.comment-item span {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 5px;
}

.comment-input-wrapper {
    display: flex;
    gap: 10px;
}

.comment-input {
    flex-grow: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-input:focus {
    border-color: var(--gold);
}

.comment-submit {
    background: var(--gold);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.comment-submit:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2000;
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal.active {
    display: flex;
}

.modal-content-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image,
.modal-video {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.modal-controls {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper .media-container {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    background: transparent;
}


/* Information Section Styles */
.info-container {
    background: var(--card-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    min-height: 400px;
}

.info-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 25px;
}

.info-tab {
    padding: 10px 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-tab:hover {
    color: var(--text-primary);
}

.info-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--gold);
}

.info-pane {
    display: none;
    animation: slideIn 0.4s ease;
}

.info-pane.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Info Cards */
.info-card {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.info-card:last-child {
    border-bottom: none;
}

.info-card-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.company-logo {
    width: 48px;
    height: 48px;
    background: var(--purple-light);
    color: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.info-card-title h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.info-card-title .company {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-card-title .date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--purple-light);
    color: var(--gold);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.2);
}

/* About Section */
.about-content {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 15px;
}
.modal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}


.modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2100;
    transition: transform 0.2s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-rating {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
}

.modal-counter {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

/* Social Protocol Verification (Captcha) */
.verification-wrapper {
    margin-top: 15px;
    /* Aesthetic gap from comments list */
    margin-bottom: 12px;
    /* Small, minimalist gap before input field */
    padding: 10px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px dashed rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.verification-text {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.verification-track {
    width: 100% !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.verification-slider {
    position: absolute !important;
    left: 4px !important;
    width: 32px !important;
    height: 32px !important;
    background: var(--gold) !important;
    border-radius: 50% !important;
    cursor: grab !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.4) !important;
    transition: transform 0.1s ease !important;
    z-index: 10 !important;
}

.verification-slider:active {
    cursor: grabbing !important;
}

.verification-track-text {
    font-size: 0.8rem !important;
    color: #999 !important;
    user-select: none !important;
    pointer-events: none !important;
}

.verification-wrapper.verified {
    background: rgba(76, 175, 80, 0.05) !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
}

.verification-wrapper.verified .verification-text {
    color: #4CAF50 !important;
}

.verification-wrapper.verified .verification-slider {
    background: #4CAF50 !important;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4) !important;
}

.comment-submit:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    filter: grayscale(1) !important;
    transform: none !important;
}

/* Cleanup: Ensure no profile images in posts */
.post-images .profile-pic,
.post-images img[src*="real_profile"],
.post-images img[alt="Profile"] {
    display: none !important;
}

/* Sync Button Style (For Manual XML Sync) */
.sync-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--card-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sync-trigger:hover {
    transform: rotate(180deg) scale(1.1);
    color: var(--gold);
}

/* Responsive */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .profile-footer {
        align-items: center;
        gap: 18px;
    }

    .footer-social-row {
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 10px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 15px;
        gap: 15px;
        border-radius: 12px 12px 0 0;
    }

    .profile-pic-wrapper {
        width: 110px;
        height: 110px;
    }

    .profile-info h1 {
        font-size: 1.8rem;
        margin-top: 5px;
    }

    .rating-prime {
        justify-content: center;
    }

    .rating-large {
        font-size: 2.2rem;
    }

    .rating-large .decimals {
        font-size: 1.1rem;
    }

    .nav-tabs {
        padding: 0 15px;
        gap: 25px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        flex-shrink: 0;
        font-size: 0.75rem;
    }

    .info-container {
        padding: 20px 15px;
        border-radius: 0;
        margin-left: -10px;
        margin-right: -10px;
        border-left: none;
        border-right: none;
    }

    .info-nav {
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 20px;
        padding-bottom: 5px;
    }

    .info-nav::-webkit-scrollbar {
        display: none;
    }

    .info-tab {
        flex-shrink: 0;
        font-size: 0.7rem;
    }

    .info-card-header {
        gap: 12px;
    }

    .company-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }


    .post-card {
        border-radius: 0;
        margin-left: -10px;
        margin-right: -10px;
        border-left: none;
        border-right: none;
    }

    .post-images {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .post-images .media-container {
        height: 250px;
        margin-bottom: 2px;
    }

    .post-sub-images {
        flex-direction: row;
        gap: 4px;
        width: 100%;
    }

    .post-sub-images .media-container {
        height: 120px;
        flex: 1;
    }

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

    .profile-footer {
        gap: 14px;
        padding: 20px 16px;
        margin-bottom: 40px;
    }

    .footer-social-row {
        gap: 6px;
    }

    .social-link {
        font-size: 0.65rem;
        letter-spacing: 1.2px;
        padding: 7px 11px;
    }

    .social-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* =============================================
   PHOTO GALLERY (Nosedive Aesthetic)
   ============================================= */
.photo-gallery-container {
    padding: 20px 0;
}

.gallery-source {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    opacity: 0.7;
}

.gallery-source a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.gallery-source a:hover {
    color: var(--gold);
    opacity: 1;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding-bottom: 40px;
}

.photo-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: var(--card-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.photo-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.photo-item .media-container.loaded img {
    opacity: 1;
}

/* Stagger entrance animations for the grid */
.photo-grid .reveal {
    opacity: 0;
    transform: translateY(20px);
}

.photo-grid .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        gap: 8px;
    }
}

/* =============================================
   FRIENDS SECTION (Nosedive Aesthetic)
   ============================================= */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.friend-card {
    background: var(--card-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.friend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #aa9988;
    background: rgba(255, 255, 255, 0.7);
}

.friend-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.friend-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.friend-rating-badge {
    position: absolute;
    bottom: 0;
    right: -5px;
    background: var(--gold);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.friend-rating-badge.danger {
    background: #FF5252;
}

.friend-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

.actor-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.character-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.imdb-link {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin-top: 5px;
}

.imdb-link:hover {
    letter-spacing: 1px;
    opacity: 0.8;
}

.restricted-status {
    opacity: 0.7;
}

.restricted-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 300;
    color: #ccc;
}

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