/**
 * Ghoghnoos Research - Public Styles
 * Modern Light Theme (Green/White)
 *
 * @package Ghoghnoos_Research
 */

/* Import Custom Fonts */
@import url('../../assets/fonts/fonts.css');

/* Dashicons - Fix rectangular display */
.dashicons {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-family: "dashicons" !important;
    text-align: center !important;
    text-decoration: none !important;
    vertical-align: top !important;
    speak: none !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.dashicons-before:before,
.dashicons:before {
    font-family: "dashicons" !important;
}

/* Apply fonts only - let theme handle styling */
.gr-dashboard *,
.gr-card *,
.gr-main-content * {
    font-family: 'AzarMehr', 'Vazirmatn', 'Noto Sans Arabic', 'IRANSans', Tahoma, sans-serif !important;
}

/* Match Impreza theme form styling exactly */
.gr-input,
.gr-select,
.gr-textarea {
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.gr-input:focus,
.gr-select:focus,
.gr-textarea:focus {
    border-color: var(--gr-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--gr-primary-rgb), 0.1) !important;
}

.gr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

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

.gr-btn-primary:hover {
    background: var(--gr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--gr-primary-rgb), 0.2);
}

.gr-btn-outline {
    background: transparent;
    border: 2px solid var(--gr-primary);
    color: var(--gr-primary);
}

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

/* Textarea specific */
.gr-textarea {
    height: calc(var(--inputs-height, 2em) * 3) !important;
    padding: calc(var(--inputs-height, 2em)/2 + var(--inputs-border-width, 1px) - 0.7em) var(--inputs-padding, .6em) !important;
    resize: vertical !important;
    overflow: auto !important;
}

/* Select dropdown arrow - Persian style (left side) */
.gr-select {
    position: relative !important;
    padding: 0 var(--inputs-padding, .6em) 0 calc(var(--inputs-padding, .6em) + 1.6em) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: left 0.4em center !important;
    background-repeat: no-repeat !important;
    background-size: 1em 1em !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-align: right !important; /* Align text to the right for Persian */
}

/* Focus state for select arrow */
.gr-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
}

/* Date fields styling */
.gr-date-fields {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.gr-date-input {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: center !important;
    width: 100px !important; /* Equal width for all */
}

.gr-date-separator {
    color: var(--inputs-text-color, inherit) !important;
    font-weight: bold !important;
    font-size: 16px !important;
    user-select: none !important;
}

/* Responsive date fields */
@media (max-width: 768px) {
    .gr-date-fields {
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    .gr-date-input {
        flex: 1 1 calc(33.333% - 8px) !important;
        min-width: 80px !important;
        width: 80px !important; /* Smaller on mobile */
    }

    .gr-date-separator {
        display: none !important;
    }
}

/* Focus states - match theme exactly */
.gr-input:focus,
.gr-select:focus,
.gr-textarea:focus {
    background: var(--inputs-focus-background, transparent) !important;
    border-color: var(--inputs-focus-border-color, currentColor) !important;
    color: var(--inputs-focus-text-color, inherit) !important;
    box-shadow: var(--inputs-focus-box-shadow, none) !important;
    outline: none !important;
}

/* CSS Variables */
:root {
    --gr-primary: #2E7D32;
    --gr-primary-dark: #1B5E20;
    --gr-primary-light: #4CAF50;
    --gr-primary-rgb: 46, 125, 50;
    --gr-secondary: #81C784;
    --gr-accent: #00897B;
    --gr-success: #43A047;
    --gr-warning: #FFA000;
    --gr-error: #E53935;
    --gr-info: #1976D2;
    
    --gr-bg: #FAFAFA;
    --gr-bg-card: #FFFFFF;
    --gr-bg-dark: #F5F5F5;
    
    --gr-text: #212121;
    --gr-text-secondary: #757575;
    --gr-text-light: #9E9E9E;
    
    --gr-border: #E0E0E0;
    --gr-border-light: #EEEEEE;
    
    --gr-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --gr-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    
    --gr-radius: 12px;
    --gr-radius-sm: 8px;
    --gr-radius-lg: 16px;
    
    --gr-font: 'Vazirmatn', 'IRANSans', 'Tahoma', sans-serif;
}

/* Base */
.gr-dashboard,
.gr-auth-container,
.gr-article-form-container,
.gr-nokhbegan-form-container {
    font-family: var(--gr-font);
    direction: rtl;
    line-height: 1.7;
    color: var(--gr-text);
}

.gr-article-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.gr-form-header {
    margin-bottom: 30px;
    text-align: center;
}

.gr-form-header h2 {
    color: var(--gr-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.gr-form {
    background: var(--gr-bg-card);
    border-radius: var(--gr-radius-lg);
    padding: 40px;
    box-shadow: var(--gr-shadow-lg);
}

@media (max-width: 768px) {
    .gr-article-form-container {
        padding: 20px 15px;
    }
    
    .gr-form {
        padding: 25px 20px;
    }
    
    .gr-form-header h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .gr-article-form-container {
        padding: 10px 5px;
    }
    
    .gr-form {
        padding: 15px 12px;
    }
    
    .gr-form-header {
        margin-bottom: 20px;
    }
    
    .gr-form-header h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
}

/* Auth Container */
.gr-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
    background: transparent;
}

.gr-auth-card {
    background: var(--gr-bg-card);
    border-radius: var(--gr-radius-lg);
    box-shadow: var(--gr-shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.gr-auth-card-wide {
    max-width: 700px;
}

.gr-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.gr-auth-header h2 {
    color: var(--gr-primary);
    font-size: 24px;
    margin: 0 0 10px;
}

.gr-auth-header p {
    color: var(--gr-text-secondary);
    margin: 0;
}

.gr-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.gr-tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--gr-border);
    background: var(--gr-bg);
    border-radius: var(--gr-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
}

.gr-tab-btn:hover {
    border-color: var(--gr-primary-light);
}

.gr-tab-btn.active {
    border-color: var(--gr-primary);
    background: linear-gradient(135deg, var(--gr-primary-light), var(--gr-primary));
    color: white;
}

.gr-tab-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

.gr-auth-card-login .gr-auth-tabs {
    gap: 8px;
}

.gr-auth-card-login .gr-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 12px;
    white-space: nowrap;
}

.gr-auth-container-shell.gr-auth-container-login,
.gr-auth-container-shell.gr-auth-container-register {
    min-height: clamp(420px, calc(100vh - 180px), 680px);
    padding: 24px 12px;
}

.gr-auth-card-shell.gr-auth-card-login,
.gr-auth-card-shell.gr-auth-card-register {
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
}

.gr-auth-card-shell.gr-auth-card-login .gr-auth-header,
.gr-auth-card-shell.gr-auth-card-register .gr-auth-header {
    margin-bottom: 24px;
}

.gr-auth-card-shell.gr-auth-card-login .gr-form-group,
.gr-auth-card-shell.gr-auth-card-register .gr-form-group,
.gr-auth-card-shell.gr-auth-card-login .gr-form-actions,
.gr-auth-card-shell.gr-auth-card-register .gr-form-actions {
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .gr-auth-container-login,
    .gr-auth-container-register {
        min-height: auto;
        padding: 18px 10px;
    }

    .gr-auth-card-login,
    .gr-auth-card-register {
        max-width: 100%;
        padding: 22px 16px;
        border-radius: 14px;
    }

    .gr-auth-card-login .gr-auth-header,
    .gr-auth-card-register .gr-auth-header {
        margin-bottom: 20px;
    }

    .gr-auth-card-login .gr-auth-header h2,
    .gr-auth-card-register .gr-auth-header h2 {
        font-size: 21px;
    }

    .gr-auth-card-login .gr-auth-tabs {
        margin-bottom: 18px;
    }

    .gr-auth-card-login .gr-tab-btn {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 13px;
    }

    .gr-auth-card-login .gr-form-group,
    .gr-auth-card-register .gr-form-group,
    .gr-auth-card-login .gr-form-actions,
    .gr-auth-card-register .gr-form-actions {
        margin-bottom: 12px;
    }

    .gr-auth-card-login .gr-otp-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .gr-auth-card-login .gr-btn,
    .gr-auth-card-register .gr-btn {
        width: 100%;
    }

    .gr-auth-card-login .gr-form-links,
    .gr-auth-card-register .gr-form-links {
        margin-top: 16px;
        padding-top: 16px;
        line-height: 1.9;
    }

    .gr-auth-card-login .gr-auth-footer,
    .gr-auth-card-register .gr-auth-footer {
        margin-top: 20px;
        padding-top: 14px;
    }
}

@media (max-width: 480px) {
    .gr-auth-container-login,
    .gr-auth-container-register {
        padding: 12px 6px;
    }

    .gr-auth-card-login,
    .gr-auth-card-register {
        padding: 16px 12px;
        border-radius: 12px;
        box-shadow: var(--gr-shadow);
    }

    .gr-auth-card-login .gr-auth-header,
    .gr-auth-card-register .gr-auth-header {
        margin-bottom: 16px;
    }

    .gr-auth-card-login .gr-auth-header h2,
    .gr-auth-card-register .gr-auth-header h2 {
        font-size: 19px;
    }

    .gr-auth-card-login .gr-auth-tabs {
        gap: 6px;
        margin-bottom: 14px;
    }

    .gr-auth-card-login .gr-tab-btn {
        min-height: 40px;
        padding: 8px;
        font-size: 12px;
    }

    .gr-auth-card-login .gr-input,
    .gr-auth-card-register .gr-input,
    .gr-auth-card-login .gr-select,
    .gr-auth-card-register .gr-select,
    .gr-auth-card-login .gr-textarea,
    .gr-auth-card-register .gr-textarea {
        padding: 10px 12px;
    }

    .gr-auth-card-login .gr-otp-input {
        font-size: 16px;
        letter-spacing: 6px;
    }

    .gr-auth-card-login .gr-form-links,
    .gr-auth-card-register .gr-form-links,
    .gr-auth-card-login .gr-auth-footer,
    .gr-auth-card-register .gr-auth-footer {
        font-size: 12px;
    }
}

.gr-auth-container-shell {
    --gr-auth-primary: #2E7D32;
    --gr-auth-primary-dark: #1B5E20;
    --gr-auth-primary-soft: #E7F5E8;
    --gr-auth-primary-rgb: 46, 125, 50;
    --gr-auth-secondary: #00897B;
    --gr-auth-secondary-dark: #0F766E;
    --gr-auth-secondary-soft: #E6F7F5;
    --gr-auth-secondary-rgb: 0, 137, 123;
    position: relative;
    isolation: isolate;
    padding: 48px 18px;
    min-height: 440px;
}

/* Auth pages should inherit the active theme font stack */
.gr-auth-container,
.gr-auth-container * {
    font-family: var(--font-family, inherit) !important;
}

.gr-auth-container .dashicons,
.gr-auth-container .dashicons:before,
.gr-auth-container .dashicons:after {
    font-family: "dashicons" !important;
}

.gr-auth-container .gr-auth-header h2 {
    font-family: var(--h2-font-family, var(--font-family, inherit)) !important;
    font-weight: var(--h2-font-weight, 700) !important;
}

body.gr-auth-page-active .l-main.gr-auth-main {
    min-height: 100svh;
}

body.gr-auth-page-active .l-section.gr-auth-page-section {
    margin: 0 !important;
}

body.gr-auth-page-active .l-section.gr-auth-page-section > .l-section-h.gr-auth-page-section-h {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100svh - 40px);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.gr-auth-page-active .l-section.gr-auth-page-section > .l-section-h.gr-auth-page-section-h > * {
    width: 100%;
}

body.gr-auth-page-active .gr-auth-page-grid,
body.gr-auth-page-active .gr-auth-page-wrapper,
body.gr-auth-page-active .gr-auth-page-grid > .wpb_column,
body.gr-auth-page-active .gr-auth-page-grid > .wpb_column > .vc_column-inner,
body.gr-auth-page-active .gr-auth-page-grid > .wpb_column > .vc_column-inner > .wpb_text_column,
body.gr-auth-page-active .gr-auth-page-grid > .wpb_column > .vc_column-inner > .wpb_text_column > .wpb_wrapper {
    width: 100%;
}

body.gr-auth-page-active .gr-auth-page-wrapper {
    margin: 0 !important;
}

body.gr-auth-page-active .gr-auth-container-shell {
    min-height: auto;
}

.gr-auth-container-shell::before,
.gr-auth-container-shell::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
}

.gr-auth-container-shell::before {
    top: 20px;
    right: max(2%, 12px);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(var(--gr-auth-primary-rgb), 0.16) 0%, rgba(var(--gr-auth-primary-rgb), 0) 72%);
}

.gr-auth-container-shell::after {
    bottom: 10px;
    left: max(1%, 8px);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(var(--gr-auth-secondary-rgb), 0.12) 0%, rgba(var(--gr-auth-secondary-rgb), 0) 72%);
}

.gr-auth-card-shell {
    position: relative;
    overflow: hidden;
    max-width: 448px;
    padding: 34px 30px 28px;
    border: 1px solid rgba(var(--gr-auth-primary-rgb), 0.14);
    background:
        radial-gradient(circle at top right, rgba(var(--gr-auth-primary-rgb), 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fcf8 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.gr-auth-card-shell::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--gr-auth-primary-dark) 0%, var(--gr-auth-primary) 45%, var(--gr-auth-secondary) 100%);
}

