/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:darkgreen;
    padding: 1rem 2rem;
}
.navbar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: yellow; /* Fallback color */
    text-decoration: none;
    
    /* Add gradient colors */
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF69B4, #00CED1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Add animation */
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
    
    /* Add subtle glow */
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    
    /* Smooth transition */
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

/* Gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hover effect */
.navbar .logo a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Add a subtle underline animation */
.navbar .logo a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, #FF69B4, #00CED1, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.navbar .logo a:hover::after {
    transform: scaleX(1);
}

/* Optional: Add a pulsing effect to the @ symbol */
.navbar .logo a::before {
    content: '@';
    background: linear-gradient(135deg, #FFD700, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: pulse 2s infinite;
    margin-right: 2px;
    font-weight: 900;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 5px #FFD700);
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px #FF4500);
    }
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links a {
    color:yellow;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: #ffd700;
}

/* Hero: image + overlay + responsive typography */
:root{
  --primary: #1a73e8;
  --accent: #ffd700;
  --dark-alpha: rgba(10,12,20,0.55);
  --soft-alpha: rgba(26,115,232,0.18);
  --radius: 10px;
}

/* Example online image from Unsplash (network/phone theme) */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 8vw, 120px) 20px; /* responsive vertical padding */
  min-height: 56vh;
  isolation: isolate; /* ensure pseudo elements blend nicely */
  background-image: url("https://images.unsplash.com/photo-1519241047957-be31d7379a5d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1650&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark gradient overlay + soft color tint for branding */
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,12,20,0.62) 0%, rgba(26,115,232,0.12) 40%, rgba(26,115,232,0.09) 60%, rgba(10,12,20,0.6) 100%);
  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 1;
}

/* Soft vignette to focus center content */
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Inner wrapper to constrain text width and create layering */
.hero-inner{
  position: relative;
  z-index: 3; /* sits above overlays */
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

/* content box — optional subtle backdrop for legibility on tiny screens */
.hero-text{
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius);
  backdrop-filter: blur(4px); /* subtle blur of background under text */
  -webkit-backdrop-filter: blur(4px);
}

/* Headline — responsive size */
.hero h1{
  margin: 0 0 14px;
  font-weight: 800;
  line-height: 1.02;
  font-size: clamp(1.6rem, 4.6vw, 3.2rem); /* scales from small -> large */
  letter-spacing: -0.02em;
  text-shadow: 0 6px 20px rgba(10,12,20,0.45); /* soft shadow for contrast */
}

/* Supporting paragraph */
.hero p{
  margin: 0 0 22px;
  font-size: clamp(0.95rem, 2.3vw, 1.15rem);
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  text-shadow: 0 6px 18px rgba(10,12,20,0.35);
}

/* Small subtext under CTA */
.hero-sub{
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}

/* Primary CTA — vivid, prominent */
.btn-primary{
  display: inline-block;
  background: linear-gradient(180deg, #ffd700 0%, #ffbf00 100%);
  color: var(--primary);
  padding: 12px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  box-shadow:
    0 8px 24px rgba(26,115,232,0.14),
    0 2px 6px rgba(0,0,0,0.2) inset;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  border: 2px solid rgba(255,255,255,0.06);
}

/* CTA hover / focus */
.btn-primary:hover,
.btn-primary:focus{
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 18px 40px rgba(26,115,232,0.16),
    0 2px 8px rgba(0,0,0,0.25) inset;
  filter: saturate(1.02);
  outline: none;
}

/* make CTA accessible when focused by keyboard */
.btn-primary:focus{
  box-shadow:
    0 18px 40px rgba(26,115,232,0.16),
    0 0 0 4px rgba(26,115,232,0.14);
}

/* Decorative subtle pattern using pseudo element (glow stripe) */
.hero-text::before{
  content: "";
  position: absolute;
  left: 50%;
  top: -18%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%) rotate(25deg);
  background: radial-gradient(circle at 30% 30%, rgba(255,215,0,0.08), transparent 30%),
              linear-gradient(135deg, rgba(255,255,255,0.02), rgba(26,115,232,0.02));
  filter: blur(28px);
  z-index: 1;
  pointer-events: none;
}

/* Responsive behaviour */
@media (max-width: 880px){
  .hero{
    min-height: 60vh;
    padding: clamp(36px, 8vw, 80px) 18px;
  }
  .hero-text{
    padding: 20px;
  }
  .hero-text::before{ display: none; } /* hide decorative glow on small screens */
}

