.tool-container {
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.editor-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: calc(100vh - 140px);
    background: #f4f6f8;
    overflow: hidden;
}

@media (max-width: 992px) {
    .editor-grid {
        grid-template-columns: 1fr;
    }
}

/* SIDEBAR */
.config-panel {
    background: #fff;
    border-right: 1px solid #e1e4e8;
    padding: 20px;
    overflow-y: auto;
    max-height: 100vh;
}
.hosting-notice {
    padding:10px;
}
.hosting-notice span{
    font-size:11px;
}
.btn-back-small {
    display: inline-block;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.config-header h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

/* ACCORDION */
.accordion-item {
    border-bottom: 1px solid #f1f2f6;
}

.accordion-header {
    padding: 15px 10px;
    cursor: pointer;
    font-weight: 600;
    color: #34495e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.accordion-header span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header i:first-child {
    width: 20px;
    text-align: center;
    color: #95a5a6;
}

.accordion-header:hover {
    background: #f8f9fa;
    color: #3498db;
}

.accordion-header:hover i:first-child {
    color: #3498db;
}

.accordion-header .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 15px 10px;
    background: #fff;
}

.accordion-item.active .accordion-body {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 4px;
    font-weight: 600;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border 0.2s;
    background: #fff;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.hint {
    display: block;
    font-size: 0.75rem;
    color: #95a5a6;
    margin-top: 4px;
}

.half-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-row {
    display: flex;
    gap: 15px;
}
.checkbox-row label {
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.separator-line {
    height: 1px;
    background: #f1f2f6;
    margin: 15px 0 10px 0;
}

.setting-subsection {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bdc3c7;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Template Selector */
.template-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.template-option {
    width: 42px;
    height: 42px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #bdc3c7;
    transition: all 0.2s;
}

.template-option:hover,
.template-option.active {
    border-color: #3498db;
    color: #3498db;
    background: #ebf5fb;
}

/* Color Pickers */
.color-picker-wrapper {
    position: relative;
    height: 35px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    overflow: hidden;
}

.color-picker-wrapper input[type="color"] {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 200%;
    height: 200%;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border: none;
}

/* Social Inputs */
.social-input {
    position: relative;
    margin-bottom: 8px;
}

.social-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bdc3c7;
    font-size: 0.9rem;
}

.social-input input {
    padding-left: 35px;
}

/* PREVIEW PANEL */
.preview-panel {
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: #f4f6f8;
}

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

.preview-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-outline {
    background: white;
    border: 1px solid #bdc3c7;
    color: #7f8c8d;
}

.preview-stage-wrapper {
    flex: 1;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
    min-height: 400px;
    overflow: auto;
}

.instructions {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #95a5a6;
    text-align: center;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    z-index: 1000;
    font-size: 0.9rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* CTA SECTION */
.cta-security {
  margin: 50px 0 0 0;
  background: linear-gradient(90deg, #23c6fa 10%, #23315a 100%);
  color: #fff;
  box-shadow: 0 10px 32px rgba(35,49,90,0.09);
  padding: 0;
}

.cta-security-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 38px 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cta-security-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.cta-security-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.cta-btn.btn-accent {
  background: linear-gradient(90deg, #fd746c, #ff9068);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 18px 30px;
  box-shadow: 0 4px 16px rgba(253,116,108,0.12);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}

.cta-btn.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253,116,108,0.2);
}

@media (max-width: 900px) {
  .cta-security-inner { flex-direction: column; gap: 20px; text-align: center; }
  .cta-security-content h2 { font-size: 1.5rem; }
  .cta-security-content { width: 100%; }
  .cta-btn.btn-accent { margin: 10px 0 0 0; }
}
