:root {
    --bg: #0b0f19;
    --panel: #0f1526;
    --soft: #171c2e;
    --muted: #aab1c6;
    --text: #e9eeff;
    --accent: #7c5cff;
    --accent-2: #00e0b5;
    --danger: #ff5577;
    --ring: 0 10px 40px rgba(124, 92, 255, .28), inset 0 0 1px rgba(255, 255, 255, .08);
    --radius: 16px;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(12px);
    background: rgba(10, 14, 24, .55);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .02em
}



h1 {
    font-size: 56px;
    line-height: 1.05;
    margin: 18px 0 14px;
    letter-spacing: -.02em
}


.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap
}

.ghost {
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .14)
}

.dash {
    padding: 18px;
    display: grid;
    gap: 14px
}

.dash .row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 14px
}

.stat {
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(124, 92, 255, .08), rgba(124, 92, 255, .02));
    border: 1px solid rgba(124, 92, 255, .2)
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    font-size: 12px;
    color: #cdd5f0
}

/* Features */
section {
    padding: 64px 0
}

.grid-3 {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 18px
}

.feature {
    padding: 20px
}

.feature h3 {
    margin: 8px 0 6px
}

.muted {
    color: var(--text)
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 18px
}

.step {
    padding: 18px
}

.step .num {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(124, 92, 255, .15);
    border: 1px solid rgba(124, 92, 255, .3);
    font-weight: 800
}


/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns:1fr
    }

    h1 {
        font-size: 44px
    }

    .grid-3, .steps, .pricing {
        grid-template-columns:1fr
    }
}

/* Общие стили таблицы */
.offer-parser {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.offer-parser .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Стили для таблицы */
.offer-parser table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Заголовок таблицы */
.offer-parser thead {
    background: #3498db;
    color: white;
}

.offer-parser th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

/* Строки таблицы */
.offer-parser tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.offer-parser tr:hover {
    background: #f5f9fc;
}

.offer-parser tr.new {
    font-weight: bolder;
    background: #f0f7ff;
}

.offer-parser tr.new:hover {
    background: #e1f0ff;
}

/* Ячейки таблицы */
.offer-parser td {
    padding: 12px 10px;
    vertical-align: top;
    word-break: break-word;
}

/* Стили для кнопок */
.offer-parser .buttons {
    display: flex;
    gap: 5px;
}

.offer-parser button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.offer-parser button[data-action="read"] {
    background: #3498db;
    color: white;
}

.offer-parser button[data-action="read"]:hover {
    background: #2980b9;
}

.offer-parser button[data-action="reject"] {
    background: #e74c3c;
    color: white;
}

.offer-parser button[data-action="reject"]:hover {
    background: #c0392b;
}

/* Ссылки */
.offer-parser a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.offer-parser a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .offer-parser table {
        display: block;
    }

    .offer-parser th, .offer-parser td {
        padding: 8px 6px;
    }

    .offer-parser .buttons {
        flex-direction: column;
        gap: 3px;
    }

    .offer-parser button {
        padding: 5px 8px;
    }
}

.offer-parser tr.new {
    /*font-weight: bolder;*/
}

.offer-parser .source {
    width: 90px;
}

.offer-parser .title {
    width: 290px;
}

.offer-parser .description {
    /*width: 190px;*/
}

.offer-parser .price {
    width: 190px;
    font-size: 14px;
}

.offer-parser .url {
    width: 90px;
}

.offer-parser .buttons {
    width: 190px;
}

.offer-parser .date {
    width: 120px;
}

.wrapper.offer-parser .item {
    display: flex;
    flex-direction: column;
    padding: 20px 10px;;
}

.wrapper.offer-parser .item textarea {
    width: 700px;
}

.wrapper.offer-parser .item button {
    width: 100px;
}

.content.prompts {
    margin-top: 40px;
    margin-left: 100px;
    width: 1000px;
}

.content.prompts .source {
    margin: 40px 0;
}

.content.prompts .source .title {
    font-weight: 900;
    margin: 10px 0;
}

.content.prompts .source .categories_item {
    margin-bottom: 10px;
}

.content.prompts .prompt-item {
    display: flex;
    flex-direction: column;
}

.content.prompts .prompt-item .sort {
    display: flex;
    flex-direction: row;
    margin: 10px;
}

.content.prompts .prompt-item .btn {
    width: 100px;
    border-radius: 8px;
    margin: 10px;
    height: 30px;
}

.content.prompts .prompt-item .btn:hover {
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5);
}

.content.prompts .prompt-item .sort input {
    margin-left: 15px;
    width: 60px;
}

.pagination {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 21px;
    margin-top: 30px;
}

.pagination ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-column-gap: 5px;
    -moz-column-gap: 5px;
    column-gap: 5px;
    row-gap: 5px;
    text-align: center;
}

.pagination a {
    min-width: 18px;
    color: #fff;
    border-bottom: 1px solid transparent;
}

.pagination a:hover,
.pagination a.active {
    color: #9788ff;
    border-bottom: 1px solid #9788ff;
}

.add-resource-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.empty-message {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.empty-message.hidden {
    display: none;
}

