/* =============================================
   My Personal Network - Custom Stylesheet
   Colors from Logo: Navy #1B3A5C, Red #C42032, Orange #E8721E, Blue #2B6CB0
   ============================================= */

:root {
    --mpn-navy: #1B3A5C;
    --mpn-blue: #2B6CB0;
    --mpn-red: #C42032;
    --mpn-orange: #E8721E;
    --mpn-light: #F8F9FA;
    --mpn-dark: #1A1A2E;
    --mpn-gray: #6C757D;
    --mpn-gradient: linear-gradient(135deg, var(--mpn-navy) 0%, var(--mpn-blue) 100%);
    --mpn-gradient-warm: linear-gradient(135deg, var(--mpn-red) 0%, var(--mpn-orange) 100%);
}

/* ---- Global ---- */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #333;
    overflow-x: hidden;
}

a { text-decoration: none; transition: all 0.3s ease; }
a:hover { text-decoration: none; }

.btn { border-radius: 50px; font-weight: 600; padding: 10px 28px; transition: all 0.3s ease; }
.btn:focus { box-shadow: none; }

.btn-mpn-primary {
    background: var(--mpn-gradient);
    color: #fff;
    border: none;
}
.btn-mpn-primary:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(27,58,92,0.3); }
.btn-outline-mpn {
    border: 2px solid var(--mpn-navy);
    color: var(--mpn-navy);
    background: transparent;
}
.btn-outline-mpn:hover { background: var(--mpn-navy); color: #fff; }

.btn-mpn-warm {
    background: var(--mpn-gradient-warm);
    color: #fff;
    border: none;
}
.btn-mpn-warm:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(196,32,50,0.3); }

.btn-mpn-outline {
    border: 2px solid var(--mpn-navy);
    color: var(--mpn-navy);
    background: transparent;
}
.btn-mpn-outline:hover { background: var(--mpn-navy); color: #fff; }

.section-title {
    font-weight: 700;
    color: var(--mpn-navy);
    margin-bottom: 10px;
}
.section-subtitle {
    color: var(--mpn-gray);
    margin-bottom: 40px;
}

.bg-mpn-light { background-color: var(--mpn-light); }
.bg-mpn-navy { background-color: var(--mpn-navy); }
.text-mpn-navy { color: var(--mpn-navy); }
.text-mpn-red { color: var(--mpn-red); }
.text-mpn-orange { color: var(--mpn-orange); }
.text-mpn-blue { color: var(--mpn-blue); }

/* ---- Navbar Custom ---- */
.navbar-mpn {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 12px 0;
    transition: all 0.35s ease;
}
.navbar-mpn .navbar-brand img { height: 45px; }
.navbar-mpn .nav-link {
    color: var(--mpn-navy) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}
.navbar-mpn .nav-link:hover,
.navbar-mpn .nav-link.active {
    background: rgba(27,58,92,0.08);
    color: var(--mpn-blue) !important;
}
.navbar-mpn .btn-login {
    border: 2px solid var(--mpn-navy);
    color: var(--mpn-navy);
    border-radius: 50px;
    padding: 6px 24px;
    font-weight: 600;
}
.navbar-mpn .btn-login:hover {
    background: var(--mpn-navy);
    color: #fff;
}
.navbar-mpn .btn-register {
    background: var(--mpn-gradient);
    color: #fff;
    border-radius: 50px;
    padding: 6px 24px;
    font-weight: 600;
    border: none;
}
.navbar-mpn .btn-register:hover { opacity: 0.9; color: #fff; }

/* ---- Transparent Navbar on Hero (Homepage) ---- */
.page-home .navbar-mpn.navbar-transparent {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}
.page-home .navbar-mpn.navbar-transparent .nav-link {
    color: #fff !important;
}
.page-home .navbar-mpn.navbar-transparent .nav-link:hover,
.page-home .navbar-mpn.navbar-transparent .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
}
.page-home .navbar-mpn.navbar-transparent .btn-login {
    border-color: #fff;
    color: #fff;
}
.page-home .navbar-mpn.navbar-transparent .btn-login:hover {
    background: #fff;
    color: var(--mpn-navy);
}
.page-home .navbar-mpn.navbar-transparent .navbar-brand img {
    filter: brightness(0) invert(1);
}

/* ---- Hero / Banner Section ---- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}
.hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    z-index: 1;
}

/* ---- CTA Hero Banner (below video) ---- */
.cta-hero-section {
    background: var(--mpn-gradient);
    color: #fff;
    padding: 50px 0;
}
.cta-hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}
.cta-hero-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .cta-hero-section h1 { font-size: 2rem; }
    .hero-section { min-height: 400px; height: 100vh; }
    .hero-video-bg { height: 100vh; object-fit: cover; }
    .navbar-mpn { padding: 10px 0; }
}