.gr-auth-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--gr-auth-primary-rgb), 0.08);
    color: var(--gr-auth-primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.gr-auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.gr-auth-logo img {
    display: block;
    max-width: min(180px, 60%);
    max-height: 86px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gr-auth-card-shell .gr-auth-header {
    margin-bottom: 24px;
}

.gr-auth-card-shell .gr-auth-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    color: var(--gr-auth-primary-dark);
}

.gr-auth-subtitle {
    max-width: 34ch;
    margin: 0 auto;
    color: #5f6f65;
    font-size: 14px;
    line-height: 1.85;
}

.gr-auth-card-shell .gr-auth-tabs {
    padding: 6px;
    border-radius: 16px;
    background: rgba(var(--gr-auth-primary-rgb), 0.06);
    border: 1px solid rgba(var(--gr-auth-primary-rgb), 0.12);
    gap: 6px;
}

.gr-auth-card-shell .gr-tab-btn {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #557163;
    font-weight: 700;
}

.gr-auth-card-shell .gr-tab-btn:hover {
    border-color: rgba(var(--gr-auth-primary-rgb), 0.14);
    background: rgba(255, 255, 255, 0.68);
}

.gr-auth-card-shell .gr-tab-btn.active {
    color: white;
    border-color: rgba(var(--gr-auth-primary-rgb), 0.1);
    background: linear-gradient(135deg, var(--gr-auth-secondary) 0%, var(--gr-auth-primary) 100%);
    box-shadow: 0 10px 24px rgba(var(--gr-auth-primary-rgb), 0.2);
}

.gr-auth-card-shell .gr-form-group label {
    font-weight: 700;
    color: #24392d;
}

.gr-auth-card-shell .gr-input,
.gr-auth-card-shell .gr-select,
.gr-auth-card-shell .gr-textarea {
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(var(--gr-auth-primary-rgb), 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 18px rgba(15, 23, 42, 0.04);
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.gr-auth-card-shell .gr-input:focus,
.gr-auth-card-shell .gr-select:focus,
.gr-auth-card-shell .gr-textarea:focus {
    border-color: var(--gr-auth-primary);
    box-shadow: 0 0 0 4px rgba(var(--gr-auth-primary-rgb), 0.12) !important;
}

.gr-auth-card-shell .gr-input::placeholder,
.gr-auth-card-shell .gr-select::placeholder,
.gr-auth-card-shell .gr-textarea::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.gr-auth-card-shell .gr-textarea {
    min-height: 120px;
    padding: 14px 16px;
}

.gr-auth-card-shell .gr-password-wrapper .gr-input {
    padding-left: 44px;
}

.gr-auth-card-shell .gr-toggle-password {
    color: #6b7280;
    transition: color 0.2s ease;
}

.gr-auth-card-shell .gr-toggle-password:hover {
    color: var(--gr-auth-primary-dark);
}

.gr-auth-card-shell .gr-btn-primary {
    min-height: 52px;
    font-weight: 800;
    letter-spacing: 0.1px;
    background: linear-gradient(135deg, var(--gr-auth-secondary) 0%, var(--gr-auth-primary) 100%);
    box-shadow: 0 14px 32px rgba(var(--gr-auth-primary-rgb), 0.2);
}

.gr-auth-card-shell .gr-btn-primary:hover {
    background: linear-gradient(135deg, var(--gr-auth-secondary-dark) 0%, var(--gr-auth-primary-dark) 100%);
    box-shadow: 0 18px 36px rgba(var(--gr-auth-primary-rgb), 0.24);
}

.gr-auth-card-shell .gr-btn-outline {
    border-color: rgba(var(--gr-auth-primary-rgb), 0.18);
    background: #ffffff;
    color: var(--gr-auth-primary-dark);
    font-weight: 700;
}

.gr-auth-card-shell .gr-btn-outline:hover {
    background: rgba(var(--gr-auth-primary-rgb), 0.06);
    color: var(--gr-auth-primary-dark);
}

.gr-auth-card-shell .gr-otp-wrapper {
    gap: 10px;
}

.gr-auth-mode-stack {
    position: relative;
    min-height: 150px;
}

.gr-auth-mode-panel {
    width: 100%;
}

.gr-auth-step {
    width: 100%;
}

.gr-otp-wrapper-auth {
    align-items: flex-start;
}

.gr-login-identifier-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.gr-login-identifier-row .gr-input {
    flex: 1 1 74%;
    min-width: 0;
}

.gr-login-identifier-row .gr-login-otp-trigger {
    flex: 0 0 26%;
    min-width: 112px;
    width: auto !important;
    padding-inline: 12px !important;
    white-space: nowrap;
}

.gr-auth-card-login .gr-otp-wrapper-auth {
    justify-content: center;
}

.gr-auth-card-login .gr-otp-wrapper-auth .gr-otp-slots {
    justify-content: stretch;
}

.gr-otp-slots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.gr-otp-slot {
    flex: 1 1 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    padding: 0 !important;
    border: 1px solid rgba(var(--gr-auth-primary-rgb), 0.14) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 18px rgba(15, 23, 42, 0.04);
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 54px !important;
    text-align: center !important;
    direction: ltr !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.gr-otp-slot:focus {
    outline: none !important;
    border-color: var(--gr-auth-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(var(--gr-auth-primary-rgb), 0.12) !important;
    transform: translateY(-1px);
}

.gr-otp-slots.is-complete .gr-otp-slot {
    border-color: var(--gr-auth-primary) !important;
    background: rgba(var(--gr-auth-primary-rgb), 0.05) !important;
}

.gr-auth-card-shell .gr-btn-auth-primary,
.gr-auth-card-shell button.gr-btn-auth-primary,
.gr-auth-card-shell .gr-auth-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 54px;
    border: none !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, var(--gr-auth-secondary) 0%, var(--gr-auth-primary) 100%) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1px;
    box-shadow: 0 16px 34px rgba(var(--gr-auth-primary-rgb), 0.22) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease !important;
    appearance: none;
    -webkit-appearance: none;
}

.gr-auth-card-shell .gr-btn-auth-primary:hover,
.gr-auth-card-shell button.gr-btn-auth-primary:hover,
.gr-auth-card-shell .gr-auth-submit:hover {
    transform: translateY(-1px);
    filter: saturate(1.04);
    box-shadow: 0 18px 38px rgba(var(--gr-auth-primary-rgb), 0.28) !important;
}

.gr-auth-card-shell .gr-btn-auth-primary:active,
.gr-auth-card-shell button.gr-btn-auth-primary:active,
.gr-auth-card-shell .gr-auth-submit:active {
    transform: translateY(0);
}

.gr-auth-card-shell .gr-btn-auth-primary::before,
.gr-auth-card-shell button.gr-btn-auth-primary::before,
.gr-auth-card-shell .gr-auth-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.18) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.5s ease;
}

.gr-auth-card-shell .gr-btn-auth-primary:hover::before,
.gr-auth-card-shell button.gr-btn-auth-primary:hover::before,
.gr-auth-card-shell .gr-auth-submit:hover::before {
    transform: translateX(120%);
}

.gr-auth-card-shell .gr-btn-auth-secondary,
.gr-auth-card-shell button.gr-btn-auth-secondary {
    min-height: 54px;
    padding: 0 18px !important;
    border: 1px solid rgba(var(--gr-auth-primary-rgb), 0.18) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: var(--gr-auth-primary-dark) !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.gr-auth-card-shell .gr-btn-auth-secondary:hover,
.gr-auth-card-shell button.gr-btn-auth-secondary:hover {
    background: rgba(var(--gr-auth-primary-rgb), 0.06) !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09) !important;
    transform: translateY(-1px);
}

.gr-auth-card-shell .gr-otp-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(var(--gr-auth-primary-rgb), 0.14);
    background: linear-gradient(180deg, #ffffff 0%, rgba(var(--gr-auth-primary-rgb), 0.04) 100%);
}

.gr-auth-card-shell .gr-otp-info p {
    margin: 0;
    color: #334155;
    font-size: 13px;
}

.gr-link-btn {
    padding: 0;
    border: none;
    background: none;
    color: var(--gr-auth-primary-dark);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.gr-link-btn:hover {
    color: var(--gr-auth-primary);
    text-decoration: underline;
}

.gr-form-links-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
}

.gr-auth-card-shell .gr-link-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--gr-auth-primary);
    background: #ffffff;
    color: var(--gr-auth-primary-dark) !important;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.gr-auth-card-shell .gr-link-cta:hover {
    transform: translateY(-1px);
    background: rgba(var(--gr-auth-primary-rgb), 0.06);
    border-color: var(--gr-auth-primary-dark);
    box-shadow: 0 12px 24px rgba(var(--gr-auth-primary-rgb), 0.12);
}

.gr-auth-card-shell .gr-link-cta.is-secondary {
    background: #ffffff;
    color: var(--gr-auth-primary-dark) !important;
    border: 1px solid var(--gr-auth-primary);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.gr-auth-card-shell .gr-link-cta.is-secondary:hover {
    background: rgba(var(--gr-auth-primary-rgb), 0.06);
    border-color: var(--gr-auth-primary-dark);
    box-shadow: 0 12px 24px rgba(var(--gr-auth-primary-rgb), 0.12);
}

.gr-auth-card-shell .gr-auth-footer {
    margin-top: 24px;
    padding-top: 16px;
    color: #7b8a81;
}

@media (max-width: 768px) {
    body.gr-auth-page-active .l-section.gr-auth-page-section > .l-section-h.gr-auth-page-section-h {
        min-height: calc(100svh - 28px);
    }

    .gr-auth-container-shell {
        min-height: auto;
        padding: 22px 10px;
    }

    .gr-auth-card-shell {
        max-width: 100%;
        padding: 24px 18px 20px;
        border-radius: 16px;
    }

    .gr-auth-card-shell .gr-auth-header h2 {
        font-size: 22px;
    }

    .gr-auth-card-shell .gr-auth-subtitle {
        font-size: 13px;
    }

    .gr-auth-card-shell .gr-otp-wrapper,
    .gr-auth-card-shell .gr-otp-info {
        flex-direction: column;
        align-items: stretch;
    }

    .gr-otp-wrapper-auth {
        gap: 10px;
    }

    .gr-otp-slots {
        justify-content: stretch;
    }

    .gr-otp-slot {
        height: 50px !important;
        font-size: 19px !important;
        line-height: 50px !important;
    }

    .gr-auth-card-shell .gr-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body.gr-auth-page-active .l-section.gr-auth-page-section > .l-section-h.gr-auth-page-section-h {
        min-height: calc(100svh - 20px);
    }

    .gr-auth-container-shell {
        padding: 12px 6px;
    }

    .gr-auth-card-shell {
        padding: 18px 12px 16px;
        border-radius: 14px;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    }

    .gr-auth-kicker {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .gr-auth-logo {
        margin-bottom: 12px;
    }

    .gr-auth-logo img {
        max-width: min(150px, 58%);
        max-height: 72px;
    }

    .gr-auth-card-shell .gr-auth-header {
        margin-bottom: 18px;
    }

    .gr-auth-card-shell .gr-auth-header h2 {
        font-size: 19px;
    }

    .gr-auth-card-shell .gr-auth-tabs {
        margin-bottom: 16px;
    }

    .gr-auth-card-shell .gr-tab-btn {
        min-height: 40px;
        padding: 8px;
        font-size: 12px;
    }

    .gr-auth-card-shell .gr-input,
    .gr-auth-card-shell .gr-select,
    .gr-auth-card-shell .gr-textarea {
        min-height: 46px;
        padding: 10px 12px;
    }

    .gr-auth-card-shell .gr-password-wrapper .gr-input {
        padding-left: 40px;
    }

    .gr-auth-card-shell .gr-otp-input {
        font-size: 16px;
        letter-spacing: 6px;
    }

    .gr-otp-slots {
        gap: 6px;
    }

    .gr-otp-slot {
        height: 46px !important;
        border-radius: 12px !important;
        font-size: 18px !important;
        line-height: 46px !important;
    }

    .gr-form-links-modern {
        gap: 8px;
    }

    .gr-link-cta {
        width: auto;
        min-width: 112px;
        padding-inline: 16px;
    }
}

/* Keep login and register shells visually identical */
.gr-auth-container-shell.gr-auth-container-login,
.gr-auth-container-shell.gr-auth-container-register {
    min-height: clamp(420px, calc(100vh - 180px), 680px);
    padding: 24px 12px;
}

.gr-auth-card-shell.gr-auth-card-login,
.gr-auth-card-shell.gr-auth-card-register {
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
}

.gr-auth-card-shell.gr-auth-card-login .gr-auth-header,
.gr-auth-card-shell.gr-auth-card-register .gr-auth-header {
    margin-bottom: 24px;
}

.gr-auth-card-shell.gr-auth-card-login .gr-form-group,
.gr-auth-card-shell.gr-auth-card-register .gr-form-group,
.gr-auth-card-shell.gr-auth-card-login .gr-form-actions,
.gr-auth-card-shell.gr-auth-card-register .gr-form-actions {
    margin-bottom: 14px;
}

.gr-auth-card-shell.gr-auth-card-login .gr-form-links,
.gr-auth-card-shell.gr-auth-card-register .gr-form-links {
    margin-top: 18px;
    padding-top: 18px;
}

@media (max-width: 768px) {
    .gr-auth-container-shell.gr-auth-container-login,
    .gr-auth-container-shell.gr-auth-container-register {
        min-height: auto;
        padding: 18px 10px;
    }

    .gr-auth-card-shell.gr-auth-card-login,
    .gr-auth-card-shell.gr-auth-card-register {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .gr-auth-card-shell.gr-auth-card-login .gr-auth-header,
    .gr-auth-card-shell.gr-auth-card-register .gr-auth-header {
        margin-bottom: 20px;
    }

    .gr-auth-card-shell.gr-auth-card-login .gr-auth-header h2,
    .gr-auth-card-shell.gr-auth-card-register .gr-auth-header h2 {
        font-size: 21px;
    }

    .gr-auth-card-shell.gr-auth-card-login .gr-form-group,
    .gr-auth-card-shell.gr-auth-card-register .gr-form-group,
    .gr-auth-card-shell.gr-auth-card-login .gr-form-actions,
    .gr-auth-card-shell.gr-auth-card-register .gr-form-actions {
        margin-bottom: 12px;
    }

    .gr-auth-card-shell.gr-auth-card-login .gr-form-links,
    .gr-auth-card-shell.gr-auth-card-register .gr-form-links {
        margin-top: 16px;
        padding-top: 16px;
        line-height: 1.9;
    }

    .gr-auth-card-shell.gr-auth-card-login .gr-auth-footer,
    .gr-auth-card-shell.gr-auth-card-register .gr-auth-footer {
        margin-top: 20px;
        padding-top: 14px;
    }
}

@media (max-width: 480px) {
    .gr-auth-container-shell.gr-auth-container-login,
    .gr-auth-container-shell.gr-auth-container-register {
        padding: 12px 6px;
    }

    .gr-auth-card-shell.gr-auth-card-login,
    .gr-auth-card-shell.gr-auth-card-register {
        padding: 16px 12px;
        border-radius: 12px;
        box-shadow: var(--gr-shadow);
    }

    .gr-auth-card-shell.gr-auth-card-login .gr-auth-header,
    .gr-auth-card-shell.gr-auth-card-register .gr-auth-header {
        margin-bottom: 16px;
    }

    .gr-auth-card-shell.gr-auth-card-login .gr-auth-header h2,
    .gr-auth-card-shell.gr-auth-card-register .gr-auth-header h2 {
        font-size: 19px;
    }

    .gr-auth-card-shell.gr-auth-card-login .gr-input,
    .gr-auth-card-shell.gr-auth-card-register .gr-input,
    .gr-auth-card-shell.gr-auth-card-login .gr-select,
    .gr-auth-card-shell.gr-auth-card-register .gr-select,
    .gr-auth-card-shell.gr-auth-card-login .gr-textarea,
    .gr-auth-card-shell.gr-auth-card-register .gr-textarea {
        padding: 10px 12px;
    }

    .gr-auth-card-shell.gr-auth-card-login .gr-form-links,
    .gr-auth-card-shell.gr-auth-card-register .gr-form-links,
    .gr-auth-card-shell.gr-auth-card-login .gr-auth-footer,
    .gr-auth-card-shell.gr-auth-card-register .gr-auth-footer {
        font-size: 12px;
    }
}

/* Form Elements */
.gr-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gr-border-light);
}

.gr-section-title {
    color: var(--gr-primary);
    font-size: 16px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gr-secondary);
}

.gr-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.gr-form-group {
    margin-bottom: 15px;
}

.gr-col-4 { flex: 0 0 calc(33.333% - 10px); }
.gr-col-6 { flex: 0 0 calc(50% - 8px); }
.gr-col-12 { flex: 0 0 100%; }

.gr-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gr-text);
}

.gr-form-group .required {
    color: var(--gr-error);
}

.gr-input,
.gr-select,
.gr-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gr-border);
    border-radius: var(--gr-radius-sm);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--gr-bg-card);
    box-sizing: border-box;
}

.gr-input:focus,
.gr-select:focus,
.gr-textarea:focus {
    outline: none;
    border-color: var(--gr-primary);
    box-shadow: 0 0 0 3px rgba(var(--gr-primary-rgb), 0.1);
}

.gr-input-error {
    border-color: var(--gr-error) !important;
}

.gr-doc-slot-box.gr-input-error {
    box-shadow: inset 0 0 0 2px var(--gr-error) !important;
}

.gr-field-hint {
    display: block;
    font-size: 12px;
    color: var(--gr-text-light);
    margin-top: 5px;
}

.gr-password-wrapper {
    position: relative;
}

.gr-toggle-password {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Buttons */
.gr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--gr-radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gr-btn-primary {
    background: linear-gradient(135deg, var(--gr-primary-light), var(--gr-primary));
    color: white;
}

.gr-btn-primary:hover {
    background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-dark));
    transform: translateY(-1px);
    box-shadow: var(--gr-shadow);
}

.gr-btn-secondary {
    background: var(--gr-bg-dark);
    color: var(--gr-text);
}

