/* transfer/assets/css/transfer-style.css
 * Transfer Module Scoped Styles & Glassmorphism Design System
 */

/* Global Layout: Keep top navigation at top and footer at bottom */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.premium-top-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    z-index: 2000;
    padding: 5px 25px;
    border-radius: 0 0 28px 28px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(var(--white-rgb), 0.3);
}

.premium-top-nav.scrolled {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    border-radius: 0 0 28px 28px;
    padding: 5px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    background: rgba(var(--white-rgb), 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Scoped Premium UI Styles for emptymem.php and transfer module */
.premium-body-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    flex: 1 1 auto;
    padding: 75px 20px 20px 20px;
    box-sizing: border-box;
    min-height: 0;
}

.premium-site-footer {
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    padding: 12px 0;
    position: relative;
    z-index: 10;
}

.footer-glass-bar {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 40px;
    border-radius: var(--radius-lg, 16px);
}

.member-search-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    width: 100%;
    overflow: hidden;
}

.verification-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl, 24px);
    padding: 28px 35px;
    box-shadow: 0 25px 60px rgba(54, 1, 31, 0.08), 
                0 10px 20px rgba(0, 29, 77, 0.04);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.verification-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 75px rgba(54, 1, 31, 0.12), 
                0 15px 25px rgba(0, 29, 77, 0.05);
}

/* Ambient glow backdrops */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-wine, #36011f);
    top: -50px;
    left: -50px;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-navy, #001d4d);
    bottom: -50px;
    right: -50px;
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.illustration-container {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.secure-shield-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 15px rgba(54, 1, 31, 0.15));
}

.secure-shield-svg:hover .lock-shackle {
    transform: translateY(-1.5px);
    transition: transform 0.3s ease;
}

.search-header {
    text-align: center;
    margin-bottom: 16px;
}

.search-header h2 {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--primary-wine, #36011f);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-wine, #36011f) 0%, var(--secondary-navy, #001d4d) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-header p {
    color: var(--text-main, #333);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 90%;
    margin: 0 auto;
}

/* Format badges */
.format-badges-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.format-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm, 8px);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #666);
    transition: all 0.3s ease;
}

