:root{
    --profile-bg:#0b0d0f;
    --profile-surface:#111417;
    --profile-surface-2:#171b1f;
    --profile-border:#242a2f;
    --profile-text:#f4f6f8;
    --profile-muted:#9aa3ad;
    --profile-accent:#5e7b1f;
    --profile-accent-hover:#729426;
    --profile-accent-soft:rgba(94,123,31,.12);
    --profile-accent-border:rgba(94,123,31,.28);
    --profile-shadow:0 24px 70px rgba(0,0,0,.35);
    --profile-radius:22px;
}

.profile-page{
    padding-bottom:50px;
    background:var(--profile-bg);
    color:var(--profile-text);
}

.profile-hero{
    padding:36px 0 0;
}

.profile-hero-inner{
    position:relative;
}

.profile-banner-card{
    position:relative;
    min-height:320px;
    border-radius:var(--profile-radius);
    overflow:hidden;
    border:1px solid var(--profile-border);
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    box-shadow:var(--profile-shadow);
}

.profile-banner-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg,rgba(11,13,15,.88),rgba(11,13,15,.34),rgba(11,13,15,.88)),
        linear-gradient(0deg,rgba(11,13,15,.64),transparent);
}

.profile-banner-card::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:4px;
    background:var(--profile-accent);
    pointer-events:none;
}

.banner-copy{
    position:absolute;
    left:42px;
    bottom:38px;
    z-index:2;
}

.banner-copy span{
    display:inline-flex;
    border:1px solid var(--profile-accent-border);
    color:var(--profile-accent);
    padding:8px 13px;
    border-radius:12px;
    font-family:"Barlow Condensed",sans-serif;
    text-transform:uppercase;
    font-weight:900;
    letter-spacing:.5px;
    background:var(--profile-accent-soft);
}

.banner-copy h1{
    font-family:"Barlow Condensed",sans-serif;
    text-transform:uppercase;
    font-size:clamp(44px,6vw,82px);
    line-height:.9;
    margin:18px 0 8px;
    color:#fff;
}

.banner-copy p{
    color:var(--profile-muted);
    margin:0;
    font-weight:700;
}

.profile-main-card{
    border:1px solid var(--profile-border);
    background:var(--profile-surface);
    border-radius:var(--profile-radius);
    padding:24px;
    display:grid;
    grid-template-columns:150px 1fr;
    gap:26px;
    box-shadow:var(--profile-shadow);
    position:relative;
    z-index:10;
}

.profile-avatar{
    width:150px;
    height:150px;
    border:3px solid var(--profile-accent);
    border-radius:50%;
    background:var(--profile-bg);
    padding:5px;
    position:relative;
}

.profile-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}

.online-dot{
    position:absolute;
    right:16px;
    bottom:16px;
    width:20px;
    height:20px;
    background:var(--profile-accent);
    border:4px solid var(--profile-surface);
    border-radius:50%;
}

.offline-dot{
    background:#666;
    box-shadow:none;
}

.profile-name-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:22px;
}

.profile-identity h2{
    font-family:"Barlow Condensed",sans-serif;
    text-transform:uppercase;
    font-size:42px;
    margin:8px 0 5px;
    color:#fff;
}

.profile-identity p{
    color:var(--profile-muted);
    line-height:1.6;
}

.profile-name-row > div > p{
    margin:0;
}

.profile-intro{
    max-width:760px;
    margin:20px 0;
    color:var(--profile-muted);
}

.profile-badges{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:9px;
    padding-top:10px;
}

.profile-badges span{
    border:1px solid var(--profile-accent-border);
    background:var(--profile-accent-soft);
    color:var(--profile-accent);
    padding:8px 12px;
    border-radius:12px;
    font-family:"Barlow Condensed",sans-serif;
    text-transform:uppercase;
    font-weight:900;
}

.profile-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
    align-items:center;
}

.profile-actions form{
    margin:0;
}

.profile-actions .btn{
    min-height:44px;
    padding:0 18px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
}

.profile-actions .btn.primary,
.profile-actions .btn-success{
    background:var(--profile-accent);
    border-color:var(--profile-accent);
    color:#fff;
}

.profile-actions .btn.primary:hover,
.profile-actions .btn-success:hover{
    background:var(--profile-accent-hover);
    border-color:var(--profile-accent-hover);
}

.friend-form,
.follow-form{
    display:flex;
}

.profile-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin:22px 0;
}

.profile-stats div{
    border:1px solid var(--profile-border);
    background:var(--profile-surface-2);
    border-radius:18px;
    padding:22px;
    text-align:center;
}

.profile-stats span{
    display:block;
    color:var(--profile-muted);
    font-size:13px;
    text-transform:uppercase;
    font-weight:800;
    margin-bottom:8px;
}

.profile-stats strong{
    display:block;
    font-family:"Barlow Condensed",sans-serif;
    color:#fff;
    font-size:34px;
}

.profile-grid{
    display:grid;
    grid-template-columns:340px 1fr;
    gap:22px;
    align-items:start;
}

.profile-sidebar,
.profile-content,
.post-feed{
    display:grid;
    gap:22px;
}

.profile-panel{
    border:1px solid var(--profile-border);
    background:var(--profile-surface);
    border-radius:18px;
    padding:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.18);
}

.profile-panel h3{
    font-family:"Barlow Condensed",sans-serif;
    text-transform:uppercase;
    font-size:27px;
    margin:0 0 16px;
    color:#fff;
}