.gr-btn-secondary:hover {
    background: var(--gr-border);
}

.gr-btn-success {
    background: linear-gradient(135deg, #66BB6A, var(--gr-success));
    color: white;
}

.gr-btn-warning {
    background: linear-gradient(135deg, #FFB74D, var(--gr-warning));
    color: white;
}

.gr-btn-danger {
    background: var(--gr-error);
    color: white !important;
}

.gr-btn-delete {
    background: #f0f0f0 !important;
    color: #718096 !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
}

.gr-btn-delete:hover {
    background: var(--gr-error) !important;
    color: white !important;
    border-color: var(--gr-error) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
}

.gr-btn-danger:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
}

.gr-btn-danger-outline {
    background: transparent;
    border: 2px solid var(--gr-error);
    color: var(--gr-error);
}

.gr-btn-danger-outline:hover {
    background: var(--gr-error);
    color: white;
    transform: translateY(-2px);
}

.gr-btn-outline {
    background: transparent;
    border: 2px solid var(--gr-primary);
    color: var(--gr-primary);
}

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

.gr-btn-block {
    width: 100%;
}

.gr-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.gr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Icons */
.gr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.gr-btn-icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Specific icon positioning for navigation buttons */
#prev-step {
    flex-direction: row;
}

#next-step {
    flex-direction: row;
}

/* Author remove button */
.gr-author-remove-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    height: 32px;
    min-width: auto;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
    gap: 6px;
    box-shadow: none;
}

.gr-author-remove-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.gr-author-remove-btn .gr-btn-icon {
    margin: 0;
    width: 14px;
    height: 14px;
}

/* OTP */
.gr-otp-wrapper {
    display: flex;
    gap: 10px;
}

.gr-otp-input {
    flex: 1;
    text-align: center;
    letter-spacing: 10px;
    font-size: 18px;
}

.gr-otp-timer {
    text-align: center;
    color: var(--gr-text-secondary);
    font-size: 13px;
    margin-top: 10px;
}

.gr-timer-count {
    color: var(--gr-primary);
    font-weight: bold;
}

/* File Upload */
.gr-file-upload {
    position: relative;
}

.gr-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gr-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px dashed var(--gr-border);
    border-radius: var(--gr-radius-sm);
    background: var(--gr-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gr-file-label:hover {
    border-color: var(--gr-primary);
    background: #E8F5E9;
}

.gr-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--gr-primary);
    text-align: center;
}

.gr-file-icon svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.gr-file-text {
    color: var(--gr-text);
    font-weight: 500;
}

.gr-file-hint {
    font-size: 12px;
    color: var(--gr-text-light);
    margin-top: 5px;
}

.gr-file-name {
    margin-top: 10px;
    font-size: 13px;
    color: var(--gr-primary);
}

.gr-file-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: var(--gr-radius-sm);
    margin-top: 10px;
}

/* Checkbox */
.gr-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 24px; /* Align with input fields (label height + margin) */
    height: 40px; /* Match input field height */
    justify-content: center;
}

.gr-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--gr-primary);
}

/* Author row specific styles for alignment */
.gr-author-row .gr-form-group.gr-col-3 .gr-checkbox {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.gr-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gr-checkbox-label:hover {
    background: var(--gr-bg);
}

/* Form Steps */
.gr-form-step {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gr-step-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    color: var(--gr-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gr-border-light);
    font-weight: 600;
}

.gr-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gr-primary-light), var(--gr-primary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

/* Timeline */
.gr-timeline-container {
    margin-bottom: 40px;
    padding: 30px 20px;
    background: var(--gr-bg-card);
    border-radius: var(--gr-radius-lg);
    box-shadow: var(--gr-shadow);
}

.gr-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding-right: 0 !important;
}

.gr-timeline-container .gr-timeline::before {
    display: none !important;
}

.gr-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.gr-timeline-step:hover .gr-timeline-step-circle {
    border-color: var(--gr-primary-light);
}

.gr-timeline-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gr-bg);
    border: 3px solid var(--gr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gr-timeline-step-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--gr-text-secondary);
    transition: all 0.3s ease;
}

.gr-timeline-checkmark {
    width: 24px;
    height: 24px;
    display: none;
    color: white;
}

.gr-timeline-step-label {
    margin-top: 12px;
    font-size: 13px;
    color: var(--gr-text-secondary);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gr-timeline-connector {
    flex: 1;
    height: 3px;
    background: var(--gr-border);
    margin: 0 10px;
    position: relative;
    top: -25px;
    z-index: 1;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.gr-timeline-step.active .gr-timeline-step-circle {
    background: linear-gradient(135deg, var(--gr-primary-light), var(--gr-primary));
    border-color: var(--gr-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.3);
}

.gr-timeline-step.active .gr-timeline-step-number {
    color: white;
}

.gr-timeline-step.active .gr-timeline-step-label {
    color: var(--gr-primary);
    font-weight: 600;
}

.gr-timeline-step.completed .gr-timeline-step-circle {
    background: var(--gr-primary);
    border-color: var(--gr-primary);
    transform: scale(1);
}

.gr-timeline-step.completed .gr-timeline-step-number {
    display: none;
}

.gr-timeline-step.completed .gr-timeline-checkmark {
    display: block;
}

.gr-timeline-step.completed .gr-timeline-step-label {
    color: var(--gr-primary);
    font-weight: 600;
}

.gr-timeline-step.completed ~ .gr-timeline-connector {
    background: var(--gr-primary);
}

.gr-timeline-step.active ~ .gr-timeline-connector {
    background: linear-gradient(90deg, var(--gr-primary) 0%, var(--gr-border) 100%);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .gr-timeline-container {
        padding: 15px 0;
        margin-bottom: 20px;
        background: transparent;
        box-shadow: none;
    }
    
    .gr-timeline {
        flex-wrap: nowrap;
        gap: 0;
    }
    
    .gr-timeline-step {
        flex: 1;
        min-width: 0;
    }
    
    .gr-timeline-step:nth-child(odd),
    .gr-timeline-step:nth-child(even) {
        margin-left: 0;
        margin-right: 0;
    }
    
    .gr-timeline-connector {
        display: block;
        margin: 0;
        top: -21px;
    }
    
    .gr-timeline-step-circle {
        width: 42px;
        height: 42px;
    }
    
    .gr-timeline-step-number {
        font-size: 16px;
    }
    
    .gr-timeline-step-label {
        font-size: 11px;
        margin-top: 8px;
        white-space: normal;
        text-align: center;
        padding: 0 4px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .gr-timeline-container {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .gr-timeline-step-circle {
        width: 32px;
        height: 32px;
    }
    
    .gr-timeline-connector {
        top: -16px;
        height: 2px;
    }
    
    .gr-timeline-step-number {
        font-size: 14px;
    }

    .gr-timeline-checkmark {
        width: 18px;
        height: 18px;
    }
    
    .gr-timeline-step-label {
        font-size: 10px;
        margin-top: 6px;
        padding: 0 2px;
    }
}

/* Progress Bar */
.gr-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gr-border-light);
}

.gr-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.gr-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--gr-border);
}

.gr-progress-step.completed::after {
    background: var(--gr-primary);
}

