/**
 * Story HD Web App - Global Styles
 * Theme: Outfit Font & Emerald Green
 */

/* =============================================
   1. CSS VARIABLES & RESET
   ============================================= */
:root {
    --primary: #10b981;
    --primary-dark: #047857;
    --primary-light: #6ee7b7;
    /* Lighter shade for gradients */
    --accent: #0f172a;
    --accent-light: #334155;
    /* Slightly lighter slate */

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --text-dark: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #94a3b8;
    /* Slate 400 */

    --bg-body: #f1f5f9;
    /* Slate 100 */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;

    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    /* Increased for modern look */
    --radius-xl: 28px;
    /* Increased for cards */
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother bezier */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Smoother fonts */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* =============================================
   2. NAVBAR STYLES
   ============================================= */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark) !important;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 10px 16px !important;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.08);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 12px 28px !important;
    /* Slightly larger padding */
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
    color: white !important;
    filter: brightness(1.1);
}

.user-menu {
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-full);
    padding: 8px 16px !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--bg-light);
}

/* =============================================
   3. HERO SECTION
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    /* Account for fixed navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    color: white;
    /* White text on green bg */
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    /* Solid White as requested */
    /* White text */
    margin-top: 20px;
    max-width: 500px;
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-dark);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.hero-image {
    position: relative;
    z-index: 10;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Floating Elements */
.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* =============================================
   4. FEATURES SECTION
   ============================================= */
.features-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: #ecfdf5;
    /* emerald-50 */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(3deg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =============================================
   5. PRICING SECTION
   ============================================= */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
    position: relative;
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 6px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    transform: rotate(45deg);
}

.pricing-header {
    padding: 40px 30px 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-body {
    padding: 30px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.pricing-features li i {
    color: var(--primary);
}

.pricing-footer {
    padding: 0 30px 30px;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}

.btn-pricing.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    background: transparent;
}

.btn-pricing.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-pricing.btn-solid {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-pricing.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* =============================================
   6. FOOTER STYLES
   ============================================= */
.footer-section {
    position: relative;
    margin-top: 0;
    /* Removed gap for seamless wave */
    background: transparent;
    border: none;
    padding-top: 0;
}

.footer-wave {
    line-height: 0;
    width: 100%;
    margin-bottom: -1px;
    /* Prevent sub-pixel cracks */
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.footer-content {
    background: var(--primary);
    /* Solid Green to match the wave */
    padding: 0 0 40px;
    color: white;
}

.footer-title {
    color: white;
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icon {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(5px);
}

.social-icon:hover {
    background: white;
    color: var(--primary);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px;
}

.footer-bottom {
    padding-top: 10px;
}

/* =============================================
   7. AUTH PAGES STYLES
   ============================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at top left, var(--bg-body), #e2e8f0);
    position: relative;
    overflow: hidden;
}

/* Background Accents */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.auth-page::before {
    background: rgba(16, 185, 129, 0.3);
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.auth-page::after {
    background: rgba(59, 130, 246, 0.2);
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-input {
    background: var(--bg-body);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
}

.auth-input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.btn-auth {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1);
}

/* =============================================
   8. DASHBOARD STYLES
   ============================================= */
.dashboard-page {
    min-height: 100vh;
    background: var(--bg-light);
    padding: 20px;
}

.dashboard-container {
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
}

/* Animated Circles */
.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.dashboard-header-content {
    position: relative;
    z-index: 10;
}

.top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-logout-sm {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-logout-sm:hover {
    background: #dc2626;
    color: white;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider .shape-fill {
    fill: var(--bg-white);
}

.dashboard-body {
    padding: 30px;
}

/* Upload Box */
.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.upload-box:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Form Styling */
.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control-custom {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    width: 100%;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.25);
    transition: var(--transition);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.35);
}

.btn-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Preview Container */
#previewContainer {
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: none;
}

#previewImage,
#previewVideo {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

.remove-file {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: var(--transition);
}

.remove-file:hover {
    background: var(--danger);
}

/* Result Box */
.result-box {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
}

.result-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.result-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Progress Bar */
.progress-container {
    margin-top: 16px;
    display: none;
}

.progress-bar-custom {
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Tutorial Steps */
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.tutorial-step:hover {
    background: rgba(16, 185, 129, 0.08);
    transform: translateX(4px);
}

.step-emoji {
    font-size: 1.2rem;
    line-height: 1.5;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.step-content p {
    line-height: 1.4;
}

/* Saved Numbers List Styles (used in Modal) */
.saved-numbers-list {
    padding: 8px;
}

.saved-number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    background: var(--bg-light);
}

.saved-number-item:last-child {
    margin-bottom: 0;
}

.saved-number-item:hover {
    background: rgba(16, 185, 129, 0.12);
}

.saved-number-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.saved-number-text:hover {
    color: var(--primary);
}

.btn-delete-number {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.8rem;
}

.btn-delete-number:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* =============================================
   9. CONTACT & BLOG PAGES
   ============================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 0 80px;
    /* Increased top padding to clear fixed navbar */
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    z-index: 10;
}

.page-subtitle {
    opacity: 0.8;
    position: relative;
    z-index: 10;
    margin-top: 10px;
}

.content-section {
    padding: 80px 0;
}

.contact-form,
.content-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 24px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* =============================================
   10. PAYMENT PAGE
   ============================================= */
.payment-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.qris-wrapper {
    background: white;
    padding: 10px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: inline-block;
}

.qris-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.qris-image {
    max-width: 400px;
    /* User requested max 400px */
    width: 100%;
    /* Fluid width up to max */
    height: auto;
    border-radius: 20px !important;
}

.btn-confirm {
    background: #25d366;
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

/* =============================================
   11. UTILITIES
   ============================================= */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Alert Styles */
.alert-custom {
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-weight: 500;
    border: none;
}

.alert-success-custom {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.alert-danger-custom {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* =============================================
   12. RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .page-header {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Reduce Card Padding */
    .auth-card,
    .dashboard-body,
    .contact-form,
    .content-card,
    .payment-card {
        padding: 24px !important;
    }

    /* Reduce Section Padding */
    .hero-section,
    .pricing-section,
    .features-section,
    .content-section,
    .page-header {
        padding: 40px 0 !important;
    }

    .page-title {
        font-size: 2rem;
    }

    .pricing-header {
        padding: 20px;
    }

    .pricing-body {
        padding: 20px;
    }

    /* Force smaller QRIS on mobile */
    .qris-wrapper {
        padding: 10px;
    }

    .qris-image {
        width: 180px !important;
        /* Force smaller size */
        max-width: 100%;
    }

    /* Fix Footer Wave on Mobile */
    .footer-wave {
        height: auto !important;
        overflow: visible !important;
    }

    .footer-wave svg {
        height: auto !important;
        width: 100% !important;
        display: block;
        margin-bottom: -1px;
    }

    /* Stack Content Below Wave on Mobile */
    .footer-cta-content {
        position: relative;
        background: var(--primary);
        /* Continuous green background */
        padding: 0 20px 60px 20px;
        margin-top: -2px;
        /* Ensure seamless connection */
        z-index: 10;
    }

    .footer-cta-content h2 {
        font-size: 1.75rem !important;
    }
}

/* Desktop Styles for Footer CTA Overlay */
@media (min-width: 769px) {
    .footer-cta-content {
        position: absolute;
        top: 60%;
        /* Positioned slightly lower visually */
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        width: 100%;
    }
}