/* --- HYPER-MODERN UI VARIABLES --- */
:root {
    --hm-primary: #8b5cf6;
    --hm-secondary: #ec4899;
    --hm-accent: #06b6d4;
    --hm-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --hm-gradient-hover: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    --hm-bg-mesh: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    --hm-glass-bg: rgba(255, 255, 255, 0.65);
    --hm-glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --hm-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --hm-card-radius: 20px;
    --hm-text-dark: #1f2937;
    --hm-text-light: #6b7280;
}

.awl-hm-wrapper * {
    box-sizing: border-box;
    outline: none;
}

.awl-hm-wrapper {
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    background-color: #f3f4f6;
    background-image:
        radial-gradient(at 10% 10%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
        radial-gradient(at 10% 90%, rgba(244, 63, 94, 0.1) 0px, transparent 50%);
    padding: 50px;
    max-width: 1280px;
    margin: 20px auto;
    border-radius: var(--hm-card-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    min-height: 80vh;
}

.awl-hm-header {
    text-align: center;
    margin-bottom: 50px;
}

.awl-hm-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    background: var(--hm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.awl-hm-header p {
    font-size: 1.1rem;
    color: var(--hm-text-light);
    margin-top: 10px;
}

.awl-hm-badge {
    background: var(--hm-gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: top;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(236, 72, 153, 0.4);
}

.awl-hm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    align-items: start;
}

.awl-hm-card {
    background: var(--hm-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--hm-glass-border);
    border-radius: var(--hm-card-radius);
    padding: 30px;
    box-shadow: var(--hm-shadow);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.awl-hm-card:hover {
    transform: translateY(-2px);
    z-index: 10;
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.awl-hm-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hm-text-dark);
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.awl-hm-icon-box {
    width: 40px;
    height: 40px;
    background: var(--hm-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.awl-hm-group {
    margin-bottom: 25px;
}

.awl-hm-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
    font-size: 1.4rem;
}

.awl-hm-sub {
    font-size: 0.85rem;
    color: var(--hm-text-light);
    display: block;
    margin-top: 5px;
}

.awl-hm-select,
.awl-hm-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--hm-text-dark);
    transition: all 0.2s;
}

.awl-hm-select:focus,
.awl-hm-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.awl-hm-radios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.awl-hm-radio-item {
    cursor: pointer;
    position: relative;
}

.awl-hm-radio-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.awl-hm-radio-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border: 2px solid transparent;
    border-radius: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.awl-hm-radio-box i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #9ca3af;
}

.awl-hm-radio-box span {
    font-weight: 600;
    font-size: 0.9rem;
}

.awl-hm-radio-item input:checked+.awl-hm-radio-box {
    border-color: #d946ef;
    background: #fff;
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.25);
    transform: translateY(-2px);
}

.awl-hm-radio-item input:checked+.awl-hm-radio-box i {
    color: #d946ef;
}

.awl-hm-radio-item input:checked+.awl-hm-radio-box span {
    color: #8b5cf6;
}

.awl-hm-switch-group {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 99px;
    position: relative;
}

.awl-hm-switch-item {
    position: relative;
    cursor: pointer;
}

.awl-hm-switch-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.awl-hm-switch-btn {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    position: relative;
}

.awl-hm-switch-item input:checked+.awl-hm-switch-btn {
    background: var(--hm-gradient);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.awl-hm-range-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.awl-hm-range {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 99px;
    background: #e2e8f0;
}

.awl-hm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hm-primary);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.awl-hm-badge-val {
    background: var(--hm-secondary);
    color: #fff;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 40px;
    text-align: center;
}

.awl-hm-color-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.awl-hm-color-swatch {
    width: 45px;
    height: 45px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    background: transparent;
}

.awl-hm-color-input {
    border: none;
    background: transparent;
    font-family: monospace;
    font-size: 1rem;
    color: #374151;
    width: 100px;
    text-transform: uppercase;
    font-weight: 600;
}

.awl-hm-btn {
    background: var(--hm-gradient);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.awl-hm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    color: white;
}

#fg_setting_load {
    display: inline-flex;
    align-items: center;
    color: var(--hm-primary);
    font-weight: 600;
    margin-left: 15px;
}

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

.animate-in {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- ADDITIONAL ADMIN UTILS --- */

.fg-shortcode-input {
    font-weight: bold !important;
    background-color: #32373C !important;
    color: #FFFFFF !important;
    text-align: center !important;
    cursor: default !important;
}

.fg-copied-badge {
    background-color: #32CD32 !important;
    color: #FFFFFF !important;
    margin-left: 4px !important;
    border-radius: 4px !important;
}

.igm-copy {
    position: absolute;
    top: 79px;
    right: 24px;
    font-size: 26px;
    cursor: pointer;
}

.fg-meta-btn {
    background: #496481 !important;
    text-shadow: none !important;
    margin-top: 10px !important;
    font-size: 12px !important;
    border: none !important;
    box-shadow: none !important;
}

.fg-meta-btn:hover {
    background: #3a5068 !important;
}