.gr-step-num {
    width: 32px;
    height: 32px;
    border: 2px solid var(--gr-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.gr-progress-step.active .gr-step-num {
    border-color: var(--gr-primary);
    background: var(--gr-primary);
    color: white;
}

.gr-progress-step.completed .gr-step-num {
    border-color: var(--gr-primary);
    background: var(--gr-primary);
    color: white;
}

.gr-step-label {
    font-size: 12px;
    color: var(--gr-text-secondary);
    margin-top: 8px;
}

.gr-progress-step.active .gr-step-label {
    color: var(--gr-primary);
    font-weight: 500;
}

/* Navigation */
.gr-form-navigation {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid var(--gr-border-light);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .gr-form-navigation {
        justify-content: center;
        gap: 10px;
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .gr-form-navigation .gr-btn {
        flex: 1;
        min-width: 100px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gr-form-navigation {
        gap: 8px;
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .gr-form-navigation .gr-btn {
        min-width: 80px;
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Article Form Navigation Mobile Optimization */
    .gr-form-navigation {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    #prev-step, #save-draft {
        order: 1 !important;
        grid-column: span 1 !important;
        background: #f1f5f9 !important;
        color: #475569 !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
    }

    #next-step, #submit-article {
        order: 2 !important;
        grid-column: span 2 !important;
        width: 100% !important;
        margin-top: 5px !important;
    }
}

/* Dashboard */
.gr-dashboard {
    display: flex;
    min-height: 700px;
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.gr-sidebar {
    width: 280px;
    background: #1a1c23;
    padding: 30px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.gr-user-card {
    text-align: center;
    padding: 0 20px 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gr-user-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.gr-user-info h3 {
    color: white;
    margin: 15px 0 15px;
    font-size: 16px;
    font-weight: 600;
}

.gr-user-badge {
    display: flex;
    justify-content: center;
}

.gr-user-badge .gr-badge {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    margin: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gr-user-badge .gr-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.gr-badge-success { background: #48bb78 !important; color: white !important; }
.gr-badge-warning { background: #f6ad55 !important; color: white !important; }
.gr-badge-danger { background: #f56565 !important; color: white !important; }
.gr-badge-pending { background: #ecc94b !important; color: #744210 !important; }
.gr-badge-info { background: #4299e1 !important; color: white !important; }

.gr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    margin-right: auto;
    min-width: 18px;
    height: 18px;
    line-height: 1;
}

.gr-badge-warning { 
    background: #f6ad55 !important; 
    color: #fff !important; 
    padding: 1px 6px;
    font-size: 9px;
    border-radius: 6px;
    white-space: nowrap;
}

.gr-badge-alert {
    background: #ef4444 !important;
    color: #fff !important;
    padding: 0 5px;
    font-size: 12px;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: gr-pulse 2s infinite;
}

@keyframes gr-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.gr-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
}

.gr-nav-group {
    margin-bottom: 25px;
}

.gr-nav-label {
    padding: 0 15px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.gr-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    margin-bottom: 2px;
}

.gr-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.gr-nav-item.active {
    background: var(--gr-primary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(var(--gr-primary-rgb), 0.3);
}

.gr-nav-item.gr-nav-locked {
    opacity: 0.7;
    cursor: pointer;
}

.gr-nav-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gr-nav-logout:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #ff4d4d !important;
}

/* Main Content */
.gr-main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: #f8fafc;
}

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

.gr-content-header h2 {
    margin: 0;
    color: var(--gr-text);
}

/* Stats */
.gr-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gr-stat-box {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.gr-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--gr-primary);
}

.gr-stat-num {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: #1a1c23;
    line-height: 1;
    margin-bottom: 10px;
}

.gr-stat-label {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.gr-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.gr-card h3 {
    margin: 0 0 25px;
    color: #1a1c23;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gr-card h3:before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--gr-primary);
    border-radius: 2px;
}

/* Table */
.gr-table-responsive {
    overflow-x: auto;
}

.gr-table {
    width: 100%;
    border-collapse: collapse;
}

.gr-table th,
.gr-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--gr-border-light);
}

.gr-table th {
    background: var(--gr-bg);
    font-weight: 600;
    color: var(--gr-text-secondary);
}

.gr-table tr:hover td {
    background: #F5F5F5;
}

/* Status Badges */
.gr-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.gr-status-xs {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 6px;
    font-weight: 500;
}

.gr-status-gray { 
    background: #F5F5F5; 
    color: #616161; 
}

.gr-status-blue { 
    background: #E3F2FD; 
    color: #1565C0; 
}

.gr-status-green { 
    background: rgba(var(--gr-primary-rgb), 0.12); 
    color: var(--gr-primary); 
}

.gr-status-emerald { 
    background: #E0F2F1; 
    color: #00695C; 
}

.gr-status-orange { 
    background: #FFF3E0; 
    color: #EF6C00; 
}

.gr-status-yellow { 
    background: #FFFDE7; 
    color: #F9A825; 
}

.gr-status-red { 
    background: #FFEBEE; 
    color: #C62828; 
}

.gr-status-purple { 
    background: #F3E5F5; 
    color: #7B1FA2; 
}

.gr-status-teal { 
    background: #E0F2F1; 
    color: #00796B; 
}

.gr-status-cyan { 
    background: #E0F7FA; 
    color: #00838F; 
}

.gr-status-indigo { 
    background: #E8EAF6; 
    color: #303F9F; 
}

.gr-status-pink { 
    background: #FCE4EC; 
    color: #C2185B; 
}

/* Article Card Status Badge - Enhanced */
.gr-article-card-modern .gr-status-badge {
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Timeline */
.gr-timeline {
    position: relative;
    padding-right: 0;
}

.gr-timeline::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gr-border);
}

.gr-timeline-item {
    position: relative;
    padding: 15px 0;
    padding-right: 30px;
}

.gr-timeline-item::before {
    content: '';
    position: absolute;
    right: -24px;
    top: 20px;
    width: 10px;
    height: 10px;
    background: var(--gr-primary);
    border-radius: 50%;
}

.gr-timeline-date {
    font-size: 12px;
    color: var(--gr-text-light);
}

.gr-timeline-status {
    font-weight: 500;
    color: var(--gr-primary);
    margin: 0 10px;
}

.gr-timeline-desc {
    color: var(--gr-text-secondary);
}

/* Comments */
.gr-comments {
    margin-bottom: 20px;
}

.gr-comment {
    padding: 15px;
    background: var(--gr-bg);
    border-radius: var(--gr-radius-sm);
    margin-bottom: 10px;
}

.gr-comment-admin {
    background: #E3F2FD;
    border-right: 3px solid var(--gr-info);
}

.gr-comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.gr-comment-body {
    color: var(--gr-text);
}

.gr-comment-form textarea {
    margin-bottom: 10px;
}

/* Empty State */
.gr-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gr-text-secondary);
}

/* Notices */
.gr-notice {
    padding: 15px 20px;
    border-radius: var(--gr-radius-sm);
    margin-bottom: 20px;
}

.gr-notice-info {
    background: #E3F2FD;
    color: #1565C0;
    border-right: 4px solid #1976D2;
}

.gr-notice-success {
    background: rgba(var(--gr-primary-rgb), 0.1);
    color: var(--gr-primary);
    border-right: 4px solid var(--gr-primary);
}

.gr-notice-warning {
    background: #FFF3E0;
    color: #EF6C00;
    border-right: 4px solid #FFA000;
}

.gr-notice-error {
    background: #FFEBEE;
    color: #C62828;
    border-right: 4px solid #E53935;
}

/* Preview */
.gr-preview {
    background: var(--gr-bg);
    border-radius: var(--gr-radius-sm);
    padding: 20px;
}

.gr-preview-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gr-border-light);
}

.gr-preview-item:last-child {
    border-bottom: none;
}

/* Sections Box (Nokhbegan) */
.gr-section-box {
    background: var(--gr-bg);
    border-radius: var(--gr-radius-sm);
    padding: 20px;
    margin-bottom: 15px;
}

.gr-section-box h4 {
    margin: 0 0 15px;
    color: var(--gr-primary);
}

.gr-subsections {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gr-conditional-fields {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gr-border);
}

/* Loading Spinner */
.gr-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: gr-spin 0.8s ease infinite;
}

@keyframes gr-spin {
    to { transform: rotate(360deg); }
}

/* Author Row */
.gr-author-row {
    padding: 52px 15px 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
}

.gr-author-row.gr-author-current-user {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 1px solid #86efac;
    padding-top: 52px;
}

.gr-author-badge {
    position: absolute;
    top: 12px;
    right: 15px;
    background: var(--gr-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.gr-author-row .gr-form-row {
    align-items: flex-end;
}

.gr-author-row .gr-form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.gr-author-row.gr-author-current-user .author-national-id[readonly],
.gr-author-row.gr-author-current-user .author-name[readonly] {
    background: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
}

/* Character Count */
.gr-char-count {
    text-align: left;
    font-size: 12px;
    color: var(--gr-text-light);
    margin-top: 5px;
}

/* Form Links */
.gr-form-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gr-border-light);
}

.gr-link {
    color: var(--gr-primary);
    text-decoration: none;
}

.gr-link:hover {
    text-decoration: underline;
}

.gr-separator {
    margin: 0 10px;
    color: var(--gr-text-light);
}

/* Footer */
.gr-auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gr-border-light);
    color: var(--gr-text-light);
    font-size: 13px;
}

/* Public Site Stats */
.gr-site-stats-section {
    width: 100%;
    margin: 0 auto;
}

.gr-site-stats-header {
    text-align: center;
    margin-bottom: 20px;
}

.gr-site-stats-header h2 {
    margin: 0;
    font-size: 28px;
    color: var(--gr-primary-dark);
}

.gr-site-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gr-site-stats-section.is-two-columns .gr-site-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gr-site-stat-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 150px;
    padding: 22px 20px;
    border-radius: 18px;
    border: 1px solid #dbe7d8;
    background:
        radial-gradient(circle at top left, rgba(129, 199, 132, 0.18), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f7fbf7 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.gr-site-stat-card::after {
    content: '';
    position: absolute;
    inset: auto auto -32px -24px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(46, 125, 50, 0.08);
}

.gr-site-stat-card.is-process {
    border-color: #fde68a;
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 42%),
        linear-gradient(180deg, #fffef7 0%, #fff9e8 100%);
}

.gr-site-stat-card.is-process::after {
    background: rgba(250, 204, 21, 0.12);
}

.gr-site-stat-card.is-published {
    border-color: #bbf7d0;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 42%),
        linear-gradient(180deg, #f8fff9 0%, #eefcf1 100%);
}

.gr-site-stat-card.is-published::after {
    background: rgba(34, 197, 94, 0.12);
}

.gr-site-stat-card.is-views {
    border-color: #bfdbfe;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 42%),
        linear-gradient(180deg, #f9fbff 0%, #eef5ff 100%);
}

.gr-site-stat-card.is-views::after {
    background: rgba(59, 130, 246, 0.12);
}

.gr-site-stat-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

.gr-site-stat-value {
    position: relative;
    z-index: 1;
    display: block;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1px;
}

@media (max-width: 1024px) {
    .gr-site-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gr-site-stats-header {
        margin-bottom: 14px;
    }

    .gr-site-stats-header h2 {
        font-size: 22px;
    }

    .gr-site-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gr-site-stat-card {
        min-height: 112px;
        padding: 16px 12px;
        border-radius: 16px;
    }

    .gr-site-stat-label {
        font-size: 12px;
        padding: 5px 10px;
    }

    .gr-site-stat-value {
        font-size: 30px;
    }
}

/* Article Header */
.gr-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gr-tracking-code {
    font-family: monospace;
    font-size: 14px;
    color: var(--gr-text-secondary);
}

/* Nokhbegan Form Improvements */
.gr-period-inline-selection {
    background: #f8fafc;
    border: 1px solid var(--gr-border-light);
    border-radius: var(--gr-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.gr-period-inline-selection label {
    display: block;
    margin-bottom: 10px;
    color: var(--gr-primary);
}

.gr-period-modern-select {
    height: 50px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--gr-text) !important;
    border: 2px solid var(--gr-border) !important;
    cursor: pointer !important;
    background-color: #fff !important;
}

.gr-period-modern-select:focus {
    border-color: var(--gr-primary) !important;
}

/* Verified Info Alert */
.gr-verified-info-alert {
    background: #f0fdf4;
    border: 1px solid #bcf0da;
    border-radius: var(--gr-radius);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    animation: grFadeInUp 0.5s ease-out;
}

.gr-alert-icon {
    width: 44px;
    height: 44px;
    background: #dcfce7;
    color: #166534;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gr-alert-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.gr-alert-content {
    flex: 1;
}

.gr-alert-content strong {
    display: block;
    font-size: 16px;
    color: #166534;
    margin-bottom: 4px;
}

.gr-alert-content p {
    margin: 0;
    font-size: 14px;
    color: #15803d;
    line-height: 1.6;
}

@keyframes grFadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .gr-period-selection-card {
        padding: 20px;
    }
    
    .gr-verified-info-alert {
        padding: 15px;
    }
}

/* End of Nokhbegan Form Improvements */

/* Rules and Video UI */
.gr-rules-text {
    font-size: 15px;
    color: var(--gr-text);
}

.gr-rules-text h1, .gr-rules-text h2, .gr-rules-text h3 {
    color: var(--gr-primary);
    margin-top: 20px;
}

.gr-rules-text ul, .gr-rules-text ol {
    padding-right: 20px;
    margin-bottom: 20px;
}

.gr-rules-text li {
    margin-bottom: 8px;
}

.gr-video-container {
    background: #000;
    line-height: 0;
}

.h_iframe-aparat_embed_frame {
    position: relative;
}

.h_iframe-aparat_embed_frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Modern History Timeline (User Dashboard) */
.gr-history-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.gr-history-title {
    margin: 0 !important;
    font-weight: 700 !important;
}

.gr-order-btn {
    padding: 4px 10px !important;
    font-size: 11px !important;
    border-radius: 20px !important;
    white-space: nowrap;
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gr-order-btn .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.gr-history-timeline-modern {
    position: relative;
    padding-right: 30px;
    margin-top: 20px;
}

.gr-history-timeline-modern::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.gr-timeline-item-modern {
    position: relative;
    margin-bottom: 25px;
}

.gr-timeline-item-modern:last-child {
    margin-bottom: 0;
}

.gr-timeline-marker {
    position: absolute;
    right: -24px;
    top: 20px;
    z-index: 2;
}

.gr-timeline-dot {
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--gr-primary);
    border-radius: 50%;
}

.gr-timeline-content-modern {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.gr-timeline-item-modern:hover .gr-timeline-content-modern {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--gr-primary-light);
}

.gr-timeline-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.gr-timeline-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gr-primary);
}

.gr-timeline-status-badge strong {
    font-size: 15px;
}

.gr-timeline-date-modern {
    font-size: 12px;
    color: var(--gr-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 20px;
}

.gr-timeline-body-modern {
    color: var(--gr-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.gr-timeline-footer-modern {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #edf2f7;
    display: flex;
    justify-content: flex-end;
}

.gr-ip-badge {
    font-size: 11px;
    color: #cbd5e0;
    font-family: monospace;
}

/* Empty State Improvement */
.gr-empty-icon {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .gr-history-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .gr-history-title {
        font-size: 16px !important;
    }

    .gr-page-subtitle {
        font-size: 11px !important;
    }
    
    .gr-order-btn {
        width: auto;
        padding: 3px 8px !important;
        font-size: 10px !important;
    }
}

/* End of Modern History Timeline */

/* Dashboard Summary Styles */
.gr-dashboard-summary {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Slider */
.gr-dashboard-slider-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gr-slider {
    position: relative;
    width: 100%;
    height: 350px;
    background: #eee;
}

.gr-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gr-slide.active {
    opacity: 1;
    z-index: 2;
}

.gr-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gr-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 40px 20px 20px;
}

.gr-slide-caption h3 {
    margin: 0;
    font-size: 20px;
    color: white !important;
    border: none !important;
}

.gr-slider-prev, .gr-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gr-slider-prev:hover, .gr-slider-next:hover {
    background: rgba(255,255,255,0.5);
}

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

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

.gr-slider-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gr-slider-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Dashboard Grid */
.gr-dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

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

.gr-card-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.gr-card-header-simple h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    border: none !important;
    padding: 0 !important;
}

.gr-view-all {
    font-size: 12px;
    color: var(--gr-primary);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* Mini Stats */
.gr-stats-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gr-stat-mini {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.gr-stat-mini .num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.gr-stat-mini .label {
    font-size: 12px;
    color: #64748b;
}

/* Quick Links */
.gr-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gr-quick-actions-card-standalone .gr-quick-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gr-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    text-decoration: none !important;
    color: #475569;
    transition: all 0.3s ease;
    text-align: center;
}

.gr-quick-btn:hover {
    background: white;
    border-color: var(--gr-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    color: var(--gr-primary);
}

.gr-quick-btn .dashicons {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
}

.gr-quick-btn span:last-child {
    font-size: 12px;
    font-weight: 600;
}

/* Simple Activities */
.gr-activities-list-simple {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gr-activity-item-simple {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.gr-activity-item-simple:hover {
    background: #f8fafc;
}

.gr-activity-item-simple .icon-box {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gr-primary);
}

.gr-activity-item-simple .content {
    flex: 1;
}

.gr-activity-item-simple .title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.gr-activity-item-simple .date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.gr-empty-small {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 13px;
}

.gr-dashboard-overview-card {
    border-color: #dbeafe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.gr-dashboard-overview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.gr-overview-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.gr-overview-pill.is-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.gr-overview-pill.is-pending {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.gr-overview-pill.is-warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.gr-dashboard-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gr-kpi-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.gr-kpi-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.gr-kpi-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gr-kpi-icon {
    width: 42px;
    height: 42px;
    color: #94a3b8;
    opacity: 0.55;
    flex-shrink: 0;
}

.gr-kpi-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.gr-kpi-item .kpi-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.gr-kpi-item .kpi-value {
    font-size: 20px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.2;
}

.gr-kpi-item.kpi-warning {
    background: #fffdf2;
    border-color: #fde68a;
}

.gr-kpi-item.kpi-warning .gr-kpi-icon {
    color: #d97706;
    opacity: 0.45;
}

.gr-kpi-item.kpi-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.gr-kpi-item.kpi-success .gr-kpi-icon {
    color: #15803d;
    opacity: 0.42;
}

.gr-summary-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.gr-pending-actions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gr-pending-actions-list li {
    margin: 0;
    padding: 0;
}

.gr-pending-action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.gr-pending-action-link:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.gr-latest-records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gr-latest-record-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    background: #fafcff;
}

.gr-latest-record-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.gr-latest-record-head h4 {
    margin: 0;
    font-size: 13px;
    color: #334155;
}

.gr-latest-record-title {
    margin: 0 0 8px;
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.6;
}

.gr-latest-record-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
}

.gr-latest-record-meta a {
    color: var(--gr-primary);
    text-decoration: none !important;
    font-weight: 600;
}

.gr-latest-record-empty {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.gr-publication-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gr-publication-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f8fafc;
}

.gr-publication-link-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gr-publication-link-meta strong {
    font-size: 13px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-publication-link-meta span {
    font-size: 11px;
    color: #64748b;
}

.gr-publication-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 8px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.gr-publication-link-btn:hover {
    background: #e0e7ff;
}

.gr-publication-link-empty {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

/* Responsive Dashboard Summary */
@media (max-width: 1280px) {
    .gr-dashboard-kpi-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .gr-summary-panels {
        grid-template-columns: 1fr;
    }

    .gr-quick-actions-card-standalone .gr-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gr-slider {
        height: 200px;
    }
    
    .gr-slide-caption {
        padding: 20px 15px 15px;
    }
    
    .gr-slide-caption h3 {
        font-size: 16px !important;
    }
    
    .gr-stats-mini-grid, .gr-quick-links {
        grid-template-columns: 1fr 1fr;
    }

    .gr-dashboard-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gr-kpi-item {
        padding: 10px;
        gap: 8px;
    }

    .gr-kpi-icon {
        width: 34px;
        height: 34px;
    }

    .gr-dashboard-overview-meta {
        gap: 8px;
    }

    .gr-overview-pill {
        width: 100%;
        justify-content: center;
    }

    .gr-publication-link-row,
    .gr-latest-record-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .gr-publication-link-btn,
    .gr-publication-link-empty {
        width: 100%;
        text-align: center;
    }
}

/* Nokhbegan Form Modern Styles */
.gr-step-header-modern {
    margin-bottom: 30px;
    text-align: center;
}

.gr-step-desc {
    color: #64748b;
    font-size: 14px;
    margin-top: 8px;
}

.gr-selected-period-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gr-success);
    font-size: 15px;
    background: #f0fdf4;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.gr-selected-period-display .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.gr-verified-alert-modern {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.gr-verified-alert-modern .icon-box {
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0369a1;
    flex-shrink: 0;
}

.gr-verified-alert-modern .content strong {
    display: block;
    font-size: 14px;
    color: #0c4a6e;
    margin-bottom: 4px;
}

.gr-verified-alert-modern .content p {
    font-size: 12px;
    color: #075985;
    margin: 0;
    line-height: 1.6;
}

/* Dashboard Sidebar and Mobile Menu */
.gr-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #1a1c23;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.gr-menu-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.gr-menu-toggle .dashicons {
    font-size: 30px !important;
    width: 30px !important;
    height: 30px !important;
}

.gr-mobile-logo {
    font-weight: 700;
    font-size: 16px;
}

.gr-mobile-verification-status {
    text-decoration: none !important;
}

.gr-mobile-verification-status .status-text {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.gr-mobile-verification-status .status-success {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.gr-mobile-verification-status .status-pending {
    background: rgba(66, 153, 225, 0.2);
    color: #4299e1;
}

.gr-mobile-verification-status .status-warning {
    background: rgba(237, 137, 54, 0.2);
    color: #ed8936;
}

.gr-mobile-verification-status .status-danger {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
}

.gr-mobile-user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gr-sidebar-close {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 1002;
}

/* Article View Header Modern - Desktop */
.gr-article-view-header-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    margin-bottom: 30px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.gr-view-info-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.gr-view-info-item:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    border-color: var(--gr-primary-light);
}

.gr-info-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.gr-info-value {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gr-info-value .dashicons {
    color: var(--gr-primary);
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

.gr-article-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.gr-details-card {
    padding: 25px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.gr-section-header-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--gr-primary);
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 15px !important;
}

.gr-section-header-modern h3 {
    margin: 0;
    font-size: 17px;
    color: #1e293b;
    padding: 0 !important;
    border: none !important;
}

.gr-section-header-modern h3:before {
    display: none !important;
}

.gr-section-header-modern .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* View Article Header Modern - Unified */
.gr-view-header-modern {
    margin-bottom: 35px;
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.gr-back-btn-minimal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.gr-back-btn-minimal:hover {
    color: var(--gr-primary);
    transform: translateX(5px);
}

.gr-view-title-main {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    border: none !important;
    padding: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .gr-dashboard {
        flex-direction: column;
        border-radius: 0;
        min-height: auto;
    }

    .gr-mobile-header {
        display: flex;
    }

    .gr-sidebar {
        position: fixed;
        top: 0;
        right: -280px; /* Start hidden */
        width: 280px;
        height: 100vh;
        z-index: 2000;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        padding-top: 50px !important;
    }

    .gr-sidebar.active {
        right: 0;
    }

    .gr-sidebar-close {
        display: block;
    }

    .gr-nav {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-y: auto;
    }

    .gr-nav-item {
        width: 100%;
        margin-bottom: 5px !important;
    }

    /* Overlay when menu is open */
    .gr-dashboard-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        z-index: 1999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gr-dashboard-overlay.active {
        display: block;
        opacity: 1;
    }

    .gr-main-content {
        padding: 15px 12px !important;
        background: #fff !important; /* Make main background white on mobile */
    }

    .gr-card {
        padding: 0 !important; /* Remove card padding */
        border: none !important; /* Remove card border */
        box-shadow: none !important; /* Remove card shadow */
        margin-bottom: 30px !important;
        background: transparent !important; /* Remove card white background */
    }

    .gr-card h3 {
        padding-bottom: 12px !important;
        margin-bottom: 20px !important;
        font-size: 17px !important;
    }

    .gr-stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for stats */
        gap: 12px !important;
        margin-bottom: 30px !important;
    }

    .gr-stat-box {
        padding: 15px 10px !important;
        border-radius: 12px !important;
        background: #f8fafc !important; /* Light background for stats */
    }

    .gr-stat-num {
        font-size: 28px !important;
    }

    .gr-stat-label {
        font-size: 12px !important;
    }

    /* Handle the 3rd stat box to be full width or 2 columns if needed */
    .gr-stat-box:last-child {
        grid-column: span 2;
    }

    /* Verification Forms Mobile Optimization */
    .gr-verification-form {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .gr-verification-header, .gr-verification-intro {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
        background: #f0f7ff !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    .gr-verification-header h3, .gr-verification-intro h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .gr-verification-icon, .gr-intro-icon {
        margin: 0 auto 15px !important;
    }

    .gr-form-section {
        padding: 0 !important;
        margin-bottom: 25px !important;
        border: none !important;
        background: transparent !important;
    }

    .gr-section-title {
        font-size: 16px !important;
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #edf2f7 !important;
    }

    .gr-status-banner {
        flex-direction: column !important;
        padding: 15px !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .gr-status-icon {
        margin: 0 auto !important;
    }

    .gr-status-content h4 {
        font-size: 16px !important;
        margin-bottom: 5px !important;
    }

    .gr-status-content p {
        font-size: 13px !important;
    }

    /* Child rows in verification */
    .gr-child-row {
        padding: 15px !important;
        background: #f8fafc !important;
        border-radius: 10px !important;
        margin-bottom: 15px !important;
    }

    /* Document grid on mobile */
    .gr-documents-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .gr-document-item {
        padding: 12px !important;
    }

    .gr-form-row {
        margin: 0 !important;
        display: block !important;
    }

    .gr-col-6, .gr-col-4, .gr-col-12 {
        padding: 0 !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .gr-input, .gr-select, .gr-textarea {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .gr-content-header {
        margin-bottom: 20px !important;
    }

    .gr-content-header h2 {
        font-size: 19px !important;
    }

    /* Nokhbegan Form Mobile Optimization */
    .gr-nokhbegan-form-container {
        padding: 0 !important;
    }

    .gr-form-header {
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .gr-form-header h2 {
        font-size: 20px !important;
    }

    .gr-progress-bar {
        padding: 15px 5px !important;
        margin-bottom: 25px !important;
        border-bottom: none !important;
        background: #f8fafc !important;
        border-radius: 12px !important;
    }

    .gr-progress-step {
        flex: 1 !important;
    }

    .gr-progress-step:not(:last-child)::after {
        top: 14px !important;
        height: 2px !important;
        width: 80% !important;
        left: -40% !important;
        background: #e2e8f0 !important;
    }

    .gr-progress-step.completed:not(:last-child)::after {
        background: var(--gr-primary) !important;
    }

    .gr-step-label {
        font-size: 9px !important;
        margin-top: 6px !important;
        color: #718096 !important;
        font-weight: 600 !important;
    }

    .gr-step-num {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
        border-width: 1px !important;
    }

    .gr-progress-step:not(:last-child)::after {
        top: 14px !important;
        height: 1px !important;
    }

    .gr-form-step {
        padding: 0 !important;
    }

    .gr-step-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }

    .gr-period-inline-selection {
        background: #f8fafc !important;
        padding: 15px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
    }

    .gr-verified-info-alert {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
        gap: 10px !important;
    }

    .gr-alert-icon {
        margin: 0 auto !important;
    }

    .gr-section-box {
        padding: 15px !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
        background: #fff !important;
        border: 1px solid #edf2f7 !important;
    }

    .gr-section-box h4 {
        font-size: 16px !important;
        margin-bottom: 15px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        padding-bottom: 10px !important;
    }

    .gr-checkbox-label {
        padding: 12px !important;
        font-size: 14px !important;
        background: #f8fafc !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
    }

    .gr-conditional-fields {
        padding: 15px 10px !important;
        margin-top: 10px !important;
        border-right: 2px solid var(--gr-primary) !important;
        background: #fff !important;
    }

    .gr-form-navigation {
        position: sticky !important;
        bottom: 0 !important;
        background: #fff !important;
        padding: 15px 0 !important;
        margin-top: 20px !important;
        border-top: 1px solid #edf2f7 !important;
        z-index: 100 !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .gr-form-navigation .gr-btn {
        margin: 0 !important;
        width: 100% !important;
        padding: 12px 5px !important;
        font-size: 14px !important;
    }

    /* Re-order buttons for better UX */
    #nkh-prev-step { order: 1; }
    #nkh-next-step { order: 2; }
    #nkh-save-draft { order: 3; grid-column: span 2; }
    #nkh-submit { order: 2; }

    /* Rules section on mobile */
    #nkh-rules-content {
        padding: 15px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .gr-video-container {
        border-radius: 8px !important;
    }

    /* Identity verification steps in mobile */
    .gr-verification-levels {
        padding: 15px !important;
    }

    .gr-level-info h4 {
        font-size: 15px !important;
    }

    .gr-level-info p {
        font-size: 12px !important;
    }

    /* Revision notice in mobile */
    .gr-revision-notice {
        padding: 12px !important;
        margin-bottom: 20px !important;
        background: #fff5f5 !important;
        border: 1px solid #feb2b2 !important;
        border-radius: 10px !important;
    }

    .gr-revision-notice h4 {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    .gr-revision-notice p {
        font-size: 13px !important;
    }

    /* Stack profile image upload on mobile */
    .gr-form-group div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }

    #profile-image-preview {
        width: 100px !important;
        height: 100px !important;
    }

    /* Articles Modern List */
    .gr-desktop-only {
        display: none !important;
    }

    .gr-articles-list-modern {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .gr-article-card-modern {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        position: relative;
    }

    .gr-article-card-modern::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--gr-primary) 0%, var(--gr-primary-light) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gr-article-card-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.08);
        border-color: var(--gr-primary-light);
    }

    .gr-article-card-modern:hover::before {
        opacity: 1;
    }

    .gr-article-card-top {
        display: flex;
        flex-direction: column;
        gap: 0 !important;
        padding: 10px 18px 0 18px !important;
        background: transparent !important;
        border: none !important;
        border-bottom: none !important;
    }

    .gr-article-title {
        font-size: 15px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #1e293b !important;
        font-weight: 700 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        border: none !important;
        border-bottom: none !important;
        transition: color 0.2s ease;
        min-height: 0 !important;
    }

    .gr-article-title::before,
    .gr-article-title::after {
        display: none !important;
        content: none !important;
    }

    .gr-article-card-modern:hover .gr-article-title {
        color: var(--gr-primary) !important;
    }

    .gr-article-tracking {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #64748b;
        font-size: 10px;
        font-weight: 600;
        background: rgba(100, 116, 139, 0.08);
        padding: 2px 8px !important;
        border-radius: 6px;
        align-self: flex-start;
        margin: 4px 0 0 0 !important;
        border: none !important;
    }

    .gr-tracking-code {
        font-family: 'Courier New', monospace;
        letter-spacing: 0.5px;
    }

    .gr-article-type {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 10px;
        color: #64748b;
        font-weight: 500;
        background: rgba(100, 116, 139, 0.05);
        padding: 3px 10px;
        border-radius: 6px;
        margin-top: 5px !important;
        border: none !important;
    }

    .gr-article-type .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
        color: #94a3b8;
    }

    /* Footer with two badges */
    .gr-footer-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        margin-bottom: 12px;
    }

    /* Enhanced Status Badge in Article Cards */
    .gr-article-card-modern .gr-status-badge {
        padding: 8px 16px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        border-radius: 20px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
        min-width: fit-content;
        flex-shrink: 0;
        text-transform: uppercase;
        position: relative;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .gr-article-card-modern .gr-status-badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .gr-article-card-modern:hover .gr-status-badge::before {
        left: 100%;
    }

    /* Date Badge - Light Gray */
    .gr-date-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 16px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.3px;
        border-radius: 20px;
        background: linear-gradient(135deg, #F5F5F5 0%, #EEEEEE 100%);
        color: #616161;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        width: 100%;
    }

    .gr-date-badge .dashicons {
        font-size: 13px;
        width: 13px;
        height: 13px;
        color: #9E9E9E;
    }

    /* Light color variations for better visibility */
    .gr-article-card-modern .gr-status-green {
        background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%) !important;
        color: #1B5E20 !important;
    }

    .gr-article-card-modern .gr-status-blue {
        background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%) !important;
        color: #0D47A1 !important;
    }

    .gr-article-card-modern .gr-status-orange {
        background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%) !important;
        color: #E65100 !important;
    }

    .gr-article-card-modern .gr-status-red {
        background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%) !important;
        color: #B71C1C !important;
    }

    .gr-article-card-modern .gr-status-yellow {
        background: linear-gradient(135deg, #FFFDE7 0%, #FFF9C4 100%) !important;
        color: #F57F17 !important;
    }

    .gr-article-card-modern .gr-status-gray {
        background: linear-gradient(135deg, #F5F5F5 0%, #EEEEEE 100%) !important;
        color: #424242 !important;
    }

    .gr-article-card-modern .gr-status-purple {
        background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%) !important;
        color: #4A148C !important;
    }

    .gr-article-card-body {
        padding: 0 18px 8px 18px;
    }

    .gr-article-card-footer {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px 18px;
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
    }

    .gr-card-actions {
        display: flex;
        gap: 8px;
        width: 100%;
        flex-wrap: wrap;
    }

    .gr-card-actions .gr-btn {
        flex: 1;
        min-width: 120px;
        padding: 10px 16px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        transition: all 0.2s ease !important;
        justify-content: center;
    }

    .gr-card-actions .gr-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    }

    /* View Article Details Modern Styles */
    .gr-view-header-modern {
        padding: 15px !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
    }

    .gr-view-title-main {
        font-size: 18px !important;
        line-height: 1.5 !important;
    }

    .gr-back-btn-minimal {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .gr-article-view-header-modern {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 20px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .gr-view-info-item {
        background: white !important;
        border: 1px solid #edf2f7;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: center;
        text-align: center;
    }

    .gr-info-label {
        font-size: 10px;
        color: #64748b;
        font-weight: 600;
        margin-bottom: 0;
    }

    .gr-info-value {
        font-size: 11px;
        font-weight: 700;
        color: #1e293b;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .gr-info-value .dashicons {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
    }

    .gr-article-details-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .gr-details-card {
        padding: 15px !important;
        background: white !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
    }

    .gr-section-header-modern {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;
        color: var(--gr-primary);
        border-bottom: 1px solid #f1f5f9 !important;
        padding-bottom: 10px !important;
    }

    .gr-section-header-modern h3 {
        margin: 0 !important;
        font-size: 15px !important;
        padding: 0 !important;
        border: none !important;
        color: #1e293b !important;
    }

    .gr-section-header-modern h3:before {
        display: none !important;
    }

    .gr-section-header-modern .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    .gr-keywords-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .gr-keyword-tag {
        background: #f0fdf4;
        color: #166534;
        font-size: 11px;
        padding: 3px 10px;
        border-radius: 6px;
        border: 1px solid #bbf7d0;
    }

    .gr-abstract-box {
        font-size: 13px;
        line-height: 1.8;
        color: #334155;
        text-align: justify;
    }

    /* Comments Modern Styles */
    .gr-comments-list-modern {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .gr-comment-modern {
        display: flex;
        width: 100%;
    }

    .gr-comment-modern.admin-reply {
        justify-content: flex-start;
    }

    .gr-comment-modern.user-comment {
        justify-content: flex-end;
    }

    .gr-comment-bubble {
        max-width: 90%;
        padding: 12px 15px;
        border-radius: 15px;
        position: relative;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .admin-reply .gr-comment-bubble {
        background: #f1f5f9;
        color: #1e293b;
        border-top-right-radius: 2px;
    }

    .user-comment .gr-comment-bubble {
        background: var(--gr-primary);
        color: white;
        border-top-left-radius: 2px;
    }

    .gr-comment-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        font-size: 10px;
        margin-bottom: 5px;
        opacity: 0.8;
    }

    .gr-comment-text {
        font-size: 13px;
        line-height: 1.6;
    }

    .gr-textarea-modern {
        width: 100% !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        padding: 10px !important;
        font-size: 13px !important;
        margin-bottom: 10px !important;
        background: #f8fafc !important;
    }

    /* History Timeline Modern View */
    /* Notice Card Modern */
    .gr-notice-card {
        border-right-width: 4px !important;
    }

    .gr-notice-error-modern {
        background: #fef2f2 !important;
        border-right-color: #ef4444 !important;
    }

    .gr-notice-warning-modern {
        background: #fffbeb !important;
        border-right-color: #f59e0b !important;
    }

    .gr-notice-content-modern {
        font-size: 13px;
        line-height: 1.6;
        color: #4b5563;
        margin-bottom: 12px;
    }

    .gr-notice-action-modern {
        margin-top: 10px;
    }

    /* Author rows in form */
    .gr-author-row {
        background: #f8fafc !important;
        padding: 52px 12px 12px !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 15px !important;
        position: relative !important;
    }

    .gr-author-badge {
        position: absolute !important;
        top: 12px !important;
        right: 15px !important;
        background: var(--gr-primary) !important;
        color: white !important;
        padding: 2px 10px !important;
        border-radius: 20px !important;
        font-size: 11px !important;
        z-index: 10 !important;
    }

    .gr-author-remove-btn {
        top: 10px !important;
        left: 10px !important;
        height: 30px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }

    /* Timeline in article view */
    .gr-article-history-section .gr-timeline {
        padding-right: 20px !important;
    }

    .gr-timeline-item {
        margin-bottom: 20px !important;
    }

    .gr-timeline-content {
        padding: 12px !important;
    }

    .gr-timeline-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

@media (min-width: 769px) {
    .gr-articles-list-modern {
        display: none !important;
    }
}

/* Toast Notification System */
.gr-toast-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 90%;
    width: 400px;
}

[dir="rtl"] .gr-toast-container {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.gr-toast {
    background: var(--gr-bg-card);
    border-radius: var(--gr-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 300px;
    max-width: 100%;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    border-right: 4px solid;
    animation: grToastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.gr-toast::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.gr-toast.gr-toast-success {
    border-right-color: var(--gr-success);
    color: var(--gr-success);
}

.gr-toast.gr-toast-error {
    border-right-color: var(--gr-error);
    color: var(--gr-error);
}

.gr-toast.gr-toast-warning {
    border-right-color: var(--gr-warning);
    color: var(--gr-warning);
}

.gr-toast.gr-toast-info {
    border-right-color: var(--gr-info);
    color: var(--gr-info);
}

.gr-toast.gr-toast-hiding {
    animation: grToastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.gr-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.15;
}

.gr-toast-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
}

.gr-toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gr-toast-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--gr-text);
    line-height: 1.4;
}

.gr-toast-message {
    font-size: 13px;
    color: var(--gr-text-secondary);
    line-height: 1.5;
}

.gr-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: var(--gr-text-light);
    background: transparent;
    border: none;
    padding: 0;
}

.gr-toast-close:hover {
    background: var(--gr-bg-dark);
    color: var(--gr-text);
}

.gr-toast-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
}

@keyframes grToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes grToastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

@media (max-width: 768px) {
    .gr-toast-container {
        top: 70px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        transform: none;
    }
    
    [dir="rtl"] .gr-toast-container {
        right: 10px;
        left: 10px;
        transform: none;
    }
    
    .gr-toast {
        min-width: auto;
        width: 100%;
    }
}

/* In-app confirmation modal */
body.gr-modal-open {
    overflow: hidden;
}

.gr-confirm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(4px);
    animation: grConfirmFadeIn 0.18s ease;
}

.gr-confirm-modal-overlay.is-closing {
    animation: grConfirmFadeOut 0.18s ease forwards;
}

.gr-confirm-modal {
    width: min(100%, 430px);
    direction: rtl;
    background: var(--gr-bg-card);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
    overflow: hidden;
    animation: grConfirmPopIn 0.18s ease;
}

.gr-confirm-modal-body {
    padding: 24px 24px 18px;
    text-align: center;
}

.gr-confirm-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gr-confirm-modal-icon .dashicons {
    color: inherit !important;
}

.gr-confirm-modal-icon-warning {
    color: #b45309;
    background: #fffbeb;
}

.gr-confirm-modal-icon-danger {
    color: #b91c1c;
    background: #fef2f2;
}

.gr-confirm-modal-title {
    margin: 0 0 10px;
    color: var(--gr-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.gr-confirm-modal-message {
    margin: 0;
    color: var(--gr-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.8;
}

.gr-confirm-modal-detail {
    margin: 10px 0 0;
    color: var(--gr-text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.gr-confirm-modal-actions {
    display: flex;
    gap: 10px;
    padding: 16px 20px 20px;
    background: #f9fafb;
    border-top: 1px solid var(--gr-border-light);
}

.gr-confirm-modal-actions .gr-btn {
    flex: 1 1 0;
    min-height: 42px;
    white-space: normal;
    line-height: 1.5;
}

@keyframes grConfirmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes grConfirmFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes grConfirmPopIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .gr-confirm-modal-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .gr-confirm-modal {
        width: 100%;
    }

    .gr-confirm-modal-body {
        padding: 22px 18px 16px;
    }

    .gr-confirm-modal-actions {
        flex-direction: column-reverse;
        padding: 14px 16px 16px;
    }
}

/* Keywords Tags */
.gr-keywords-container {
    position: relative;
}

.gr-keywords-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-height: 40px;
    padding: 10px;
    background: var(--gr-bg);
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius-sm);
    align-items: flex-start;
}

.gr-keywords-empty {
    color: var(--gr-text-light);
    font-size: 13px;
    font-style: italic;
    padding: 5px 0;
}

.gr-keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    animation: keywordTagSlideIn 0.3s ease-out;
}

.gr-keyword-text {
    line-height: 1.4;
}

.gr-keyword-remove {
    background: rgba(22, 101, 52, 0.12);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gr-keyword-remove:hover {
    background: rgba(22, 101, 52, 0.2);
    transform: scale(1.1);
}

.gr-keyword-remove svg {
    width: 12px;
    height: 12px;
    color: #166534;
}

.gr-keywords-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.gr-keywords-input {
    flex: 1;
}

.gr-keywords-add-btn {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    align-self: stretch;
    min-height: calc(var(--inputs-height, 2em) + var(--inputs-border-width, 1px) * 2);
}

.gr-keywords-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--gr-text-light);
    font-size: 12px;
}

.gr-keywords-hint svg {
    flex-shrink: 0;
    color: var(--gr-info);
}

@keyframes keywordTagSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gr-keywords-input-wrapper {
        flex-direction: column;
    }
    
    .gr-keywords-add-btn {
        width: 100%;
        justify-content: center;
    }
    
    .gr-keywords-tags {
        padding: 8px;
    }
    
    .gr-keyword-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* File Upload Preview */
.gr-file-preview {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gr-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--gr-bg);
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius-sm);
    transition: all 0.2s ease;
}

.gr-file-item:hover {
    background: var(--gr-bg-dark);
    border-color: var(--gr-primary);
}

.gr-file-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--gr-primary);
    background: rgba(var(--gr-primary-rgb), 0.1);
    border-radius: var(--gr-radius-sm);
}

