/* ============================================================
   UI PRO MAX THEME — Master CSS
   Jurnal Pradaya | OJS 3.4
   Premium Glassmorphism Design System
   ============================================================ */

/* ============ 1. DESIGN TOKENS (Light Mode) ============ */
:root {
    --pm-primary:        #1e6292;
    --pm-primary-dark:   #15476a;
    --pm-primary-light:  #2d80bc;
    --pm-secondary:      #0ea5e9;
    --pm-accent:         #0284c7;
    --pm-success:        #10b981;
    --pm-warning:        #f59e0b;
    --pm-danger:         #ef4444;

    --pm-bg:             #f8fafc;
    --pm-bg-alt:         #f1f5f9;
    --pm-card:           rgba(255,255,255,0.85);
    --pm-card-solid:     #ffffff;
    --pm-border:         rgba(30,98,146,0.12);
    --pm-border-light:   rgba(30,98,146,0.06);

    --pm-text:           #1e293b;
    --pm-text-secondary: #475569;
    --pm-muted:          #64748b;
    --pm-text-inverse:   #f8fafc;

    --pm-radius-sm:      8px;
    --pm-radius:         14px;
    --pm-radius-lg:      20px;
    --pm-radius-xl:      28px;

    --pm-shadow:         0 4px 24px -2px rgba(30,98,146,0.10);
    --pm-shadow-hover:   0 12px 40px -8px rgba(30,98,146,0.20);
    --pm-shadow-card:    0 10px 30px -10px rgba(30,98,146,0.08), 0 4px 12px -4px rgba(30,98,146,0.03);
    --pm-shadow-button:  0 4px 14px rgba(30,98,146,0.30);

    --pm-transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pm-transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --pm-header-bg:      rgba(255,255,255,0.80);
    --pm-footer-bg:      #0f172a;
    --pm-footer-text:    #94a3b8;
}

/* ============ 2. DARK MODE TOKENS ============ */
[data-theme="dark"] {
    --pm-bg:             #0f172a;
    --pm-bg-alt:         #1e293b;
    --pm-card:           rgba(30,41,59,0.85);
    --pm-card-solid:     #1e293b;
    --pm-border:         rgba(30,98,146,0.20);
    --pm-border-light:   rgba(30,98,146,0.10);

    --pm-text:           #e2e8f0;
    --pm-text-secondary: #94a3b8;
    --pm-muted:          #64748b;
    --pm-text-inverse:   #1e293b;

    --pm-shadow:         0 4px 24px -2px rgba(0,0,0,0.30);
    --pm-shadow-hover:   0 12px 40px -8px rgba(30,98,146,0.30);
    --pm-shadow-card:    0 10px 30px -10px rgba(0,0,0,0.20), 0 4px 12px -4px rgba(0,0,0,0.10);

    --pm-header-bg:      rgba(15,23,42,0.85);
    --pm-footer-bg:      #020617;
    --pm-footer-text:    #64748b;
}

/* ============ 3. GLOBAL RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: var(--pm-bg) !important;
    background-image:
        radial-gradient(at 0% 0%, rgba(30,98,146,0.06) 0px, transparent 55%),
        radial-gradient(at 100% 0%, rgba(14,165,233,0.05) 0px, transparent 55%),
        radial-gradient(at 50% 100%, rgba(2,132,199,0.05) 0px, transparent 55%) !important;
    color: var(--pm-text) !important;
    line-height: 1.7;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(at 0% 0%, rgba(30,98,146,0.10) 0px, transparent 55%),
        radial-gradient(at 100% 0%, rgba(14,165,233,0.08) 0px, transparent 55%),
        radial-gradient(at 50% 100%, rgba(2,132,199,0.08) 0px, transparent 55%) !important;
}

/* ============ 4. TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: var(--pm-text) !important;
    line-height: 1.3;
}
h1 { font-size: 2.2rem !important; }
h2 { font-size: 1.6rem !important; letter-spacing: -0.3px; }
h3 { font-size: 1.25rem !important; }

p, li, span, div { color: var(--pm-text); }

a {
    color: var(--pm-primary) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
a:hover { color: var(--pm-primary-dark) !important; }

/* ============ 5. READING PROGRESS BAR ============ */
.pm_reading_progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--pm-primary), var(--pm-accent), var(--pm-secondary));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(30,98,146,0.4);
}

