/* ==========================================================================
   GMP Server Project Showcase - Purple & White Theme
   Ultra Decent, Modern SaaS Aesthetic & Highly Mobile Responsive
   ========================================================================== */

:root {
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #5B21B6;
    --primary-gradient: linear-gradient(135deg, #7C3AED 0%, #6366F1 50%, #4F46E5 100%);
    --primary-gradient-subtle: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    --accent: #EC4899;
    --accent-glow: rgba(124, 58, 237, 0.28);
    
    --bg-main: #F8F9FE;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --border-light: rgba(124, 58, 237, 0.1);
    --border-hover: rgba(124, 58, 237, 0.35);
    
    --text-heading: #0F172A;
    --text-body: #475569;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;
    
    --success: #10B981;
    --success-subtle: #ECFDF5;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.05);
    --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.08);
    --shadow-lg: 0 16px 36px rgba(124, 58, 237, 0.12);
    --shadow-glow: 0 10px 28px rgba(124, 58, 237, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Background Animated Glow Blobs */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb-1 {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-orb-2 {
    position: absolute;
    top: 45%;
    left: -150px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.10) 0%, rgba(255, 255, 255, 0) 70%);
    animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 45px) scale(1.08); }
    100% { transform: translate(-25px, 20px) scale(0.96); }
}

.main-wrapper {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }
}

/* Navigation Bar (Compact & Sleek) */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

@media (max-width: 768px) {
    .nav-container {
        height: 52px;
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-heading);
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.28);
    transition: var(--transition);
    flex-shrink: 0;
}

.brand-logo:hover .brand-icon {
    transform: rotate(4deg) scale(1.04);
}

.brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.4px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 14px;
    }
}

.brand-sub {
    font-size: 8.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

@media (max-width: 640px) {
    .brand-sub {
        display: none;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-clock {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
}

@media (max-width: 820px) {
    .nav-clock {
        display: none;
    }
}

/* Buttons (Compact & Refined) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.35);
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-gradient-subtle);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 5px 11px;
    font-size: 11px;
}

@media (max-width: 480px) {
    .btn-sm {
        padding: 5px 9px;
        font-size: 10.5px;
    }
}

/* Hero Section (Compact & Sweet) */
.hero-section {
    padding: 24px 0 14px;
    text-align: center;
    position: relative;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 18px 0 10px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-gradient-subtle);
    border: 1px solid var(--border-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.06);
}

.hero-title {
    font-size: clamp(20px, 3.8vw, 28px);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.24;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 520px;
    margin: 0 auto 18px;
    font-size: clamp(12px, 1.8vw, 13px);
    color: var(--text-body);
    line-height: 1.48;
    padding: 0 10px;
}

@media (max-width: 640px) {
    .hero-desc {
        margin-bottom: 14px;
    }
}

/* Search and Filter Area (Compact & Sweet) */
.filter-container {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: var(--shadow-xs);
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .filter-container {
        padding: 10px 12px;
        margin-bottom: 18px;
    }
}

.search-bar-wrap {
    position: relative;
    margin-bottom: 10px;
}

.search-input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-heading);
    background: #F8FAFC;
    transition: var(--transition);
    outline: none;
    height: 38px;
}

.search-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 13px;
}

/* Category Filter Pills (Touch-carousel on Mobile) */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

@media (max-width: 768px) {
    .category-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin: 0 -4px;
        padding-left: 4px;
        padding-right: 4px;
        scrollbar-width: none;
    }
    .category-pills::-webkit-scrollbar {
        display: none;
    }
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-body);
    background: #F1F5F9;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.category-pill:hover {
    background: var(--primary-gradient-subtle);
    color: var(--primary);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.category-pill.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.28);
}

.category-pill .pill-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
}

.category-pill:not(.active) .pill-count {
    background: #E2E8F0;
    color: var(--text-body);
}

/* Catalog Grid (Compact & Dense) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 36px;
    }
}

/* Project Card */
.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

/* Card Top Bar (Upside, ABOVE Image Slider) */
.card-top-bar {
    padding: 8px 12px;
    background: #FAF8FE;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-top-left {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    flex-wrap: wrap;
}

.card-top-right {
    flex-shrink: 0;
}

.badge-tag {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.badge-category {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.22);
}

.badge-badge {
    background: #EDE9FE;
    color: var(--primary-dark);
}

.card-module-pill {
    background: #1E1B4B;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Card Image Slider Starts Below Top Bar */
.slider-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: #F8FAFC;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease-out;
}

.slide-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

/* Always show controls on mobile devices with touch */
@media (hover: none), (max-width: 768px) {
    .slider-nav-btn {
        opacity: 0.85;
    }
}

.project-card:hover .slider-nav-btn {
    opacity: 1;
}

.slider-prev { left: 8px; }
.slider-next { right: 8px; }

.slider-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.06);
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    width: 14px;
    border-radius: 10px;
}

/* Card Content (Compact & Sweet Typography) */
.card-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (max-width: 640px) {
    .card-content {
        padding: 10px 12px;
    }
}

.card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 4px;
    line-height: 1.3;
    transition: var(--transition);
}

.card-title:hover {
    color: var(--primary);
}

.card-desc {
    font-size: 12px;
    color: var(--text-body);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

/* Tags List */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.tag-item {
    font-size: 10.5px;
    background: #F1F5F9;
    color: var(--text-body);
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}

/* Module Preview Pills */
.card-modules-preview {
    background: #F8FAFC;
    border: 1px dashed #E2E8F0;
    border-radius: 8px;
    padding: 7px 10px;
    margin-bottom: 12px;
}

.module-pill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-heading);
    padding: 3px 0;
}