.gr-file-item-icon svg {
    width: 20px;
    height: 20px;
}

.gr-file-item-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--gr-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.gr-file-item-size {
    font-size: 12px;
    color: var(--gr-text-light);
    flex-shrink: 0;
}

.gr-file-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gr-error);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gr-file-item-remove:hover {
    background: rgba(229, 57, 53, 0.1);
    transform: scale(1.1);
}

.gr-file-item-remove svg {
    width: 16px;
    height: 16px;
}

.gr-file-item-remove-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gr-error);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gr-file-item-remove-selected:hover {
    background: rgba(229, 57, 53, 0.1);
    transform: scale(1.08);
}

.gr-file-item-remove-selected svg {
    width: 16px;
    height: 16px;
}

/* Upload Step - Ordered List Layout */
.gr-upload-fields-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gr-upload-list-item {
    margin-bottom: 0;
    padding: 14px;
    border: 1px solid var(--gr-border);
    border-radius: 12px;
    background: #fff;
}

.gr-upload-list-head {
    margin-bottom: 10px;
}

.gr-upload-list-head-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gr-upload-list-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--gr-text);
}

.gr-upload-list-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.gr-upload-list-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.gr-upload-list-badge.is-required {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.gr-upload-list-badge.is-optional {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.gr-upload-list-formats {
    font-size: 12px;
    color: var(--gr-text-light);
}

.gr-upload-files-block {
    margin-bottom: 10px;
}

.gr-upload-block-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gr-text-secondary);
    margin-bottom: 6px;
}

