/* ==========================================================================
   PushSMS - Bulk SMS Platform
   Emerald theme + modern animations
   ========================================================================== */

:root {
    --brand-green: #059669;
    --brand-green-dark: #047857;
    --brand-green-light: #10b981;
    --brand-green-subtle: #ecfdf5;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   Brand colours
   -------------------------------------------------------------------------- */
.bg-brand-gradient {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.text-brand-green {
    color: #059669;
}

.bg-brand-green {
    background-color: #059669;
}

.bg-brand-green:hover {
    background-color: #047857;
}

.border-brand-green {
    border-color: #059669;
}

.focus-brand-ring:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-shadow:hover {
    box-shadow: 0 18px 30px -8px rgba(5, 150, 105, 0.16), 0 6px 10px -4px rgba(5, 150, 105, 0.08);
    transform: translateY(-3px);
}

/* Kadi za package zinazotumika kwenye dashboard */
.package-card {
    position: relative;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}

.package-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.package-card:hover::before {
    transform: scaleX(1);
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -12px rgba(5, 150, 105, .28);
}

.package-card .btn-buy {
    transition: all .3s ease;
}

.package-card:hover .btn-buy {
    box-shadow: 0 10px 20px -6px rgba(5, 150, 105, .55);
}

/* --------------------------------------------------------------------------
   Pulse indicator
   -------------------------------------------------------------------------- */
.pulse-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --------------------------------------------------------------------------
   Animations za kuingia
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}

@keyframes shimmer {
    0%   { background-position: -500px 0; }
    100% { background-position: 500px 0; }
}

.anim-fade-up {
    animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) both;
}

.anim-fade-in {
    animation: fadeIn .8s ease both;
}

.anim-slide-left {
    animation: slideInLeft .7s cubic-bezier(.2,.8,.2,1) both;
}

.anim-float {
    animation: floatY 5s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .35); }
    50%      { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.anim-pulse-soft {
    animation: softPulse 2.4s ease-out infinite;
}

/* Mfululizo wa uchochezi (staggered) */
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .16s; }
.d3 { animation-delay: .24s; }
.d4 { animation-delay: .32s; }
.d5 { animation-delay: .40s; }
.d6 { animation-delay: .48s; }

/* --------------------------------------------------------------------------
   Gradient ya maandishi
   -------------------------------------------------------------------------- */
.text-gradient {
    background: linear-gradient(120deg, #059669 0%, #10b981 45%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shimmer-text {
    background: linear-gradient(90deg, #0f172a 0%, #059669 50%, #0f172a 100%);
    background-size: 500px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite;
}

/* --------------------------------------------------------------------------
   Glassmorphism
   -------------------------------------------------------------------------- */
.glass {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   WhatsApp float button
   -------------------------------------------------------------------------- */
.wa-float {
    animation: waIn .6s cubic-bezier(.2,.9,.3,1.3) both;
}

@keyframes waIn {
    from { opacity: 0; transform: translateY(24px) scale(.8); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(37, 211, 102, .5);
    animation: waRing 2.2s ease-out infinite;
}

@keyframes waRing {
    0%   { opacity: .8; transform: scale(1); }
    100% { opacity: 0;  transform: scale(1.35); }
}

@media (max-width: 640px) {
    .wa-float {
        padding: .85rem;
    }
}

/* --------------------------------------------------------------------------
   Slider (hero ya landing page)
   -------------------------------------------------------------------------- */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-slide.prev {
    transform: translateX(-40px);
}

.hero-dots button {
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background: #cbd5e1;
    transition: all .35s ease;
}

.hero-dots button.active {
    width: 28px;
    background: #059669;
}

/* --------------------------------------------------------------------------
   Grid ya mandhari (hero)
   -------------------------------------------------------------------------- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    animation: blobMove 14s ease-in-out infinite alternate;
}

@keyframes blobMove {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(28px, -34px) scale(1.12); }
}

/* --------------------------------------------------------------------------
   Progress bar ya malipo
   -------------------------------------------------------------------------- */
.pay-progress {
    background: linear-gradient(90deg, #34d399, #059669, #10b981);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

/* --------------------------------------------------------------------------
   Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.modal-panel {
    animation: modalIn .3s cubic-bezier(.2,.9,.3,1.2) both;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-16px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   Counter badge
   -------------------------------------------------------------------------- */
.counter-badge {
    font-size: .85rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 9999px;
}

/* --------------------------------------------------------------------------
   Kupunguza motion kwa watu wanaotumia reduce motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}