:root {
    --bg-color: #eef4ff;
    --bg-secondary: #e7eefb;
    --text-color: #15203b;
    --text-muted: rgba(21, 32, 59, 0.7);
    --text-soft: rgba(21, 32, 59, 0.45);
    --accent-color: #5f8cff;
    --accent-strong: #3d71ff;
    --accent-soft: rgba(95, 140, 255, 0.18);
    --accent-green: #25a26c;
    --glass-bg: rgba(255, 255, 255, 0.42);
    --glass-strong: rgba(255, 255, 255, 0.68);
    --glass-solid: rgba(248, 251, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.74);
    --glass-border-soft: rgba(121, 148, 196, 0.18);
    --glass-shadow: 0 20px 50px rgba(101, 123, 168, 0.16);
    --glass-shadow-strong: 0 32px 80px rgba(93, 116, 163, 0.2);
    --success-color: #1d8e61;
    --error-color: #d05f79;
    --success-soft: rgba(37, 162, 108, 0.14);
    --error-soft: rgba(208, 95, 121, 0.14);
    --glass-blur: 28px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    min-height: 100%;
}

body {
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 35%),
        linear-gradient(180deg, #f8fbff 0%, #eef3ff 38%, #e6edff 100%);
    color: var(--text-color);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(22px);
    animation: float-glow 18s ease-in-out infinite alternate;
}

body::before {
    inset: -12% auto auto -8%;
    width: 42vw;
    height: 42vw;
    min-width: 220px;
    min-height: 220px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.94), rgba(184, 214, 255, 0.62) 40%, rgba(184, 214, 255, 0) 72%);
}

body::after {
    inset: auto -10% -18% auto;
    width: 46vw;
    height: 46vw;
    min-width: 260px;
    min-height: 260px;
    background: radial-gradient(circle at center, rgba(255, 217, 224, 0.52), rgba(188, 226, 255, 0.44) 42%, rgba(188, 226, 255, 0) 74%);
    animation-duration: 22s;
}

.ambient,
.ambient-grid {
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

.ambient {
    border-radius: 999px;
    opacity: 0.9;
    filter: blur(18px);
    mix-blend-mode: screen;
}

.ambient-one {
    top: 14%;
    right: 6%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.85), rgba(177, 214, 255, 0.48) 48%, rgba(177, 214, 255, 0) 78%);
    animation: float-glow 16s ease-in-out infinite alternate;
}

.ambient-two {
    left: 5%;
    bottom: 18%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, rgba(255, 246, 220, 0.7), rgba(255, 207, 170, 0.4) 44%, rgba(255, 207, 170, 0) 78%);
    animation: float-glow 20s ease-in-out infinite alternate-reverse;
}

.ambient-three {
    top: 42%;
    left: 48%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at center, rgba(232, 247, 255, 0.88), rgba(169, 232, 244, 0.4) 48%, rgba(169, 232, 244, 0) 80%);
    animation: float-glow 14s ease-in-out infinite alternate;
}

.ambient-grid {
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 35%),
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    opacity: 0.18;
    mask-image: radial-gradient(circle at center, black 18%, transparent 82%);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(var(--safe-top) + 12px) calc(var(--safe-right) + 10px) calc(var(--safe-bottom) + 12px) calc(var(--safe-left) + 10px);
    position: relative;
    z-index: 1;
}

.container > * {
    position: relative;
    z-index: 1;
}

.nav {
    position: relative;
    display: flex;
    gap: 6px;
    padding: 6px;
    margin: 2px 6px 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.28));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    flex-shrink: 0;
}

.nav::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    opacity: 0.8;
    pointer-events: none;
}

.nav-btn {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 11px 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 18px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, color 0.28s ease, background 0.28s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    -webkit-user-select: none;
    user-select: none;
}

.nav-btn span {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.nav-btn:hover {
    color: var(--text-color);
    transform: translateY(-1px);
}

.nav-btn.active {
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 248, 255, 0.58));
    box-shadow: 0 12px 26px rgba(109, 130, 173, 0.16);
}

.nav-btn-admin.active {
    color: var(--accent-green);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(225, 249, 236, 0.66));
    box-shadow: 0 12px 26px rgba(82, 157, 114, 0.16);
}

.nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.tab {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 6px 6px 12px;
    scrollbar-gutter: stable;
}

.tab.active {
    display: flex;
    flex-direction: column;
}

.generate-container,
.settings-container,
.admin-container {
    position: relative;
    min-height: 100%;
    padding: 22px 18px 18px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.26));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-strong);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    overflow: hidden;
}

