/* ============================================================
   HANDIHUB — Complete Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
  --primary:        #C8622A;
  --primary-dark:   #A04E1E;
  --primary-light:  #E8895A;
  --accent:         #2A7C8A;
  --accent-light:   #3EA8B8;
  --gold:           #D4A43A;
  --dark:           #1A1208;
  --dark-2:         #2E2010;
  --mid:            #5A3E28;
  --light:          #FAF5EF;
  --light-2:        #F0E6D8;
  --white:          #FFFFFF;
  --text:           #3A2A1A;
  --text-muted:     #8A6E58;
  --border:         #E2D0BC;
  --shadow:         rgba(26,18,8,0.10);
  --shadow-lg:      rgba(26,18,8,0.20);
  --radius:         16px;
  --radius-sm:      10px;
  --radius-lg:      24px;
  --nav-height:     68px;
  --bottom-nav-h:   82px;
  --transition:     0.3s cubic-bezier(0.4,0,0.2,1);
}

/* --- Reset --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light);
  color: var(--text);
  min-height: 100vh;
  padding-top: var(--nav-height);
  padding-bottom: var(--bottom-nav-h);
  overflow-x: hidden;
}
body.admin-body { padding-top: 0; padding-bottom: 0; background: var(--light); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--light-2); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* --- Typography --- */
h1,h2,h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(1.9rem,5vw,3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem,3vw,2.2rem); font-weight: 700; }
h3 { font-size: clamp(1rem,2vw,1.35rem); font-weight: 600; }
p  { line-height: 1.7; color: var(--text-muted); }
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   TOP NAVIGATION
   ============================================================ */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-height);
  background: rgba(250,245,239,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 12px;
  transition: box-shadow var(--transition);
}
.top-nav.scrolled { box-shadow: 0 4px 24px var(--shadow); }

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 800;
  color: var(--primary); flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(200,98,42,0.35);
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin-left: 20px; flex: 1;
}
.nav-links li a {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 0.86rem; font-weight: 500; color: var(--mid);
  transition: all var(--transition); white-space: nowrap;
}
.nav-links li a:hover, .nav-links li a.active {
  background: var(--primary); color: white;
}

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-search {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--mid); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-size: 0.88rem;
}
.btn-search:hover { background: var(--primary); border-color: var(--primary); color: white; }

.btn-admin {
  padding: 7px 16px; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white; border: none; cursor: pointer;
  font-size: 0.8rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(42,124,138,0.28);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-admin:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(42,124,138,0.38); }

