        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }

        :root {
            --primary: #4361ee;
            --primary-dark: #3a56d4;
            --secondary: #f8f9fa;
            --text: #212529;
            --text-light: #6c757d;
            --border: #e9ecef;
            --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            --success: #28a745;
            --warning: #ffc107;
            --danger: #dc3545;
            --bg-light: #f5f7fb;
        }

        body {
            background-color: var(--bg-light);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Navbar */

        
        /* Navbar */
        .navbar {
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 0.8rem 2rem;
            top: 0;
            z-index: 100;
        }

        .navbar-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
            font-size: 1.4rem;
            color: var(--primary);
            text-decoration: none;
        }

        .logo i {
            background: var(--primary);
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-light);
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-links a:hover, 
        .nav-links a.active {
            color: var(--primary);
        }


        .search-box {
            position: relative;
        }

        .search-box input {
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.9rem;
            width: 220px;
            transition: all 0.2s;
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
        }

        .search-box i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
        }





        
        .user-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
            position: relative;
        }

        .search-box {
            position: relative;
        }

        .search-box input {
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.9rem;
            width: 220px;
            transition: all 0.2s;
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
        }

        .search-box i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
        }

        .user-profile {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            cursor: pointer;
            position: relative;
        }

        .user-dropdown {
            position: absolute;
            top: 50px;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            width: 220px;
            z-index: 100;
            display: none;
        }

        .user-dropdown.show {
            display: block;
        }

        .user-dropdown .dropdown-header {
            padding: 1rem;
            border-bottom: 1px solid var(--border);
        }

        .user-dropdown .dropdown-item {
            padding: 0.8rem 1rem;
            text-decoration: none;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 0.8rem;
            transition: background 0.2s;
        }

        .user-dropdown .dropdown-item:hover {
            background: var(--secondary);
        }

        .user-dropdown .dropdown-item i {
            width: 20px;
            color: var(--text-light);
        }

        /* Main Content */
        .container {
            padding: 0 2rem;
            flex: 1;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .header h1 {
            font-size: 1.8rem;
            font-weight: 700;
        }

        .header p {
            color: var(--text-light);
            margin-top: 0.5rem;
        }

        .stats-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--card-shadow);
            display: flex;
            flex-direction: column;
        }

        .stat-card .value {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .stat-card .label {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        .stat-card .trend {
            margin-top: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--success);
            font-size: 0.9rem;
        }

        .stat-card .trend.down {
            color: var(--danger);
        }

        .section-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .section-title i {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Pages Grid */
        .pages-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
            align-items: start;
        }

        .page-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
        }

        .page-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        }

        .card-header {
            position: relative;
        }

        .card-banner {
            height: 140px;
            background: linear-gradient(135deg, #4361ee, #815dd5);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .profile-img {
            position: absolute;
            bottom: -30px;
            left: 20px;
            width: 80px;
            height: 80px;
            border-radius: 12px;
            border: 4px solid white;
            background: #e9ecef;
            overflow: hidden;
        }

        .profile-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .page-actions {
            position: absolute;
            top: 15px;
            right: 15px;
        }

        .page-menu-btn {
            background: rgba(255, 255, 255, 0.8);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .page-menu-btn:hover {
            background: white;
            transform: rotate(90deg);
        }

        .page-menu {
            position: absolute;
            top: 45px;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            width: 200px;
            z-index: 10;
            display: none;
        }

        .page-menu.show {
            display: block;
        }

        .page-menu .menu-item {
            padding: 0.8rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            cursor: pointer;
            transition: background 0.2s;
        }

        .page-menu .menu-item:hover {
            background: var(--secondary);
        }

        .page-menu .menu-item i {
            width: 20px;
            color: var(--text-light);
        }

        .card-body {
            padding: 40px 20px 20px 20px;
        }

        .page-name {
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #3498db;
        }

        .verified-badge {
            color: var(--primary);
            font-size: 0.9rem;
        }

        .page-meta {
            color: var(--text-light);
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .country-flag {
            font-size: 1.2rem;
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
        }

        .stat-value {
            font-weight: 700;
            font-size: 1.1rem;
        }

        .stat-label {
            color: var(--text-light);
            font-size: 0.85rem;
        }

        .categories {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .category {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .about-text {
            color: var(--text-light);
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
            line-height: 1.5;
        }

        .admin-info {
            font-size: 0.85rem;
            color: var(--text-light);
            padding-top: 0.8rem;
            border-top: 1px solid var(--border);
        }

        .admin-info .title {
            font-weight: 500;
            margin-bottom: 0.3rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .admin-info .countries {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .admin-info .country-tag {
            background: rgba(40, 167, 69, 0.1);
            color: var(--success);
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.8rem;
        }

        .card-footer {
            padding: 1rem 1.5rem;
            background: var(--secondary);
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .follow-date {
            color: var(--text-light);
            font-size: 0.85rem;
        }

        .view-ads-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
        }

        .view-ads-btn:hover {
            background: var(--primary-dark);
        }



        .copyright {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 2rem;
        }

        .pagination button {
            background: white;
            border: 1px solid var(--border);
            color: var(--text);
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .pagination button:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .pagination button.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Loading and Error States */
        .loader {
            display: flex;
            justify-content: center;
            padding: 3rem;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(67, 97, 238, 0.2);
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .error-alert {
            background: rgba(220, 53, 69, 0.1);
            border: 1px solid var(--danger);
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .error-alert i {
            color: var(--danger);
            font-size: 1.5rem;
        }

        .error-alert .message {
            color: var(--danger);
            font-weight: 500;
        }

        .retry-btn {
            background: var(--danger);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            margin-left: auto;
        }

        .retry-btn:hover {
            background: #c82333;
        }

        .country-flag {
            vertical-align: middle;
            margin-right: 5px;
        }

    /* tiny extras */
    .pending-banner {
      display:none;
      margin: 12px 0 4px;
      border: 1px solid #e5e7eb;
      background: #fff8e1;
      color:#7a5d00;
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 14px;
    }
    .pending-banner .badge {
      display:inline-block;
      margin-left:8px;
      padding:2px 8px;
      border-radius:999px;
      background:#f59e0b;
      color:white;
      font-weight:600;
      font-size:12px;
    }
    .page-card.paused {
      opacity:.9;
      outline: 1px dashed #f59e0b;
    }
    .menu-item[disabled] {
      opacity:.5;
      pointer-events:none;
    }





    /* container */
.footer {
  background: #f7f8fb;            /* light */
  border-top: 1px solid #e6e9f2;
  color: #2f3032;
  font-family: Arial, sans-serif;
}
.footer .max-width {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px;
}

/* grid */
.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) {
  .footer-main { grid-template-columns: 1.1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1fr; }
}

/* columns */
.footer-col .footer-title {
  font-weight: 700;
  font-size: 14px;
  color: #1b2a52;
  margin-bottom: 8px;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a {
  color: #1b42cd;                 /* accessible blue on light bg */
  text-decoration: none;
  font-size: 14px;
}
.footer-col a:hover { text-decoration: underline; }

/* brand block */
.footer-brand .site-logo .logo {
  height: 40px;
  display: block;
}
.brand-blurb {
  margin: 10px 0 14px 0;
  color: #545a67;
  font-size: 14px;
}

/* language selector (static) */
.lang-select { position: relative; width: max-content; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e3e7f5;
  padding: 6px 10px; border-radius: 6px; font-size: 13px;
  color: #2f3032; cursor: default;
}
.lang-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1b42cd; display: inline-block;
}
.lang-btn .chev { width: 16px; height: 12px; color: #6c7280; }

/* social */
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: #e9eefc; border-radius: 50%;
}
.social svg { width: 20px; height: 20px; fill: #1b42cd; }

/* bottom */
.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid #e6e9f2;
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.footer .note {
  margin: 0;
  background: #eef2ff;
  border: 1px solid #dbe4ff;
  color: #28324d;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.footer .copyright {
  font-size: 12px;
  color: #6c7280;
}

/* accessibility focus */
.footer a:focus-visible, .lang-btn:focus-visible {
  outline: 3px solid #a9b9ff;
  outline-offset: 2px;
  border-radius: 4px;
}