.format-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.format-badge.active {
    background: rgba(0, 29, 77, 0.04);
    border-color: rgba(0, 29, 77, 0.15);
    color: var(--secondary-navy, #001d4d);
}

.format-badge.active .badge-dot {
    background: var(--secondary-navy, #001d4d);
    box-shadow: 0 0 8px rgba(0, 29, 77, 0.5);
}

.format-badge.matched {
    background: rgba(46, 125, 50, 0.08);
    border-color: rgba(46, 125, 50, 0.2);
    color: #2e7d32;
}

.format-badge.matched .badge-dot {
    background: #2e7d32;
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.5);
}

.format-badge.error {
    background: rgba(211, 47, 47, 0.08);
    border-color: rgba(211, 47, 47, 0.2);
    color: #d32f2f;
}

.format-badge.error .badge-dot {
    background: #d32f2f;
    box-shadow: 0 0 8px rgba(211, 47, 47, 0.5);
}

/* Input group */
.search-input-group {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.search-icon-box {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    color: var(--text-muted, #666);
    transition: color 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.search-svg-icon {
    width: 20px;
    height: 20px;
}

.search-input {
    width: 100%;
    padding: 16px 85px 16px 52px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full, 50px);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-wine, #36011f);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--font-main, 'Inter', sans-serif);
    letter-spacing: 0.5px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-wine, #36011f);
    background: var(--white, #fff);
    box-shadow: 0 15px 35px rgba(54, 1, 31, 0.1);
    transform: scale(1.01);
}

.search-input:focus ~ .search-icon-box {
    color: var(--primary-wine, #36011f);
    transform: scale(1.08);
}

.search-input-group.is-valid .search-input {
    border-color: #2e7d32;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.08);
}

.search-input-group.is-invalid .search-input {
    border-color: #d32f2f;
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.08);
}

.search-input-group.is-valid .search-icon-box {
    color: #2e7d32;
}

.search-input-group.is-invalid .search-icon-box {
    color: #d32f2f;
}

/* Indicators */
.validation-indicator {
    position: absolute;
    right: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.validation-indicator .check-svg,
.validation-indicator .warning-svg {
    display: none;
    width: 100%;
    height: 100%;
}

.validation-indicator.valid {
    opacity: 1;
    transform: scale(1);
    color: #2e7d32;
}

.validation-indicator.valid .check-svg {
    display: block;
}

.validation-indicator.invalid {
    opacity: 1;
    transform: scale(1);
    color: #d32f2f;
}

.validation-indicator.invalid .warning-svg {
    display: block;
}

.char-count {
    position: absolute;
    right: 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light, #999);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 8px;
    border-radius: var(--radius-sm, 8px);
    pointer-events: none;
}

/* Feedback message container */
.feedback-container {
    width: 100%;
    min-height: 22px;
    text-align: center;
    margin-bottom: 10px;
}

.nic-status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, #666);
    transition: all 0.3s ease;
}

.text-success {
    color: #2e7d32 !important;
}

.text-danger {
    color: #d32f2f !important;
}

/* Result panel area overrides */
.result-area {
    width: 100%;
    min-height: 0;
    margin-top: 15px;
    transition: all 0.4s ease;
}

/* Loader */
.search-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    gap: 15px;
}

.loader-spinner-modern {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(54, 1, 31, 0.1);
    border-top-color: var(--primary-wine, #36011f);
    border-radius: 50%;
    animation: premiumSpin 0.8s linear infinite;
}

.loader-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-wine, #36011f);
    opacity: 0.8;
}

@keyframes premiumSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Error card layout styling */
.error-card {
    background: rgba(211, 47, 47, 0.04);
    border: 1px solid rgba(211, 47, 47, 0.15);
    border-radius: var(--radius-md, 12px);
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: premiumSlideIn 0.4s ease-out;
}

.error-icon {
    font-size: 1.8rem;
}

.error-message {
    font-size: 0.95rem;
    font-weight: 700;
    color: #d32f2f;
    line-height: 1.5;
}

.btn-retry {
    background: var(--primary-wine, #36011f);
    color: var(--white, #fff);
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-full, 50px);
    font-size: 0.85rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(54, 1, 31, 0.2);
    transition: all 0.3s ease;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(54, 1, 31, 0.3);
}

.btn-retry:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .verification-card {
        padding: 35px 20px;
    }
    
    .search-header h2 {
        font-size: 1.85rem;
    }
    
    .format-badges-container {
        gap: 8px;
    }
    
    .format-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .search-input {
        padding-right: 75px;
        font-size: 1.05rem;
    }
    
    .validation-indicator {
        right: 60px;
    }
}

:root {
    --primary-wine: #36011f;
    --primary-wine-rgb: 54, 1, 31;
    --accent-pink: #aa2671;
    --accent-pink-rgb: 170, 38, 113;
    --accent-gold: #c5a059;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(255, 255, 255, 0.5);
    --shadow-premium: 0 20px 50px -10px rgba(54, 1, 31, 0.12), 0 4px 6px -1px rgba(54, 1, 31, 0.04);
}

html { 
    scroll-behavior: smooth; 
}

/* Page layout wrapper to push footer to bottom */
.em-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fcf6f9;
    position: relative;
}

.em-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
    position: relative;
    overflow: hidden;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    z-index: 2;
}

.bg-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(170, 38, 113, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    top: -10%;
    left: -10%;
    animation: float-blob-1 20s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.bg-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -15%;
    right: -10%;
    animation: float-blob-2 25s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes float-blob-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 60px) scale(1.1); }
    100% { transform: translate(-40px, 100px) scale(0.9); }
}

