/* ==========================================================================
   MASPAY INNER PAGES PRO MAX OVERHAUL
   Design System: Professional Elegant Glassmorphism
   Theme: Fintech & Government Services
   ========================================================================== */

:root {
    --pro-glass-bg: rgba(255, 255, 255, 0.85);
    --pro-glass-border: rgba(255, 255, 255, 0.4);
    --pro-glass-shadow: 0 10px 40px -10px rgba(12, 26, 58, 0.08);
    --pro-glass-hover: 0 20px 50px -10px rgba(12, 26, 58, 0.15);

    --pro-text-main: #0F172A;
    /* Slate 900 */
    --pro-text-muted: #475569;
    /* Slate 600 */
    --pro-text-light: #64748B;
    /* Slate 500 */

    --pro-primary: #0c1a3a;
    --pro-secondary: #f59e0b;
    --pro-accent: #0ea5e9;
    --pro-success: #10b981;

    --pro-radius-sm: 8px;
    --pro-radius-md: 16px;
    --pro-radius-lg: 24px;
    --pro-radius-xl: 32px;

    --pro-space-xs: 4px;
    --pro-space-sm: 8px;
    --pro-space-md: 16px;
    --pro-space-lg: 24px;
    --pro-space-xl: 32px;
    --pro-space-2xl: 48px;
    --pro-space-3xl: 64px;
    --pro-space-4xl: 96px;
    --pro-space-5xl: 120px;
}

/* Base Body Tuning for Inner Pages */
body:not(.home-page) {
    background-color: #F8FAFC;
    color: var(--pro-text-main);
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   PRO MAX HERO SECTION
   ========================================================================== */
.pro-hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: var(--pro-primary);
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.pro-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 120%, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.pro-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pro-accent);
    margin-bottom: var(--pro-space-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pro-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--pro-space-lg);
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pro-hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   PRO MAX GLASS CONTAINERS
   ========================================================================== */
.pro-page-wrapper {
    padding: var(--pro-space-4xl) 0;
    position: relative;
    z-index: 10;
}

.pro-page-wrapper .pro-cta-banner::before {
    display: none;
}

.pro-glass-card {
    background: var(--pro-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--pro-glass-border);
    border-radius: var(--pro-radius-lg);
    box-shadow: var(--pro-glass-shadow);
    padding: var(--pro-space-3xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 36px;
}

.pro-glass-card div {
    margin-top: var(--pro-space-md);
}

.pro-glass-card:hover {
    box-shadow: var(--pro-glass-hover);
    transform: translateY(-4px);
}

/* Typography Inside Cards */
.pro-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--pro-primary);
    margin-bottom: var(--pro-space-lg);
}

.pro-text-lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--pro-text-muted);
    margin-bottom: var(--pro-space-lg);
}

/* ==========================================================================
   PRO MAX BENTO GRIDS (Services)
   ========================================================================== */
.pro-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--pro-space-lg);
}

.pro-bento-item {
    background: #fff;
    border-radius: var(--pro-radius-md);
    padding: var(--pro-space-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: var(--pro-space-md);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--pro-text-main);
    font-weight: 600;
    cursor: pointer;
}

.pro-bento-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: rgba(14, 165, 233, 0.2);
    color: var(--pro-primary);
}

.pro-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--pro-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-blue {
    background: rgba(14, 165, 233, 0.1);
    color: var(--pro-accent);
}

.icon-gold {
    background: rgba(245, 158, 11, 0.1);
    color: var(--pro-secondary);
}

.icon-teal {
    background: rgba(16, 185, 129, 0.1);
    color: var(--pro-success);
}

.icon-navy {
    background: rgba(12, 26, 58, 0.1);
    color: var(--pro-primary);
}

/* ==========================================================================
   PRO MAX TEXT FORMATTING (Legal / Blog / Readability)
   ========================================================================== */
.pro-reading-layout {
    max-width: 800px;
    margin: 0 auto;
}

.pro-reading-layout h1,
.pro-reading-layout h2,
.pro-reading-layout h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--pro-primary);
    margin-top: var(--pro-space-2xl);
    margin-bottom: var(--pro-space-md);
    font-weight: 700;
}

.pro-reading-layout p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--pro-text-muted);
    margin-bottom: var(--pro-space-lg);
}

.pro-reading-layout ul {
    margin-bottom: var(--pro-space-lg);
    padding-left: 0;
    list-style: none;
}

.pro-reading-layout li {
    position: relative;
    padding-left: var(--pro-space-xl);
    margin-bottom: var(--pro-space-sm);
    line-height: 1.6;
    color: var(--pro-text-muted);
}

.pro-reading-layout li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--pro-accent);
    font-weight: bold;
}

/* Storytelling Enhancements */
.pro-story-image-wrap {
    position: relative;
    border-radius: var(--pro-radius-lg);
    overflow: hidden;
    box-shadow: var(--pro-glass-shadow);
}

.pro-story-image-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.pro-story-image-wrap:hover img {
    transform: scale(1.05);
}

.pro-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pro-space-md);
    margin-top: var(--pro-space-lg);
}

.pro-stat-chip {
    background: #fff;
    padding: var(--pro-space-md);
    border-radius: var(--pro-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.pro-stat-chip .val {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--pro-primary);
}

.pro-stat-chip .lab {
    font-size: 13px;
    font-weight: 600;
    color: var(--pro-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Document Specific Overrides */
.pro-doc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--pro-space-3xl);
}

.pro-doc-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: var(--pro-space-xl);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.pro-doc-card:hover .pro-doc-icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--pro-primary);
    color: #fff !important;
}

.pro-doc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--pro-primary);
    margin-bottom: var(--pro-space-sm);
}

