@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ------------------------------------------------------------------
   Modern minimal layer: calm surfaces, light chrome, clear type.
   Loads after skin.css — keeps brand pink, refines everything else.
   ------------------------------------------------------------------ */
body {
    --ui-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ui-accent: #CD3077;
    --ui-accent-soft: rgba(205, 48, 119, 0.14);
    --ui-accent-ring: rgba(205, 48, 119, 0.22);
    --ui-ink: #16161a;
    --ui-ink-muted: rgba(22, 22, 26, 0.62);
    --ui-border: rgba(15, 23, 42, 0.08);
    --ui-border-strong: rgba(15, 23, 42, 0.12);
    --ui-surface: #ffffff;
    --ui-surface-2: #f8f9fb;
    --ui-page: #f0f1f5;
    --ui-radius-sm: 6px;
    --ui-radius-md: 10px;
    --ui-radius-lg: 14px;
    --ui-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --ui-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.06);
    --ui-shadow-card-hover: 0 2px 6px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.1);
    --ui-shadow-dropdown: 0 4px 6px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.12);
    --ui-shadow-modal: 0 8px 24px rgba(15, 23, 42, 0.1), 0 24px 64px rgba(15, 23, 42, 0.14);
    font-family: var(--ui-font);
    font-size: 15px;
    line-height: 1.55;
    font-feature-settings: "kern" 1, "liga" 1;
    letter-spacing: -0.012em;
    color: var(--ui-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-color: var(--ui-page) !important;
    background-image: none !important;
    }

html {
    scroll-behavior: smooth;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    }

.navbar, .navbar-inverse, .dropdown-menu, .btn, .form-control, .modal-content, .breadcrumb, .panel, .well, .alert, .list-group-item, .table {
    font-family: var(--ui-font);
    }

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: var(--ui-font);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.028em;
    color: var(--ui-ink);
    }

.modal-title {
    font-weight: 600;
    letter-spacing: -0.02em;
    }

::selection {
    background-color: var(--ui-accent-soft);
    color: inherit;
    }

::-moz-selection {
    background-color: var(--ui-accent-soft);
    color: inherit;
    }

label, .control-label {
    font-weight: 500;
    color: var(--ui-ink-muted);
    }

.text-muted, small, .help-block {
    color: var(--ui-ink-muted);
    }

.content-container {
    padding-top: 20px;
    padding-bottom: 16px;
    }

.page_container {
    padding-top: 22px;
    padding-bottom: 22px;
    }

.page-footer {
    line-height: 1.65;
    font-size: 13px;
    color: var(--ui-ink-muted);
    border-top: 1px solid var(--ui-border);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    }

.breadcrumb {
    padding: 8px 0;
    border-radius: 0;
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    margin-bottom: 1rem;
    font-size: 13px;
    }

.breadcrumb > li + li:before {
    color: rgba(22, 22, 26, 0.35);
    }

.webpanel {
    border-radius: 0 0 var(--ui-radius-sm) var(--ui-radius-sm);
    border-color: var(--ui-border) !important;
    background: var(--ui-surface) !important;
    box-shadow: var(--ui-shadow-sm);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
    }

@media (hover: hover) and (pointer: fine) {
    .webpanel:hover {
        box-shadow: var(--ui-shadow-card);
        border-color: var(--ui-border-strong) !important;
        }
    }

@media (min-width: 768px) {
    .webpanel {
        box-shadow: var(--ui-shadow-card);
        border-radius: 0 0 var(--ui-radius-md) var(--ui-radius-md);
        }
    .dropdown-menu {
        box-shadow: var(--ui-shadow-dropdown);
        border: 1px solid var(--ui-border);
        padding: 6px 0;
        }
    }

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .webpanel:hover {
        box-shadow: var(--ui-shadow-card-hover);
        }
    }

.webpanelhead {
    padding: 12px 18px;
    border-top-left-radius: var(--ui-radius-sm);
    border-top-right-radius: var(--ui-radius-sm);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 15px;
    background: var(--ui-surface-2) !important;
    border-color: var(--ui-border) !important;
    color: var(--ui-ink) !important;
    border-bottom: 1px solid var(--ui-border) !important;
    }

@media (min-width: 768px) {
    .webpanelhead {
        border-top-left-radius: var(--ui-radius-md);
        border-top-right-radius: var(--ui-radius-md);
        }
    }

.webpanelcontent {
    padding: 20px 0 10px 0;
    line-height: 1.6;
    }

.webpanelleft {
    border-right-color: var(--ui-border) !important;
    }

.graybg {
    background: var(--ui-surface-2) !important;
    }

.profile_wrapper_webffo {
    border-radius: var(--ui-radius-md);
    border: 1px solid var(--ui-border);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
    }

@media (hover: hover) and (pointer: fine) {
    .profile_wrapper_webffo:hover {
        box-shadow: var(--ui-shadow-card);
        border-color: var(--ui-border-strong);
        }
    }