@keyframes float-blob-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, -40px) scale(1.15); }
    100% { transform: translate(60px, -90px) scale(0.95); }
}

/* Glassmorphic Container Card */
.em-card {
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 50px 48px 40px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    z-index: 2;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.em-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 70px -15px rgba(54, 1, 31, 0.18), 0 8px 12px -2px rgba(54, 1, 31, 0.06);
}

/* Card Shake Animation for Failures */
.em-card.shake {
    animation: shake-card 0.5s ease-in-out;
}

@keyframes shake-card {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Icon Ring */
.em-icon-ring {
    width: 96px; 
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-wine-rgb), 0.07), rgba(var(--accent-pink-rgb), 0.14));
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    margin-bottom: 26px;
    position: relative;
    animation: em-pulse 3s ease-in-out infinite;
}

.em-icon-ring i { 
    font-size: 2.6rem; 
    color: var(--accent-pink); 
}

.em-icon-ring::after {
    content: ''; 
    position: absolute; 
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-pink-rgb), 0.25);
    animation: em-halo 3s ease-in-out infinite;
}

@keyframes em-pulse { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.05); } 
}

@keyframes em-halo { 
    0%, 100% { opacity: 0.6; transform: scale(1); } 
    50% { opacity: 0; transform: scale(1.16); } 
}

/* Headings & Text */
.em-title { 
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary-wine) 30%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.em-sub-si { 
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 8px;
    font-weight: 500; 
}

.em-sub-en { 
    font-size: 0.86rem;
    color: #64748b;
    margin: 0 0 32px;
    line-height: 1.5; 
}

/* Interactive Grid Pills */
.em-pills { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
    text-align: left; 
}

.em-pill { 
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 10px 14px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.em-pill:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(var(--accent-pink-rgb), 0.2);
    box-shadow: 0 10px 20px -5px rgba(54, 1, 31, 0.04);
}

.em-pill i { 
    color: var(--accent-pink);
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0; 
}

.em-pill-text { 
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.42; 
}

.em-pill-text strong { 
    display: block;
    color: var(--primary-wine);
    font-size: 0.86rem;
    margin-bottom: 2px; 
}

/* NIC Verification Input Section */
.em-form-section {
    text-align: left;
}

.em-label { 
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    padding-left: 2px;
}

.em-input-wrap { 
    position: relative; 
}

.em-input-wrap .em-ico-left {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-pink);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s, transform 0.3s;
}

.em-input-wrap:focus-within .em-ico-left { 
    color: var(--primary-wine); 
    transform: translateY(-50%) scale(1.05);
}

#verifyNicInput {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 50px 16px 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1e293b;
    background: rgba(248, 250, 252, 0.8);
    outline: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 600;
}

#verifyNicInput:focus { 
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 4px rgba(var(--accent-pink-rgb), 0.12);
    background: #fff; 
}

/* Input status indicator states */
#verifyNicInput.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

#verifyNicInput.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
    animation: shake-input 0.3s ease-in-out;
}

