/* Scoped styles for the tool to match the React design roughly but using Theme's Bootstrap */
    .og-tool-container {
        background: #f9fafb;
        padding: 40px 0;
        font-family: 'Inter', sans-serif; /* Assuming Inter is available or fallback */
    }
    .og-controls {
        background: #fff;
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        max-height: 90vh;
        overflow-y: auto;
    }
    .og-preview-container {
        background: #f3f4f6;
        border-radius: 12px;
        padding: 24px;
        border: 1px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .og-canvas-wrapper {
        background: #fff;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        border-radius: 4px;
        overflow: hidden;
        transition: transform 0.3s ease;
        max-width: 100%;
    }
    .og-canvas-wrapper:hover {
        transform: scale(1.01);
    }
    canvas {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .control-section {
        margin-bottom: 24px;
        padding-bottom: 24px;
        border-bottom: 1px solid #f3f4f6;
    }
    .control-section:last-child {
        border-bottom: none;
    }
    .section-title {
        font-size: 12px;
        font-weight: 700;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 16px;
    }
    .style-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }
    .style-btn {
        padding: 8px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #f9fafb;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        font-size: 10px;
    }
    .style-btn.active {
        background: #ede9fe;
        border-color: #7C3AED;
        color: #5b21b6;
    }
    .upload-box {
        border: 2px dashed #d1d5db;
        border-radius: 8px;
        padding: 12px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        background: #f9fafb;
    }
    .upload-box:hover {
        border-color: #7C3AED;
        background: #ede9fe;
    }
    .slider-group {
        margin-top: 12px;
    }
    .slider-label {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #6b7280;
        font-weight: 600;
        margin-bottom: 4px;
    }
    .color-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 12px;
    }
    .color-input-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .color-input-group label {
        font-size: 10px;
        font-weight: 600;
        color: #9ca3af;
        margin-bottom: 4px;
    }
    input[type="color"] {
        width: 100%;
        height: 32px;
        padding: 0;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    textarea.form-control {
        font-size: 14px;
        font-weight: bold;
        resize: vertical;
    }
    .btn-download {
        background: #111827;
        color: #fff;
        width: 100%;
        padding: 16px;
        border-radius: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: background 0.2s;
        border: none;
    }
    .btn-download:hover {
        background: #000;
        color: #fff;
    }
    /* Range input styling */
    input[type=range] {
        width: 100%;
        -webkit-appearance: none;
        background: transparent;
    }
    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 16px;
        width: 16px;
        border-radius: 50%;
        background: #7C3AED;
        cursor: pointer;
        margin-top: -6px;
    }
    input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 4px;
        background: #e5e7eb;
        border-radius: 2px;
    }
    /* Instructions / Stages Style adapted from seo-prodizhenie-new.php */
    .og-instr-container {
        max-width: 900px;
        margin: 60px auto;
    }
    .og-instr-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    @media (max-width: 768px) {
        .og-instr-cards {
            grid-template-columns: 1fr;
        }
    }
    .og-instr-card {
        background: #fff;
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0,0,0,0.03);
        display: flex;
        flex-direction: column;
        gap: 15px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .og-instr-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    }
    .og-instr-number {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #7C3AED;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 18px;
        flex-shrink: 0;
    }
    .og-instr-header {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .og-instr-title {
        font-size: 18px;
        font-weight: 700;
        color: #2d3436;
        margin: 0;
    }
    .og-instr-desc {
        font-size: 14px;
        color: #636e72;
        line-height: 1.6;
        margin: 0;
    }
    .hidden { display: none; }


/* === Bootstrap-subset for OG tool (theme has no Bootstrap) — scoped to .og-page === */
.og-page .container{max-width:1170px;margin:0 auto;padding:0 15px}
.og-page .row{display:flex;flex-wrap:wrap;margin:0 -15px}
.og-page [class*="col-md-"]{position:relative;width:100%;padding:0 15px}
@media(min-width:992px){
  .og-page .col-md-4{width:33.3333%}
  .og-page .col-md-8{width:66.6667%}
  .og-page .col-md-10{width:83.3333%}
  .og-page .col-md-12{width:100%}
  .og-page .col-md-offset-1{margin-left:8.3333%}
}
.og-page .form-control{display:block;width:100%;padding:8px 12px;font-size:14px;line-height:1.4;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none}
.og-page .form-control:focus{border-color:#7C3AED;box-shadow:0 0 0 2px rgba(124,58,237,.15)}
.og-page .form-group{margin-bottom:12px}
.og-page .btn{display:inline-block;padding:8px 12px;font-size:14px;font-weight:500;line-height:1.4;text-align:center;white-space:nowrap;vertical-align:middle;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#374151;cursor:pointer;transition:all .15s}
.og-page .btn:hover{background:#f9fafb}
.og-page .btn-default{background:#fff}
.og-page .btn-group{position:relative;display:inline-block;vertical-align:middle}
.og-page .btn-group-justified{display:flex;width:100%;gap:0}
.og-page .btn-group-justified>.btn-group{flex:1}
.og-page .btn-group-justified>.btn-group>.btn{width:100%}
.og-page .btn-group-justified>.btn-group:first-child>.btn{border-top-right-radius:0;border-bottom-right-radius:0}
.og-page .btn-group-justified>.btn-group:last-child>.btn{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}
.og-page .btn-group-sm>.btn,.og-page .btn-group-sm .btn{padding:6px 10px;font-size:12px}
.og-page .btn.active{background:#7C3AED;color:#fff;border-color:#7C3AED}
.og-page .checkbox{margin:8px 0;font-size:12px}
.og-page .checkbox label{font-weight:400}
.og-page .text-center{text-align:center}
.og-page .text-right{text-align:right}
.og-page .text-danger{color:#ef4444}
.og-page .hidden{display:none!important}
@media(max-width:991px){
  .og-page .og-controls{max-height:none;margin-bottom:24px}
}