.gr-file-item-row {
    border-radius: 10px;
}

.gr-upload-input-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gr-upload-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gr-upload-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

.gr-upload-section-current {
    background: #f8fafc;
}

.gr-upload-section-new {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.gr-upload-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.gr-upload-empty {
    font-size: 12px;
    color: #64748b;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
}

.gr-file-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.gr-file-input-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.gr-file-picker-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    line-height: 1;
    margin: 0 !important;
    min-width: 120px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--gr-primary);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gr-primary-light), var(--gr-primary));
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(var(--gr-primary-rgb), 0.18);
}

.gr-file-picker-btn:hover {
    background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-dark));
    color: #fff !important;
    transform: translateY(-1px);
}

.gr-file-picker-btn:visited,
.gr-file-picker-btn:focus,
.gr-file-picker-btn:active {
    color: #fff !important;
}

.gr-file-picker-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    line-height: 0;
}

.gr-file-picker-btn-text {
    display: inline-flex;
    align-items: center;
}

.gr-file-picker-name {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f8fafc;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gr-file-picker-name.is-filled {
    color: #0f172a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.gr-file-picker-clear {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff5f5;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gr-file-picker-clear.is-visible {
    display: inline-flex;
}

.gr-file-picker-clear:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.gr-upload-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gr-upload-action-btn:hover {
    border-color: var(--gr-primary);
    color: var(--gr-primary);
    background: #f0fdf4;
}

.gr-upload-remove-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff5f5;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gr-upload-remove-row-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.gr-upload-multi-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gr-upload-row-line {
    padding: 10px;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    background: #fcfcfc;
}

.gr-upload-row-description {
    margin-top: 0;
}

.gr-add-row-btn {
    align-self: flex-start;
}

.gr-remove-multi-upload-row {
    margin-top: 6px;
}

.gr-upload-multi-row:first-child .gr-remove-multi-upload-row {
    display: none;
}

.gr-upload-description-view {
    margin: 4px 0 8px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.7;
    white-space: pre-wrap;
}

.gr-upload-archive {
    margin-top: 10px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 8px;
}

.gr-upload-archive summary {
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    outline: none;
}

.gr-upload-archive[open] summary {
    margin-bottom: 8px;
}

.gr-file-item-archive {
    opacity: 0.85;
}

@media (max-width: 640px) {
    .gr-upload-list-head-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .gr-upload-list-meta {
        width: 100%;
    }

    .gr-file-picker {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .gr-file-picker-btn {
        width: 100%;
    }

    .gr-file-picker-name {
        white-space: normal;
        word-break: break-word;
    }

    .gr-file-picker-clear {
        width: 100%;
    }
}

/* File Progress Bar */
.gr-file-progress {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gr-file-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--gr-bg-dark);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gr-file-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gr-primary), var(--gr-primary-light));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
    overflow: hidden;
}

.gr-file-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 1.5s infinite;
}

.gr-file-progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--gr-primary);
    min-width: 40px;
    text-align: left;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gr-file-item {
        padding: 8px 10px;
    }
    
    .gr-file-item-name {
        font-size: 12px;
    }
    
    .gr-file-item-size {
        font-size: 11px;
    }
    
    .gr-file-progress {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .gr-file-progress-text {
        text-align: center;
    }
}

/* Preview Section */
.gr-preview {
    background: var(--gr-bg-card);
    border-radius: var(--gr-radius);
    padding: 0;
    box-shadow: var(--gr-shadow);
}

.gr-preview-content {
    padding: 24px;
}

.gr-preview-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gr-border);
}

.gr-preview-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gr-preview-field:first-child {
    padding-top: 0;
}

.gr-preview-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gr-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gr-preview-field-label svg {
    width: 16px;
    height: 16px;
    color: var(--gr-primary);
}

.gr-preview-field-value {
    font-size: 15px;
    color: var(--gr-text);
    line-height: 1.6;
    padding-right: 24px;
}

.gr-preview-abstract {
    font-size: 15px;
    color: var(--gr-text);
    line-height: 1.8;
    text-align: justify;
    padding: 16px;
    background: var(--gr-bg);
    border-radius: var(--gr-radius-sm);
    border-right: 4px solid var(--gr-primary);
    margin-top: 8px;
}

.gr-preview-authors {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gr-preview-author-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gr-bg-card);
    border-radius: var(--gr-radius-sm);
    border: 1px solid var(--gr-border);
    transition: all 0.2s ease;
}

.gr-preview-author-item:hover {
    border-color: var(--gr-primary);
    box-shadow: var(--gr-shadow-sm);
    transform: translateX(-4px);
}

.gr-preview-author-item.gr-preview-author-corresponding {
    border-color: var(--gr-primary);
    background: linear-gradient(135deg, rgba(var(--gr-primary-rgb), 0.05), rgba(var(--gr-primary-rgb), 0.02));
}

.gr-preview-author-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gr-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.gr-preview-author-info {
    flex: 1;
    min-width: 0;
}

.gr-preview-author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gr-text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gr-preview-author-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: var(--gr-primary);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gr-preview-author-meta {
    font-size: 13px;
    color: var(--gr-text-light);
}

.gr-preview-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gr-preview-file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gr-bg-card);
    border-radius: var(--gr-radius-sm);
    border: 1px solid var(--gr-border);
    transition: all 0.2s ease;
}

.gr-preview-file-item:hover {
    border-color: var(--gr-primary);
    box-shadow: var(--gr-shadow-sm);
    transform: translateX(-4px);
}

.gr-preview-file-item.gr-preview-file-item-old {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.gr-preview-file-item.gr-preview-file-item-old .gr-preview-file-icon {
    background: #e2e8f0;
}

.gr-preview-file-item.gr-preview-file-item-old .gr-preview-file-icon svg {
    color: #64748b;
}

.gr-preview-file-item.gr-preview-file-item-new {
    background: rgba(var(--gr-primary-rgb), 0.08);
    border-color: rgba(var(--gr-primary-rgb), 0.2);
}

.gr-preview-file-item.gr-preview-file-item-new .gr-preview-file-icon {
    background: rgba(var(--gr-primary-rgb), 0.14);
}

.gr-preview-file-item.gr-preview-file-item-new .gr-preview-file-icon svg {
    color: var(--gr-primary);
}

.gr-preview-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(var(--gr-primary-rgb), 0.1);
    border-radius: var(--gr-radius-sm);
    flex-shrink: 0;
}

.gr-preview-file-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gr-primary);
}

.gr-preview-file-info {
    flex: 1;
    min-width: 0;
}

.gr-preview-file-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gr-text);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gr-preview-file-label {
    font-size: 13px;
    color: var(--gr-text-light);
}

.gr-commitment-box {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius);
    background: var(--gr-bg-card);
    box-shadow: var(--gr-shadow-sm);
}

.gr-commitment-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gr-text);
}

.gr-commitment-text {
    background: var(--gr-bg);
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius-sm);
    padding: 16px;
    max-height: 320px;
    overflow-y: auto;
}

.gr-commitment-intro {
    margin: 0 0 12px;
    line-height: 2;
    color: var(--gr-text);
    font-size: 14px;
}

.gr-commitment-list {
    margin: 0;
    padding-right: 22px;
    color: var(--gr-text);
}

.gr-commitment-list li {
    margin-bottom: 10px;
    line-height: 1.9;
    font-size: 14px;
}

.gr-commitment-list li:last-child {
    margin-bottom: 0;
}

.gr-commitment-checkbox {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.8;
}

.gr-commitment-checkbox input {
    margin-top: 4px;
}

.gr-commitment-section-modern {
    margin-bottom: 24px;
}

.gr-commitment-section-modern .gr-section-header-modern {
    flex-wrap: wrap;
}

.gr-commitment-confirmed-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    margin-right: auto;
}

.gr-commitment-confirmed-chip.is-confirmed {
    background: #ecfdf5;
    color: #166534;
    border-color: #86efac;
}

.gr-commitment-confirmed-chip .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.gr-commitment-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.gr-commitment-status-text {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.8;
}

.gr-commitment-status-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.gr-commitment-status-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.gr-commitment-text-view {
    max-height: none;
}

.gr-commitment-plain-text {
    color: var(--gr-text);
    font-size: 14px;
    line-height: 2;
    white-space: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .gr-preview-content {
        padding: 16px;
    }
    
    .gr-preview-field {
        padding: 12px 0;
    }
    
    .gr-preview-author-item,
    .gr-preview-file-item {
        padding: 12px;
    }
    
    .gr-preview-author-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .gr-preview-file-icon {
        width: 40px;
        height: 40px;
    }
    
    .gr-preview-file-icon svg {
        width: 20px;
        height: 20px;
    }

    .gr-commitment-box {
        padding: 14px;
    }

    .gr-commitment-confirmed-chip {
        margin-right: 0;
    }

    .gr-commitment-status-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .gr-commitment-title {
        font-size: 16px;
    }

    .gr-commitment-text {
        max-height: 280px;
    }
}

/* Article View Page */
.gr-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.gr-article-view-header {
    background: linear-gradient(135deg, var(--gr-primary-light), var(--gr-primary));
    color: white;
    border: none;
    margin-bottom: 24px;
}

.gr-article-header-info {
    padding: 0;
}

.gr-article-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gr-article-tracking {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.gr-article-tracking svg {
    width: 20px;
    height: 20px;
    color: white;
}

.gr-article-tracking .gr-tracking-code {
    font-family: monospace;
    font-size: 16px;
    color: white;
}

.gr-article-view-header .gr-status-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
}

.gr-article-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.gr-article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.gr-article-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.gr-article-view-details {
    margin-bottom: 24px;
}

.gr-article-details-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gr-border);
}

.gr-article-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gr-article-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gr-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gr-article-detail-label svg {
    width: 18px;
    height: 18px;
    color: var(--gr-primary);
    flex-shrink: 0;
}

.gr-article-detail-value {
    font-size: 15px;
    color: var(--gr-text);
    line-height: 1.6;
}

.gr-article-abstract-section {
    margin-top: 24px;
}

.gr-article-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gr-border);
}

.gr-article-section-header svg {
    width: 20px;
    height: 20px;
    color: var(--gr-primary);
    flex-shrink: 0;
}

.gr-article-section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gr-text);
}

.gr-article-abstract-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gr-text);
    text-align: justify;
    padding: 20px;
    background: var(--gr-bg);
    border-radius: var(--gr-radius-sm);
    border-right: 4px solid var(--gr-primary);
}

/* Article Notices */
.gr-article-notice {
    margin-bottom: 24px;
    border-right: 4px solid;
}

.gr-article-notice-error {
    border-right-color: var(--gr-error);
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.05), rgba(229, 57, 53, 0.02));
}