@keyframes shake-input {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.em-input-action {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.em-input-action i {
    transition: color 0.2s;
}

.em-input-action #emClearIcon:hover {
    color: #ef4444;
}

/* Format Helper Hint */
.em-nic-hint { 
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 8px;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 2px;
    font-weight: 500;
    transition: color 0.3s;
}

.em-nic-hint.invalid { color: #ef4444; }
.em-nic-hint.valid { color: #10b981; }

/* Dynamic Status Feedback Banner */
.em-status {
    min-height: 48px;
    margin-top: 24px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    padding: 10px 16px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(0.95);
    opacity: 0;
}

.em-status.show {
    transform: scale(1);
    opacity: 1;
}

.em-status.idle { display: none; }
.em-status.loading { 
    color: var(--accent-pink); 
    background: rgba(var(--accent-pink-rgb), 0.08); 
    border: 1px solid rgba(var(--accent-pink-rgb), 0.15);
}
.em-status.ok { 
    color: #065f46; 
    background: rgba(16, 185, 129, 0.08); 
    border: 1px solid rgba(16, 185, 129, 0.18);
}
.em-status.error { 
    color: #991b1b; 
    background: rgba(239, 68, 68, 0.08); 
    border: 1px solid rgba(239, 68, 68, 0.18);
}

/* Card Footer */
.em-card-footer { 
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px; 
}

.em-card-footer-label { 
    font-size: 0.84rem;
    color: #64748b;
    font-weight: 500; 
}

.em-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid rgba(var(--accent-pink-rgb), 0.4);
    color: var(--accent-pink);
    background: transparent;
    box-shadow: 0 4px 6px -1px rgba(var(--accent-pink-rgb), 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.em-register-btn:hover { 
    background: linear-gradient(135deg, var(--primary-wine) 0%, var(--accent-pink) 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px -5px rgba(var(--accent-pink-rgb), 0.3);
}

.em-register-btn:active {
    transform: translateY(0);
}

/* Scroll-to-top Button */
#em-scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-wine), var(--accent-pink));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(var(--accent-pink-rgb), 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.8);
    transition: opacity 0.35s, visibility 0.35s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}

#em-scroll-top.visible { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0) scale(1); 
}

#em-scroll-top:hover { 
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 28px rgba(var(--accent-pink-rgb), 0.5); 
}

#em-scroll-top:active { 
    transform: scale(0.95); 
}

#em-scroll-top::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-pink-rgb), 0.4);
    animation: em-ring 2.4s ease-out infinite;
}

@keyframes em-ring { 
    0% { opacity: 0.8; transform: scale(1); } 
    100% { opacity: 0; transform: scale(1.5); } 
}

@media (max-width: 580px) {
    .em-card { 
        padding: 38px 24px 32px; 
        border-radius: 22px; 
    }
    .em-pills { 
        grid-template-columns: 1fr; 
        gap: 10px;
    }
    .em-title { 
        font-size: 1.35rem; 
    }
    #em-scroll-top { 
        bottom: 20px; 
        right: 20px; 
        width: 42px; 
        height: 42px; 
        font-size: 1rem; 
    }
}


/* ==========================================
   MERGED STYLES FROM TRANSFER WIZARD MODULE
   ========================================== */

/* From memberinfo.php */
.profile-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.profile-header-section {
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 2.5px solid rgba(170, 38, 113, 0.12);
    padding-bottom: 25px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .profile-header-section {
        flex-direction: column;
        text-align: center;
    }
}

.profile-avatar-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #aa2671;
    box-shadow: 0 4px 15px rgba(170, 38, 113, 0.2);
}

.profile-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-details h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #36011f;
    margin: 0 0 8px 0;
}

.profile-header-details .subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.profile-grid-section {
    margin-bottom: 30px;
}

.profile-grid-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #36011f;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-grid-section-title i {
    color: #aa2671;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 25px;
}

@media (max-width: 768px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.profile-info-item {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
}

.profile-info-item:hover {
    border-color: rgba(170, 38, 113, 0.15);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(170, 38, 113, 0.03);
}

.profile-info-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.profile-info-full {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .profile-info-full {
        grid-column: span 1;
    }
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    border-top: 2.5px solid rgba(170, 38, 113, 0.12);
    padding-top: 25px;
}

@media (max-width: 600px) {
    .profile-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    gap: 8px;
    box-sizing: border-box;
}

.profile-btn-primary {
    background: linear-gradient(135deg, #36011f 0%, #aa2671 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(170, 38, 113, 0.2);
}

.profile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(170, 38, 113, 0.35);
    background: linear-gradient(135deg, #4d012d 0%, #c12f82 100%);
}

.profile-btn-secondary {
    background: transparent;
    color: #aa2671;
    border: 2px solid #aa2671;
}

.profile-btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(170, 38, 113, 0.05);
    box-shadow: 0 4px 12px rgba(170, 38, 113, 0.1);
}

/* From serviceinfo.php */
.inst-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.inst-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(170, 38, 113, 0.05);
    border-color: rgba(170, 38, 113, 0.15);
}
.inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