@media (max-width: 520px){
  .hero{
    padding: 36px 14px;
    min-height: 52vh;
  }
  .hero p{ margin-bottom: 18px; }
  .btn-primary{ padding: 10px 18px; font-size: 0.95rem; border-radius: 10px; }
  .hero h1{ font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .hero-text{ padding: 16px; }
}

/* Optional: subtle bottom wave separator (SVG) */
/* Place this markup directly after </section> if you want the wave:
   <div class="hero-wave" aria-hidden="true">
     <svg viewBox="0 0 1440 80" preserveAspectRatio="none"><path d="M0,30 C200,90 400,0 720,30 C1040,60 1240,10 1440,40 L1440,80 L0,80 Z" fill="rgba(255,255,255,0.06)"/></svg>
   </div>
*/
.hero-wave{ width:100%; line-height:0; display:block; margin-top:-2px;}
.hero-wave svg{ display:block; width:100%; height:64px;}


/* Features Section */
.features {
    padding: 60px 20px;
    text-align: center;
}
.features h2 {
    margin-bottom: 40px;
    font-size: 2rem;
    color: #1a73e8;
}
.feature-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.feature {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.feature h3 {
    margin-bottom: 15px;
    color: #1a73e8;
}

/* CTA Section */
.cta {
    background: #1a73e8;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}
.cta h2 {
    margin-bottom: 20px;
}
.btn-secondary {
    background: #fff;
    color: #1a73e8;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}
.btn-secondary:hover {
    background: #e0e0e0;
}

/* Forms (Login/Register) */
form {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
form button {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}
form button:hover {
    background: #0f5bb5;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;      /* logo on top, links below */
        align-items: center;
    }

    .nav-links {
        flex-direction: row;         /* keep links horizontal */
        justify-content: center;     /* center them under logo */
        gap: 15px;
        flex-wrap: wrap;             /* allow wrapping if screen is very narrow */
    }
}

/* =======================
   DASHBOARD (AMAZING UI)
======================= */

.dashboard {
    max-width: 1100px;
    margin: 50px auto;
    padding: 25px;
    display: grid;
    gap: 30px;
}

/* Dashboard Title */
.dashboard h2 {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a73e8;
    margin-bottom: 10px;
}

/* Wallet Card */
.wallet-card {
    position: relative;
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    color: #fff;
    padding: 35px 25px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(26, 115, 232, 0.35);
    overflow: hidden;
}

/* Decorative glow */
.wallet-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
    top: -120px;
    right: -120px;
}

.wallet-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0,0,0,0.15), transparent 65%);
    bottom: -110px;
    left: -110px;
}

/* Wallet Label */
.wallet-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 8px;
}

/* Wallet Balance */
.wallet-card .balance {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 12px 0 6px;
    color: #ffd700;
    text-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

/* Small subtext */
.wallet-card .sub-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Hover animation */
.wallet-card:hover {
    transform: translateY(-6px);
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        margin: 30px auto;
        padding: 18px;
    }

    .wallet-card {
        padding: 28px 18px;
        border-radius: 18px;
    }
}