.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 1.2rem; color: var(--dark); cursor: pointer;
  margin-left: auto;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; left: -280px; bottom: 0; width: 280px;
  background: var(--dark); z-index: 1100;
  transition: left var(--transition);
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer.open { left: 0; }
.mobile-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-drawer-header button { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 1.1rem; cursor: pointer; }
.mobile-drawer .nav-logo { color: var(--primary-light); }
.mobile-drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: rgba(255,255,255,0.08); color: white;
}
.mobile-drawer-link.active { background: var(--primary); color: white; }
.drawer-overlay {
  position: fixed; inset: 0; z-index: 1099;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  z-index: 900;
  display: flex; gap: 6px;
  background: var(--dark);
  padding: 8px 12px;
  border-radius: 30px;
  box-shadow: 0 8px 40px var(--shadow-lg);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 12px; border-radius: 20px;
  color: rgba(255,255,255,0.45); font-size: 0.62rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition); min-width: 54px; text-align: center;
}
.bottom-nav-item i { font-size: 1rem; }
.bottom-nav-item:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.07); }
.bottom-nav-item.active {
  background: var(--primary); color: white;
  box-shadow: 0 4px 16px rgba(200,98,42,0.48);
}
.bottom-nav-item.active i { transform: scale(1.08); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 30px;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; border: none; font-family: 'DM Sans', sans-serif;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; box-shadow: 0 5px 18px rgba(200,98,42,0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 9px 26px rgba(200,98,42,0.48); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white; box-shadow: 0 5px 18px rgba(42,124,138,0.32);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 9px 26px rgba(42,124,138,0.42); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost {
  background: var(--light-2); color: var(--text); border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-danger { background: #DC2626; color: white; }
.btn-danger:hover { background: #B91C1C; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 55%, #3A1A08 100%);
  min-height: 480px; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 60px 24px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23C8622A' fill-opacity='0.055'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,98,42,0.18); border: 1px solid rgba(200,98,42,0.38);
  color: var(--primary-light); padding: 5px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 18px;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 { color: white; margin-bottom: 14px; animation: fadeInUp 0.6s ease 0.2s both; }
.hero h1 em { font-style: normal; color: var(--primary-light); }
.hero p { color: rgba(255,255,255,0.62); margin-bottom: 28px; font-size: 1rem; animation: fadeInUp 0.6s ease 0.3s both; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.4s both; }
.hero-sm { min-height: 260px; padding: 50px 24px; }
.hero-sm h1 { font-size: clamp(1.5rem,3.5vw,2.2rem); }

.hero-stats {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
  animation: fadeInUp 0.6s ease 0.5s both;
}
.stat-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.11);
  backdrop-filter: blur(10px); border-radius: var(--radius);
  padding: 14px 20px; text-align: center; min-width: 110px;
}
.stat-card .num { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 800; color: white; }
.stat-card .lbl { font-size: 0.7rem; color: rgba(255,255,255,0.48); margin-top: 2px; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-wrap { padding: 20px 24px; background: var(--light-2); border-bottom: 1px solid var(--border); }
.search-form { display: flex; gap: 0; max-width: 600px; margin: 0 auto;
  background: white; border: 1.5px solid var(--border); border-radius: 50px;
  padding: 5px 5px 5px 18px;
  box-shadow: 0 4px 18px var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 4px 22px rgba(200,98,42,0.18); }
.search-form i { color: var(--text-muted); align-self: center; }
.search-form input {
  flex: 1; border: none; outline: none; font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif; background: transparent;
  color: var(--text); padding: 6px 10px;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  padding: 9px 20px; border-radius: 40px;
  background: var(--primary); color: white; border: none;
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; transition: all var(--transition);
}
.search-form button:hover { background: var(--primary-dark); }

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-section { padding: 14px 24px; overflow-x: auto; border-bottom: 1px solid var(--border); background: white; }
.filter-tabs { display: flex; gap: 7px; min-width: max-content; }
.filter-tab {
  padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  background: white; color: var(--text-muted); cursor: pointer;
  font-size: 0.8rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
  transition: all var(--transition); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ============================================================
   SECTION / GRID LAYOUT
   ============================================================ */
.section { padding: 36px 24px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 10px; }
.section-header h2 { color: var(--dark); }
.see-all { font-size: 0.83rem; color: var(--primary); font-weight: 600; cursor: pointer; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.cards-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }

/* ============================================================
   ARTISAN CARD
   ============================================================ */
.artisan-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; border: 1.5px solid var(--border);
  transition: all var(--transition); cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
}
.artisan-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px var(--shadow-lg); border-color: var(--primary-light); }
.ac-cover {
  height: 90px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  position: relative;
}
.ac-cover.c2 { background: linear-gradient(135deg, var(--accent), var(--gold)); }
.ac-cover.c3 { background: linear-gradient(135deg, var(--gold), var(--primary)); }
.ac-cover.c4 { background: linear-gradient(135deg, var(--primary-dark), var(--accent-light)); }
.ac-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: white; border: 3px solid white;
  position: absolute; bottom: -30px; left: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 800;
  box-shadow: 0 4px 14px var(--shadow);
}
.ac-body { padding: 40px 18px 16px; }
.ac-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.ac-skill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--light-2); color: var(--primary);
  padding: 3px 9px; border-radius: 12px; font-size: 0.72rem; font-weight: 600; margin-bottom: 9px;
}
.ac-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-meta span { font-size: 0.74rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.ac-footer {
  padding: 11px 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.ac-rating { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 600; color: var(--gold); }

/* ============================================================
   PRODUCT / SUPPLY CARD
   ============================================================ */
.product-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; border: 1.5px solid var(--border);
  transition: all var(--transition); box-shadow: 0 2px 10px var(--shadow);
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px var(--shadow-lg); border-color: var(--accent-light); }
.pc-img {
  height: 150px; background: var(--light-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative;
}
.pc-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--primary); color: white;
  padding: 3px 10px; border-radius: 20px; font-size: 0.68rem; font-weight: 700;
}
.pc-badge.green { background: #16A34A; }
.pc-badge.amber { background: #D97706; }
.pc-body { padding: 16px; }
.pc-name { font-family: 'Playfair Display', serif; font-size: 0.98rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.pc-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
.pc-footer { padding: 11px 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.pc-price { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.pc-partner { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ============================================================
   EQUIPMENT CARD
   ============================================================ */
.equip-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; border: 1.5px solid var(--border);
  transition: all var(--transition); box-shadow: 0 2px 10px var(--shadow);
}
.equip-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px var(--shadow-lg); border-color: var(--gold); }
.ec-img {
  height: 130px; background: linear-gradient(135deg, var(--light-2), var(--light));
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.ec-body { padding: 16px; }
.ec-name { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.ec-spec { font-size: 0.74rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 9px; }
.ec-footer { padding: 11px 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* ============================================================
   PARTNER CARD
   ============================================================ */
.partner-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; border: 1.5px solid var(--border);
  transition: all var(--transition); box-shadow: 0 2px 10px var(--shadow);
}
.partner-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px var(--shadow-lg); }
.pcard-head { padding: 22px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--border); }
.pcard-logo {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: white;
  font-family: 'Playfair Display', serif; flex-shrink: 0;
  font-size: 1.3rem;
}
.pcard-logo.orange { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.pcard-logo.teal   { background: linear-gradient(135deg, var(--accent), #1a5a6a); }
.pcard-logo.gold   { background: linear-gradient(135deg, var(--gold), #B8860B); }
.pcard-info h3 { font-size: 0.97rem; color: var(--dark); margin-bottom: 3px; }
.pcard-info p  { font-size: 0.75rem; color: var(--text-muted); }
.pcard-desc { padding: 14px 22px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; border-bottom: 1px solid var(--border); }
.pcard-stats { display: flex; }
.ps { flex: 1; padding: 14px 0; text-align: center; }
.ps:not(:last-child) { border-right: 1px solid var(--border); }
.ps .n { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--dark); }
.ps .l { font-size: 0.68rem; color: var(--text-muted); }
.pcard-footer { padding: 14px 22px; background: var(--light-2); }

/* ============================================================
   LOCATION CARD
   ============================================================ */
.location-card {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); padding: 20px;
  transition: all var(--transition); box-shadow: 0 2px 10px var(--shadow);
}
.location-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px var(--shadow-lg); border-color: var(--accent-light); }
.lc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lc-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; flex-shrink: 0;
}
.lc-name { font-family: 'Playfair Display', serif; font-size: 0.97rem; font-weight: 700; color: var(--dark); }
.lc-partner { font-size: 0.73rem; color: var(--text-muted); }
.lc-details { display: flex; flex-direction: column; gap: 8px; }
.lc-row { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
.lc-row i { color: var(--primary); font-size: 0.78rem; margin-top: 2px; flex-shrink: 0; }
.lc-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(42,124,138,0.1); color: var(--accent);
  padding: 4px 11px; border-radius: 20px; font-size: 0.7rem; font-weight: 600;
  margin-top: 10px;
}

/* ============================================================
   DETAIL PAGE (artisan.php, product.php, etc.)
   ============================================================ */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 32px 24px; max-width: 1100px; margin: 0 auto; }
.detail-main {}
.detail-sidebar {}

.detail-card {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); overflow: hidden;
  box-shadow: 0 2px 14px var(--shadow);
}
.detail-cover {
  height: 200px; position: relative;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: flex-end; padding: 20px;
}
.detail-cover.c2 { background: linear-gradient(135deg, var(--accent), var(--gold)); }
.detail-cover.emoji { background: var(--light-2); align-items: center; justify-content: center; font-size: 5rem; }
.detail-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: white; border: 4px solid white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 800;
  box-shadow: 0 6px 20px var(--shadow);
  position: absolute; bottom: -40px; left: 24px;
}
.detail-body { padding: 52px 24px 24px; }
.detail-body.no-avatar { padding-top: 24px; }
.detail-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.detail-meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-meta { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }
.detail-meta i { color: var(--primary); }
.detail-section { margin-top: 22px; }
.detail-section h3 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; border-bottom: 2px solid var(--light-2); padding-bottom: 6px; }
.detail-section p { font-size: 0.88rem; }

.sidebar-card {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); overflow: hidden;
  box-shadow: 0 2px 14px var(--shadow); margin-bottom: 18px;
}
.sidebar-card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--dark); }
.sidebar-card-body { padding: 18px; }
.info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.83rem; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-muted); font-weight: 500; }
.info-row .value { font-weight: 600; color: var(--dark); text-align: right; max-width: 55%; }