.pro-doc-desc {
    font-size: 15px;
    color: var(--pro-text-muted);
    line-height: 1.6;
    margin-bottom: var(--pro-space-xl);
    flex-grow: 1;
}

.pro-notice-box {
    background: rgba(14, 165, 233, 0.05);
    border-left: 4px solid var(--pro-accent);
    padding: var(--pro-space-lg);
    border-radius: var(--pro-radius-md);
    display: flex;
    gap: var(--pro-space-md);
    align-items: center;
}

/* Service Detail Specifics */
.pro-service-main-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--pro-space-3xl);
    align-items: start;
}

.pro-service-visual {
    position: sticky;
    top: 120px;
    border-radius: var(--pro-radius-xl);
    overflow: hidden;
    box-shadow: var(--pro-glass-shadow);
    border: 1px solid var(--pro-glass-border);
}

.pro-service-visual img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.pro-service-visual:hover img {
    transform: scale(1.05);
}

.pro-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--pro-space-md);
    margin: var(--pro-space-xl) 0;
}

.pro-benefit-item {
    background: #fff;
    padding: var(--pro-space-lg);
    border-radius: var(--pro-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: var(--pro-space-md);
    font-weight: 600;
    color: var(--pro-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.pro-benefit-item i {
    font-size: 20px;
    color: var(--pro-accent);
}

.pro-cta-banner {
    background: linear-gradient(135deg, var(--pro-primary) 0%, #1e3a8a 100%);
    border-radius: var(--pro-radius-lg);
    padding: var(--pro-space-2xl);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pro-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

@media (max-width: 991px) {
    .pro-service-main-wrapper {
        grid-template-columns: 1fr;
    }

    .pro-service-visual {
        position: static;
        margin-bottom: var(--pro-space-2xl);
    }
}

/* ==========================================================================
   PRO MAX FORMS & AUTH (Login / Register / Contact)
   ========================================================================== */
.pro-auth-container {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    padding: var(--pro-space-5xl) 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.pro-auth-card {
    background: #fff;
    border-radius: var(--pro-radius-xl);
    box-shadow: 0 25px 50px -12px rgba(12, 26, 58, 0.15);
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.pro-auth-form {
    padding: var(--pro-space-4xl);
    flex: 1;
}

.pro-auth-marketing {
    flex: 1;
    background: linear-gradient(135deg, var(--pro-primary), #1e3a8a);
    padding: var(--pro-space-4xl);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pro-auth-marketing::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.pro-input-group {
    margin-bottom: var(--pro-space-lg);
}

.pro-input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pro-text-main);
    margin-bottom: var(--pro-space-sm);
}

.pro-input {
    width: 100%;
    padding: 14px 16px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--pro-radius-sm);
    color: var(--pro-text-main);
    font-size: 15px;
    transition: all 0.2s ease;
}

.pro-input:focus {
    outline: none;
    border-color: var(--pro-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.pro-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: var(--pro-primary);
    color: #fff;
    border: none;
    border-radius: var(--pro-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pro-btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2);
}

/* ==========================================================================
   PRO MAX TABLES
   ========================================================================== */
.pro-table-wrapper {
    margin: var(--pro-space-xl) 0;
    border-radius: var(--pro-radius-md);
    overflow: hidden;
    border: 1px solid var(--pro-glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pro-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
}

.pro-table th {
    background: var(--pro-primary);
    color: #fff;
    padding: var(--pro-space-md);
    text-align: left;
    font-weight: 600;
}

.pro-table td {
    padding: var(--pro-space-md);
    border-bottom: 1px solid #f1f5f9;
    color: var(--pro-text-muted);
}

.pro-table tr:last-child td {
    border-bottom: none;
}

.pro-table tr:nth-child(even) {
    background: #f8fafc;
}

.pro-table tr:hover {
    background: #f1f5f9;
}

/* ==========================================================================
   PRO MAX LAYOUT UTILITIES & V3 GRIDS
   ========================================================================== */
.pro-flex-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pro-flex-column {
    display: flex !important;
    flex-direction: column !important;
}

.pro-flex-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.pro-flex-wrap {
    flex-wrap: wrap !important;
}

.pro-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--pro-space-2xl) !important;
}

.pro-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--pro-space-xl) !important;
    width: 100% !important;
}

.pro-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--pro-space-lg) !important;
    width: 100% !important;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .pro-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .pro-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .pro-auth-card {
        flex-direction: column !important;
    }
}

@media (max-width: 767px) {

    .pro-grid-3,
    .pro-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Atomic Utilities (Force isolated system) */
.pro-d-block {
    display: block !important;
}

.pro-h-100 {
    height: 100% !important;
}

.pro-mt-auto {
    margin-top: auto !important;
}

.pro-mb-1 {
    margin-bottom: 0.25rem !important;
}

.pro-mb-2 {
    margin-bottom: 0.5rem !important;
}

.pro-mb-4 {
    margin-bottom: 1.5rem !important;
}

.pro-mb-5 {
    margin-bottom: 3rem !important;
}

.pro-mt-5 {
    margin-top: 3rem !important;
}

.pro-me-1 {
    margin-right: 0.25rem !important;
}

.pro-me-2 {
    margin-right: 0.5rem !important;
}

.pro-me-3 {
    margin-right: 1rem !important;
}

.pro-pt-4 {
    padding-top: 1.5rem !important;
}

.pro-gap-3 {
    gap: 1rem !important;
}

.pro-w-100 {
    width: 100% !important;
}

.pro-mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.pro-text-center {
    text-align: center !important;
}

.pro-d-flex {
    display: flex !important;
}

.pro-inline-flex {
    display: inline-flex !important;
}

.pro-align-center {
    align-items: center !important;
}