* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #636257;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
}

.container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    perspective: 1000px;
}

.profile-card {
    background-color: #636257;
    border-radius: 24px;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 60px rgba(99, 98, 87, 0.3);
    overflow: hidden;
}

/* Trending Badge */
.trending-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background-color: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flame-icon {
    font-size: 24px;
}

/* Profile Image */
.profile-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Profile Info */
.profile-info {
    padding: 24px;
    color: #FFFFFF;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-align: center;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    opacity: 0.95;
}

.location-icon {
    font-size: 16px;
}

.profile-description {
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.9;
    padding: 0 8px;
}

/* Social & Contact Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 0 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.social-btn:hover {
    transform: scale(1.02);
    opacity: 0.95;
    background-color: rgba(255, 255, 255, 0.25);
}

.social-btn-icon {
    font-size: 18px;
    line-height: 1;
}

.social-btn-svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.social-btn-label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.social-btn-sep {
    opacity: 0.8;
    margin: 0 2px;
}

.social-btn [lang="ar"] {
    direction: rtl;
    unicode-bidi: isolate;
}

.social-btn.x:hover { background-color: rgba(0, 0, 0, 0.4); }
.social-btn.instagram:hover { background-color: rgba(225, 48, 108, 0.5); }
.social-btn.snapchat:hover { background-color: rgba(255, 252, 0, 0.25); color: #1a1a1a; }
.social-btn.tiktok:hover { background-color: rgba(0, 0, 0, 0.5); }
.social-btn.whatsapp-ad:hover { background-color: rgba(37, 211, 102, 0.5); }

/* News Section */
.news-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.news-photo-wrap {
    width: 100%;
    min-height: 180px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}

.news-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.news-photo-wrap .news-photo[hidden] {
    position: absolute;
    visibility: hidden;
    height: 0;
    min-height: 0;
}

.news-photo-wrap.has-photo .news-photo-placeholder {
    display: none;
}

.news-photo-placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    position: relative;
    z-index: 0;
}

.news-photo-wrap.has-photo .news-photo {
    z-index: 1;
}

.news-post {
    margin-bottom: 24px;
}

.news-post:last-child {
    margin-bottom: 0;
}

.news-empty {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: center;
    padding: 16px 0;
}

.news-headline {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    color: #FFFFFF;
}

.news-headline-link {
    color: #FFFFFF;
    text-decoration: none;
}

.news-headline-link:hover {
    text-decoration: underline;
}

.news-dashboard-link {
    display: inline-block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background-color 0.2s, transform 0.2s;
}

.news-dashboard-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.logo-image {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    filter: brightness(4) grayscale(100%) contrast(0.8);
    opacity: 0.85;
}

/* Contact Icons */
.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.contact-icon:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.finjan-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.finjan-logo-image {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    filter: brightness(4) grayscale(100%) contrast(0.8);
    opacity: 0.85;
}

.finjan-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

/* Finjan Icons */
.finjan-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.finjan-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.finjan-icon:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

.finjan-icon svg {
    width: 20px;
    height: 20px;
}

/* AlBaker Law Logo */
.albaker-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.albaker-logo-image {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    filter: brightness(4) grayscale(100%) contrast(0.8);
    opacity: 0.85;
}

.albaker-title {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    opacity: 0.95;
    line-height: 1.4;
    padding: 0 10px;
}

/* AlBaker Law Icons */
.albaker-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.albaker-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.albaker-icon:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

.albaker-icon svg {
    width: 20px;
    height: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

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

.social-icon.audio {
    background-color: rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    margin-left: auto;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .container {
        max-width: 100%;
    }

    .profile-card {
        border-radius: 20px;
    }

    .profile-image-container {
        height: 180px;
        padding: 16px;
    }

    .profile-info {
        padding: 20px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-description {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 20px;
        padding: 0 4px;
    }

    .logo-container {
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .logo-image {
        max-width: 100px;
        max-height: 100px;
    }

    .contact-icons {
        gap: 10px;
        margin-bottom: 20px;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
    }

    .contact-icon svg {
        width: 18px;
        height: 18px;
    }

    .finjan-logo-container {
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .finjan-title {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .finjan-logo-image {
        max-width: 120px;
        max-height: 65px;
    }

    .finjan-icons {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-bottom: 20px;
        max-width: 260px;
    }

    .finjan-icon {
        width: 36px;
        height: 36px;
    }

    .finjan-icon svg {
        width: 18px;
        height: 18px;
    }

    .albaker-logo-container {
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .albaker-title {
        font-size: 13px;
        margin-bottom: 18px;
        padding: 0 8px;
    }

    .albaker-logo-image {
        max-width: 120px;
        max-height: 65px;
    }

    .albaker-icons {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-bottom: 20px;
        max-width: 260px;
    }

    .albaker-icon {
        width: 36px;
        height: 36px;
    }

    .albaker-icon svg {
        width: 18px;
        height: 18px;
    }

    .trending-badge {
        width: 36px;
        height: 36px;
        top: 12px;
        left: 12px;
    }

    .flame-icon {
        font-size: 20px;
    }

    .social-links {
        gap: 10px;
        margin-bottom: 20px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

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

    .social-icon.audio {
        width: 44px;
        height: 44px;
    }

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

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 14px 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .profile-image-container {
        height: 150px;
        padding: 12px;
    }

    .profile-name {
        font-size: 22px;
    }

    .profile-description {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 18px;
    }

    .logo-container {
        margin-bottom: 18px;
        padding: 0 12px;
    }

    .logo-image {
        max-width: 80px;
        max-height: 80px;
    }

    .contact-icons {
        gap: 8px;
        margin-bottom: 18px;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
    }

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

    .finjan-logo-container {
        margin-bottom: 18px;
        padding: 0 12px;
    }

    .finjan-title {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .finjan-logo-image {
        max-width: 100px;
        max-height: 55px;
    }

    .finjan-icons {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 18px;
        max-width: 220px;
    }

    .finjan-icon {
        width: 32px;
        height: 32px;
    }

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

    .albaker-logo-container {
        margin-bottom: 18px;
        padding: 0 12px;
    }

    .albaker-title {
        font-size: 12px;
        margin-bottom: 16px;
        padding: 0 6px;
        line-height: 1.3;
    }

    .albaker-logo-image {
        max-width: 100px;
        max-height: 55px;
    }

    .albaker-icons {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 18px;
        max-width: 220px;
    }

    .albaker-icon {
        width: 32px;
        height: 32px;
    }

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

    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 12px 10px;
    }

    .stat-value {
        font-size: 16px;
    }

    .stat-label {
        font-size: 9px;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .profile-image-container {
        height: 150px;
        padding: 12px;
    }

    .profile-info {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

/* Tablet and Larger Screens */
@media (min-width: 768px) {
    .container {
        max-width: 500px;
    }

    .profile-image-container {
        height: 250px;
        padding: 24px;
    }

    .profile-name {
        font-size: 32px;
    }

    .stats-grid {
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
    .profile-card {
        animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .profile-card {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .profile-card {
        border: 2px solid #FFFFFF;
    }

    .stat-card {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

