:root {
    --gmgen-main: #1f2937;
    --gmgen-main-dark: #111827;
    --gmgen-blue: #2563eb;
    --gmgen-blue-dark: #1d4ed8;
    --gmgen-bg: #f8fafc;
    --gmgen-soft: #eef2f7;
    --gmgen-border: rgba(31, 41, 55, 0.16);
    --gmgen-shadow: 0 18px 55px rgba(31, 41, 55, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gmgen-bg);
    color: var(--gmgen-main);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.gmgen-page {
    min-height: 100vh;
}

.gmgen-container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.gmgen-hero {
    position: relative;
    padding: 76px 0;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.42), transparent 32%),
        linear-gradient(135deg, var(--gmgen-main), var(--gmgen-main-dark));
    overflow: hidden;
}

.gmgen-hero:after {
    content: "";
    position: absolute;
    left: -10%;
    bottom: -105px;
    width: 120%;
    height: 170px;
    background: var(--gmgen-bg);
    transform: rotate(-3deg);
}

.gmgen-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 38px;
    align-items: center;
}

.gmgen-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--gmgen-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.gmgen-hero .gmgen-eyebrow,
.gmgen-hero-card .gmgen-eyebrow {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.gmgen-hero h1 {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.gmgen-hero p {
    max-width: 760px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.7;
}

.gmgen-hero-actions,
.gmgen-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gmgen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    background: var(--gmgen-blue);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gmgen-btn:hover,
.gmgen-btn:focus {
    background: var(--gmgen-blue-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    outline: none;
}

.gmgen-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.68);
    color: #fff;
}

.gmgen-btn-outline:hover,
.gmgen-btn-outline:focus {
    background: #fff;
    color: var(--gmgen-main);
    border-color: #fff;
}

.gmgen-btn-muted {
    background: rgba(28, 57, 79, 0.1);
    color: var(--gmgen-main);
}

.gmgen-btn-muted:hover,
.gmgen-btn-muted:focus {
    background: var(--gmgen-main);
    color: #fff;
}

.gmgen-hero-card {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.gmgen-hero-card h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.gmgen-hero-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gmgen-hero-card li {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.84);
    font-weight: 700;
}

.gmgen-hero-card li span {
    color: #fff;
    font-weight: 900;
}

.gmgen-section {
    padding: 70px 0;
}

.gmgen-section-heading {
    margin-bottom: 34px;
}

.gmgen-section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gmgen-section-heading p {
    max-width: 900px;
    margin: 0;
    color: #5d6f7c;
    line-height: 1.7;
}

.gmgen-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: start;
}

.gmgen-panel {
    margin-bottom: 26px;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(28, 57, 79, 0.08);
    box-shadow: var(--gmgen-shadow);
}

