/* =====================================================
   BASE RESET
===================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
}

/* =====================================================
   LINKS
===================================================== */
a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =====================================================
   LAYOUT HELPERS
===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-wrapper {
    padding-top: 70px;
    min-height: calc(100vh - 120px);
}

/* =====================================================
   TOP NAVBAR
===================================================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #0b2a4a;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.topbar-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* LOGO */
.logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.logo span {
    color: #6fb1ff;
}

/* SEARCH */
.top-search input {
    width: 260px;
    padding: 7px 10px;
    border-radius: 4px;
    border: none;
    outline: none;
}

/* NAV LINKS */
.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-nav a {
    color: #ffffff;
    font-size: 14px;
}

/* PRIMARY BUTTON */
.btn-primary {
    background: #1a73e8;
    color: #ffffff !important;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.btn-primary:hover {
    background: #1558b0;
}

/* =====================================================
   USER MENU
===================================================== */
.nav-user {
    position: relative;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
}

.nav-user:hover .nav-dropdown {
    display: block;
}

.nav-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 28px;
    background: #ffffff;
    min-width: 160px;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.nav-dropdown a {
    display: block;
    padding: 10px;
    color: #1a1a1a;
    font-size: 13px;
}

.nav-dropdown a:hover {
    background: #f2f6fb;
}

/* =====================================================
   NOTIFICATIONS
===================================================== */
.nav-notify {
    position: relative;
    cursor: pointer;
}

.bell {
    font-size: 18px;
}

.notify-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ff3b30;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 12px;
}

/* POPUP */
.notify-popup {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 320px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    z-index: 2000;
}

.notify-popup.hidden {
    display: none;
}

.notify-header {
    padding: 10px;
    font-weight: 600;
    border-bottom: 1px solid #e6e6e6;
}

.notify-body {
    max-height: 300px;
    overflow-y: auto;
}

.notify-empty {
    padding: 14px;
    text-align: center;
    color: #888888;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
    background: #f6f8fb;
    border-top: 1px solid #e1e6ef;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555555;
}

.footer-links a {
    margin: 0 10px;
    color: #1a73e8;
}

/* =====================================================
   CARDS (Marketplace / Dashboards)
===================================================== */
.card {
    background: #ffffff;
    border: 1px solid #e1e6ef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-meta {
    font-size: 13px;
    color: #666666;
}

/* =====================================================
   BADGES
===================================================== */
.badge {
    display: inline-block;
    padding: 3px 7px;
    font-size: 11px;
    border-radius: 4px;
}

.badge-verified {
    background: #e6f4ea;
    color: #137333;
}

.badge-buy {
    background: #e8f0fe;
    color: #174ea6;
}

.badge-offer {
    background: #fff4e5;
    color: #8a4b00;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-blue {
    background: #1a73e8;
    color: #ffffff;
}

.btn-blue:hover {
    background: #1558b0;
}

.btn-gray {
    background: #e1e6ef;
    color: #333333;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    .top-search {
        display: none;
    }

    .footer-flex {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .top-nav {
        gap: 12px;
    }
}