/* ============ 6. HEADER / NAVIGATION BAR ============ */
.premium_header_bar {
    background: var(--pm-header-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--pm-border) !important;
    box-shadow: 0 1px 12px rgba(30,98,146,0.08) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.premium_header_container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    height: 72px !important;
    gap: 1.5rem;
}

/* Site Branding */
.premium_site_branding {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    flex-shrink: 0;
}

.premium_logo_img img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.premium_logo_text {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    color: var(--pm-primary) !important;
    text-decoration: none !important;
    letter-spacing: -0.5px !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.premium_logo_icon {
    height: 36px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

/* Primary Navigation */
.premium_nav_primary ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    align-items: center !important;
}

.premium_nav_primary ul > li > a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: var(--pm-text) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 10px !important;
    transition: var(--pm-transition) !important;
    text-decoration: none !important;
    display: block !important;
    white-space: nowrap !important;
}

.premium_nav_primary ul > li > a:hover {
    background: rgba(30,98,146,0.08) !important;
    color: var(--pm-primary) !important;
    transform: translateY(-1px) !important;
}

/* Header Right Group */
.premium_header_right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Dark Mode Toggle */
.pm_dark_toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--pm-border);
    background: var(--pm-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--pm-transition);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.pm_dark_toggle:hover {
    border-color: var(--pm-primary);
    transform: rotate(15deg) scale(1.05);
    box-shadow: 0 0 16px rgba(30,98,146,0.2);
}

.pm_icon_sun, .pm_icon_moon {
    position: absolute;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.pm_icon_moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.pm_icon_sun  { opacity: 1; transform: rotate(0deg) scale(1); }

[data-theme="dark"] .pm_icon_moon { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .pm_icon_sun  { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* User Navigation */
.premium_nav_user ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    align-items: center !important;
}

.premium_nav_user ul > li > a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.825rem !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    display: block !important;
    transition: var(--pm-transition) !important;
    white-space: nowrap;
}

.premium_nav_user .btn_login,
.premium_nav_user .btn_dashboard {
    background: var(--pm-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(30,98,146,0.25) !important;
}

.premium_nav_user .btn_login:hover,
.premium_nav_user .btn_dashboard:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30,98,146,0.35) !important;
    background: var(--pm-primary-dark) !important;
    color: #fff !important;
}

.premium_nav_user .btn_logout,
.premium_nav_user .btn_register {
    background: transparent !important;
    color: var(--pm-primary) !important;
    border: 1.5px solid var(--pm-primary) !important;
    box-shadow: none !important;
}

.premium_nav_user .btn_logout:hover,
.premium_nav_user .btn_register:hover {
    background: rgba(30,98,146,0.06) !important;
    transform: translateY(-2px) !important;
}

/* Hide default OJS navigation styles */
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_site_name_wrapper { display: none !important; }

/* ============ 7. HERO SECTION ============ */
.pm_hero {
    background:
        radial-gradient(circle at top right, rgba(30,98,146,0.12), transparent 60%),
        radial-gradient(circle at bottom left, rgba(14,165,233,0.08), transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-radius: var(--pm-radius-xl);
    padding: 5rem 3.5rem;
    margin-bottom: 3rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.3);
}

.pm_hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, #1e6292 0deg, #0ea5e9 120deg, #0284c7 240deg, #1e6292 360deg);
    opacity: 0.05;
    animation: pmRotate 25s linear infinite;
}

.pm_hero_content {
    position: relative;
    z-index: 2;
}

.pm_hero h1 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 3rem !important;
    letter-spacing: -1.5px !important;
    margin-bottom: 0.75rem !important;
    color: #fff !important;
    background: linear-gradient(to bottom right, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pm_hero_subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pm_hero_badge {
    display: inline-block;
    background: rgba(30,98,146,0.15);
    color: #a5b4fc;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(30,98,146,0.2);
}

.pm_hero_cta {
    margin-top: 2rem;
}

.pm_btn_hero_submit {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #1e6292 0%, #15476a 100%);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pm_btn_hero_submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #15476a 0%, #4338ca 100%);
}

.pm_btn_hero_submit svg {
    transition: transform 0.3s ease;
}

.pm_btn_hero_submit:hover svg {
    transform: translate(3px, -2px);
}


/* ============ 8. COUNTER STATS WIDGET ============ */
.pm_stats_section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: -2rem 0 3rem 0;
    position: relative;
    z-index: 3;
}