.module-pill-item:not(:last-child) {
    border-bottom: 1px solid #EDF2F7;
}

.module-pill-pill {
    font-size: 9.5px;
    background: var(--primary-gradient-subtle);
    color: var(--primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Card Action Footer */
.card-actions {
    margin-top: auto;
    display: flex;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
}

.btn-demo {
    flex: 2;
    background: var(--primary-gradient);
    color: white;
    padding: 7px 12px;
    font-size: 11.5px;
}

.btn-mail {
    flex: 1;
    background: white;
    color: var(--text-heading);
    border: 1px solid #E2E8F0;
    padding: 7px 10px;
    font-size: 11.5px;
}

.btn-mail:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-gradient-subtle);
}

@media (max-width: 380px) {
    .card-actions {
        flex-direction: column;
    }
    .btn-mail, .btn-demo {
        width: 100%;
        flex: auto;
    }
}

/* ==========================================================================
   Modal Dialog (Ultra Decent & Native Bottom Sheet on Mobile)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-dialog {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-dialog {
    transform: translateY(0) scale(1);
}

@media (max-width: 640px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .modal-dialog {
        border-radius: 18px 18px 0 0;
        max-height: 92vh;
        transform: translateY(100%);
    }
    .modal-overlay.active .modal-dialog {
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .modal-header {
        padding: 10px 14px;
    }
}

.modal-title {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .modal-title {
        font-size: 13.5px;
    }
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 8px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.modal-body {
    padding: 14px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .modal-body {
        padding: 12px 14px;
    }
}

/* WhatsApp OTP Verification Styles (Compact, Sweet & Decent) */
.otp-verification-card {
    background: #FAF5FF;
    border: 1px solid #D8B4FE;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
}

.otp-title {
    font-size: 13px;
    font-weight: 750;
    color: #581C87;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.otp-subtitle {
    font-size: 11px;
    color: #7E22CE;
    margin-bottom: 10px;
    line-height: 1.4;
}

.otp-form-vertical {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.input-compact-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-mini {
    position: absolute;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-control-compact {
    width: 100%;
    padding: 7px 10px 7px 32px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 12px;
    color: var(--text-heading);
    background: white;
    outline: none;
    transition: var(--transition);
}

.form-control-compact.input-phone {
    padding-left: 54px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.form-control-compact:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2.5px rgba(124, 58, 237, 0.12);
}

.btn-whatsapp-otp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    font-weight: 700;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.28);
    transition: var(--transition);
    width: 100%;
}

.btn-whatsapp-otp:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(37, 211, 102, 0.38);
}

.otp-code-grid {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .otp-code-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .otp-code-input {
        max-width: 100% !important;
        width: 100%;
    }
    .otp-code-grid .btn {
        width: 100%;
    }
}

.otp-code-input {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 4px;
    text-align: center;
    max-width: 130px;
    padding: 6px 10px;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    outline: none;
    background: white;
}

.otp-code-input:focus {
    box-shadow: 0 0 0 2.5px rgba(124, 58, 237, 0.18);
}

.verified-device-card {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1px solid #10B981;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.verified-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #065F46;
}

.credentials-shield-wrap {
    position: relative;
    transition: var(--transition);
}

.credentials-locked {
    filter: blur(5px);
    opacity: 0.30;
    pointer-events: none;
    user-select: none;
}

.credentials-locked-notice {
    background: #FFFBEB;
    border: 1px dashed #F59E0B;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
    color: #92400E;
    font-weight: 700;
    font-size: 11px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 12px;
    outline: none;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2.5px rgba(124, 58, 237, 0.10);
}

/* Module Tabs in Modal (Compact & Sweet) */
.module-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    border-bottom: 1.5px solid #E2E8F0;
    padding-bottom: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.module-tabs::-webkit-scrollbar {
    display: none;
}

.module-tab-btn {
    padding: 5px 11px;
    border-radius: var(--radius-full);
    border: none;
    background: #F1F5F9;
    color: var(--text-body);
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.module-tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.28);
}

/* Module Detail Card */
.module-details-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px;
}

@media (max-width: 640px) {
    .module-details-card {
        padding: 10px;
    }
}

.credential-row {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    gap: 6px;
}

@media (max-width: 440px) {
    .credential-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .btn-copy {
        align-self: flex-end;
    }
}

.cred-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.cred-label {
    font-size: 9.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.cred-val-text {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-heading);
    font-family: monospace;
    letter-spacing: 0.3px;
    word-break: break-all;
}

.btn-copy {
    background: var(--primary-gradient-subtle);
    color: var(--primary);
    border: none;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: var(--primary);
    color: white;
}

/* Launch Button */
.btn-launch-demo {
    width: 100%;
    margin-top: 10px;
    padding: 9px 14px;
    font-size: 12px;
    border-radius: var(--radius-full);
}

/* Custom Toast Alerts */
.toast-container {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 90vw;
}

@media (max-width: 640px) {
    .toast-container {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }
    .toast-item {
        min-width: 0 !important;
        width: 100%;
    }
}

.toast-item {
    background: white;
    border-left: 3px solid var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-heading);
    min-width: 250px;
    transform: translateX(100%);
    opacity: 0;
    animation: toastSlideIn 0.25s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
    to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--primary); }

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--border-light);
    padding: 24px 0 16px;
    text-align: center;
    margin-top: 36px;
}

.footer-text {
    font-size: 11.5px;
    color: var(--text-muted);
}

.footer-text strong {
    color: var(--text-heading);
}