/* ---- Feature Cards ---- */
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.feature-card .icon-box {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
}
.feature-card h5 { font-weight: 700; color: var(--mpn-navy); margin-bottom: 12px; }
.feature-card p { color: var(--mpn-gray); font-size: 0.95rem; }

/* ---- Stats Section ---- */
.stats-section {
    background: var(--mpn-gradient);
    padding: 60px 0;
    color: #fff;
}
.stat-item h2 { font-size: 2.5rem; font-weight: 800; }
.stat-item p { font-size: 1rem; opacity: 0.8; }

/* ---- Auth Pages ---- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--mpn-light);
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 45px 40px;
}
.auth-card .logo-area { text-align: center; margin-bottom: 30px; }
.auth-card .logo-area img { height: 50px; }
.auth-card h3 { font-weight: 700; color: var(--mpn-navy); text-align: center; margin-bottom: 5px; }
.auth-card .subtitle { color: var(--mpn-gray); text-align: center; margin-bottom: 30px; }

.form-floating > .form-control { border-radius: 12px; border: 1px solid #dee2e6; }
.form-floating > .form-control:focus { border-color: var(--mpn-blue); box-shadow: 0 0 0 0.2rem rgba(43,108,176,0.15); }
.form-floating > label { color: var(--mpn-gray); }
.form-check-input:checked { background-color: var(--mpn-blue); border-color: var(--mpn-blue); }

.otp-inputs { display: flex; gap: 10px; justify-content: center; }
.otp-inputs input {
    width: 50px; height: 55px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.otp-inputs input:focus { border-color: var(--mpn-blue); outline: none; box-shadow: 0 0 0 3px rgba(43,108,176,0.15); }

/* ---- Dashboard ---- */
.sidebar {
    background: var(--mpn-navy);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0; top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}
.sidebar .sidebar-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar .sidebar-brand img { height: 38px; }
.sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 12px 20px !important;
    font-size: 0.95rem;
    border-radius: 0;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--mpn-orange);
}
.sidebar .nav-link i { width: 22px; margin-right: 10px; }

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--mpn-light);
}
.topbar {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar .user-dropdown img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.content-area { padding: 30px; }

@media (max-width: 991px) {
    .sidebar { left: -260px; }
    .sidebar.show { left: 0; }
    .main-content { margin-left: 0; }
}

/* ---- Profile Card ---- */
.profile-header {
    background: var(--mpn-gradient);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.profile-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
}
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--mpn-gradient-warm);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.kyc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.kyc-verified { background: #d4edda; color: #155724; }
.kyc-pending { background: #fff3cd; color: #856404; }
.kyc-rejected { background: #f8d7da; color: #721c24; }
.kyc-not-submitted { background: #e2e3e5; color: #383d41; }

/* ---- Post Cards ---- */
.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 20px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}
.post-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.post-card .post-media { width: 100%; height: 250px; object-fit: cover; }
.post-card .post-body { padding: 20px; }
.post-card .post-title { font-weight: 700; color: var(--mpn-navy); }
.post-card .post-desc { color: var(--mpn-gray); font-size: 0.9rem; }

/* ---- User Listing Cards ---- */
.user-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}
.user-card:hover { transform: translateY(-5px); box-shadow: 0 10px 35px rgba(0,0,0,0.1); }
.user-card .user-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--mpn-light);
}
.user-card h6 { font-weight: 700; color: var(--mpn-navy); margin-bottom: 3px; }
.user-card .user-biz { color: var(--mpn-gray); font-size: 0.85rem; }
.user-card .chat-icon {
    position: absolute;
    top: 15px; right: 15px;
    color: var(--mpn-blue);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}