.pm_stat_card {
    background: var(--pm-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--pm-shadow-card);
    transition: var(--pm-transition-bounce);
    position: relative;
    overflow: hidden;
}

.pm_stat_card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pm-primary), var(--pm-accent));
    border-radius: 3px 3px 0 0;
}

.pm_stat_card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--pm-shadow-hover);
}

.pm_stat_icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.pm_stat_number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pm-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pm_stat_label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pm-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ 9. ARTICLE / ISSUE CARDS ============ */
.obj_article_summary,
.obj_issue_summary {
    background: var(--pm-card) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid var(--pm-border) !important;
    border-radius: var(--pm-radius-lg) !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: var(--pm-shadow-card) !important;
    transition: var(--pm-transition-bounce) !important;
    position: relative !important;
    overflow: hidden !important;
}

.obj_article_summary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(30,98,146,0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.obj_article_summary:hover,
.obj_issue_summary:hover {
    transform: translateY(-6px) scale(1.005) !important;
    box-shadow: var(--pm-shadow-hover) !important;
    border-color: rgba(30,98,146,0.25) !important;
}

.obj_article_summary:hover::after { opacity: 1; }

/* Article titles */
.obj_article_summary .title a,
.obj_article_summary h2 a,
.obj_article_summary h3 a,
.obj_issue_summary .title a {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    color: var(--pm-text) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.obj_article_summary .title a:hover,
.obj_issue_summary .title a:hover {
    color: var(--pm-primary) !important;
}

.obj_article_summary .meta {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--pm-muted);
}

.obj_article_summary .authors {
    color: var(--pm-text-secondary);
    font-weight: 500;
}

/* Galley Links */
.galleys_links {
    display: flex !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin-top: 1rem !important;
    flex-wrap: wrap;
}

.galleys_links li a,
a.cmp_download_link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-accent)) !important;
    color: #fff !important;
    padding: 0.45rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    transition: var(--pm-transition) !important;
    box-shadow: var(--pm-shadow-button) !important;
    border: none !important;
}

.galleys_links li a:hover,
a.cmp_download_link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30,98,146,0.40) !important;
    color: #fff !important;
}

/* ============ 10. SIDEBAR BLOCKS ============ */
.pkp_block {
    background: var(--pm-card) !important;
    border: 1px solid var(--pm-border) !important;
    border-radius: var(--pm-radius) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: var(--pm-shadow) !important;
    transition: var(--pm-transition);
}

.pkp_block h2,
.pkp_block .title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    color: var(--pm-primary) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.6rem !important;
    border-bottom: 2px solid var(--pm-border) !important;
}

.pkp_block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkp_block ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--pm-border-light);
}

.pkp_block ul li:last-child { border-bottom: none; }

/* Download Template Banner */
.pm_download_banner {
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-accent));
    border-radius: var(--pm-radius) !important;
    padding: 1.5rem !important;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border: none !important;
    animation: pmGlow 3s ease-in-out infinite;
}

.pm_download_banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255,255,255,0.1) 25%, transparent 50%);
    animation: pmRotate 4s linear infinite;
}

.pm_download_banner * { position: relative; z-index: 2; }

.pm_download_banner .pm_dl_icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.pm_download_banner .pm_dl_title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff !important;
    margin-bottom: 0.3rem;
}
.pm_download_banner .pm_dl_desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}
.pm_download_banner .pm_dl_btn {
    display: inline-block;
    background: #fff;
    color: var(--pm-primary) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--pm-transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.pm_download_banner .pm_dl_btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: var(--pm-primary-dark) !important;
}

/* ============ 11. BUTTONS ============ */
.pkp_button,
button[type="submit"],
input[type="submit"] {
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-accent)) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.65rem 1.5rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: var(--pm-transition) !important;
    box-shadow: var(--pm-shadow-button) !important;
}

.pkp_button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30,98,146,0.40) !important;
    filter: brightness(1.05) !important;
    color: #fff !important;
}

/* ============ 12. FORMS ============ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    border: 1.5px solid var(--pm-border) !important;
    border-radius: 10px !important;
    padding: 0.65rem 1rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    background: var(--pm-card-solid) !important;
    color: var(--pm-text) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--pm-primary) !important;
    box-shadow: 0 0 0 3px rgba(30,98,146,0.12) !important;
    outline: none !important;
}

/* ============ 13. INDEXING BADGES GRID ============ */
.pm_indexing_section {
    margin: 3rem 0;
    text-align: center;
}

