html {
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:#F4F7FC;
    color:#09162F;
    font-family:'Inter',sans-serif;
    overflow-x:hidden;
}

* {
    box-sizing:border-box;
    margin:0;
    padding:0;
}

h1,h2,h3{
    font-family:'Poppins',sans-serif;
}

.hero{
    background:
    linear-gradient(
        135deg,
        #041630,
        #1039B5,
        #4E26FF
    );

    color:white;

    padding-bottom:100px;
}

.navbar{
    max-width:1400px;
    margin:auto;

    padding:30px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.nav-logo{
    height:55px;
}

.nav-links{
    display:flex;
    gap:30px;
    align-items:center;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-weight:600;
}

.nav-button{
    background:white;
    color:#1F66FF !important;

    padding:12px 25px;
    border-radius:40px;
}

.hero-grid{
    max-width:1400px;
    margin:auto;

    display:grid;
    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

    padding:80px 30px;
}

.hero-left h1{
    font-size:4rem;
    line-height:1.1;
}

.hero-left p{
    font-size:1.3rem;
    margin:30px 0;
}

.hero-buttons{
    display:flex;
    gap:20px;
}

.btn-primary{
    background:white;
    color:#1F66FF;

    padding:18px 35px;

    border-radius:50px;

    text-decoration:none;

    font-weight:700;
}

.btn-secondary{
    border:2px solid white;

    color:white;

    padding:18px 35px;

    border-radius:50px;

    text-decoration:none;
}

.dashboard-image{
    width:100%;
    border-radius:25px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.35);
}

section{
    padding:100px 30px;
}

section h2{
    text-align:center;
    font-size:3rem;
}

.industries {
    padding: 100px 5%;
    text-align: center;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 30px;
    margin-top: 50px;
}

.industry-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .3s;
}

.industry-card:hover {
    transform: translateY(-8px);
}

.industry-icon {
    font-size: 40px;
    margin-bottom: 20px;
}
.features {
    padding: 100px 5%;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,.08);
    transition: .3s;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card h3 {
    margin-bottom: 15px;
}

.pricing {
    padding: 100px 5%;
    text-align: center;
}

.pricing-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.price-card {
    width: 320px;
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    position: relative;
}

.price-card.featured {
    border: 3px solid #3d5afe;
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        #1da1f2,
        #5138ff
    );
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
}

.price {
    font-size: 56px;
    font-weight: 700;
    color: #2962ff;
    margin: 20px 0;
}

.price-card ul {
    text-align: left;
    margin: 30px 0;
    padding-left: 20px;
}

.price-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    background: linear-gradient(
        90deg,
        #1da1f2,
        #5138ff
    );
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.card:hover,
.pricing-card:hover{
    transform:translateY(-8px);
}

.featured{
    border:3px solid #4E26FF;
}

.price{
    font-size:3rem;
    font-weight:700;

    color:#1F66FF;
}

.analytics{
    display:grid;

    grid-template-columns:1fr 1fr;

    max-width:1400px;

    margin:auto;

    gap:60px;

    align-items:center;
}

.analytics-image{
    width:100%;
    border-radius:25px;
}

.final-cta{
    text-align:center;

    background:
    linear-gradient(
        135deg,
        #169DFF,
        #4E26FF
    );

    color:white;
}

.final-cta h2 {
    line-height: 1.3;
    margin-bottom: 40px;
}

.footer-logo{
    height:50px;
}

footer{
    background:#09162F;

    color:white;

    text-align:center;

    padding:50px;
}

.footer-links{
    margin-top:20px;
}

.footer-links a{
    color:white;
    margin:0 15px;
}

/* ===========================
   REGISTER PAGE
=========================== */

.register-body {
    background: linear-gradient(
        135deg,
        #102a5c,
        #0d5cff
    );
    min-height: 100vh;
}

.register-container {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px;
    gap: 80px;
}

.register-left {
    max-width: 500px;
    color: white;
}

.register-logo {
    width: 300px;
    margin-bottom: 40px;
}

.register-left h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.register-subtitle {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit {
    background: rgba(255,255,255,.1);
    padding: 18px 24px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.register-card {
    width: 450px;
    background: white;
    border-radius: 25px;
    padding: 50px;

    box-shadow:
        0 30px 60px rgba(0,0,0,.25);
}

.register-card h2 {
    margin-bottom: 10px;
}

.register-card p {
    color: #666;
    margin-bottom: 30px;
}

.register-card input {
    width: 100%;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 16px;
}

.register-card button {
    width: 100%;
    padding: 18px;

    border: none;

    border-radius: 12px;

    background: linear-gradient(
        90deg,
        #1da1f2,
        #5138ff
    );

    color: white;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

    margin-top: 25px;
}

.register-card button:hover {
    transform: translateY(-2px);
}

.login-link {
    margin-top: 30px;
    text-align: center;
}

.login-link a {
    color: #2962ff;
    text-decoration: none;
    font-weight: 600;
}

.error {
    background: #ffe8e8;
    color: #c62828;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/*-- Login or dashboar...i think --*/
.center-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f5f7fb;
}

.simple-card{
    background:white;
    padding:60px;
    border-radius:20px;
    box-shadow:0 20px 40px rgba(0,0,0,.1);
    text-align:center;
    max-width:500px;
}

.plan-wrapper{
    display:flex;
    gap:40px;
    flex-wrap:wrap;
    justify-content:center;
    padding:80px 20px;
}

/*-- Settings and sidebard --*/
.dashboard-body{
    margin:0;
    background:#edf3fa;
    font-family:'Poppins',sans-serif;
}

.dashboard-layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:#082544;
    color:white;
    padding:40px 25px;
}

.sidebar-logo{
    width:180px;
    display:block;
    margin:0 auto 40px;
}

.sidebar a{
    display:block;
    color:white;
    text-decoration:none;
    padding:14px 18px;
    margin-bottom:10px;
    border-radius:10px;
    transition:.2s;
}

.sidebar a:hover{
    background:rgba(255,255,255,.12);
}

.sidebar .active{
    background:#28b4ff;
}

.dashboard-content{
    flex:1;
    padding:50px;
}

.page-subtitle{
    color:#666;
    margin-bottom:30px;
}

.dashboard-card{
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    max-width:700px;
}

.dashboard-card label{
    display:block;
    margin-top:20px;
    margin-bottom:8px;
    font-weight:600;
}

.dashboard-card input{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
}

.switch-label{
    display:flex;
    gap:12px;
    align-items:center;
    margin-top:20px;
}

.primary-button{
    background:#1da1ff;
    color:white;
    border:none;
    padding:15px 35px;
    border-radius:10px;
    margin-top:30px;
    cursor:pointer;
    font-size:16px;
}

.primary-button:hover{
    background:#0085dd;
}

.success-box{
    background:#dff5df;
    color:#226622;
    padding:15px;
    border-radius:10px;
    margin-bottom:25px;
}

/*-- Dashboard and Customer Portal --*/
.dashboard-layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:#09203f;
    color:white;
    padding:40px 20px;
}