.gr-article-notice-warning {
    border-right-color: var(--gr-warning);
    background: linear-gradient(135deg, rgba(255, 160, 0, 0.05), rgba(255, 160, 0, 0.02));
}

.gr-article-notice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.gr-article-notice-header svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.gr-article-notice-error .gr-article-notice-header svg {
    color: var(--gr-error);
}

.gr-article-notice-warning .gr-article-notice-header svg {
    color: var(--gr-warning);
}

.gr-article-notice-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gr-article-notice-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gr-text);
    margin-bottom: 16px;
}

.gr-article-notice-action {
    margin-top: 16px;
}

/* Comments Section */
.gr-article-comments-section {
    margin-bottom: 24px;
}

.gr-comments {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.gr-comment {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--gr-bg);
    border-radius: var(--gr-radius-sm);
    border: 1px solid var(--gr-border);
    transition: all 0.2s ease;
}

.gr-comment:hover {
    border-color: var(--gr-primary);
    box-shadow: var(--gr-shadow-sm);
}

.gr-comment-admin {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05), rgba(25, 118, 210, 0.02));
    border-color: var(--gr-info);
    border-right-width: 3px;
}

.gr-comment-avatar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gr-primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    padding: 10px;
}

.gr-comment-admin .gr-comment-avatar {
    background: var(--gr-info);
}

.gr-comment-avatar svg {
    width: 20px;
    height: 20px;
}

.gr-comment-content {
    flex: 1;
    min-width: 0;
}

.gr-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.gr-comment-author {
    font-weight: 600;
    color: var(--gr-text);
    font-size: 15px;
}

.gr-comment-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--gr-info);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gr-comment-date {
    font-size: 13px;
    color: var(--gr-text-light);
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gr-comment-date svg {
    width: 14px;
    height: 14px;
}

.gr-comment-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gr-text);
}

.gr-comment-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gr-border);
}

.gr-comment-form .gr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}


/* End of general styles - Article details moved to separate file */
/* Article details styles moved to article-details.css */

.gr-article-history-section .gr-timeline-item:nth-child(3) { animation-delay: 0.3s; }
.gr-article-history-section .gr-timeline-item:nth-child(4) { animation-delay: 0.4s; }
.gr-article-history-section .gr-timeline-item:nth-child(5) { animation-delay: 0.5s; }
.gr-article-history-section .gr-timeline-item:nth-child(6) { animation-delay: 0.6s; }
.gr-article-history-section .gr-timeline-item:nth-child(7) { animation-delay: 0.7s; }
.gr-article-history-section .gr-timeline-item:nth-child(8) { animation-delay: 0.8s; }

.gr-article-history-section .gr-timeline-marker {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 24px;
    z-index: 2;
}

.gr-article-history-section .gr-timeline-dot {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-light));
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(var(--gr-primary-rgb), 0.3), 0 2px 8px rgba(var(--gr-primary-rgb), 0.1);
    z-index: 3;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.gr-article-history-section .gr-timeline-item:hover .gr-timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(var(--gr-primary-rgb), 0.4), 0 4px 12px rgba(var(--gr-primary-rgb), 0.2);
}

.gr-article-history-section .gr-timeline-line {
    display: none; /* Removed individual lines, using main timeline line */
}

.gr-article-history-section .gr-timeline-content {
    background: linear-gradient(135deg, var(--gr-bg-card) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid var(--gr-border-light);
    border-radius: var(--gr-radius);
    padding: 24px;
    flex: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.gr-article-history-section .gr-timeline-item:hover .gr-timeline-content {
    border-color: var(--gr-primary-light);
    box-shadow: 0 8px 32px rgba(var(--gr-primary-rgb), 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(-8px) translateY(-2px);
}

.gr-article-history-section .gr-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gr-border-light);
}

.gr-article-history-section .gr-timeline-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gr-article-history-section .gr-timeline-status.gr-status-success {
    background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-light));
    color: white;
    border: 1px solid rgba(var(--gr-primary-rgb), 0.3);
}

.gr-article-history-section .gr-timeline-status.gr-status-warning {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.gr-article-history-section .gr-timeline-status.gr-status-error {
    background: linear-gradient(135deg, #F44336, #EF5350);
    color: white;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.gr-article-history-section .gr-timeline-status.gr-status-info {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    color: white;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.gr-article-history-section .gr-timeline-status.gr-status-primary {
    background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-light));
    color: white;
    border: 1px solid rgba(var(--gr-primary-rgb), 0.3);
}

.gr-article-history-section .gr-timeline-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gr-text-secondary);
    font-weight: 500;
    background: var(--gr-bg);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--gr-border-light);
}

.gr-article-history-section .gr-timeline-date svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gr-primary);
}

.gr-article-history-section .gr-timeline-status-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gr-article-history-section .gr-timeline-status-change {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gr-article-history-section .gr-timeline-status-change svg {
    width: 18px;
    height: 18px;
    color: var(--gr-text-light);
    flex-shrink: 0;
    background: var(--gr-bg);
    padding: 4px;
    border-radius: 50%;
}

.gr-article-history-section .gr-timeline-details {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gr-article-history-section .gr-timeline-comment {
    background: linear-gradient(135deg, var(--gr-bg) 0%, rgba(var(--gr-primary-rgb), 0.02) 100%);
    border-radius: var(--gr-radius-sm);
    border: 1px solid var(--gr-border-light);
    border-right: 4px solid var(--gr-primary);
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.gr-article-history-section .gr-timeline-comment:hover {
    border-color: var(--gr-primary-light);
    box-shadow: 0 4px 16px rgba(var(--gr-primary-rgb), 0.1);
}

.gr-article-history-section .gr-timeline-comment-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gr-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gr-article-history-section .gr-timeline-comment-label svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gr-article-history-section .gr-timeline-comment-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gr-text);
    padding-right: 8px;
}

.gr-article-history-section .gr-timeline-files {
    background: linear-gradient(135deg, var(--gr-bg) 0%, rgba(25, 118, 210, 0.02) 100%);
    border-radius: var(--gr-radius-sm);
    border: 1px solid var(--gr-border-light);
    border-right: 4px solid var(--gr-info);
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.gr-article-history-section .gr-timeline-files:hover {
    border-color: var(--gr-info);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.1);
}

.gr-article-history-section .gr-timeline-files-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gr-info);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gr-article-history-section .gr-timeline-files-label svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gr-article-history-section .gr-timeline-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gr-article-history-section .gr-timeline-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gr-text);
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--gr-bg-card) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 8px;
    border: 1px solid var(--gr-border-light);
    transition: all 0.2s ease;
}

.gr-article-history-section .gr-timeline-file-item:hover {
    background: var(--gr-bg-card);
    border-color: var(--gr-info);
    transform: translateX(-4px);
}

.gr-article-history-section .gr-timeline-file-item svg {
    width: 16px;
    height: 16px;
    color: var(--gr-info);
    flex-shrink: 0;
}

.gr-article-history-section .gr-timeline-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gr-text-secondary);
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--gr-bg);
    border-radius: 12px;
    border: 1px solid var(--gr-border-light);
    font-weight: 500;
}

.gr-article-history-section .gr-timeline-user svg {
    width: 16px;
    height: 16px;
    color: var(--gr-primary);
    flex-shrink: 0;
}

@keyframes timelineItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Responsive - Article View */
@media (max-width: 768px) {
    .gr-article-header-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .gr-article-tracking {
        width: 100%;
        justify-content: center;
    }

    .gr-article-details-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gr-article-history-section .gr-timeline {
        padding: 16px 0;
        gap: 32px;
    }

    .gr-article-history-section .gr-timeline::before {
        right: 20px;
    }

    .gr-article-history-section .gr-timeline-item {
        gap: 16px;
        flex-direction: row-reverse;
    }

    .gr-article-history-section .gr-timeline-marker {
        width: 40px;
        height: 20px;
    }

    .gr-article-history-section .gr-timeline-dot {
        width: 20px;
        height: 20px;
        border-width: 3px;
        right: 20px;
    }

    .gr-article-history-section .gr-timeline-content {
        padding: 20px;
    }

    .gr-article-history-section .gr-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 8px;
    }

    .gr-article-history-section .gr-timeline-status-wrapper {
        width: 100%;
        justify-content: flex-start;
    }

    .gr-article-history-section .gr-timeline-date {
        align-self: flex-start;
    }

    .gr-article-history-section .gr-timeline-item:hover .gr-timeline-content {
        transform: translateX(-4px) translateY(-2px);
    }

    .gr-comment {
        flex-direction: column;
        gap: 12px;
    }

    .gr-comment-avatar {
        width: 36px;
        height: 36px;
    }

    .gr-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .gr-comment-date {
        margin-right: 0;
    }
}

/* ========================================
   VERIFICATION SYSTEM STYLES
   ======================================== */

/* Verification Badge in Sidebar */
.gr-verification-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 500;
}
.gr-verification-badge .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin-left: 8px !important;
}
.gr-badge-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 1px solid #ffeeba;
}
.gr-badge-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.gr-badge-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 1px solid #ffeeba;
}
.gr-badge-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Navigation Locked State */
.gr-nav-item.gr-nav-locked {
    opacity: 0.7;
    cursor: pointer;
}

.gr-nav-item.gr-nav-locked:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.gr-nav-item.gr-nav-locked .gr-badge-warning {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gr-nav-item.gr-nav-locked:hover .gr-badge-warning {
    transform: scale(1.05);
    background: #fbd38d !important;
}
.gr-badge-lock {
    margin-right: auto;
    font-size: 11px;
}
/* Verification Overview */
.gr-verification-overview {
    margin-bottom: 40px;
    padding: 30px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 16px;
}

.gr-verification-levels {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.gr-level-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    flex: 1;
    position: relative;
}

.gr-level-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #eee;
    font-size: 24px;
    font-weight: bold;
    color: #ccc;
    transition: all 0.3s ease;
    z-index: 2;
}

.gr-level-item.active .gr-level-icon {
    border-color: var(--gr-primary);
    color: var(--gr-primary);
    box-shadow: 0 0 0 5px rgba(var(--gr-primary-rgb), 0.1);
}

.gr-level-item.completed .gr-level-icon {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.gr-level-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

.gr-level-info p {
    margin: 0;
    font-size: 12px;
    color: #888;
    max-width: 180px;
}

.gr-level-connector {
    flex: 0 0 100px;
    height: 3px;
    background: #eee;
    margin-top: -45px; /* Align with icons */
    transition: all 0.3s ease;
}

.gr-level-connector.active {
    background: #28a745;
}

/* Verification Form */
.gr-verification-form {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.gr-verification-header {
    text-align: center;
    margin-bottom: 30px;
}
.gr-verification-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--color-content-primary, #2271b1) 0%, #4a90d9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gr-verification-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #fff;
}
.gr-verification-header h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}
.gr-verification-header p {
    margin: 0;
    color: #666;
}

/* Birth Date Wrapper */
.gr-birth-date-wrapper {
    display: flex;
    gap: 10px;
}
.gr-birth-date-wrapper .gr-select {
    flex: 1;
}

/* Verification Status Badges */
.gr-verification-status {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.gr-verification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}
.gr-verification-status .dashicons {
    font-size: 32px !important;
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
}
.gr-verification-status h4 {
    margin: 0 0 5px 0;
}
.gr-verification-status p {
    margin: 0;
    font-size: 13px;
}
.gr-status-approved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}
.gr-status-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
}
.gr-status-rejected {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Documents Grid */
.gr-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gr-document-item {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
}
.gr-document-item:hover {
    border-color: #ccc;
}
.gr-document-item.has-doc {
    border-style: solid;
    border-color: #28a745;
    background: #fff;
}
.gr-document-item.uploading {
    opacity: 0.6;
    pointer-events: none;
}
.gr-document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.gr-document-label {
    font-weight: 600;
    font-size: 14px;
}
.gr-document-status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
}
.gr-document-status.gr-status-pending {
    background: #fff3cd;
    color: #856404;
}
.gr-document-status.gr-status-approved {
    background: #d4edda;
    color: #155724;
}
.gr-document-content {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gr-document-preview {
    width: 100%;
    text-align: center;
}
.gr-document-preview img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 6px;
}
.gr-document-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    width: 100%;
}
.gr-document-file .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #666;
}
.gr-document-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    flex: 1;
}
.gr-document-upload .gr-file-input {
    display: none;
}
.gr-document-upload .gr-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #f0f0f1 0%, #e0e0e0 100%);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gr-document-upload .gr-file-label:hover {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    transform: translateY(-2px);
}
.gr-document-upload .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #666;
}

/* Verification System Responsive Styles */
@media (max-width: 768px) {
    .gr-verification-overview {
        padding: 15px 10px !important;
        margin-bottom: 25px !important;
        background: transparent !important;
        border: none !important;
    }

    .gr-verification-levels {
        flex-direction: row !important; /* Keep horizontal */
        justify-content: space-between !important;
        gap: 5px !important;
        align-items: flex-start !important;
    }

    .gr-level-item {
        gap: 8px !important;
        flex: 1 !important;
    }

    .gr-level-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        border-width: 2px !important;
    }

    .gr-level-connector {
        flex: 1 !important;
        height: 2px !important;
        margin-top: 20px !important; /* Center with 40px icon icon height/2 */
        min-width: 15px !important;
        background: #eee !important;
        position: relative !important;
        top: 0 !important;
    }

    .gr-level-info h4 {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .gr-level-info p {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .gr-documents-grid {
        grid-template-columns: 1fr;
    }
}

/* History Timeline */
.gr-history-timeline {
    position: relative;
    padding-right: 35px;
    margin-top: 20px;
}

.gr-history-timeline::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.gr-history-item {
    position: relative;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.gr-history-item:last-child {
    margin-bottom: 0;
}

.gr-history-icon {
    position: absolute;
    right: -35px;
    top: 0;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 2px solid var(--gr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 4px #fff;
}

.gr-history-icon .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--gr-primary);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.gr-history-content {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.gr-history-item:hover .gr-history-content {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--gr-primary-light);
}

.gr-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.gr-history-header strong {
    font-size: 15px;
    color: #2d3748;
}

.gr-history-date {
    font-size: 12px;
    color: #a0aec0;
    background: #f7fafc;
    padding: 2px 10px;
    border-radius: 10px;
}

.gr-history-desc {
    margin: 0;
    color: #718096;
    font-size: 13.5px;
    line-height: 1.6;
}

.gr-history-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #edf2f7;
    display: flex;
    justify-content: flex-end;
}

.gr-history-ip {
    font-size: 11px;
    color: #cbd5e0;
    font-family: monospace;
}

.gr-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 5px 12px;
    font-size: 11.5px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.gr-order-btn:hover {
    background: #f7fafc;
    border-color: var(--gr-primary);
    color: var(--gr-primary);
}

.gr-order-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    display: flex !important;
    align-items: center;
}

@media (max-width: 768px) {
    .gr-content-header h2 {
        font-size: 18px !important;
    }
    
    .gr-history-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gr-order-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .gr-history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .gr-history-date {
        align-self: flex-end;
    }
}

/* =========================
   User Articles Panel
========================= */
.gr-user-articles-panel {
    display: grid;
    gap: 16px;
}

.gr-user-articles-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eef5ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    align-items: center;
}

.gr-user-articles-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gr-user-articles-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.gr-user-articles-new-btn {
    white-space: nowrap;
}

.gr-user-articles-summary-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.gr-user-summary-chip {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
}

.gr-user-summary-icon {
    width: 28px;
    height: 28px;
    color: #94a3b8;
    opacity: 0.55;
    flex-shrink: 0;
}

.gr-user-summary-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.gr-user-summary-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gr-user-summary-num {
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
    line-height: 1.1;
}

