
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #111113;
  --surface: #19191d;
  --surface-soft: #202024;
  --text: #f5f5f7;
  --muted: #92929b;
  --subtle: #62626c;
  --line: rgba(255,255,255,.085);
  --accent: #83aaff;
  --accent-soft: rgba(131,170,255,.12);
  --sidebar-width: 245px;
  --font: 'DM Sans', sans-serif;
  --display: 'Manrope', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 70% -20%, rgba(75,91,130,.12), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 22px 22px;
  display: flex;
  flex-direction: column;
  background: rgba(20,20,23,.76);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 55px;
}

.brand-mark {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--text);
  color: #171719;
  font-size: 18px;
  font-weight: 800;
}

.brand-light {
  color: var(--muted);
  font-weight: 500;
}

.sidebar-label,
.eyebrow,
.dashboard-intro,
.tool-overline,
.supported-platforms > span,
.preview-caption,
.history-toolbar,
.app-footer {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.sidebar-label {
  color: var(--subtle);
  margin: 0 0 13px 11px;
}

.secondary-label {
  margin-top: 38px;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  width: 100%;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.nav-item:hover {
  background: rgba(255,255,255,.045);
  color: var(--text);
}

.nav-item.active {
  color: var(--text);
  background: rgba(255,255,255,.075);
}

.nav-icon {
  width: 19px;
  font-size: 17px;
  text-align: center;
  color: #a4a4ad;
}

.nav-item.active .nav-icon {
  color: var(--accent);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.connection-indicator {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e4b66d;
  box-shadow: 0 0 10px rgba(228,182,109,.3);
}

.connection-indicator strong,
.connection-indicator small {
  display: block;
}

.connection-indicator strong {
  font-size: 12px;
  font-weight: 600;
}

.connection-indicator small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

/* MAIN */

.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 0 65px;
  max-width: 1800px;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb-divider {
  color: var(--subtle);
}

.breadcrumb strong {
  color: var(--text);
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 17px;
}

.topbar-date {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg,#33333a,#1c1c20);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

/* PAGE SYSTEM */

.page {
  display: none;
  min-height: calc(100vh - 130px);
  padding-top: 76px;
  padding-bottom: 55px;
  animation: pageEnter .45s ease both;
}

.page.active {
  display: block;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-heading {
  min-height: 235px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 65px;
}

.eyebrow {
  display: block;
  color: var(--accent);
  margin-bottom: 18px;
}

.page-heading h1 {
  font-family: var(--display);
  font-size: clamp(43px, 5.2vw, 68px);
  font-weight: 600;
  letter-spacing: -4px;
  line-height: 1.08;
}

.page-heading p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.heading-decoration {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.035);
  font-family: var(--display);
  font-size: clamp(150px, 22vw, 280px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* DASHBOARD */

.dashboard-intro {
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
  color: var(--subtle);
  border-bottom: 1px solid var(--line);
}

.quick-access {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  margin-top: 5px;
}

.quick-item {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background .3s ease, transform .3s ease;
}

.quick-item:first-child {
  padding-left: 8px;
}

.quick-item:last-child {
  border-right: 0;
}

.quick-item:hover {
  background: linear-gradient(180deg,rgba(255,255,255,.045),transparent);
}

.quick-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 20px;
  transition: transform .3s ease, background .3s ease;
}

.quick-item:hover .quick-symbol {
  transform: translateY(-4px);
  background: var(--accent-soft);
}

.quick-name {
  font-size: 13px;
  font-weight: 700;
}

.quick-description {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.quick-arrow {
  position: absolute;
  top: 28px;
  right: 18px;
  color: var(--subtle);
  opacity: 0;
  transform: translate(-4px,4px);
  transition: .25s ease;
}

.quick-item:hover .quick-arrow {
  opacity: 1;
  transform: translate(0,0);
}

.dashboard-lower {
  margin-top: 85px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.section-heading h2 {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.8px;
}

.text-action {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
}

.empty-state {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-symbol {
  margin-bottom: 13px;
  color: var(--subtle);
  font-size: 24px;
}

.empty-state p {
  color: #d6d6dc;
  font-size: 13px;
}

.empty-state small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

/* AI ASSISTANT */

.ai-workspace {
  max-width: 790px;
  margin: 0 auto;
}

.ai-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 42px;
  text-align: center;
}

.ai-orb {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 30% 25%,#b8d2ff,transparent 55%),
    linear-gradient(145deg,#567dbd,#273b68);
  color: white;
  font-size: 32px;
  box-shadow: 0 10px 45px rgba(80,125,205,.16);
}

.ai-welcome h2,
.tool-workspace h2,
.sticker-controls h2 {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1px;
}

.ai-welcome p,
.tool-workspace > p,
.sticker-controls > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.ai-input-area {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
  transition: border-color .25s ease, background .25s ease;
}

.ai-input-area:focus-within {
  border-color: rgba(131,170,255,.5);
  background: rgba(255,255,255,.05);
}

.ai-input-area textarea {
  width: 100%;
  resize: vertical;
  min-height: 75px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.ai-input-area textarea::placeholder {
  color: var(--subtle);
}

.ai-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ai-input-footer > span {
  color: var(--subtle);
  font-size: 9px;
  letter-spacing: 1.2px;
}

.send-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: var(--text);
  color: #151518;
  font-size: 19px;
  transition: transform .2s ease;
}

.send-button:hover {
  transform: translateY(-2px);
}

.suggestion-list {
  display: flex;
  flex-direction: column;
  margin-top: 37px;
}

.suggestion-list .eyebrow {
  margin-bottom: 10px;
}

.suggestion-list button {
  display: flex;
  justify-content: space-between;
  padding: 15px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #c6c6cd;
  font-size: 12px;
  text-align: left;
  transition: color .2s ease, padding .2s ease;
}

.suggestion-list button:hover {
  padding-left: 8px;
  color: var(--accent);
}

/* DOWNLOADER */

.tool-workspace {
  max-width: 850px;
  padding: 40px 0;
  margin: 0 auto;
}

.tool-overline {
  margin-bottom: 20px;
  color: var(--accent);
}

.tool-workspace h2 {
  font-size: 29px;
}

.url-input {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  padding: 9px 10px 9px 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  transition: border-color .25s ease;
}

.url-input:focus-within {
  border-color: rgba(131,170,255,.5);
}

.url-input > span {
  color: var(--muted);
  font-size: 18px;
}

.url-input input {
  width: 100%;
  min-width: 0;
  height: 43px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.url-input input::placeholder {
  color: var(--subtle);
}

.url-input button,
.primary-action {
  flex-shrink: 0;
  padding: 13px 19px;
  border: 0;
  border-radius: 9px;
  background: var(--text);
  color: #151518;
  font-size: 11px;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease;
}

.url-input button:hover,
.primary-action:hover {
  transform: translateY(-2px);
}

.supported-platforms {
  margin-top: 42px;
}

.supported-platforms > span {
  color: var(--subtle);
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 17px;
}

.platform-list span {
  color: #b1b1ba;
  font-size: 12px;
}

/* SOUND STICKER */

.sticker-studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.sticker-preview {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at center,rgba(131,170,255,.09),transparent 55%),
    #17171b;
}

.sticker-preview .eyebrow {
  margin: 0;
}

.sticker-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 230px;
  color: var(--subtle);
}

.sticker-placeholder span {
  color: rgba(131,170,255,.7);
  font-size: 75px;
}

.sticker-placeholder p {
  font-size: 11px;
}

.preview-caption {
  color: var(--subtle);
  font-size: 9px;
}

.sticker-controls .eyebrow {
  margin-bottom: 14px;
}

.sticker-controls > p {
  line-height: 1.7;
}

.upload-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding .2s ease;
}

.upload-field:hover {
  padding-left: 6px;
}

.upload-field > span:first-child {
  color: var(--accent);
  font-size: 11px;
}

.upload-field strong,
.upload-field small {
  display: block;
}

.upload-field strong {
  font-size: 12px;
}

.upload-field small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.upload-field b {
  margin-left: auto;
  color: var(--muted);
  font-size: 19px;
  font-weight: 400;
}

.primary-action {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  padding: 16px 18px;
}

/* MEDIA TOOLS */

.media-tool-list {
  max-width: 900px;
  margin: 0 auto;
}

.media-tool {
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: padding .25s ease, background .25s ease;
}

.media-tool:first-child {
  border-top: 1px solid var(--line);
}

.media-tool:hover {
  padding-left: 19px;
  background: rgba(255,255,255,.025);
}

.media-tool-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 19px;
}

.media-tool strong,
.media-tool small {
  display: block;
}

.media-tool strong {
  font-size: 13px;
}

.media-tool small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.media-tool-arrow {
  margin-left: auto;
  color: var(--subtle);
  transition: transform .2s ease, color .2s ease;
}

.media-tool:hover .media-tool-arrow {
  transform: translate(3px,-3px);
  color: var(--accent);
}

/* HISTORY */

.history-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
}

.history-toolbar button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
}

.history-empty {
  min-height: 290px;
}

/* SETTINGS */

.settings-list {
  max-width: 850px;
  margin: 0 auto;
}

.settings-group {
  margin-bottom: 42px;
}

.settings-group > .eyebrow {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.setting-row {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.setting-row strong,
.setting-row small {
  display: block;
}

.setting-row strong {
  font-size: 12px;
  font-weight: 600;
}

.setting-row small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.setting-row > span {
  color: #c2c2ca;
  font-size: 11px;
}

.setting-row .setting-placeholder {
  color: var(--subtle);
}

/* FOOTER */

.app-footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 9px;
}

/* MOBILE NAV */

.mobile-nav {
  display: none;
}

/* RESPONSIVE */

@media (min-width: 1500px) {
  .main-content {
    padding-right: 95px;
    padding-left: 95px;
  }
}

@media (max-width: 1100px) {
  :root {
    --sidebar-width: 215px;
  }

  .main-content {
    padding: 0 35px;
  }

  .quick-access {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .quick-item:nth-child(2) {
    border-right: 0;
  }

  .quick-item:nth-child(3),
  .quick-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .quick-item:first-child {
    padding-left: 22px;
  }

  .sticker-studio {
    gap: 35px;
  }
}

@media (max-width: 760px) {
  :root {
    --sidebar-width: 0px;
  }

  body {
    background:
      radial-gradient(ellipse at 80% -10%,rgba(75,91,130,.13),transparent 45%),
      var(--bg);
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 0 23px 100px;
  }

  .topbar {
    height: 62px;
  }

  .topbar-date {
    display: none;
  }

  .page {
    min-height: calc(100vh - 150px);
    padding-top: 54px;
  }

  .page-heading {
    min-height: 200px;
    margin-bottom: 42px;
  }

  .page-heading h1 {
    font-size: clamp(42px,11vw,59px);
    letter-spacing: -2.7px;
  }

  .page-heading p {
    max-width: 270px;
    font-size: 12px;
  }

  .heading-decoration {
    right: -20px;
    font-size: 150px;
  }

  .quick-access {
    grid-template-columns: 1fr 1fr;
  }

  .quick-item {
    min-height: 160px;
    padding: 19px 12px;
  }

  .quick-item:first-child {
    padding-left: 12px;
  }

  .quick-item:nth-child(2) {
    border-right: 0;
  }

  .quick-item:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .quick-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .quick-symbol {
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
  }

  .quick-name {
    font-size: 11px;
  }

  .quick-description {
    font-size: 9px;
  }

  .dashboard-lower {
    margin-top: 55px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .ai-welcome h2 {
    font-size: 22px;
  }

  .ai-welcome p {
    max-width: 280px;
    line-height: 1.6;
  }

  .url-input {
    flex-wrap: wrap;
  }

  .url-input input {
    flex: 1;
    width: 60%;
  }

  .url-input button {
    width: 100%;
  }

  .platform-list {
    gap: 15px;
  }

  .sticker-studio {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .sticker-preview {
    min-height: 310px;
  }

  .sticker-placeholder {
    min-height: 180px;
  }

  .media-tool {
    min-height: 90px;
    gap: 14px;
  }

  .app-footer {
    gap: 10px;
    font-size: 8px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(19,19,22,.87);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }

  .mobile-nav-item {
    min-width: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: var(--subtle);
    font-size: 9px;
    transition: color .2s ease;
  }

  .mobile-nav-item span {
    font-size: 19px;
  }

  .mobile-nav-item.active {
    color: var(--accent);
  }
}

@media (max-width: 390px) {
  .main-content {
    padding-right: 17px;
    padding-left: 17px;
  }

  .page-heading h1 {
    font-size: 39px;
  }

  .quick-item {
    padding-right: 8px;
    padding-left: 8px;
  }

  .quick-item:first-child {
    padding-left: 8px;
  }

  .mobile-nav-item {
    min-width: 48px;
    font-size: 8px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* =====================================
   PRIA SOLO — EDITORIAL DESIGN UPDATE
   Apple precision × Rockstar attitude
===================================== */

:root {
  --bg: #101010;
  --surface: #181818;
  --surface-soft: #222222;
  --text: #f0eee9;
  --muted: #96938e;
  --subtle: #66635e;
  --line: rgba(240,238,233,.13);
  --accent: #d7a45b;
}

/* Background: flat, no decorative gradients */

body {
  background: #101010;
}

.sidebar {
  background: rgba(16,16,16,.94);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255,255,255,.08);
}

.brand-mark {
  background: #d7a45b;
  color: #111;
  border-radius: 9px;
}

.brand {
  letter-spacing: -1.5px;
}

.nav-item {
  border-radius: 6px;
}

.nav-item.active {
  background: rgba(255,255,255,.07);
  border-left: 2px solid #d7a45b;
}

.nav-item.active .nav-icon {
  color: #d7a45b;
}

/* Typography */

.page-heading {
  min-height: 260px;
}

.page-heading h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -4.5px;
  line-height: .99;
}

.page-heading p {
  color: #99958e;
  letter-spacing: .1px;
}

.eyebrow {
  color: #d7a45b;
  letter-spacing: 2px;
}

/* Editorial heading decoration */

.heading-decoration {
  color: rgba(255,255,255,.025);
  font-weight: 800;
}

/* Dashboard: remove the boxed-in appearance */

.quick-access {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.quick-item {
  min-height: 180px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: transparent;
}

.quick-item:first-child {
  padding-left: 8px;
}

.quick-item:hover {
  background: rgba(255,255,255,.025);
}

.quick-symbol {
  background: transparent;
  border: 1px solid rgba(215,164,91,.35);
  color: #d7a45b;
  border-radius: 50%;
}

.quick-item:hover .quick-symbol {
  background: rgba(215,164,91,.1);
}

.quick-arrow {
  color: #d7a45b;
}

/* AI workspace: understated */

.ai-orb {
  border-radius: 50%;
  background: #28231d;
  color: #d7a45b;
  box-shadow: none;
}

.ai-input-area {
  border-radius: 12px;
  background: #171717;
  box-shadow: none;
}

/* Downloader: simple input, strong typography */

.url-input {
  border-radius: 8px;
  background: #171717;
}

.url-input button,
.primary-action {
  border-radius: 6px;
  background: #d7a45b;
  color: #141414;
}

.url-input button:hover,
.primary-action:hover {
  opacity: .88;
}

/* Sticker studio: restrained preview */

.sticker-preview {
  border-radius: 8px;
  background: #171717;
  box-shadow: none;
}

.sticker-placeholder span {
  color: #d7a45b;
}

/* Media tools: editorial rows */

.media-tool {
  border-radius: 0;
  background: transparent;
}

.media-tool-icon {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #d7a45b;
}

.media-tool:hover {
  background: rgba(255,255,255,.025);
}

/* Settings and history */

.history-toolbar button {
  border-radius: 5px;
}

.setting-row > span {
  color: #d7a45b;
}

/* Mobile */

.mobile-nav {
  background: rgba(16,16,16,.94);
  border-top: 1px solid var(--line);
}

.mobile-nav-item.active {
  color: #d7a45b;
}

/* Remove unnecessary decoration */

.profile-avatar {
  background: #24221f;
  border-color: rgba(215,164,91,.25);
}

.status-dot {
  background: #d7a45b;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .quick-access {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .page-heading h1 {
    letter-spacing: -3px;
  }

  .quick-item {
    padding: 18px 12px;
  }

  .quick-item:first-child {
    padding-left: 12px;
  }
}


/* DOWNLOAD RESULT */

.download-result {
  margin-top: 28px;
  padding: 26px 0;
  border-top: 1px solid #303030;
  border-bottom: 1px solid #303030;
  animation: resultAppear 0.3s ease;
}

.download-result[hidden] {
  display: none;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.result-platform {
  color: #d7a45b;
  font-size: 13px;
  font-weight: 700;
}

.result-details {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  margin: 26px 0;
}

.result-label {
  display: block;
  margin-bottom: 10px;
  color: #96938e;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

#download-result-url {
  color: #e8e5df;
  font-size: 13px;
  overflow-wrap: anywhere;
}

#download-quality {
  width: 100%;
  padding: 12px;
  color: #f0eee9;
  background: #181818;
  border: 1px solid #383838;
  border-radius: 6px;
}

#download-start {
  padding: 13px 20px;
  color: #a09c95;
  background: #252525;
  border: 1px solid #383838;
  border-radius: 6px;
  cursor: not-allowed;
}

@keyframes resultAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .result-details {
    grid-template-columns: 1fr;
  }
}


/* SOUND STICKER LIVE PREVIEW */

#sticker-video-preview {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 420px;
  margin: 24px auto;
  object-fit: contain;
  border-radius: 8px;
  background: #080808;
}

#sticker-video-preview[hidden],
#sticker-audio-preview[hidden],
#sticker-preview[hidden] {
  display: none;
}

#sticker-audio-preview {
  display: block;
  width: 100%;
  margin-top: 20px;
}

.upload-field {
  cursor: pointer;
}

.upload-field:hover {
  border-color: #d7a45b;
}

#sticker-status {
  margin: 16px 0;
  font-size: 13px;
}

#sticker-status.success {
  color: #a9c99b;
}

