/* forbolu "Modern" skin
   A clean, modern look inspired by today's myspace.com: black header, light gray canvas, Friendster's 2006 blue with orange buttons,
   white rounded cards with soft shadows, roomy type and pill-shaped controls.
   Layout and markup are unchanged — only colors, type, spacing and component styling.
   Profile themes keep working: boxes read their colors from --fb-* variables,
   which a user's theme overrides inside #fb-profile-content.
   Font: Libre Franklin (free, OFL) in place of Myspace's commercial BentonSans. */

/* Libre Franklin — SIL Open Font License 1.1 (public/fonts/libre-franklin/OFL.txt). Self-hosted for the CSP. */
@font-face { font-family: 'Libre Franklin'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('../../fonts/libre-franklin/libre-franklin-latin-ext-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Franklin'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('../../fonts/libre-franklin/libre-franklin-latin-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../../fonts/libre-franklin/libre-franklin-latin-ext-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../../fonts/libre-franklin/libre-franklin-latin-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --fb-blue-dark: #0b4f6c;
  --fb-blue: #17728f;          /* links: Friendster 2006 blue, AA 5.5:1 on white */
  --fb-blue-mid: #4399cc;
  --fb-blue-light: #f1f1f3;
  --fb-blue-lighter: #e9e9ec;
  --fb-border: #e4e4e7;
  --fb-orange: #cc4b0c;        /* main buttons: Friendster orange, darkened for AA (4.6:1 with white text) */
  --fb-text-default: #2a2a2e;
  --fb-muted: #6b6b72;
  --fb-even: transparent;
  --fb-page-bg: #eef4f7;
  --fb-radius: 8px;
  --fb-sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --fb-bright: #ff8a3d;
  --fb-nav: #2a7aab;           /* header: Friendster 2006 blue (white text 4.7:1) */
  --fb-nav-dark: color-mix(in srgb, var(--fb-nav) 88%, #000);
  --fb-nav-text: #fff;
  --fb-shadow: 0 1px 2px rgba(16,16,20,.06), 0 4px 14px rgba(16,16,20,.05);
  /* default box look — a user's profile theme overrides these */
  --fb-head-bg: transparent;
  --fb-head-text: #111;
  --fb-box-bg: #fff;
  --fb-box-border: 0 solid transparent;
  --fb-box-radius: 12px;
  --fb-btn-bg: #f1f1f3;
  --fb-btn-text: #111;
}

body { font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
main { padding: 22px 0 32px; }
label { color: #111; font-weight: 600; font-size: 13px; margin: 14px 0 5px; }
label.inline { font-weight: 400; }
.muted, .meta, .help { color: var(--fb-muted); }
.meta { font-size: 12px; }
a:hover { text-decoration: none; color: #0e5a73; }
.cols, .cols-rev { gap: 20px; }

/* ---------- Header ---------- */
.topbar { background: var(--fb-nav); border-bottom: 0; }
.topbar .container { min-height: 64px; }
.logo-mark { color: var(--fb-nav-text); }
.logo-word { color: var(--fb-nav-text); font-family: var(--fb-sans); font-weight: 800; letter-spacing: -.03em; }
.logo small { color: color-mix(in srgb, var(--fb-nav-text) 72%, transparent); }
.globsearch .lbl { display: none; }
.globsearch form { background: rgba(0,0,0,.16); border-radius: 999px; padding: 4px 4px 4px 6px; max-width: 460px; }
.globsearch select { background: transparent; border: 0; color: var(--fb-nav-text); border-radius: 999px; font-size: 12px; }
.globsearch select option { color: #111; }
.globsearch input, .globsearch input[type=search] { background: transparent; border: 0; color: var(--fb-nav-text); font-size: 13px; padding: 7px 8px; }
.globsearch input::placeholder { color: color-mix(in srgb, var(--fb-nav-text) 70%, transparent); }
.globsearch input:focus, .globsearch select:focus { box-shadow: none; }
.globsearch form:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--fb-nav-text) 55%, transparent); }
.globsearch button { background: var(--fb-nav-text); border-color: var(--fb-nav-text); color: var(--fb-nav); }
.globsearch button:hover { opacity: .9; background: var(--fb-nav-text); border-color: var(--fb-nav-text); color: var(--fb-nav); }
.globsearch button { border-radius: 999px; padding: 6px 14px; }
.subnav { color: color-mix(in srgb, var(--fb-nav-text) 70%, transparent); font-size: 12px; }
.subnav a, .subnav .link-btn { color: var(--fb-nav-text); font-weight: 600; font-size: 12px; }
.subnav a:hover, .subnav .link-btn:hover { color: var(--fb-nav-text); opacity: .85; }
.subnav .pipe { color: color-mix(in srgb, var(--fb-nav-text) 35%, transparent); }
.topbar .badge, .mainnav .badge { background: var(--fb-nav-text); color: var(--fb-nav); }
.menu-btn { color: var(--fb-nav-text); }
.menu-btn:hover { background: rgba(0,0,0,.12); }
.menu-dot { background: var(--fb-nav-text); border-color: var(--fb-nav); }
.badge { background: var(--fb-blue); color: #fff; border-radius: 999px; }

/* ---------- Main nav ---------- */
.mainnav { background: var(--fb-nav-dark); border-bottom: 0; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.mainnav .tabs { gap: 4px; padding: 8px 0; }
.mainnav .tabs > li > a, .mainnav .tabs > li > button {
  padding: 7px 14px; border: 0; border-radius: 999px; color: color-mix(in srgb, var(--fb-nav-text) 88%, transparent); font-size: 13px; font-weight: 600;
}
.mainnav .tabs > li > a:hover, .mainnav .tabs > li > button:hover { background: rgba(0,0,0,.14); color: var(--fb-nav-text); }
.mainnav .tabs > li.active > a, .mainnav .tabs > li.active > button { background: var(--fb-nav-text); color: var(--fb-nav-dark); }
.mainnav .tabs > li.active .badge { background: var(--fb-nav); color: var(--fb-nav-text); }
.mainnav .dropdown { top: calc(100% + 6px); background: #1a1a1d; border: 1px solid #2a2a2f; border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.mainnav .dropdown a { color: #e6e6ea; border: 0; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.mainnav .dropdown a:hover { background: #2a2a2f; color: #fff; }
.mainnav .secondary a { color: color-mix(in srgb, var(--fb-nav-text) 88%, transparent); font-size: 13px; font-weight: 600; }
.mainnav .secondary a:hover { color: var(--fb-nav-text); }
@media (max-width: 760px) {
  .mainnav .tabs { padding: 4px 0 10px; }
  .mainnav .tabs > li > a, .mainnav .tabs > li > button { border-top: 0; }
  .mainnav .dropdown { background: rgba(0,0,0,.14); border: 0; box-shadow: none; }
}

/* ---------- Page chrome ---------- */
.page-title { color: #111; font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 16px; }
.page-title small { color: var(--fb-muted); font-weight: 400; font-size: 14px; letter-spacing: 0; }
.site-footer { border-top: 0; color: var(--fb-muted); font-size: 12px; padding: 28px 0 36px; }
.site-footer nav a { color: #3a3a3f; margin: 0 8px; }
.theme-bar { background: #111; color: #b8b8bf; border-bottom: 0; }
.theme-bar a, .theme-bar .link-btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn { background: #111; border: 1px solid #111; color: #fff; border-radius: 999px; padding: 9px 18px;
  font-size: 13px; font-weight: 700; transition: background .15s, transform .1s; }
.btn:hover { background: #2e2e33; border-color: #2e2e33; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-orange { background: var(--fb-orange); border-color: var(--fb-orange); }
.btn-orange:hover { background: #a93d08; border-color: #a93d08; }
.btn-light { background: #fff; color: #111; border-color: #d4d4d8; }
.btn-light:hover { background: #f1f1f3; color: #111; border-color: #c4c4ca; }
.btn-danger { background: #d93025; border-color: #d93025; }
.btn-danger:hover { background: #b3261e; border-color: #b3261e; }
.link-btn:hover { text-decoration: none; opacity: .8; }

/* ---------- Forms ---------- */
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=date], input[type=search],
input[type=url], input[type=number], select, textarea {
  border-radius: 10px; border: 1px solid #d4d4d8; padding: 9px 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--fb-blue); box-shadow: 0 0 0 3px rgba(23,114,143,.18); }
input[type=color] { border-radius: 8px; }

/* ---------- Cards (commonbox) ---------- */
.commonbox { border-radius: var(--fb-box-radius, 12px); box-shadow: var(--fb-shadow); margin-bottom: 20px; }
.commonbox.plain { box-shadow: none; }
.commonbox > h1, .commonbox > h2 {
  min-height: 0; padding: 16px 18px 4px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3;
}
.commonbox > h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; padding-top: 18px; }
.commonbox > h2 .aside, .commonbox > h1 .aside { font-size: 12px; font-weight: 600; }
.boxcontent { padding: 12px 18px 16px; }
.commonbox .viewall { padding: 0 18px 16px; font-size: 13px; }
.commonbox .viewall a { font-weight: 600; }

/* Control panel */
.controlpanel .cp { padding: 14px 18px 18px; gap: 20px; }
.imgblock200 { border: 0; background: transparent; border-radius: 12px; overflow: hidden; }
.caption { margin-top: 4px; }
.controlpanel ul.data { font-weight: 600; }
.controlpanel ul.data li { margin-bottom: 6px; }
.reportabuse { margin-top: 10px; }
.so { background: var(--fb-btn-bg, #f1f1f3); color: inherit; border: 0; border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.so::before { border-bottom-color: var(--fb-btn-bg, #f1f1f3); left: 18px; }
.so .when { color: var(--fb-muted); font-weight: 400; }

/* Photo / friend grids */
.flogrid { gap: 14px; }
.ir { border: 0; border-radius: 10px; }
.dr { background: transparent; border: 0; padding: 6px 2px 0; font-size: 12px; font-weight: 600; }
.dr small { font-weight: 400; }
.flogridp { gap: 10px; }
.flogridp .ir { border: 0; box-shadow: none; }

/* Feed rows (comments, testimonials, results) — no zebra stripes */
.fitem { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-top: 1px solid #ececef; }
.fitem.evenrow { background: transparent; }
.fitem.sm { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 18px; }
.imgblock75, .imgblock50 { border: 0; border-radius: 50%; }
.imgblock75, .imgblock75 img { width: 52px; height: 52px; }
.imgblock50, .imgblock50 img { width: 40px; height: 40px; }
ul.data .title { font-size: 14px; }
.item-actions { gap: 14px; margin-top: 6px; }
.tag { border-radius: 999px; padding: 1px 8px; font-size: 10px; font-weight: 700; background: #111; }
.tag.blue { background: var(--fb-blue); }
.tag.gray { background: #8d8d94; }
.meettrail .node .imgblock50, .meettrail .node .imgblock50 img { width: 44px; height: 44px; }
.meettrail .arrow { color: var(--fb-muted); }
ul.questions > li { margin-bottom: 12px; }
ul.questions .q { font-size: 12px; text-transform: none; color: var(--fb-q, var(--fb-muted)); font-weight: 600; }

/* ---------- Tabs: segmented pills ---------- */
.tabs-bar { border-bottom: 0; gap: 6px; margin-bottom: 16px; }
.tabs-bar a { background: #fff; color: #3a3a3f; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px #e4e4e7; }
.tabs-bar a:hover { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #c4c4ca; }
.tabs-bar a.active, .tabs-bar a.active:hover { background: #111; color: #fff; box-shadow: none; }

/* ---------- Tables, pagination, flashes ---------- */
table.list th { background: transparent; color: var(--fb-muted); font-size: 12px; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid #ececef; }
table.list td { border-top: 1px solid #ececef; padding: 12px 14px; }
table.list tr.unread td { background: #f0f7fd; font-weight: 600; }
.pagination { gap: 6px; }
.pagination a, .pagination span { border: 0; border-radius: 999px; padding: 6px 12px; background: #fff; box-shadow: var(--fb-shadow); }
.pagination .current { background: #111; color: #fff; }
.flash { border: 0; border-radius: 12px; padding: 12px 16px; box-shadow: var(--fb-shadow); }
.flash.ok { background: #ecfbf3; color: #0b5d3b; }
.flash.err { background: #fdeeee; color: #8e1a1a; }
.notice { border: 0; border-radius: 12px; background: #fff; box-shadow: var(--fb-shadow); padding: 12px 16px; }
.notice.warn { background: #fff7e8; color: #6b4a00; }
.toast { border-radius: 999px; background: #111; padding: 10px 18px; }

/* ---------- Pages ---------- */
.hero h1 { color: #111; font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1.04; margin-bottom: 16px; }
.hero h1 .hl { color: var(--fb-blue); background: linear-gradient(transparent 62%, #d4e9f2 62%); padding: 0 .06em; }
.hero-kicker { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: #e4f0f6; color: var(--fb-blue); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-cta .btn { padding: 12px 22px; font-size: 14px; }
@media (max-width: 760px) { .hero h1 { font-size: 34px; } }
.hero .tagline { font-size: 17px; line-height: 1.55; color: #3a3a3f; margin-bottom: 20px; max-width: 560px; }
.ft { border: 0; border-radius: 14px; box-shadow: var(--fb-shadow); }
.hero ul.points li { padding: 6px 0 6px 26px; }
.mini-cp { gap: 18px; }
.mini-cp .photo { border: 0; border-radius: 12px; overflow: hidden; }
.stat-row { gap: 8px; }
.stat-row a { background: #f1f1f3; border-radius: 12px; color: #111; padding: 10px; }
.stat-row a:hover { background: #111; color: #fff; }
.alert-row { padding: 10px 18px; border-top-color: #ececef; }
.photo-view { background: #111; border: 0; border-radius: 12px; }
.dropzone { border: 2px dashed #d4d4d8; background: #fafafa; border-radius: 12px; }
.dropzone.drag { border-color: var(--fb-blue); background: #e4f0f6; }
.msg { padding: 14px 18px; border-top-color: #ececef; }
.msg.mine { background: #f6f9fc; }
.preset-card, .widget-card, .preview-frame, .warnings, .code-sample { border-radius: 12px; }
.stats div { background: #fff; border: 0; border-radius: 12px; box-shadow: var(--fb-shadow); }
.stats b { color: #111; }
.attach { border: 0; border-radius: 10px; }
.thumb-strip img, .photo-strip img, .image-previews img, .edit-attachment img { border: 0; border-radius: 8px; }
.composer textarea { border-radius: 12px; }
.load-more { border-top-color: #ececef; padding: 12px 18px 18px; }

/* Groups */
.group-hero { border: 0; border-radius: 16px; box-shadow: var(--fb-shadow); }
.group-hero-cover { height: 200px; background-image: linear-gradient(120deg, #0a0a0a, #3a3a3a); }
.group-hero-bar .group-avatar { border-radius: 18px; border-width: 4px; }
.group-hero-title h1 { color: #111; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.group-avatar { border-radius: 10px; background: #111; }
.group-avatar.sm { border-radius: 8px; }
.group-card { border: 0; border-radius: 14px; box-shadow: var(--fb-shadow); }
.group-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,16,20,.12); }
.group-card-cover { height: 110px; background-image: linear-gradient(120deg, #0a0a0a, #3a3a3a); }
.group-card-body { padding: 12px 14px 14px; }
.group-card-body b { color: #111; font-size: 15px; }
.post-card { border: 0; border-radius: 14px; box-shadow: var(--fb-shadow); padding: 16px 18px; margin-bottom: 16px; }
.post-card h3 { font-size: 16px; }
.post-card h3 a { color: #111; }
.post-card footer { border-top-color: #ececef; }

/* Location picker */
.place-list { border-radius: 12px; border-color: #e4e4e7; padding: 4px; }
.place-list li { border-radius: 8px; }
.place-list li:hover, .place-list li.active { background: #f1f1f3; }