.generate-container::before,
.settings-container::before,
.admin-container::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    opacity: 0.9;
    pointer-events: none;
}

.generate-container > *,
.settings-container > *,
.admin-container > * {
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-color);
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    stroke: var(--accent-strong);
}

.info-card {
    margin-bottom: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(236, 243, 255, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 24px rgba(130, 150, 191, 0.1);
    color: var(--text-muted);
    line-height: 1.58;
    font-size: 14px;
}

.form-group {
    margin-bottom: 12px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 12px 24px rgba(136, 156, 197, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.form-group select,
.form-group textarea,
.form-group input[type="text"] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 17px;
    background: rgba(248, 251, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 18px rgba(142, 162, 204, 0.08);
    color: var(--text-color);
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%233d71ff' d='M7 9.5L2 4.5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group select option {
    background: #f6f9ff;
    color: var(--text-color);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 64px;
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(21, 32, 59, 0.38);
}

.form-group input[type="range"] {
    width: 100%;
    height: 34px;
    margin-bottom: 4px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(87, 136, 255, 0.9), rgba(177, 205, 255, 0.82));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.62);
}

.form-group input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -7px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff, #eef4ff);
    box-shadow: 0 8px 16px rgba(97, 121, 168, 0.22);
    cursor: pointer;
    -webkit-appearance: none;
}

.form-group input[type="range"]::-moz-range-track {
    height: 8px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(87, 136, 255, 0.9), rgba(177, 205, 255, 0.82));
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff, #eef4ff);
    box-shadow: 0 8px 16px rgba(97, 121, 168, 0.22);
    cursor: pointer;
}

#chat-temp-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.84);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 13px;
}

.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus {
    border-color: rgba(95, 140, 255, 0.62);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 0 0 4px rgba(95, 140, 255, 0.13), 0 16px 28px rgba(127, 147, 189, 0.16);
}

.action-btn {
    width: 100%;
    padding: 16px 18px;
    margin-top: 12px;
    border: 1px solid transparent;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)) padding-box,
        linear-gradient(135deg, rgba(124, 166, 255, 0.98), rgba(78, 119, 242, 0.94)) border-box;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    box-shadow: 0 18px 36px rgba(84, 112, 201, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-user-select: none;
    user-select: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.spin {
    animation: spin 0.9s linear infinite;
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 24px 40px rgba(84, 112, 201, 0.34);
    filter: saturate(1.04);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn:disabled {
    opacity: 0.68;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 10px 20px rgba(120, 140, 181, 0.18);
}

.image-result {
    margin-top: 12px;
    display: grid;
    gap: 12px;
    text-align: left;
}

.image-result:empty {
    display: none;
}

.image-result img {
    max-width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 28px 52px rgba(101, 122, 163, 0.22);
}

.delivery-card {
    padding: 18px;
    border-radius: 22px;
    text-align: left;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 24px rgba(136, 156, 197, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.delivery-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.delivery-card p {
    color: var(--text-muted);
    line-height: 1.52;
    font-size: 14px;
    white-space: pre-wrap;
}

.delivery-card p + p {
    margin-top: 10px;
}

.generated-preview {
    padding-top: 12px;
    border-top: 1px solid rgba(122, 149, 194, 0.18);
    color: var(--text-color);
}

.delivery-card.success {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(225, 249, 236, 0.4));
    border-color: rgba(192, 242, 217, 0.86);
}

.delivery-card.error {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 228, 235, 0.42));
    border-color: rgba(255, 213, 223, 0.88);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px 20px;
    color: var(--accent-strong);
    font-size: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(238, 244, 255, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 24px rgba(136, 156, 197, 0.12);
}

.loading::before {
    content: "";
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(95, 140, 255, 0.18);
    border-top-color: var(--accent-strong);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float-glow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(10px, -14px, 0) scale(1.06);
    }
}

.save-status {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    text-align: center;
    display: none;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 24px rgba(136, 156, 197, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.save-status.success {
    display: block;
    color: var(--success-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(225, 249, 236, 0.4));
    border-color: rgba(192, 242, 217, 0.86);
}

.save-status.error {
    display: block;
    color: var(--error-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 228, 235, 0.42));
    border-color: rgba(255, 213, 223, 0.88);
}

.access-denied {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(232, 239, 255, 0.96));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.access-denied-content {
    width: min(420px, 100%);
    text-align: center;
    padding: 34px 26px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: var(--glass-shadow-strong);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}

.access-icon {
    width: 66px;
    height: 66px;
    stroke: var(--accent-strong);
    margin-bottom: 18px;
    opacity: 0.9;
}

.access-denied h2 {
    justify-content: center;
    margin-bottom: 12px;
}

.access-denied p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.add-user-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.add-user-row input {
    flex: 1;
    min-width: 0;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border: 1px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.add-btn {
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)) padding-box,
        linear-gradient(135deg, rgba(113, 214, 156, 0.98), rgba(56, 179, 118, 0.94)) border-box;
    box-shadow: 0 14px 24px rgba(63, 159, 105, 0.2);
}

.add-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 18px 28px rgba(63, 159, 105, 0.26);
}