.pm_indexing_section h2 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem;
}

.pm_indexing_subtitle {
    color: var(--pm-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.pm_indexing_grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.pm_indexing_badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 70px;
    background: var(--pm-card);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 0.75rem 1rem;
    transition: var(--pm-transition-bounce);
    filter: grayscale(100%) opacity(0.5);
    cursor: default;
}

.pm_indexing_badge:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-4px) scale(1.08);
    box-shadow: var(--pm-shadow-hover);
    border-color: var(--pm-primary);
}

.pm_indexing_badge img {
    max-height: 36px;
    max-width: 100%;
    object-fit: contain;
}

.pm_indexing_badge span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--pm-text-secondary);
    text-align: center;
    line-height: 1.2;
}

/* ============ 14. EDITORIAL PROCESS STEPPER ============ */
.pm_stepper_section {
    margin: 2.5rem 0 3rem;
    padding: 2.5rem;
    background: var(--pm-card);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-xl);
    box-shadow: var(--pm-shadow);
}

.pm_stepper_title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pm_stepper_title h2 {
    font-size: 1.4rem !important;
    margin-bottom: 0.3rem;
}

.pm_stepper_title p {
    color: var(--pm-muted);
    font-size: 0.9rem;
}

.pm_stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0 1rem;
}

.pm_stepper::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--pm-primary), var(--pm-accent), var(--pm-secondary));
    border-radius: 3px;
    z-index: 0;
}

.pm_step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 160px;
}

.pm_step_icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(30,98,146,0.3);
    transition: var(--pm-transition-bounce);
}

.pm_step:hover .pm_step_icon {
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(30,98,146,0.4);
}

.pm_step_title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--pm-text);
    margin-bottom: 0.3rem;
}

.pm_step_desc {
    font-size: 0.75rem;
    color: var(--pm-muted);
    line-height: 1.4;
}

/* ============ 15. WHATSAPP FLOATING WIDGET ============ */
.pm_wa_widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.pm_wa_tooltip {
    background: var(--pm-card-solid);
    color: var(--pm-text);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: var(--pm-transition);
    pointer-events: none;
    white-space: nowrap;
}

.pm_wa_widget:hover .pm_wa_tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pm_wa_btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    transition: var(--pm-transition-bounce);
    cursor: pointer;
    text-decoration: none !important;
    animation: pmPulseWa 2s ease-in-out infinite;
}

.pm_wa_btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 28px rgba(37,211,102,0.5) !important;
}

.pm_wa_btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.is_in_iframe .pm_wa_widget { display: none !important; }

/* ============ 16. FOOTER PREMIUM ============ */
.pkp_structure_footer_wrapper,
.pm_footer {
    background: var(--pm-footer-bg) !important;
    color: var(--pm-footer-text) !important;
    padding: 4rem 0 2rem !important;
    margin-top: 4rem !important;
}

.pm_footer_grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pm_footer_col h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #e2e8f0 !important;
    margin-bottom: 1.2rem !important;
}

.pm_footer_col p,
.pm_footer_col a {
    color: var(--pm-footer-text) !important;
    font-size: 0.875rem;
    line-height: 1.8;
}

.pm_footer_col a:hover { color: #e2e8f0 !important; }

.pm_footer_col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm_footer_col ul li {
    margin-bottom: 0.5rem;
}

.pm_footer_brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--pm-primary-light) !important;
    margin-bottom: 0.75rem;
    display: block;
}

.pm_footer_partners {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1300px;
    margin: 2.5rem auto 0;
    padding: 0 2rem;
}