/* Portfolio grid */
.portfolio-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.portfolio-item { width: 60px; height: 60px; background: var(--light-2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }

/* ============================================================
   PARTNER HERO PAGE
   ============================================================ */
.partner-hero-page {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  padding: 40px 24px; color: white; position: relative; overflow: hidden;
}
.partner-hero-page::after {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,98,42,0.18) 0%, transparent 70%);
}
.php-logo {
  width: 78px; height: 78px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: white;
  font-family: 'Playfair Display', serif;
  margin-bottom: 16px; border: 3px solid rgba(255,255,255,0.18);
}
.php-logo.orange { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.php-logo.teal   { background: linear-gradient(135deg, var(--accent), #1a5a6a); }
.php-logo.gold   { background: linear-gradient(135deg, var(--gold), #B8860B); }
.php-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.php-meta span { font-size: 0.8rem; color: rgba(255,255,255,0.58); display: flex; align-items: center; gap: 6px; }

/* ============================================================
   TAB NAVIGATION
   ============================================================ */
.tab-nav {
  display: flex; gap: 0; padding: 0 24px;
  border-bottom: 2px solid var(--border); overflow-x: auto;
  background: white; position: sticky; top: var(--nav-height); z-index: 50;
}
.tab-btn {
  padding: 13px 18px; border: none; background: transparent;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.3s ease; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-wrap { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px; background: var(--dark); color: white;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 800;
  overflow-y: auto;
}
.admin-sidebar-top {
  padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.admin-sidebar-top .logo-text { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; }
.admin-sidebar-top .logo-sub  { font-size: 0.68rem; color: rgba(255,255,255,0.45); }

.admin-nav { padding: 14px 10px; }
.admin-nav-section { font-size: 0.66rem; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,0.28); padding: 10px 12px 4px; text-transform: uppercase; }
.admin-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 9px; margin-bottom: 1px;
  color: rgba(255,255,255,0.58); cursor: pointer; font-size: 0.86rem; font-weight: 500;
  transition: all var(--transition); text-decoration: none;
}
.admin-nav-item i { width: 16px; text-align: center; font-size: 0.88rem; }
.admin-nav-item:hover { background: rgba(255,255,255,0.07); color: white; }
.admin-nav-item.active { background: var(--primary); color: white; }

.admin-main { margin-left: 240px; flex: 1; min-height: 100vh; background: var(--light); }
.admin-topbar {
  position: sticky; top: 0; z-index: 700;
  background: rgba(250,245,239,0.95); backdrop-filter: blur(16px);
  height: var(--nav-height); padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.admin-page-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--dark); }
.admin-user { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
.admin-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.75rem; font-weight: 700;
}
.admin-content { padding: 28px 24px; }

/* Admin stat cards */
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px,1fr)); gap: 14px; margin-bottom: 28px; }
.astat {
  background: white; border-radius: var(--radius); padding: 18px;
  border: 1.5px solid var(--border); box-shadow: 0 2px 10px var(--shadow);
}
.astat .icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: 10px;
}
.astat .icon.orange { background: rgba(200,98,42,0.1); color: var(--primary); }
.astat .icon.teal   { background: rgba(42,124,138,0.1); color: var(--accent); }
.astat .icon.gold   { background: rgba(212,164,58,0.12); color: var(--gold); }
.astat .icon.dark   { background: rgba(26,18,8,0.07); color: var(--dark); }
.astat .icon.green  { background: rgba(22,163,74,0.1); color: #16A34A; }
.astat .icon.purple { background: rgba(124,58,237,0.1); color: #7C3AED; }
.astat .val  { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 800; color: var(--dark); }
.astat .lbl  { font-size: 0.76rem; color: var(--text-muted); margin-top: 1px; }

/* Admin table */
.admin-table-wrap {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow); margin-bottom: 24px;
}
.atw-header {
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.atw-header h3 { font-size: 0.97rem; color: var(--dark); display: flex; align-items: center; gap: 7px; }
.atw-header h3 i { color: var(--primary); }
.atw-search {
  padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--border);
  font-size: 0.82rem; outline: none; font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition);
}
.atw-search:focus { border-color: var(--primary); }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 11px 14px;
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--light-2); border-bottom: 1px solid var(--border);
}
td {
  padding: 13px 14px; font-size: 0.85rem; color: var(--text);
  border-bottom: 1px solid rgba(226,208,188,0.45);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(250,245,239,0.7); }