#sticker-status.error {
  color: #e58d83;
}

#sticker-generate:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* SYNCHRONIZED PREVIEW BUTTON */

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 18px;
  color: #f0eee9;
  background: transparent;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.secondary-action:hover {
  border-color: #d7a45b;
  background: #1d1b18;
}

.secondary-action:disabled {
  opacity: 0.5;
  cursor: wait;
}


/* ========================================
   PRIA SOLO — AUDIO TRIMMER
======================================== */

.audio-trimmer {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.audio-trimmer h3 {
  margin: 12px 0 8px;
  color: var(--text, #f0eee9);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.8px;
}

.trim-help {
  margin-bottom: 22px;
  color: var(--muted, #96938e);
  font-size: 13px;
  line-height: 1.7;
}

/* WAVEFORM */

.waveform-container {
  position: relative;
  width: 100%;
  height: 110px;
  margin: 18px 0 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #151515;
}

.audio-waveform {
  display: block;
  width: 100%;
  height: 110px;
}

/* TRIM CONTROLS */

.trim-control {
  margin: 22px 0;
}

.trim-control label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.trim-control label span,
.trim-summary span,
.sticker-file-info span {
  color: var(--muted, #96938e);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.trim-control label strong {
  color: var(--accent, #d7a45b);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* RANGE SLIDERS */

.trim-control input[type="range"] {
  display: block;
  width: 100%;
  height: 5px;
  margin: 0;
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  accent-color: var(--accent, #d7a45b);
}

.trim-control input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

/* SELECTION SUMMARY */

.trim-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 25px 0 18px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.trim-summary div,
.sticker-file-info div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trim-summary strong {
  color: var(--text, #f0eee9);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

/* PREVIEW BUTTONS */

.trim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #1b1b1b;
  color: var(--text, #f0eee9);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.secondary-action:hover:not(:disabled) {
  border-color: var(--accent, #d7a45b);
  background: #24211c;
}

.secondary-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* FILE METADATA */

.sticker-file-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sticker-file-info strong {
  color: var(--text, #f0eee9);
  font-size: 13px;
  font-weight: 600;
}

/* STATUS */

.sticker-status {
  min-height: 22px;
  margin: 16px 0;
  color: var(--muted, #96938e);
  font-size: 13px;
  line-height: 1.6;
}

.sticker-status.success {
  color: #9fbd91;
}

.sticker-status.error {
  color: #e58b80;
}

/* VIDEO & AUDIO PREVIEW */

#sticker-video-preview {
  display: block;
  width: 100%;
  max-height: 320px;
  margin-top: 20px;
  border-radius: 10px;
  background: #080808;
}

#sticker-audio-preview {
  display: block;
  width: 100%;
  margin-top: 20px;
}

#sticker-video-preview[hidden],
#sticker-audio-preview[hidden] {
  display: none;
}

/* DISABLED GENERATE BUTTON */

#sticker-generate:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* MOBILE */

@media (max-width: 700px) {
  .trim-summary,
  .sticker-file-info {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .trim-summary {
    padding: 14px;
  }

  .trim-summary strong {
    font-size: 16px;
  }

  .trim-actions {
    flex-direction: column;
  }

  .secondary-action {
    width: 100%;
  }
}


/* ========================================
   MEDIA TOOLS
======================================== */

.media-tools-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 38px;
}

.media-tool-card {
    min-width: 0;
    padding: 28px;
    background: #151515;
    border: 1px solid #292929;
    border-radius: 14px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.media-tool-card:hover {
    border-color: #55504a;
    transform: translateY(-2px);
}

.media-tool-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tool-number {
    color: #dca64f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.media-tool-card h2 {
    margin: 0 0 9px;
    color: #f2f0ec;
    font-size: 23px;
    font-weight: 650;
    letter-spacing: -0.7px;
}

.media-tool-card > p {
    margin: 0 0 24px;
    color: #898681;
    font-size: 14px;
    line-height: 1.7;
}

.media-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 145px;
    margin-bottom: 15px;
    padding: 20px;
    border: 1px dashed #48443e;
    border-radius: 10px;
    background: #191919;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.media-upload:hover {
    background: #201e1a;
    border-color: #dca64f;
}

.upload-icon {
    color: #dca64f;
    font-size: 28px;
    line-height: 1;
}

.media-upload strong {
    color: #e9e6e0;
    font-size: 14px;
    font-weight: 600;
}

.media-upload small {
    color: #77736e;
    font-size: 12px;
}

.selected-file {
    overflow: hidden;
    margin-bottom: 22px;
    color: #a6a19a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-tool-card > label:not(.media-upload) {
    display: block;
    margin-bottom: 10px;
    color: #aaa59e;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.media-tool-card select {
    width: 100%;
    height: 46px;
    margin-bottom: 20px;
    padding: 0 14px;
    color: #e9e6e0;
    background: #202020;
    border: 1px solid #373737;
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 13px;
}

.media-tool-card select:focus {
    border-color: #dca64f;
}

.media-tool-card select option {
    color: #e9e6e0;
    background: #202020;
}

.media-tool-card .primary-action {
    width: 100%;
    min-height: 46px;
    color: #17130d;
    background: #dca64f;
    border: 1px solid #dca64f;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.media-tool-card .primary-action:hover:not(:disabled) {
    background: #edbb68;
}

.media-tool-card .primary-action:disabled {
    color: #77716a;
    background: #292723;
    border-color: #39352f;
    cursor: not-allowed;
    opacity: 0.7;
}

.media-tool-card .tool-status {
    min-height: 18px;
    margin: 12px 0 0;
    color: #dca64f;
    font-size: 12px;
    line-height: 1.5;
}

/* Responsive */

@media (max-width: 900px) {
    .media-tools-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .media-tool-card {
        padding: 21px;
    }

    .media-tool-card h2 {
        font-size: 20px;
    }

    .media-upload {
        min-height: 125px;
    }
}


/* ========================================
   HISTORY PAGE
======================================== */

.history-workspace {
    margin-top: 42px;
    max-width: 100%;
}

.history-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.history-toolbar h2 {
    margin: 8px 0 0;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -1px;
}

#history-filter {
    min-width: 170px;
    padding: 12px 15px;
    color: inherit;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    outline: none;
    font: inherit;
}

#history-filter option {
    background: #171717;
    color: #fff;
}

.history-list {
    min-height: 280px;
}

.history-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.history-empty .empty-symbol {
    font-size: 36px;
    opacity: 0.45;
    margin-bottom: 18px;
}

.history-empty h3 {
    margin: 0 0 9px;
    font-size: 19px;
    font-weight: 500;
}

.history-empty p {
    margin: 0;
    color: var(--muted-color, #888);
    font-size: 13px;
}

.history-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

#history-count {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--muted-color, #888);
}

#history-clear {
    padding: 9px 0;
    color: #d18b72;
    background: transparent;
    border: none;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#history-clear:hover {
    opacity: 0.65;
}

@media (max-width: 600px) {
    .history-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    #history-filter {
        width: 100%;
    }
}


/* HISTORY ITEM */

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.history-item-category {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c18b68;
}

.history-item-info h3 {
    margin: 7px 0;
    font-size: 15px;
    font-weight: 500;
}

.history-item-info p {
    margin: 0;
    font-size: 12px;
    color: var(--muted-color, #888);
}

.history-item-date {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--muted-color, #888);
}

@media (max-width: 600px) {
    .history-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