/* Header strip: slimmer divider, less heavy than legacy 4px bar */
.webffo-header {
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
    border-bottom-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    }

.webffo-banner {
    background: var(--ui-surface-2) !important;
    border-bottom: 1px solid var(--ui-border);
    }

.navbar-inverse {
    border: 0 !important;
    box-shadow: none;
    }

.navbar-inverse .navbar-nav > li > a {
    transition: color 0.18s ease, background-color 0.18s ease;
    border-radius: var(--ui-radius-sm);
    font-weight: 500;
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    }

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    }

.navbar_big a {
    border-radius: var(--ui-radius-sm);
    transition: color 0.18s ease, background-color 0.18s ease;
    font-weight: 500;
    }

#main_header a {
    font-family: var(--ui-font);
    }

a.navbtn {
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border-radius: var(--ui-radius-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 0 !important;
    box-shadow: var(--ui-shadow-sm);
    }

@media (hover: hover) and (pointer: fine) {
    a.navbtn:hover {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
        transform: translateY(-1px);
        }
    }

.form-control {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    border-radius: var(--ui-radius-sm);
    border-color: var(--ui-border-strong);
    background-color: var(--ui-surface);
    box-shadow: none;
    }

.form-control:focus {
    border-color: rgba(205, 48, 119, 0.45);
    box-shadow: 0 0 0 3px var(--ui-accent-ring);
    background-color: var(--ui-surface);
    }

.btn, .btn-default, .btn-primary, .btn-success, .btn-info, .btn-warning, .btn-danger {
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--ui-radius-sm);
    }

.btn-xs {
    font-weight: 500;
    letter-spacing: 0;
    border-radius: 4px;
    }

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-1px);
        }
    .btn:active {
        transform: translateY(0);
        }
    }

.dropdown-menu {
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-dropdown);
    border: 1px solid var(--ui-border);
    }

.dropdown-menu > li > a {
    padding: 8px 16px;
    font-size: 14px;
    }

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: var(--ui-surface-2);
    color: var(--ui-ink);
    }

.modal-content {
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow-modal);
    border: 1px solid var(--ui-border);
    overflow: hidden;
    }

#loginmodal {
    border-radius: var(--ui-radius-md);
    border-width: 2px !important;
    }

.panel, .panel-default {
    border-radius: var(--ui-radius-md);
    border-color: var(--ui-border) !important;
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
    }

.panel-heading, .panel-default > .panel-heading {
    background: var(--ui-surface-2) !important;
    border-color: var(--ui-border) !important;
    color: var(--ui-ink) !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding: 12px 16px;
    }

@media (min-width: 768px) {
    .panel, .panel-default {
        border-radius: var(--ui-radius-lg);
        }
    .modal-content {
        border-radius: var(--ui-radius-lg);
        }
    #loginmodal {
        border-radius: var(--ui-radius-lg);
        }
    }

.panel-body {
    line-height: 1.6;
    }

.featured_member_box {
    border-radius: var(--ui-radius-md);
    border: 1px solid var(--ui-border);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }

@media (hover: hover) and (pointer: fine) {
    .featured_member_box:hover {
        box-shadow: var(--ui-shadow-card);
        border-color: var(--ui-border-strong);
        }
    }

.user_tag {
    border-radius: 999px;
    transition: box-shadow 0.15s ease;
    font-weight: 500;
    }

.well {
    border-radius: var(--ui-radius-md);
    box-shadow: none;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-2) !important;
    }

a:focus-visible, button:focus-visible, .btn:focus-visible, .navbtn:focus-visible, .form-control:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 2px;
    }

/* In-content links: quiet default, clear on hover */
.webpanelcontent a:not(.btn):not(.navbtn),
.page_container a:not(.btn):not(.navbtn) {
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
    }

@media (hover: hover) and (pointer: fine) {
    .webpanelcontent a:not(.btn):not(.navbtn):hover,
    .page_container a:not(.btn):not(.navbtn):hover {
        text-decoration: underline;
        text-decoration-color: rgba(205, 48, 119, 0.45);
        }
    }

.thumbnail {
    border-radius: var(--ui-radius-md);
    border-color: var(--ui-border) !important;
    padding: 4px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }

@media (hover: hover) and (pointer: fine) {
    .thumbnail:hover {
        border-color: var(--ui-border-strong) !important;
        box-shadow: var(--ui-shadow-card);
        }
    }

.label {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.28em 0.65em;
    }

/* ------------------------------------------------------------------
   Further polish + responsive / motion safety (CSS only).
   ------------------------------------------------------------------ */
.home_headline1, .home_headline2 {
    line-height: 1.12;
    font-family: var(--ui-font);
    font-weight: 700;
    letter-spacing: -0.03em;
    border-radius: 4px;
    }