/* From dependent.php */
.dep-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.dep-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(170, 38, 113, 0.05);
    border-color: rgba(170, 38, 113, 0.15);
}

/* From views/sucess.php */
.dosulogin {
    padding: 60px 0;
}

.dislogin {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 10% auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dislogin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #1a365d, #2c5282, #3182ce);
}

.dislogin h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1a365d;
    line-height: 1.4;
}

.dislogin p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #4a5568;
    line-height: 1.7;
}

.btn-primary {
    background: linear-gradient(90deg, #1a365d, #2c5282);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
    background: linear-gradient(90deg, #2c5282, #3182ce);
}

.btn-primary i {
    margin-left: 10px;
}

/* From views/dashboard.php */
.trans-dash-wrapper {
    padding: 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.trans-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trans-title h2 {
    margin: 0;
    font-size: 24px;
    color: #1a202c;
    font-weight: 700;
}

.trans-title p {
    margin: 5px 0 0;
    color: #718096;
    font-size: 14px;
}

.trans-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.trans-chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .trans-chart-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #edf2f7;
}

.chart-card h3 {
    margin: 0 0 20px;
    font-size: 16px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trans-list-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #edf2f7;
}
/* Appended child card and section title styles */
.child-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.child-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(170, 38, 113, 0.05);
    border-color: rgba(170, 38, 113, 0.15);
}

.pf-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #36011f;
    border-bottom: 2px solid rgba(170, 38, 113, 0.1);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}
/* /* ── Stepper Navigation Styles (for transfermenu.php) ── */
.portal-stepper-container {
    padding: 10px 0;
    margin-bottom: 20px;
    width: 100%;
}

.tab-nav {
    display: flex;
    background: rgba(54, 1, 31, 0.04);
    padding: 6px;
    border-radius: 30px;
    gap: 6px;
    flex: 1;
    margin: 0 15px;
    max-width: 100%;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    border: 1px solid rgba(54, 1, 31, 0.08);
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: 8px 18px;
    border-radius: 24px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    white-space: nowrap;
    position: relative;
    border: 1px solid transparent;
}

.tab-item.active {
    background: linear-gradient(135deg, #36011f 0%, #590635 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(54, 1, 31, 0.25);
    border-color: transparent;
    transform: translateY(-2px);
    cursor: default;
}

.tab-item.active .step-num {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 800;
}

.tab-item.completed {
    color: #36011f;
}

.tab-item.completed .step-num {
    background: rgba(54, 1, 31, 0.08);
    color: #36011f;
    border: 1px solid rgba(54, 1, 31, 0.2);
}

.tab-item.completed:hover:not(.active) {
    background: rgba(54, 1, 31, 0.06);
    border-color: rgba(54, 1, 31, 0.15);
    color: #36011f;
    transform: translateY(-1px);
}

.tab-item:hover:not(.active):not(.locked):not(.completed) {
    background: rgba(255, 255, 255, 0.8);
    color: #222;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.tab-item.locked {
    cursor: not-allowed;
    opacity: 0.45;
    filter: grayscale(0.8);
    pointer-events: none;
}

.tab-item.locked .step-num {
    background: rgba(0, 0, 0, 0.05);
    color: #888;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.step-num {
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.04);
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .tab-item {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .tab-nav {
        margin: 0 12px;
    }
}

@media (max-width: 768px) {
    .tab-nav {
        margin: 0 8px;
        padding: 4px;
        border-radius: 20px;
    }
    .tab-item {
        padding: 5px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }
    .step-num {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
}