.tbl-actions { display: flex; gap: 5px; }
.act-btn {
  padding: 4px 11px; border-radius: 7px; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer; font-size: 0.74rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; transition: all var(--transition);
  color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px;
}
.act-btn.edit:hover  { background: var(--accent); border-color: var(--accent); color: white; }
.act-btn.del:hover   { background: #DC2626; border-color: #DC2626; color: white; }
.act-btn.view:hover  { background: var(--primary); border-color: var(--primary); color: white; }

/* Admin form */
.admin-form-card {
  background: white; border-radius: var(--radius-lg); padding: 26px;
  border: 1.5px solid var(--border); box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 24px;
}
.afc-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.afc-title i { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.78rem; font-weight: 600; color: var(--mid); }
input[type=text], input[type=number], input[type=email], input[type=password], input[type=tel], textarea, select {
  padding: 9px 13px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); outline: none;
  font-size: 0.86rem; font-family: 'DM Sans', sans-serif; color: var(--text);
  background: white; transition: border-color var(--transition); width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
textarea { resize: vertical; min-height: 80px; }
.form-actions { display: flex; gap: 9px; justify-content: flex-end; grid-column: 1/-1; margin-top: 4px; }
.btn-cancel {
  padding: 9px 20px; border-radius: 30px; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer; font-size: 0.86rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; color: var(--text-muted); transition: all var(--transition);
}
.btn-cancel:hover { background: var(--light-2); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  padding: 24px;
}
.login-card {
  background: white; border-radius: var(--radius-lg); padding: 40px 36px;
  width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .logo-icon { margin: 0 auto 10px; width: 52px; height: 52px; font-size: 1.2rem; }
.login-logo h2 { color: var(--dark); margin-bottom: 4px; }
.login-logo p { font-size: 0.82rem; }
.login-card .form-group { margin-bottom: 16px; }
.login-card label { display: block; margin-bottom: 5px; }
.login-error {
  background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.3);
  color: #DC2626; padding: 10px 14px; border-radius: 10px;
  font-size: 0.83rem; margin-bottom: 16px;
}

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 20px; font-size: 0.72rem; font-weight: 600;
}
.tag-primary { background: rgba(200,98,42,0.1);  color: var(--primary); }
.tag-accent  { background: rgba(42,124,138,0.1);  color: var(--accent); }
.tag-gold    { background: rgba(212,164,58,0.12); color: #A07820; }
.tag-green   { background: rgba(22,163,74,0.1);   color: #16A34A; }
.tag-amber   { background: rgba(217,119,6,0.12);  color: #D97706; }
.tag-red     { background: rgba(220,38,38,0.1);   color: #DC2626; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 55px 24px; }
.empty-state i { font-size: 2.8rem; color: var(--border); margin-bottom: 14px; display: block; }
.empty-state h3 { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 7px; }
.empty-state p  { font-size: 0.83rem; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container { position: fixed; top: 78px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
.toast {
  background: var(--dark); color: white; padding: 11px 18px;
  border-radius: var(--radius); font-size: 0.83rem; font-weight: 500;
  box-shadow: 0 8px 28px var(--shadow-lg);
  display: flex; align-items: center; gap: 9px;
  animation: fadeInRight 0.35s ease;
  border-left: 4px solid var(--primary);
  pointer-events: all;
}
.toast.success { border-left-color: #16A34A; }
.toast.error   { border-left-color: #DC2626; }
.toast.info    { border-left-color: var(--accent); }
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  margin-top: 60px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  padding: 48px 24px 32px; max-width: 1100px; margin: 0 auto;
}
.footer-brand p { font-size: 0.83rem; line-height: 1.7; max-width: 260px; }
.footer-links h4 { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: white; margin-bottom: 14px; }
.footer-links a {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8rem; margin-bottom: 9px; color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px; text-align: center; font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.45s ease both; }
.s1 { animation-delay: 0.05s; }
.s2 { animation-delay: 0.10s; }
.s3 { animation-delay: 0.15s; }
.s4 { animation-delay: 0.20s; }
.s5 { animation-delay: 0.25s; }
.s6 { animation-delay: 0.30s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-admin { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-stats { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
  .form-grid  { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 44px 18px; }
  .section { padding: 28px 16px; }
}
@media (min-width: 901px) {
  .bottom-nav { display: none; }
}

/* Highlight search term */
mark { background: rgba(200,98,42,0.14); color: var(--primary); border-radius: 3px; padding: 1px 3px; }