.comment_right .entry {
    border-radius: 0 var(--ui-radius-md) var(--ui-radius-md) var(--ui-radius-md);
    border: 1px solid var(--ui-border);
    }

.comment_right .entry p {
    line-height: 1.6;
    }

.listings .listing-row {
    transition: background-color 0.15s ease;
    }

@media (hover: hover) and (pointer: fine) {
    .listings .listing-row:hover {
        background-color: rgba(15, 23, 42, 0.03);
        }
    }

.latest_ads_single_block {
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    border-radius: var(--ui-radius-sm);
    }

@media (hover: hover) and (pointer: fine) {
    .latest_ads_single_block:hover {
        box-shadow: var(--ui-shadow-card);
        }
    }

.alert {
    border-radius: var(--ui-radius-md);
    line-height: 1.55;
    border-width: 1px;
    box-shadow: none;
    }

.list-group-item {
    transition: background-color 0.12s ease;
    border-color: var(--ui-border) !important;
    }

.list-group-item:first-child {
    border-top-left-radius: var(--ui-radius-md);
    border-top-right-radius: var(--ui-radius-md);
    }

.list-group-item:last-child {
    border-bottom-left-radius: var(--ui-radius-md);
    border-bottom-right-radius: var(--ui-radius-md);
    }

.pagination > li > a, .pagination > li > span {
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    border-radius: var(--ui-radius-sm) !important;
    margin: 0 2px;
    }

.blogs_pagination a {
    border-radius: var(--ui-radius-sm);
    transition: background-color 0.15s ease, color 0.15s ease;
    }

hr {
    border: 0;
    border-top: 1px solid var(--ui-border);
    margin: 1.35em 0;
    }

.table > tbody > tr > td, .table > tbody > tr > th {
    transition: background-color 0.12s ease;
    border-top-color: var(--ui-border) !important;
    }

.table {
    border-collapse: separate;
    border-spacing: 0;
    }

.table > thead > tr > th {
    border-bottom-color: var(--ui-border-strong) !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--ui-ink-muted);
    background: var(--ui-surface-2);
    }

.input-group .form-control:focus {
    z-index: 3;
    }

blockquote {
    border-radius: 0 var(--ui-radius-md) var(--ui-radius-md) 0;
    line-height: 1.6;
    border-left-color: rgba(205, 48, 119, 0.35) !important;
    background: var(--ui-surface-2);
    }

.roundbordered {
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    }

@media (hover: hover) and (pointer: fine) {
    .roundbordered:hover {
        box-shadow: var(--ui-shadow-card);
        }
    }

/* Small screens: keep rhythm tight so legacy mobile rules stay intact */
@media (max-width: 767px) {
    body {
        letter-spacing: 0;
        }
    .home_headline1 {
        font-size: clamp(1.625rem, 8vw + 0.5rem, 2.625rem);
        }
    .home_headline2 {
        font-size: clamp(1.25rem, 4vw + 0.75rem, 1.75rem);
        }
    input.form-control, textarea.form-control, select.form-control {
        font-size: 16px;
        }
    .content-container {
        padding-top: 14px;
        padding-bottom: 10px;
        }
    .page_container {
        padding-top: 14px;
        padding-bottom: 14px;
        }
    .webpanelhead {
        padding: 10px 14px;
        }
    .webpanelcontent {
        padding: 16px 0 8px 0;
        }
    .breadcrumb {
        padding: 6px 0;
        }
    .form-control:focus {
        box-shadow: 0 0 0 2px var(--ui-accent-ring);
        }
    .modal-content {
        border-radius: var(--ui-radius-md);
        box-shadow: var(--ui-shadow-modal);
        }
    .btn:hover, a.navbtn:hover {
        transform: none;
        }
    }

@media (max-width: 480px) {
    .panel, .panel-default {
        border-radius: var(--ui-radius-sm);
        }
    .dropdown-menu {
        border-radius: var(--ui-radius-sm);
        }
    .webpanelhead {
        border-top-left-radius: var(--ui-radius-sm);
        border-top-right-radius: var(--ui-radius-sm);
        font-size: 14px;
        }
    .webpanel {
        border-radius: 0 0 var(--ui-radius-sm) var(--ui-radius-sm);
        }
    }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
        }
    .webpanel, .profile_wrapper_webffo, .featured_member_box, .latest_ads_single_block, .listings .listing-row, .roundbordered, .user_tag, a.navbtn, .navbar-nav > li > a, .navbar_big a, .form-control, .btn, .btn-default, .btn-primary, .btn-success, .btn-info, .btn-warning, .btn-danger, .pagination > li > a, .pagination > li > span, .blogs_pagination a, .list-group-item, .table > tbody > tr > td, .table > tbody > tr > th, .thumbnail {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        }
    a.navbtn:hover, .btn:hover {
        transform: none !important;
        }
    }