.sidebar a{
    display:block;
    color:white;
    padding:14px;
    text-decoration:none;
    border-radius:8px;
    margin-bottom:10px;
}

.sidebar a:hover{
    background:rgba(255,255,255,.1);
}

.content{
    flex:1;
    padding:40px;
    background:#f5f7fb;
}

/*-- billing.php add --*/
.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-bottom:40px;
}

.stat-card{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.big-number{
    font-size:42px;
    font-weight:700;
    color:#1da1ff;
}

.pricing-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
    margin:30px 0;
}

.price-card{
    background:white;
    padding:40px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.price-card.featured{
    border:3px solid #1da1ff;
}

.price{
    font-size:40px;
    font-weight:700;
    color:#1da1ff;
    margin:20px 0;
}

.price-button{
    display:inline-block;
    background:#1da1ff;
    color:white;
    text-decoration:none;
    padding:14px 30px;
    border-radius:10px;
    margin-top:20px;
}

/*-- history.php adds --*/
.history-table{
    width:100%;
    border-collapse:collapse;
}

.history-table th{
    background:#f3f6fb;
    text-align:left;
    padding:15px;
}

.history-table td{
    padding:15px;
    border-top:1px solid #eee;
}

.status-sent{
    color:#007bff;
    font-weight:600;
}

.status-delivered{
    color:green;
    font-weight:600;
}

.status-failed{
    color:red;
    font-weight:600;
}

/* Media Preview for Dashboard */
#mediaPreview{
    display:block;
    max-width:250px;
    border-radius:10px;
    margin-top:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
}

#mediaPreview:empty{
    display:none;
}

/*--- REVIEW TO ENSURE THERE ARE NOT DOUBLE ADDS ---*/
.dashboard-layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:#12233b;
    padding:30px;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.sidebar a{
    color:white;
    text-decoration:none;
    padding:12px;
    border-radius:10px;
    transition:.3s;
}

.sidebar a:hover{
    background:#1e3656;
}

.sidebar-logo{
    width:180px;
    margin-bottom:20px;
}

.dashboard-content{
    flex:1;
    padding:50px;
    background:#f3f6fb;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-bottom:40px;
}

.stat-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.stat-card span{
    font-size:38px;
    font-weight:bold;
}

.campaign-builder{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.campaign-builder textarea{
    width:100%;
    height:180px;
    padding:20px;
    margin-bottom:20px;
    border-radius:12px;
    border:1px solid #ddd;
}

.campaign-builder select,
.campaign-builder input{
    width:100%;
    padding:15px;
    margin-bottom:20px;
    border-radius:12px;
    border:1px solid #ddd;
}

#mediaPreview{
    display:block;
    max-width:250px;
    border-radius:12px;
    margin-bottom:20px;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
}

.primary-btn{
    background:#ff8a2b;
    color:white;
    border:none;
    padding:15px 30px;
    border-radius:12px;
    cursor:pointer;
}

.secondary-btn{
    background:#1f4f8b;
    color:white;
    border:none;
    padding:15px 30px;
    border-radius:12px;
    margin-bottom:20px;
    cursor:pointer;
}


@media(max-width:900px){

    .navbar{
        flex-direction:column;
        gap:25px;
    }

    .hero-grid{
        grid-template-columns:1fr;
    }

    .analytics{
        grid-template-columns:1fr;
    }

    .hero-left h1{
        font-size:2.5rem;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
    }
	
	.feature-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .price-card.featured {
        transform: none;
    }

    .industry-grid {
        grid-template-columns: 1fr;
    }

    /* REGISTER PAGE */
    .register-container{
        flex-direction: column;
        padding:40px 20px;
        gap:40px;
    }

    .register-left{
        text-align:center;
    }

    .register-left h1{
        font-size:38px;
    }

    .register-logo{
        width:220px;
    }

    .register-card{
        width:100%;
        max-width:450px;
        padding:35px;
    }

    /*-- Customer portal --*/
    .plan-wrapper{
        flex-direction:column;
        align-items:center;
    }

    /*-- Dashboard and sidebar --*/
    .dashboard-layout{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
        flex-direction:row;
        overflow:auto;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }
}
