/* ==========================================================================
   FACE2POST STUDIO (face2post.cc) - ULTRA MODERN DESIGN SYSTEM
   Theme: Obsidian Dark Glassmorphism, Electric Cyan & Neon Violet Accents
   Typography: Plus Jakarta Sans & Inter
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #080c14;
  --bg-surface: #0e1422;
  --bg-card: rgba(16, 24, 40, 0.72);
  --bg-card-hover: rgba(22, 33, 56, 0.85);
  --bg-card-solid: #111a2e;
  --bg-input: #0b111d;
  --bg-input-focus: #0f172a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-highlight: rgba(56, 189, 248, 0.4);
  --border-focus: #06b6d4;

  --text-color: #e2e8f0;
  --text-heading: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --brand-cyan: #06b6d4;
  --brand-blue: #3b82f6;
  --brand-violet: #8b5cf6;
  --brand-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --brand-gradient-hover: linear-gradient(135deg, #0891b2 0%, #2563eb 50%, #7c3aed 100%);
  --brand-glow: 0 0 25px rgba(6, 182, 212, 0.35);

  --accent-green: #10b981;
  --accent-red: #f43f5e;
  --accent-amber: #f59e0b;

  --header-bg: rgba(11, 16, 27, 0.85);
  --top-menu-bg: rgba(14, 20, 34, 0.85);
  --top-bg: rgba(15, 23, 42, 0.7);
  --footer-bg: #05080f;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.3);
  --shadow-button: 0 4px 18px rgba(59, 130, 246, 0.35);

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: #7dd3fc;
  text-decoration: none;
}

.clear {
  clear: both;
}

/* ==========================================================================
   HEADER & BRANDING
   ========================================================================== */
#head {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.06) rotate(2deg);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
  -webkit-text-fill-color: #38bdf8;
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
#top-menu-wrap {
  background: var(--top-menu-bg);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
}

#top-menu {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-btn ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-btn ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.top-btn ul li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.top-btn ul li a.current {
  color: #fff;
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.top-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-account a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* Sub-nav Pill Bar */
#top-bg {
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 6px 12px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
}

#top-bg a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

#top-bg a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

#top-bg a.current {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-button);
}

/* Main Container */
#main {
  max-width: 1280px;
  margin: 20px auto 60px;
  padding: 0 24px;
}

#content {
  width: 100%;
}

.content-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-heading);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  border-radius: 4px;
  background: var(--brand-gradient);
}

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */
.tube-card, .block, .card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tube-card:hover, .block:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.tube-card-title, .block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Account Picker Elements */
.account-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.account-picker-item, .account-row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-picker-item:hover, .account-row-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.account-picker-item.selected, .account-row-item.selected {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--brand-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.account-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.account-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.account-name-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.change-account-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.change-account-link:hover {
  background: rgba(56, 189, 248, 0.2);
}

/* Destination Pages List */
.destination-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px;
}

.page-select-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-select-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-highlight);
}

.page-select-card.checked {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-green);
}

.page-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   INPUTS & BUTTONS
   ========================================================================== */
.input-text, input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
}

.input-text:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.button, .button-small, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover, .button-small:hover, input[type="submit"]:hover {
  background: var(--brand-gradient-hover);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

.button:active, .button-small:active, input[type="submit"]:active {
  transform: translateY(1px);
}

.button-small {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
  box-shadow: none;
}
.button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.button-danger {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35);
}

/* Post Data Tabs */
.post-data-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.post-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.post-tab-btn.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   DROPDOWNS & NAVIGATION MENUS
   ========================================================================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.dropdown-content a:hover {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
}

/* ==========================================================================
   MOBILE FEED MOCKUP
   ========================================================================== */
.mobile-preview-frame {
  max-width: 380px;
  margin: 0 auto;
  border-radius: 36px;
  background: #18191a;
  border: 10px solid #242526;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.mobile-preview-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #242526;
  border-bottom: 1px solid #3a3b3c;
}

.mobile-preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-preview-page-name {
  font-weight: 700;
  font-size: 14px;
  color: #e4e6eb;
}

.mobile-preview-timestamp {
  font-size: 12px;
  color: #b0b3b8;
}

.mobile-preview-caption {
  padding: 12px 16px;
  font-size: 14px;
  color: #e4e6eb;
  line-height: 1.4;
  word-break: break-word;
}

.mobile-preview-media {
  width: 100%;
  background: #000;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mobile-preview-media img, .mobile-preview-media video {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.mobile-preview-cta-bar {
  padding: 12px 16px;
  background: #242526;
  border-top: 1px solid #3a3b3c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-preview-headline {
  font-weight: 700;
  font-size: 14px;
  color: #e4e6eb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.mobile-preview-cta-btn {
  padding: 8px 16px;
  border-radius: 6px;
  background: #2d88ff;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer-wrap {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 30px 24px;
  margin-top: 60px;
}

#footer {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-dim);
  font-size: 13px;
}

#footer a {
  color: var(--text-muted);
  margin-right: 14px;
}
#footer a:hover {
  color: #38bdf8;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icons replacement helper */
i[class^="i-"] {
  display: inline-block;
  vertical-align: middle;
}