.profile-panel p{
    color:#d2d8d2;
    line-height:1.7;
}

.detail-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    border-bottom:1px solid var(--profile-border);
    padding:13px 0;
}

.detail-row:last-child{
    border-bottom:0;
}

.detail-row span{
    color:var(--profile-muted);
}

.detail-row strong{
    text-align:right;
    color:var(--profile-text);
}

.social-stack{
    display:grid;
    gap:10px;
}

.social-stack a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border:1px solid var(--profile-border);
    background:var(--profile-surface-2);
    padding:14px;
    border-radius:14px;
    color:var(--profile-text);
    font-weight:800;
    transition:.18s ease;
}

.social-stack a:hover{
    border-color:var(--profile-accent);
    color:var(--profile-accent);
}

.panel-headline{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    margin-bottom:18px;
}

.panel-headline > div{
    display:flex;
    align-items:center;
    gap:12px;
}

.panel-headline span{
    width:7px;
    height:30px;
    background:var(--profile-accent);
    display:block;
    border-radius:999px;
}

.panel-headline h3{
    margin:0;
}

.panel-headline a{
    color:var(--profile-accent);
    font-family:"Barlow Condensed",sans-serif;
    text-transform:uppercase;
    font-weight:900;
}

.panel-headline a:hover{
    color:var(--profile-accent-hover);
}

.profile-products{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.profile-product-card{
    border:1px solid var(--profile-border);
    background:var(--profile-surface);
    border-radius:18px;
    overflow:hidden;
    transition:.18s ease;
}

.profile-product-card:hover{
    border-color:var(--profile-accent);
    transform:translateY(-2px);
}

.profile-product-card img,
.product-placeholder{
    width:100%;
    height:170px;
    object-fit:cover;
    display:grid;
    place-items:center;
    background:
        linear-gradient(135deg,var(--profile-accent-soft),transparent 35%),
        var(--profile-surface-2);
    border-bottom:1px solid var(--profile-border);
}

.product-placeholder span{
    width:72px;
    height:72px;
    border:2px solid var(--profile-accent);
    display:grid;
    place-items:center;
    border-radius:50%;
    color:var(--profile-accent);
    font-family:"Barlow Condensed",sans-serif;
    font-size:38px;
    font-weight:900;
}

.profile-product-card > div:last-child{
    padding:17px;
}

.profile-product-card h4{
    font-family:"Barlow Condensed",sans-serif;
    text-transform:uppercase;
    font-size:24px;
    margin:0 0 8px;
    color:#fff;
}

.profile-product-card p{
    color:var(--profile-muted);
    font-size:14px;
    min-height:52px;
    line-height:1.55;
}

.profile-product-card footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:16px;
}

.profile-product-card strong{
    color:var(--profile-accent);
    font-family:"Barlow Condensed",sans-serif;
    font-size:28px;
}

.profile-post{
    display:grid;
    grid-template-columns:54px 1fr;
    gap:15px;
    border:1px solid var(--profile-border);
    background:var(--profile-surface-2);
    border-radius:18px;
    padding:17px;
}

.post-avatar{
    width:54px;
    height:54px;
    border-radius:50%;
    overflow:hidden;
    border:1px solid var(--profile-accent);
    background:var(--profile-surface);
}

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

.post-body header{
    display:flex;
    justify-content:space-between;
    gap:16px;
    color:var(--profile-text);
}

.post-body header span{
    color:var(--profile-muted);
    font-size:13px;
}

.post-body p{
    margin:10px 0 14px;
    color:#d2d8d2;
}

.post-body footer{
    display:flex;
    gap:18px;
    color:var(--profile-muted);
    font-size:14px;
}

@media(max-width:980px){
    .profile-main-card{
        grid-template-columns:1fr;
        text-align:center;
    }

    .profile-avatar{
        margin-inline:auto;
    }

    .profile-name-row{
        display:block;
    }

    .profile-badges,
    .profile-actions{
        justify-content:center;
    }

    .profile-stats{
        grid-template-columns:repeat(2,1fr);
    }

    .profile-grid{
        grid-template-columns:1fr;
    }

    .profile-products{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){
    .profile-hero{
        padding:15px 0 0;
    }

    .profile-banner-card{
        min-height:190px;
        border-radius:18px;
        background-size:cover;
        background-position:center top;
    }

    .banner-copy{
        left:20px;
        right:20px;
        bottom:24px;
    }

    .banner-copy span{
        font-size:11px;
        padding:8px 12px;
    }

    .banner-copy h1{
        font-size:42px;
        line-height:1;
        margin-top:22px;
    }

    .banner-copy p{
        font-size:14px;
    }

    .profile-shell{
        margin-top:-35px;
    }

    .profile-main-card{
        padding:22px;
    }

    .profile-avatar{
        width:95px;
        height:95px;
        margin-top:-60px;
    }

    .profile-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .profile-actions .btn,
    .profile-actions form{
        width:100%;
    }

    .profile-actions .btn{
        justify-content:center;
    }
}

@media(max-width:620px){
    .profile-stats{
        grid-template-columns:1fr;
    }

    .profile-main-card{
        padding:18px;
    }

    .profile-identity h2{
        font-size:34px;
    }
}

@media(max-width:480px){
    .profile-actions{
        grid-template-columns:1fr;
    }
}