.user-card .chat-icon:hover { color: var(--mpn-navy); transform: scale(1.1); }

/* ---- Star Rating ---- */
.star-rating { display: inline-flex; gap: 2px; }
.star-rating .bi-star-fill { color: #FFC107; }
.star-rating .bi-star { color: #dee2e6; }

.rating-input .bi {
    cursor: pointer;
    font-size: 1.6rem;
    color: #dee2e6;
    transition: color 0.2s;
}
.rating-input .bi.active,
.rating-input .bi:hover { color: #FFC107; }

/* ---- Chat ---- */
.chat-container { height: calc(100vh - 160px); display: flex; }
.chat-sidebar {
    width: 320px;
    border-right: 1px solid #e9ecef;
    background: #fff;
    overflow-y: auto;
}
.chat-main { flex: 1; display: flex; flex-direction: column; background: var(--mpn-light); }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; }
.chat-input-area { padding: 15px 20px; background: #fff; border-top: 1px solid #e9ecef; }

.message-bubble {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 18px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    position: relative;
}
.message-sent {
    background: var(--mpn-blue);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.message-received {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.message-time { font-size: 0.72rem; opacity: 0.6; margin-top: 4px; }

.chat-user-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-user-item:hover, .chat-user-item.active { background: #f0f4ff; }
.chat-user-item img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; margin-right: 12px; }

@media (max-width: 768px) {
    .chat-sidebar { width: 100%; }
    .chat-main { display: none; }
    .chat-container.active-chat .chat-sidebar { display: none; }
    .chat-container.active-chat .chat-main { display: flex; }
}

/* ---- KYC ---- */
.kyc-step {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}
.doc-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.doc-upload-area:hover { border-color: var(--mpn-blue); background: #f0f7ff; }
.doc-upload-area i { font-size: 2.5rem; color: var(--mpn-blue); }

/* ---- Subscription ---- */
.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.pricing-card.featured {
    border: 2px solid var(--mpn-orange);
    transform: scale(1.03);
}
.pricing-card .price { font-size: 3rem; font-weight: 800; color: var(--mpn-navy); }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--mpn-gray); }
.pricing-card ul { list-style: none; padding: 0; text-align: left; }
.pricing-card ul li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; color: #555; }
.pricing-card ul li i { color: #28a745; margin-right: 8px; }

/* Network chain visualization */
.chain-visual {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 15px 0;
}
.chain-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.chain-node img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid var(--mpn-blue); }
.chain-node span { font-size: 0.72rem; color: var(--mpn-gray); margin-top: 3px; max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chain-arrow { color: var(--mpn-orange); font-size: 1.2rem; }

/* ---- Footer ---- */
.footer {
    background: var(--mpn-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.footer h5 { color: #fff; font-weight: 700; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer a:hover { color: var(--mpn-orange); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* ---- Notification Badge ---- */
.notification-bell { position: relative; cursor: pointer; }
.notification-bell .badge {
    position: absolute;
    top: -5px; right: -5px;
    font-size: 0.65rem;
    background: var(--mpn-red);
    padding: 3px 6px;
    border-radius: 50px;
}

/* ---- Misc ---- */
.page-header {
    background: var(--mpn-gradient);
    padding: 80px 0 50px;
    color: #fff;
    text-align: center;
    margin-top: -76px;
    padding-top: 140px;
}
.page-header h1 { font-weight: 800; font-size: 2.5rem; }
.page-header p { opacity: 0.8; }
.page-header .breadcrumb { justify-content: center; margin-top: 15px; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item.active { color: #fff; }

.card-custom {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.06);
    border: none;
}
.card-custom .card-body { padding: 25px; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 4rem; color: #dee2e6; margin-bottom: 15px; }
.empty-state h5 { color: var(--mpn-navy); font-weight: 700; }
.empty-state p { color: var(--mpn-gray); }

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999; }