.add-btn:active {
    transform: scale(0.97);
}

.user-list {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    box-shadow: 0 12px 22px rgba(136, 156, 197, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 154, 255, 0.2), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-strong);
}

.user-name {
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(95, 140, 255, 0.12);
    border: 1px solid rgba(95, 140, 255, 0.16);
    color: var(--accent-strong);
    margin-left: 6px;
    flex-shrink: 0;
}

.remove-btn {
    width: 38px;
    height: 38px;
    color: var(--error-color);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)) padding-box,
        linear-gradient(135deg, rgba(255, 212, 222, 0.98), rgba(252, 165, 184, 0.94)) border-box;
    box-shadow: 0 12px 22px rgba(208, 95, 121, 0.18);
}

.remove-btn svg {
    width: 16px;
    height: 16px;
}

.remove-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 16px 26px rgba(208, 95, 121, 0.24);
}

.list-feedback {
    padding: 18px;
    border-radius: 20px;
    text-align: center;
    line-height: 1.5;
    font-size: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 22px rgba(136, 156, 197, 0.1);
}

.list-feedback.empty {
    color: var(--text-soft);
}

.list-feedback.error {
    color: var(--error-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 228, 235, 0.38));
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(117, 146, 207, 0.28);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(97, 128, 191, 0.4);
}

@media (max-width: 360px) {
    .container {
        padding: calc(var(--safe-top) + 10px) calc(var(--safe-right) + 8px) calc(var(--safe-bottom) + 10px) calc(var(--safe-left) + 8px);
    }

    .nav {
        gap: 4px;
        padding: 5px;
        border-radius: 20px;
    }

    .nav-btn {
        padding: 10px 4px;
        font-size: 11px;
    }

    .nav-icon {
        width: 19px;
        height: 19px;
    }

    .generate-container,
    .settings-container,
    .admin-container {
        padding: 18px 14px 16px;
        border-radius: 26px;
    }

    h2 {
        font-size: 22px;
    }

    .section-icon {
        width: 24px;
        height: 24px;
    }

    .form-group {
        padding: 12px;
        border-radius: 18px;
    }

    .form-group select,
    .form-group textarea,
    .form-group input[type="text"] {
        font-size: 14px;
        padding: 11px 12px;
        border-radius: 15px;
    }

    .action-btn {
        padding: 14px 16px;
        border-radius: 18px;
        font-size: 14px;
    }
}

@media (min-width: 601px) {
    .container {
        padding-left: 0;
        padding-right: 0;
    }

    .nav {
        margin: 8px 0 14px;
    }

    .nav-btn {
        padding: 13px 12px;
        font-size: 14px;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .tab {
        padding: 6px 0 14px;
    }

    .generate-container,
    .settings-container,
    .admin-container {
        padding: 26px 24px 22px;
    }

    h2 {
        font-size: 30px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group select,
    .form-group textarea,
    .form-group input[type="text"] {
        font-size: 16px;
    }

    .action-btn {
        font-size: 16px;
    }
}

@media (max-height: 540px) and (orientation: landscape) {
    .container {
        padding-top: calc(var(--safe-top) + 8px);
        padding-bottom: calc(var(--safe-bottom) + 8px);
    }

    .nav {
        margin-bottom: 8px;
        border-radius: 18px;
    }

    .nav-btn {
        padding: 8px 10px;
        flex-direction: row;
        gap: 6px;
    }

    .tab {
        padding-bottom: 8px;
    }

    .generate-container,
    .settings-container,
    .admin-container {
        padding: 16px 14px 14px;
        border-radius: 24px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .info-card,
    .form-group {
        margin-bottom: 8px;
    }

    .form-group textarea {
        min-height: 46px;
    }

    .action-btn {
        margin-top: 8px;
        padding: 12px 14px;
    }
}
