/* ==========================================
   MODAL GUIDELINES - SIGN-IN PAGE STYLE
   ========================================== */

/* Modal Overlay */
.neo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 5, 20, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.neo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Ensure the Guidelines Info modal is always the top-most layer */
#guidelines-modal {
    z-index: 10001 !important;
}

/* Modal Content (Mirrors .auth-container) */
.neo-modal-content {
    display: flex;
    width: 900px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Promo Side (Mirrors .auth-promo) */
.neo-modal-promo {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.neo-modal-promo .promo-tag {
    display: inline-flex;
    padding: 0.4rem 1.2rem;
    border-radius: 100px; /* Pill shape */
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin-bottom: 2rem;
    
    /* Glass Gold Base */
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.4) 0%, rgba(204, 153, 0, 0.3) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 204, 51, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.neo-modal-promo .promo-tag::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 45%;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    filter: blur(2px);
    border-radius: 100px;
    pointer-events: none;
    z-index: 2;
}

.neo-modal-promo .promo-tag::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 15%;
    width: 12px;
    height: 12px;
    background: #ffcc33;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.8;
    box-shadow: 0 0 15px #ffcc33;
    pointer-events: none;
}

.neo-modal-promo h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
}

.neo-modal-promo p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Close Icon inside Promo */
.neo-modal-close-icon {
    position: absolute;
    top: 2rem;
    left: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.neo-modal-close-icon:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

/* Content Side (Mirrors .auth-form-side) */
.neo-modal-info-side {
    flex: 1.2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    background: rgba(45, 11, 74, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 204, 51, 0.75) transparent;
}

/* Scrollbar for modal content */
.neo-modal-info-side::-webkit-scrollbar {
    width: 6px;
}
.neo-modal-info-side::-webkit-scrollbar-track {
    background: transparent;
}
.neo-modal-info-side::-webkit-scrollbar-thumb {
    background: rgba(255, 204, 51, 0.75);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.neo-modal-info-side::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(255, 204, 51, 0.25);
}

#modal-info-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    padding-right: 0;
}

/* Guidelines Table Styling */
.neo-guidelines-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0.5rem;
}

.neo-guidelines-table th {
    background: var(--bg-panel);
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.neo-guidelines-table td {
    padding: 1.25rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.neo-guidelines-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

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

.neo-info-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.neo-info-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 850;
    padding: 3px 12px;
    border-radius: 100px; /* Pill shape */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    position: relative;
    overflow: hidden;

    /* Glass Violet Base */
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.neo-info-tag::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 45%;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    filter: blur(2px);
    border-radius: 100px;
    pointer-events: none;
    z-index: 2;
}

.neo-info-tag::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 15%;
    width: 10px;
    height: 10px;
    background: #a78bfa;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.7;
    box-shadow: 0 0 12px #a78bfa;
    pointer-events: none;
}

.neo-info-desc {
    color: rgba(248, 250, 252, 0.8);
    font-size: 0.85rem;
    line-height: 1.6;
}

.neo-modal-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.neo-modal-btn {
    background: linear-gradient(135deg, #ffcc33 0%, #cc9900 100%);
    color: #1a0b2e;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.neo-modal-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 204, 51, 0.3);
}

/* Tooltip & Help Button Styling */
.neo-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
    vertical-align: middle;
    position: relative;
}

.neo-help-btn:hover {
    background: #ffcc33;
    color: #0f172a;
    border-color: #ffcc33;
    box-shadow: 0 0 15px rgba(255, 204, 51, 0.4);
}

.neo-help-btn[data-tooltip]::after {
    text-transform: none !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    letter-spacing: normal !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}