.pm_footer_partners a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    filter: grayscale(20%) opacity(0.85);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm_footer_partners a:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.pm_footer_partners img {
    height: 32px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

.pm_footer_ojs_brand {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1300px;
    margin: 2.5rem auto 0;
    padding: 0 2rem;
    text-align: center;
}

.pm_footer_ojs_brand.pkp_brand_footer {
    float: none;
    padding: 0;
}

.pm_footer_ojs_brand a {
    display: block;
    float: none;
    max-width: 150px;
    opacity: 0.85;
    transition: var(--pm-transition);
}

.pm_footer_ojs_brand a:hover {
    opacity: 1;
}

.pm_footer_ojs_brand img {
    display: block;
    max-width: 150px;
    width: auto;
    height: auto;
    margin: 0 auto;
    filter: brightness(0) invert(0.85);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.pm_footer_ojs_brand img:hover {
    opacity: 1;
}

.pm_footer_bottom {
    border-top: 1px solid rgba(148,163,184,0.15);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.pm_footer_bottom p {
    font-size: 0.8rem;
    color: var(--pm-footer-text);
}

/* ============ 17. BREADCRUMB ============ */
.pkp_breadcrumbs {
    font-size: 0.85rem !important;
    color: var(--pm-muted) !important;
    margin-bottom: 1.5rem !important;
    padding: 0.6rem 1rem !important;
    background: rgba(30,98,146,0.04) !important;
    border-radius: var(--pm-radius-sm) !important;
}

/* ============ 18. NOTIFICATIONS ============ */
.pkp_notification,
.notifySuccess,
.notifyError,
.notifyWarning {
    border-radius: 10px !important;
    padding: 1rem 1.2rem !important;
    margin-bottom: 1rem !important;
    border: none !important;
    font-size: 0.9rem;
}

/* ============ 19. CONTAINER & SPACING ============ */
.pkp_structure_content {
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 3rem !important;
}

.pkp_structure_main {
    padding: 3rem 0 !important;
}

/* ============ 20. MODAL LOGIN/REGISTER ============ */
.pm_modal_overlay {
    position: fixed !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 9999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease !important;
}

.pm_modal_overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.pm_modal_container {
    width: 92%;
    max-width: 480px;
    max-height: 85vh;
    background: var(--pm-card-solid) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    overflow: hidden !important;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: flex !important;
    flex-direction: column !important;
}

.pm_modal_overlay.active .pm_modal_container {
    transform: scale(1) translateY(0);
}

.pm_modal_tabs {
    display: flex !important;
    background: var(--pm-bg-alt) !important;
    padding: 6px !important;
    margin: 15px 50px 10px 15px !important;
    border-radius: 14px !important;
    gap: 4px !important;
}

.pm_modal_tab {
    flex: 1 !important;
    text-align: center !important;
    padding: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: var(--pm-muted) !important;
    cursor: pointer !important;
    border-radius: 10px !important;
    transition: var(--pm-transition) !important;
}

.pm_modal_tab:hover { color: var(--pm-primary) !important; }

.pm_modal_tab.active {
    background: var(--pm-card-solid) !important;
    color: var(--pm-primary) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

.pm_modal_close {
    position: absolute !important;
    top: 15px; right: 15px;
    width: 34px; height: 34px;
    background: rgba(0,0,0,0.05) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    z-index: 10 !important;
    font-size: 1.2rem;
    color: var(--pm-muted);
    transition: var(--pm-transition) !important;
    border: none;
}

.pm_modal_close:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

.pm_modal_iframe {
    flex: 1;
    width: 100% !important;
    min-height: 400px;
    border: none !important;
}

/* Iframe mode — hide chrome */
.is_in_iframe .premium_header_bar,
.is_in_iframe .pkp_structure_footer_wrapper,
.is_in_iframe .pm_footer,
.is_in_iframe .pkp_breadcrumbs,
.is_in_iframe .pm_wa_widget { display: none !important; }

.is_in_iframe .pkp_structure_main { padding: 1rem !important; margin: 0 !important; }
.is_in_iframe .pkp_structure_content { padding: 0 !important; max-width: 100% !important; }
.is_in_iframe body { background: var(--pm-card-solid) !important; background-image: none !important; }

/* ============ 21. ANIMATIONS & KEYFRAMES ============ */
@keyframes pmFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);     }
}

@keyframes pmRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes pmPulseWa {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
    50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.55), 0 0 0 8px rgba(37,211,102,0.10); }
}

@keyframes pmGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(30,98,146,0.2); }
    50%      { box-shadow: 0 0 30px rgba(30,98,146,0.4), 0 0 60px rgba(2,132,199,0.15); }
}