.quick-actions {
    margin-bottom: 30px;
}
.actions-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.action-card {
    flex: 1 1 200px;
    background:#1a73e8;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}
.action-card:hover {
    background: #0f5bb5;
}
/* === QUICK ACTIONS (DATA STYLE) === */
.quick-actions {
    margin-bottom: 40px;
}

.quick-actions h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1a73e8;
    font-size: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

/* Action Card */
.action-card {
    position: relative;
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    color: #fff;
    padding: 28px 20px;
    border-radius: 18px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

/* Hover effect */
.action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

/* Wi-Fi Data Icon (complete with three arcs) */
.action-card[href*="buy-bundle"]::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.9) transparent transparent transparent;
    box-sizing: border-box;
}
.action-card[href*="buy-bundle"]::after {
    content: "";
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* Push text below icon */
.action-card {
    padding-top: 80px;
}

/* Individual card accents */
.action-card[href*="buy-bundle"] {
    background: linear-gradient(135deg, #ffcb05, #f9a825);
    color: #000;
}

.action-card[href*="transanctions"] {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Logout card with better icon */
.action-card[href*="logout"] {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.action-card[href*="logout"]::before {
    content: "\f2f5"; /* Font Awesome logout icon (door with arrow) */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 36px;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
}


/* Responsive */
@media (max-width: 768px) {
    .actions-grid {
        flex-direction: column;
    }
    .action-card {
        width: 100%;
    }
}

/* error handling */
.error {
    color: red;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}
.forgot-link {
    display: inline-block;
    margin-top: 10px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.9rem;
}
.forgot-link:hover {
    text-decoration: underline;
}
/* Wallet header */
.wallet-header {
  margin-bottom: 20px;
  text-align: center;
}

.wallet-header h2 {
  color: #1a73e8;
  margin: 0;
  font-size: 2rem;
}

.balance {
  font-weight: bold;
  color: #333;
  margin-top: 8px;
}

/* Bundle cards */
.bundle-box {
  background: #fff;
  padding: 20px;
  margin: 15px auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 500px;
}

.bundle-box h3 {
  margin: 0;
  color: #1a73e8;
  font-size: 1.4rem;
}

.bundle-box p {
  margin: 6px 0;
  color: #555;
}

/* Buy button */
.bundle-box button {
  background: yellow;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.bundle-box button:hover {
  background: #155ab6;
  transform: translateY(-2px);
}

/* Success / error messages */
.message {
  margin: 20px auto;
  max-width: 500px;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

.message.success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #cce3d5;
}

.message.error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #f5c6cb;
}
/* Container for providers */
.providers-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
}

/* Each provider column */
.provider-column {
  flex: 1;
  max-width: 300px;
}

/* Provider title */
.provider-title {
  text-align: center;
  color: #1a73e8;
  font-size: 1.4rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

/* Bundle cards inside each provider */
.bundle-box {
  background: #fff;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bundle-box h4 {
  margin: 0;
  color: #1a73e8;
}

.bundle-box p {
  margin: 5px 0;
  color: #555;
}

.bundle-box button {
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.bundle-box button:hover {
  background: #155ab6;
}
/* Tabs container */
.tab-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  gap: 30px;
}

/* Base tab button styled as square cards */
.tab-button {
  width: 150px;              /* square width */
  height: 150px;             /* square height */
  border: none;
  cursor: pointer;
  border-radius: 20px;        /* rounded corners */
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Provider-specific colors */
.tab-button.mtn {
  background: #ffcb05;        /* MTN yellow */
  color: #000;                /* black text for contrast */
}

.tab-button.vodafone {
  background: #e60000;        /* Vodafone red */
}

.tab-button.airtel {
  background: #1a2b6d;        /* AirtelTigo deep blue */
}

/* Hover and active states */
.tab-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.tab-button.active {
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
/* Tab Styling */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.tab-button {
    padding: 12px 25px;
    border: none;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-button.active {
    background: #6366f1; /* Indigo */
    color: white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Hide tab contents by default */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

/* Show the active tab content */
.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Specific Network Colors for Vodafone */
.network-tag.vodafone {
    background: #e60000;
    color: white;
}
/* Tab buttons or buy bundle */
.tab-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tab-button {
  width: 150px;
  height: 150px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.3s ease;
  color: #fff;
}

.tab-button.mtn { background: #ffcb05; color: #000; }
.tab-button.vodafone { background: #e60000; }
.tab-button.airtel { background: #1a2b6d; }

.tab-button.active { box-shadow: 0 6px 14px rgba(0,0,0,0.3); }
.tab-button:hover { transform: scale(1.05); opacity: 0.9; }

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Bundle grid: stack cards vertically */
.bundle-grid {
  display: flex;
  flex-direction: column; /* cards as rows */
  gap: 15px;
  width: 100%;
}

/* Bundle card: rectangular horizontal block */
.bundle-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  width: 100%;
}

.bundle-card:hover {
  transform: translateY(-3px);
}

/* Top section: GB + Price side by side */
.bundle-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.bundle-price {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

/* Arrange GB and price on one line */
.bundle-card h2,
.bundle-card .bundle-price {
  display: inline-block;
  width: 48%;
  text-align: left;
}

.bundle-card .bundle-price {
  text-align: right;
}

/* Buy button at bottom */
.bundle-card form {
  margin-top: 12px;
  text-align: center;
}

.buy-btn {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.buy-btn i {
  font-size: 16px;
}

.buy-btn:hover {
  background: #059669;
}

/* Provider-specific colors */
.bundle-card.provider-mtn {
  background: #ffcb05;
  color: #000;
}

.bundle-card.provider-airteltigo {
  background: #1a2b6d;
  color: #fff;
}

.bundle-card.provider-vodafone {
  background: #e60000;
  color: #fff;
}

/* Tab content visibility */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


/* =========================
   WALLET BANNER – PREMIUM
========================= */
.wallet-banner {
  position: relative;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #2563eb);
  color: #ffffff;
  padding: clamp(40px, 6vw, 70px) 24px;
  border-radius: 26px;
  margin-bottom: 50px;
  text-align: center;
  box-shadow:
    0 25px 60px rgba(30, 58, 138, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.15);
  overflow: hidden;
}

/* Decorative glow circle */
.wallet-banner::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 65%);
  top: -140px;
  right: -140px;
}

/* Subtle diagonal shine */
.wallet-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.05) 20%,
    rgba(255,255,255,0.12) 40%,
    rgba(255,255,255,0.05) 60%
  );
  opacity: 0.6;
}

/* Title */
.wallet-banner h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Balance text */
.wallet-banner p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  opacity: 0.95;
}

/* Balance value emphasis */
.wallet-banner strong {
  color: #ffd700;
  font-size: 1.35em;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Hover lift */
.wallet-banner:hover {
  transform: translateY(-6px);
  transition: transform 0.3s ease;
}

/* Mobile tuning */
@media (max-width: 600px) {
  .wallet-banner {
    padding: 36px 18px;
    border-radius: 20px;
  }
}


/* Message box (moved from inline style to class) */
.message-success {
  background: #dcfce7;
  color: #166534;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}
#popup-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#popup-message.show {
  opacity: 1;
  transform: translateY(0);
}

.success {
  background: #dcfce7;
  color: #166534;
}

.error {
  background: #fee2e2;
  color: #b91c1c;
}
#whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: center;
    text-decoration: none;
    font-family: "Segoe UI", Arial, sans-serif;
  }

  .whatsapp-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    margin-top: 6px; /* space between text and icon */
  }

  .whatsapp-icon img {
    width: 32px;
    height: 32px;
  }

  .whatsapp-icon:hover {
    transform: scale(1.1);
  }

  /* Live dot pulse */
  .live-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
  }

  .contact-text {
    background: #25d366;
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
    font-size: 0.9rem;
  }

  .contact-text:hover {
    background: #1ebe5d;
  }

  /* ✅ Responsive fix: smaller icon on mobile */
  @media (max-width: 600px) {
    .contact-text {
      font-size: 0.8rem;
      padding: 4px 10px;
    }
    .whatsapp-icon {
      width: 45px;
      height: 45px;
    }
    .whatsapp-icon img {
      width: 24px;
      height: 24px;
    }
    .live-dot {
      width: 10px;
      height: 10px;
      top: 6px;
      right: 6px;
    }
  }
  /* Navbar Icons */
.nav-links a {
    display: inline-flex;
    align-items: center;
}

.nav-icon {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.nav-links a:hover .nav-icon {
    transform: translateX(3px);
}
/* Logout Styling */
.logout-link {
    color: #ff4d4d !important;
    font-weight: 600;
}

.logout-link:hover {
    color: #ff1a1a !important;
}
/* Input Icon Layout */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 12px;
}

/* Right Side Icons */
.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.95rem;
    pointer-events: none;
}

/* Focus Effect */
.input-group input:focus + .input-icon {
    color: #1a73e8;
}
.tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tile {
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.tile h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tile button {
    background: #28a745;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.tile button:hover {
    background: #218838;
}

/* Specific colors */
.mtn { background: orange; }
.airtel { background: #007bff; }
.telecel { background: #800000; }
.bulk { background: darkgreen; }
.tile-icon {
    font-size: 25px;
    margin-bottom: 5px;
    color: #fff;
}

/* Tabs container */
.tab-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

/* Tab buttons styled as square cards */
.tab-button {
  width: 160px;
  height: 160px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column; /* stack icon + text */
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.3s ease;
  color: #fff;
  text-align: center;
}

.tab-button i {
  font-size: 36px;
  margin-bottom: 10px;
}

/* Provider-specific colors */
.tab-button.mtn {
  background: #ffcb05; /* MTN yellow */
  color: #000;
}

.tab-button.airtel {
  background: #1a2b6d; /* AirtelTigo deep blue */
}

.tab-button.vodafone {
  background: #e60000; /* Vodafone/Telecel red */
}

/* Hover and active states */
.tab-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.tab-button.active {
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* Responsive: keep horizontal but shrink buttons on phones */
@media (max-width: 768px) {
  .tab-button {
    width: 100px;
    height: 100px;
    font-size: 0.9rem;
  }

  .tab-button i {
    font-size: 24px;
    margin-bottom: 6px;
  }
}