.gmgen-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.gmgen-panel h3 {
    margin: 0 0 18px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.gmgen-panel-header h3 {
    margin-bottom: 0;
}

.gmgen-field {
    margin-bottom: 18px;
}

.gmgen-field label,
.gmgen-label-text {
    display: block;
    margin-bottom: 8px;
    color: var(--gmgen-main);
    font-weight: 800;
}

.gmgen-field input[type="text"],
.gmgen-field input[type="url"],
.gmgen-field input[type="number"],
.gmgen-field textarea,
.gmgen-output {
    width: 100%;
    border: 1px solid rgba(31, 41, 55, 0.18);
    border-radius: 16px;
    padding: 12px 14px;
    background: #f8fbfd;
    color: var(--gmgen-main);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gmgen-field input:focus,
.gmgen-field textarea:focus,
.gmgen-output:focus {
    border-color: rgba(37, 122, 167, 0.68);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    background: #fff;
    outline: none;
}

.gmgen-field textarea {
    min-height: 92px;
    resize: vertical;
}

.gmgen-output {
    min-height: 540px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}

.gmgen-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.gmgen-check-field {
    padding-top: 2px;
}

.gmgen-check-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
    font-weight: 700 !important;
}

.gmgen-check-row input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.gmgen-note {
    display: block;
    margin-top: 7px;
    color: #697d8b;
    font-size: 12px;
    line-height: 1.5;
}

.gmgen-location-card {
    position: relative;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(28, 57, 79, 0.12);
    background: #f8fbfd;
}

.gmgen-location-card h4 {
    margin: 0 0 18px;
    font-size: 20px;
}

.gmgen-location-remove {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 0;
    border-radius: 999px;
    background: rgba(28, 57, 79, 0.1);
    color: var(--gmgen-main);
    padding: 7px 11px;
    font-weight: 800;
}

.gmgen-location-remove:hover,
.gmgen-location-remove:focus {
    background: var(--gmgen-main);
    color: #fff;
    outline: none;
}

.gmgen-text-btn {
    border: 0;
    background: transparent;
    color: var(--gmgen-blue);
    font-weight: 900;
    padding: 4px 0;
}

.gmgen-text-btn:hover,
.gmgen-text-btn:focus {
    color: var(--gmgen-blue-dark);
    text-decoration: underline;
    outline: none;
}

.gmgen-status {
    min-height: 22px;
    margin-top: 14px;
    color: var(--gmgen-main);
    font-weight: 800;
}

.gmgen-preview {
    min-height: 300px;
    border: 1px dashed rgba(28, 57, 79, 0.24);
    border-radius: 22px;
    background: #f8fbfd;
    overflow: hidden;
}

.gmgen-preview-empty {
    margin: 0;
    padding: 28px;
    color: #697d8b;
}

/* Preview widget styles */
.gmgen-preview-widget {
    color: var(--gmgen-main);
}

.gmgen-preview-widget .preview-map-heading {
    padding: 22px;
    background: #fff;
    border-bottom: 1px solid rgba(28, 57, 79, 0.1);
}

.gmgen-preview-widget .preview-map-heading span {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--gmgen-blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.gmgen-preview-widget .preview-map-heading h4 {
    margin: 0 0 8px;
    font-size: 24px;
}

.gmgen-preview-widget .preview-map-heading p {
    margin: 0;
    color: #60707d;
    line-height: 1.6;
}

.gmgen-preview-widget .preview-map-layout {
    display: grid;
    grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1.15fr);
    gap: 14px;
    padding: 14px;
}

.gmgen-preview-widget .preview-map-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 340px;
    overflow: auto;
}

.gmgen-preview-widget .preview-map-card {
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(28, 57, 79, 0.12);
}

.gmgen-preview-widget .preview-map-card strong,
.gmgen-preview-widget .preview-map-card span {
    display: block;
}

.gmgen-preview-widget .preview-map-card span {
    margin-top: 4px;
    color: #60707d;
    font-size: 12px;
    line-height: 1.45;
}

.gmgen-preview-widget .preview-map-card button {
    margin-top: 10px;
    border: 0;
    border-radius: 999px;
    padding: 7px 10px;
    background: var(--gmgen-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.gmgen-preview-widget .preview-map-stage {
    min-height: 340px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(28, 57, 79, 0.95), rgba(37, 122, 167, 0.75));
    color: #fff;
    display: flex;
    align-items: center;
    padding: 26px;
}

.gmgen-preview-widget .preview-map-stage h4 {
    margin: 0 0 10px;
    font-size: 28px;
}

.gmgen-preview-widget .preview-map-stage p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .gmgen-hero-grid,
    .gmgen-layout,
    .gmgen-preview-widget .preview-map-layout {
        grid-template-columns: 1fr;
    }

    .gmgen-hero {
        padding-bottom: 120px;
    }

    .gmgen-settings-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .gmgen-container {
        width: min(100% - 24px, 1180px);
    }

    .gmgen-section {
        padding: 48px 0;
    }

    .gmgen-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .gmgen-panel-header {
        display: block;
    }

    .gmgen-panel-header .gmgen-text-btn {
        margin-top: 8px;
    }

    .gmgen-location-remove {
        position: static;
        margin-bottom: 14px;
    }

    .gmgen-actions {
        display: block;
    }

    .gmgen-actions .gmgen-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