@keyframes pmCountUp {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pmPulseDot {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}

/* Staggered card animation */
.obj_article_summary,
.obj_issue_summary,
.pkp_block {
    animation: pmFadeUp 0.5s ease-out both;
}

.obj_article_summary:nth-child(1) { animation-delay: 0s; }
.obj_article_summary:nth-child(2) { animation-delay: 0.08s; }
.obj_article_summary:nth-child(3) { animation-delay: 0.16s; }
.obj_article_summary:nth-child(4) { animation-delay: 0.24s; }
.obj_article_summary:nth-child(5) { animation-delay: 0.32s; }
.obj_article_summary:nth-child(6) { animation-delay: 0.40s; }

/* Scroll reveal class (added by JS) */
.pm_reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pm_reveal.pm_visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ 22. RESPONSIVE DESIGN ============ */
@media (max-width: 1024px) {
    .pm_footer_grid {
        grid-template-columns: 1fr 1fr;
    }
    .pm_stepper {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }
    .pm_stepper::before { display: none; }
    .pm_step { max-width: 140px; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.3rem !important; }

    .premium_header_container {
        padding: 0 1rem !important;
        height: 60px !important;
        gap: 0.5rem;
    }

    .premium_nav_primary { display: none !important; }

    .premium_logo_text { font-size: 1.1rem !important; }

    .pkp_structure_content { padding: 0 1rem !important; }
    .pkp_structure_main { padding: 1.5rem 0 !important; }

    .obj_article_summary,
    .pkp_block {
        padding: 1.2rem !important;
        border-radius: var(--pm-radius) !important;
    }

    .pm_hero {
        padding: 3rem 1.5rem;
        border-radius: var(--pm-radius-lg);
    }
    .pm_hero h1 { font-size: 2rem !important; }

    .pm_stats_section {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .pm_stat_card { padding: 1.2rem 1rem; }
    .pm_stat_number { font-size: 1.8rem; }

    .pm_footer_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pm_modal_container { width: 96%; max-height: 90vh; }

    .pm_wa_btn { width: 52px; height: 52px; }
    .pm_wa_btn svg { width: 26px; height: 26px; }

    .pm_stepper { flex-direction: column; align-items: center; }
    .pm_stepper::before { display: none; }
    .pm_step { max-width: 100%; flex-direction: row; text-align: left; gap: 1rem; }
    .pm_step_icon { margin-bottom: 0; flex-shrink: 0; }

    .pm_indexing_badge { width: 110px; height: 55px; }
}

@media (max-width: 480px) {
    .premium_header_right { gap: 6px; }
    .pm_dark_toggle { width: 36px; height: 36px; font-size: 0.9rem; }
    .premium_nav_user ul > li > a { padding: 0.4rem 0.8rem !important; font-size: 0.75rem !important; }
    .pm_stats_section { grid-template-columns: 1fr; }
}

/* ============ 22. SUBMISSION ACTIONS ============ */
.pm_submission_actions_wrapper {
    margin: 2.5rem 0;
}

.pm_submission_btn_group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pm_submission_btn_group .pm_btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--pm-radius-lg);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.pm_btn_submit_new {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(79, 70, 229, 0.03) 100%);
}

.pm_btn_submit_new:hover {
    background: linear-gradient(135deg, #1e6292 0%, #15476a 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -5px rgba(99, 102, 241, 0.3);
}

.pm_btn_view_existing {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(219, 39, 119, 0.03) 100%);
    border-color: rgba(236, 72, 153, 0.1) !important;
}

.pm_btn_view_existing:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #db2777 100%);
    border-color: transparent !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -5px rgba(236, 72, 153, 0.3);
}

.pm_btn_icon {
    font-size: 1.75rem;
    background: var(--pm-card);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--pm-shadow-sm);
    transition: all 0.3s ease;
}

.pm_btn:hover .pm_btn_icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.2);
}

.pm_btn_text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.pm_btn_text strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: var(--pm-text);
    transition: color 0.3s ease;
}

.pm_btn_text span {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.15rem;
    transition: color 0.3s ease;
}

.pm_btn:hover .pm_btn_text strong,
.pm_btn:hover .pm_btn_text span {
    color: #ffffff;
}

.pm_alert_warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 1rem 1.5rem;
    border-radius: var(--pm-radius-md);
    border-left: 4px solid #f59e0b;
}

/* ============ 23. PRINT STYLES ============ */

@media print {
    .premium_header_bar,
    .pm_wa_widget,
    .pm_modal_overlay,
    .pm_reading_progress,
    .pm_dark_toggle,
    .pm_footer { display: none !important; }

    body { background: #fff !important; color: #000 !important; }
    .obj_article_summary { box-shadow: none !important; border: 1px solid #ddd !important; }
}