.gr-user-summary-label {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.gr-user-summary-chip-all {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.gr-user-summary-chip-review {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.gr-user-summary-chip-review .gr-user-summary-icon {
    color: #2563eb;
    opacity: 0.45;
}

.gr-user-summary-chip-revision {
    background: #fff7ed;
    border-color: #fed7aa;
}

.gr-user-summary-chip-revision .gr-user-summary-icon {
    color: #c2410c;
    opacity: 0.45;
}

.gr-user-summary-chip-accepted {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.gr-user-summary-chip-accepted .gr-user-summary-icon {
    color: #15803d;
    opacity: 0.42;
}

.gr-user-summary-chip-published {
    background: #ecfeff;
    border-color: #a5f3fc;
}

.gr-user-summary-chip-published .gr-user-summary-icon {
    color: #0f766e;
    opacity: 0.45;
}

.gr-user-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gr-user-article-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.gr-user-article-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.gr-user-article-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #0f172a;
}

.gr-user-article-track {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    color: #475569;
    font-family: monospace;
    white-space: nowrap;
}

.gr-user-article-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.gr-user-meta-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 7px 9px;
    color: #475569;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gr-user-meta-item .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.gr-user-article-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gr-user-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gr-user-article-actions .gr-btn {
    border-radius: 10px;
}

.gr-user-articles-table-wrap {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.gr-user-articles-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.gr-user-articles-table td {
    vertical-align: middle;
    font-size: 13px;
    line-height: 1.7;
}

.gr-user-articles-table th:nth-child(1),
.gr-user-articles-table td:nth-child(1) {
    width: 125px;
}

.gr-user-articles-table th:nth-child(3),
.gr-user-articles-table td:nth-child(3) {
    width: 130px;
}

.gr-user-articles-table th:nth-child(4),
.gr-user-articles-table td:nth-child(4) {
    width: 130px;
}

.gr-user-articles-table th:nth-child(5),
.gr-user-articles-table td:nth-child(5) {
    width: 130px;
}

.gr-user-articles-table th:nth-child(6),
.gr-user-articles-table td:nth-child(6) {
    width: 260px;
}

.gr-user-td-track {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-family: monospace;
    color: #475569;
}

.gr-user-articles-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.gr-user-articles-table-actions .gr-user-action-btn {
    min-width: 88px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 30px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.gr-user-articles-table-actions .gr-user-action-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    margin-left: 5px;
}

.gr-user-articles-table-actions .gr-user-action-view {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.gr-user-articles-table-actions .gr-user-action-view:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.gr-user-articles-table-actions .gr-user-action-continue {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.gr-user-articles-table-actions .gr-user-action-continue:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

.gr-user-articles-table-actions .gr-user-action-revise {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.gr-user-articles-table-actions .gr-user-action-revise:hover {
    background: #ffedd5;
    border-color: #fdba74;
    color: #9a3412;
}

.gr-user-articles-table-actions .gr-user-action-link {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.gr-user-articles-table-actions .gr-user-action-link:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
}

.gr-user-articles-empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 24px;
}

@media (max-width: 1200px) {
    .gr-user-articles-summary-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .gr-user-articles-header {
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .gr-user-articles-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gr-user-summary-chip {
        padding: 9px 10px;
        gap: 8px;
    }

    .gr-user-summary-icon {
        width: 24px;
        height: 24px;
    }

    .gr-user-article-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .gr-user-article-meta {
        grid-template-columns: 1fr;
    }

    .gr-user-article-actions .gr-btn {
        flex: 1 1 100%;
        text-align: center;
        justify-content: center;
    }

    .gr-user-articles-table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gr-user-articles-table-actions .gr-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ==================================================
 * Nokhbegan conference structure (Step 3 of the form)
 * Uses !important liberally on form controls to defeat
 * heavy-handed theme resets.
 * ================================================== */
.gr-section-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 18px 18px 12px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    min-width: 0;
}
.gr-section-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    flex-wrap: wrap !important;
}
.gr-section-card-header .dashicons {
    color: var(--gr-primary, #2E7D32) !important;
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
}
.gr-section-card-header h4 {
    margin: 0 !important;
    font-size: 17px !important;
    color: #0f172a !important;
    flex: 1 !important;
    min-width: 0 !important;
}
.gr-section-period {
    font-size: 12px !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    white-space: nowrap;
}

.gr-group-block {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    margin-bottom: 14px !important;
    min-width: 0;
}
.gr-group-title {
    margin: 0 0 10px !important;
    font-size: 14px !important;
    color: #0f172a !important;
}
.gr-item-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 4px !important;
}

.gr-item-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s !important;
    min-width: 0;
    margin: 0 !important;
}
.gr-item-row:hover {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
}
.gr-item-row-locked {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
}
.gr-item-row-locked:hover {
    border-color: #e2e8f0 !important;
    background: #f8fafc !important;
}

/* Custom checkbox — overrides theme styles. */
.gr-item-row input[type="checkbox"],
.gr-doc-slot input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 2px solid #94a3b8 !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    position: relative !important;
    flex: 0 0 auto !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    transition: background 0.15s, border-color 0.15s !important;
}
.gr-item-row input[type="checkbox"]:hover {
    border-color: var(--gr-primary, #2E7D32) !important;
}
.gr-item-row input[type="checkbox"]:checked {
    background: var(--gr-primary, #2E7D32) !important;
    border-color: var(--gr-primary, #2E7D32) !important;
}
.gr-item-row input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 6px !important;
    width: 5px !important;
    height: 10px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}
.gr-item-row input[type="checkbox"]:disabled {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    cursor: not-allowed !important;
}

.gr-item-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
    flex: 1 !important;
}
.gr-item-label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    line-height: 1.6;
}
.gr-item-criteria {
    font-size: 12px !important;
    color: #475569 !important;
    line-height: 1.8 !important;
}
.gr-item-eligibility-note {
    font-size: 11px !important;
    color: #b45309 !important;
    background: #fef3c7 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    align-self: flex-start !important;
    margin-top: 4px !important;
}
.gr-item-period {
    font-size: 11px !important;
    color: #64748b !important;
    background: #f1f5f9 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    align-self: flex-start !important;
    margin-top: 4px !important;
}

.gr-item-block {
    margin-bottom: 12px;
}
.gr-item-details {
    margin: 6px 24px 0 !important;
    padding: 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 0 10px 10px !important;
    border-top: 0 !important;
    margin-top: -2px !important;
}
.gr-item-field {
    margin-bottom: 10px !important;
}
.gr-item-field label {
    display: block !important;
    font-size: 13px !important;
    margin-bottom: 4px !important;
    color: #334155 !important;
    font-weight: 500;
}

.gr-group-docs {
    margin-top: 10px !important;
    padding: 14px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
}
.gr-docs-title {
    margin: 0 0 10px !important;
    font-size: 13px !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

/* Fields grid (article title/journal, book metadata, etc.) */
.gr-field-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}
.gr-field-grid .gr-item-field {
    margin-bottom: 0 !important;
    min-width: 0;
}

/* Documents grid — multiple slots side by side. */
.gr-doc-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: 12px !important;
}

/* Upload slot — visually identical to the Level-2 verification card. */
.gr-doc-upload-row {
    margin-bottom: 0 !important;
    min-width: 0;
}
.gr-doc-upload-label {
    display: block !important;
    font-size: 12px !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
    line-height: 1.6 !important;
    font-weight: 500;
}
.gr-doc-upload-label .required {
    color: #b91c1c !important;
}
.gr-doc-upload-hint {
    margin: 0 0 6px !important;
    font-size: 11px !important;
    color: #64748b !important;
    line-height: 1.7 !important;
}
.gr-doc-slot {
    min-width: 0;
    max-width: 100%;
}
.gr-doc-slot .gr-doc-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.gr-doc-slot-box {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    min-height: 96px !important;
    background: #f1f5f9 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: background 0.15s !important;
}
.gr-doc-slot-box:hover { background: #e2e8f0 !important; }

/* Empty state shown by default; hidden once a file is picked. */
.gr-doc-slot-empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    color: #64748b !important;
    text-align: center !important;
    padding: 8px !important;
}
.gr-doc-slot-empty .dashicons {
    font-size: 28px !important;
    width: 28px !important;
    height: 28px !important;
}
.gr-doc-slot-empty-text {
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Filled state — only one of the two children is shown via .is-image / .is-file. */
.gr-doc-slot-filled {
    position: absolute !important;
    inset: 0 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
}
.gr-doc-slot.is-filled .gr-doc-slot-empty { display: none !important; }
.gr-doc-slot.is-filled .gr-doc-slot-filled { display: flex !important; }
.gr-doc-slot.is-filled .gr-doc-slot-box { cursor: default !important; background: #fff !important; }

.gr-doc-slot-img,
.gr-doc-slot-icon {
    display: none !important;
}
.gr-doc-slot.is-image .gr-doc-slot-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: 0 !important;
}
.gr-doc-slot.is-file .gr-doc-slot-icon {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569;
    gap: 4px;
}
.gr-doc-slot.is-file .gr-doc-slot-icon .dashicons {
    font-size: 40px !important;
    width: 40px !important;
    height: 40px !important;
    color: #94a3b8 !important;
}
.gr-doc-slot.is-file .gr-doc-slot-icon::after {
    content: 'فایل' !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.gr-doc-slot-meta {
    display: none !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 8px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-top: 6px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.gr-doc-slot.is-filled .gr-doc-slot-meta { display: flex !important; }
.gr-doc-slot-name {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 11px !important;
    color: #334155 !important;
    direction: ltr !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    unicode-bidi: plaintext !important;
}
.gr-doc-slot-remove {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}
.gr-doc-slot-remove:hover { background: #fee2e2 !important; }
.gr-doc-slot-remove .dashicons {
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
}

.gr-doc-slot-progress-list {
    display: none;
    margin-top: 8px !important;
}
.gr-doc-file-progress-row {
    padding: 8px !important;
    margin-top: 6px !important;
    background: #f8fafc !important;
    border: 1px solid #dbeafe !important;
    border-radius: 8px !important;
}
.gr-doc-file-progress-row:first-child {
    margin-top: 0 !important;
}
.gr-doc-file-progress-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 6px !important;
}
.gr-doc-file-progress-name {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    color: #334155 !important;
    direction: ltr !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    overflow: hidden !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    unicode-bidi: plaintext !important;
    white-space: nowrap !important;
}
.gr-doc-file-progress-percent {
    flex: 0 0 auto !important;
    min-width: 38px !important;
    color: #2563eb !important;
    direction: ltr !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-align: left !important;
}
.gr-doc-file-progress-bar {
    height: 7px !important;
    overflow: hidden !important;
    background: #e2e8f0 !important;
    border-radius: 999px !important;
}
.gr-doc-file-progress-fill {
    width: 0%;
    height: 100% !important;
    background: linear-gradient(90deg, var(--gr-primary), #22c55e) !important;
    border-radius: 999px !important;
    transition: width 0.2s ease !important;
}
.gr-doc-file-progress-row.is-complete .gr-doc-file-progress-percent {
    color: #15803d !important;
}

.gr-nkh-upload-progress {
    margin-top: 12px !important;
    padding: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #dbeafe !important;
    border-radius: 8px !important;
}
.gr-nkh-upload-progress-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
}
.gr-nkh-upload-progress-label {
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}
.gr-nkh-upload-progress-percent {
    min-width: 42px !important;
    color: #2563eb !important;
    direction: ltr !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-align: left !important;
}
.gr-nkh-upload-progress-bar {
    height: 8px !important;
    overflow: hidden !important;
    background: #e2e8f0 !important;
    border-radius: 999px !important;
}
.gr-nkh-upload-progress-fill {
    width: 0%;
    height: 100% !important;
    background: linear-gradient(90deg, var(--gr-primary), #22c55e) !important;
    border-radius: 999px !important;
    transition: width 0.2s ease !important;
}
.gr-nkh-upload-progress.is-complete .gr-nkh-upload-progress-label {
    color: #15803d !important;
}

/* Mobile: selected item details are single-column. */
@media (max-width: 600px) {
    .gr-field-grid,
    .gr-doc-list {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

/* Compact slot on small viewports — shorter boxes, smaller icons. */
@media (max-width: 480px) {
    .gr-doc-slot-box {
        aspect-ratio: 1 / 1 !important;
    }
    .gr-doc-slot-empty .dashicons { font-size: 22px !important; }
    .gr-doc-slot-empty-text { font-size: 11px !important; }
    .gr-doc-slot.is-file .gr-doc-slot-icon .dashicons { font-size: 30px !important; }
}

.gr-item-note {
    margin-top: 10px !important;
    padding: 10px 12px !important;
    background: #fef9c3 !important;
    border: 1px solid #fde68a !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    color: #854d0e !important;
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
    line-height: 1.7 !important;
}
.gr-item-note .dashicons {
    flex: 0 0 auto !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* Multi-entry repeater (article, book) */
.gr-multi-entry { margin-top: 4px !important; }
.gr-entry {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
}
.gr-entry-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}
.gr-remove-entry {
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    color: #b91c1c !important;
    padding: 4px !important;
    border-radius: 6px !important;
}
.gr-remove-entry:hover { background: #fef2f2 !important; }
.gr-add-entry {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.gr-add-entry .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* Mobile: stack header, full-width period badge, denser spacing */
@media (max-width: 600px) {
    .gr-section-card { padding: 14px !important; }
    .gr-section-card-header { flex-wrap: wrap !important; }
    .gr-section-card-header h4 { flex: 1 1 calc(100% - 32px) !important; }
    .gr-section-period {
        flex-basis: 100% !important;
        text-align: center !important;
        margin-top: 6px !important;
    }
    .gr-item-row { padding: 10px !important; }
    .gr-item-details { margin: 6px 12px 0 !important; padding: 10px !important; }
    .gr-group-block { padding: 12px !important; }
    .gr-group-docs { padding: 12px !important; }
}
@media (max-width: 420px) {
    .gr-item-details { margin: 6px 0 0 !important; }
    .gr-item-label { font-size: 13px !important; }
    .gr-item-criteria { font-size: 11px !important; }
}

/* ── Nokhbegan Step 1 mobile tweaks ───────────────────────────────
 * - Verified-info icon stacks ABOVE the text (centred)
 * - When the "previous" button is hidden, "next/submit" takes the full row
 */
@media (max-width: 600px) {
    .gr-verified-alert-modern {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }
    .gr-verified-alert-modern .icon-box {
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .gr-form-navigation:has(#nkh-prev-step[style*="none"]) #nkh-next-step,
    .gr-form-navigation:has(#nkh-prev-step[style*="none"]) #nkh-submit {
        grid-column: 1 / -1 !important;
    }
}

/* Nokhbegan card — admin comment alert (visible to user) */
.gr-admin-comment-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid;
    line-height: 1.7;
}
.gr-admin-comment-alert .gr-admin-comment-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}
.gr-admin-comment-alert .gr-admin-comment-body {
    flex: 1;
    min-width: 0;
}
.gr-admin-comment-alert .gr-admin-comment-body strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}
.gr-admin-comment-alert .gr-admin-comment-body p {
    margin: 0;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
}
.gr-admin-comment-needs_revision {
    background: #fef9c3;
    border-color: #fde68a;
    color: #854d0e;
}
.gr-admin-comment-needs_revision .gr-admin-comment-icon { color: #b45309; }
.gr-admin-comment-rejected {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.gr-admin-comment-rejected .gr-admin-comment-icon { color: #b91c1c; }

/* Desktop table reason cell (nokhbegan list) */
.gr-table-reason {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.7;
    border: 1px solid;
    max-width: 360px;
}
.gr-table-reason strong { display: block; margin-bottom: 2px; font-size: 12px; }
.gr-table-reason-needs_revision {
    background: #fef9c3;
    border-color: #fde68a;
    color: #854d0e;
}
.gr-table-reason-rejected {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.gr-table-reason-empty {
    color: #94a3b8;
}
