/* =========================================================================
   Vinaweb – Trang Adobe Creative Cloud (pages/adobe-creative-cloud.php)
   Nạp SAU gws.css + m365.css: bố cục khối (gw-apps, gw-plan, gw-cmp, gw-faq…)
   dùng chung. File này gồm phần riêng của trang và điểm nhấn Adobe (nhẹ),
   bọc trong .adb (tiền tố adb-).
   ========================================================================= */

.adb-logo { width: 20px; height: auto; flex: none; }

/* ---------- Banner: quỹ đạo icon ứng dụng quanh Illustrator ---------- */
.gw-orbit--adb .gw-orbit__chip { background: transparent; box-shadow: 0 12px 26px -8px rgba(0,0,0,.6); }
.gw-orbit--adb .gw-orbit__chip img { width: 100%; height: 100%; }
.gw-orbit--adb .gw-orbit__chip > span { display: block; width: 100%; height: 100%; }
.gw-orbit.gw-orbit--adb .gw-orbit__core { background: transparent; overflow: hidden; }
.gw-orbit.gw-orbit--adb .gw-orbit__core img { width: 100%; height: 100%; }

/* ---------- Điểm nhấn Adobe: chấm nhãn = chữ A đỏ, dải đỏ Adobe ở khối bản quyền ---------- */
.adb { --brand-stripe: linear-gradient(90deg, #eb1000, #ff9a00 34%, #31a8ff 67%, #9999ff); }
.adb .badge::before { width: 12px; height: 11px; clip-path: polygon(0 0, 37% 0, 0 100%, 0 0, 63% 0, 100% 0, 100% 100%); background: #eb1000; }

/* ---------- Illustrator: màn hình minh hoạ + 4 thẻ nhu cầu ---------- */
.adb-ai { padding-block: var(--sec); background: var(--beige); }
.adb-h2 { max-width: 900px; margin: 22px auto 0; }
.adb-ai__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; margin-top: 44px; }
.adb-ai__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adb-ai__cta { grid-column: 1 / -1; margin-top: 8px; }
.adb-use { padding: 22px 20px; border-radius: 20px; background: #fff; transition: opacity .8s var(--ease), translate .8s var(--ease), box-shadow .35s; }
.adb-use__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.adb-use__ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.adb-use h3 { margin-top: 14px; font-size: 17px; font-weight: 700; color: var(--black); }
.adb-use p { margin-top: 6px; font-size: 14.5px; line-height: 1.65; }
@media (hover: hover) { .adb-use:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, #fff), 0 22px 40px -26px color-mix(in srgb, var(--c) 70%, transparent); } }

/* Cửa sổ Illustrator */
.adb-art { --ui: #323232; --ui2: #262626; border-radius: 18px; overflow: hidden; background: var(--ui2); box-shadow: 0 40px 80px -36px rgba(33,34,82,.55), 0 0 0 1px rgba(0,0,0,.2); }
.adb-art__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #1d1d1d; color: #bdbdbd; font-size: 12.5px; }
.adb-art__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.adb-art__bar i:nth-child(2) { background: #febc2e; }
.adb-art__bar i:nth-child(3) { background: #28c840; }
.adb-art__bar span { margin-left: 10px; }
.adb-art__body { display: grid; grid-template-columns: 46px 1fr 132px; min-height: 380px; }
.adb-art__tools { display: grid; align-content: start; gap: 6px; padding: 12px 7px; background: var(--ui); }
.adb-art__tools span { display: grid; place-items: center; height: 32px; border-radius: 7px; color: #cfcfcf; }
.adb-art__tools span.is-on { color: #fff; background: #4b4b4b; }
.adb-art__tools svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.adb-art__canvas { position: relative; display: grid; place-items: center; padding: 26px 22px 70px; background: #535353; }
.adb-art__canvas::before { content: ""; position: absolute; inset: 22px 22px 64px; border-radius: 3px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.adb-art__mark { position: relative; width: min(64%, 220px); height: auto; overflow: visible; }
.adb-art__shape { opacity: 0; animation: adbFill 9s var(--ease, ease) infinite; }
.adb-art__shape--a { fill: var(--sa, #ba131a); }
.adb-art__shape--b { fill: var(--sb, #fff); animation-delay: .25s; }
.adb-art__line { fill: none; stroke: #2f80ff; stroke-width: 1.6; stroke-dasharray: 420; stroke-dashoffset: 420; animation: adbDraw 9s ease-in-out infinite; }
.adb-art__pts rect { fill: #fff; stroke: #2f80ff; stroke-width: 1.6; opacity: 0; animation: adbPts 9s ease infinite; }
.adb-art__handle { fill: #2f80ff; stroke: #2f80ff; stroke-width: 1.2; opacity: 0; animation: adbPts 9s ease infinite .3s; }
/* Bảng màu thay đổi theo vòng – mô phỏng Generative Recolor */
.adb-art__mark { animation: adbRecolor 9s steps(1) infinite; }
@keyframes adbRecolor {
  0%, 62% { --sa: #ba131a; --sb: #fff; }
  70% { --sa: #f97316; --sb: #fff7ed; }
  80% { --sa: #2563eb; --sb: #dbeafe; }
  90%, 100% { --sa: #17924a; --sb: #ecfdf3; }
}
@property --sa { syntax: "<color>"; inherits: true; initial-value: #ba131a; }
@property --sb { syntax: "<color>"; inherits: true; initial-value: #fff; }
@keyframes adbDraw { 0% { stroke-dashoffset: 420; opacity: 1; } 30% { stroke-dashoffset: 0; opacity: 1; } 55% { opacity: 1; } 62%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes adbPts { 0%, 8% { opacity: 0; } 14%, 55% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes adbFill { 0%, 34% { opacity: 0; transform: scale(.96); } 44%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.adb-art__shape { transform-origin: 100px 100px; }
.adb-art__prompt { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: flex; align-items: center; gap: 8px; width: min(88%, 340px); height: 38px; padding: 0 14px; border-radius: 100px; background: #fff; box-shadow: 0 10px 26px -8px rgba(0,0,0,.45); font-size: 13px; color: #2c2c2c; white-space: nowrap; overflow: hidden; }
.adb-art__spark { color: #eb1000; font-size: 15px; }
.adb-art__typed { overflow: hidden; text-overflow: ellipsis; }
.adb-art__caret { flex: none; width: 1.5px; height: 16px; margin-left: -6px; background: #2c2c2c; animation: adbBlink 1s steps(1) infinite; }
@keyframes adbBlink { 50% { opacity: 0; } }
.adb-art__panel { display: grid; align-content: start; gap: 9px; padding: 14px 12px; background: var(--ui); color: #d9d9d9; font-size: 11.5px; }
.adb-art__panel b { margin-top: 4px; font-weight: 600; color: #fff; }
.adb-art__sw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 4px; border-radius: 6px; background: #3d3d3d; }
.adb-art__sw i { height: 16px; border-radius: 3px; }
.adb-art__sw:nth-of-type(1) i:nth-child(1) { background: #ba131a; } .adb-art__sw:nth-of-type(1) i:nth-child(2) { background: #ed1c24; } .adb-art__sw:nth-of-type(1) i:nth-child(3) { background: #f6f4ee; } .adb-art__sw:nth-of-type(1) i:nth-child(4) { background: #1f1f1f; }
.adb-art__sw:nth-of-type(2) i:nth-child(1) { background: #f97316; } .adb-art__sw:nth-of-type(2) i:nth-child(2) { background: #fdba74; } .adb-art__sw:nth-of-type(2) i:nth-child(3) { background: #2563eb; } .adb-art__sw:nth-of-type(2) i:nth-child(4) { background: #dbeafe; }
.adb-art__sw:nth-of-type(3) i:nth-child(1) { background: #17924a; } .adb-art__sw:nth-of-type(3) i:nth-child(2) { background: #5fc98a; } .adb-art__sw:nth-of-type(3) i:nth-child(3) { background: #ecfdf3; } .adb-art__sw:nth-of-type(3) i:nth-child(4) { background: #0f3d24; }
.adb-art__layer { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; background: #3d3d3d; }
.adb-art__layer::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #2f80ff; }
@media (prefers-reduced-motion: reduce) {
  .adb-art__shape, .adb-art__line, .adb-art__pts rect, .adb-art__handle, .adb-art__mark, .adb-art__caret { animation: none; }
  .adb-art__shape { opacity: 1; } .adb-art__line { stroke-dashoffset: 0; }
}

/* ---------- Bảng quản trị giấy phép (minh hoạ) ---------- */
.adb-console { position: relative; width: min(100%, 440px); margin-inline: auto; padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 34px 70px -30px rgba(33,34,82,.4), 0 0 0 1px rgba(33,34,82,.06); }
.adb-console::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 20px 20px 0 0; background: var(--brand-stripe); }
.adb-console__top { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--black); }
.adb-console__top span { margin-left: auto; padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--red); background: rgba(186,19,26,.08); }
.adb-console__stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.adb-console__stat div { padding: 10px 12px; border-radius: 12px; background: var(--beige); }
.adb-console__stat b { display: block; font-size: 22px; line-height: 1.1; color: var(--black); }
.adb-console__stat span { font-size: 12px; color: var(--gray); }
.adb-console__list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.adb-console__list li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--black); opacity: 0; translate: 12px 0; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.adb-console.is-in .adb-console__list li { opacity: 1; translate: 0; }
.adb-console__list li:nth-child(2) { transition-delay: .12s; } .adb-console__list li:nth-child(3) { transition-delay: .24s; } .adb-console__list li:nth-child(4) { transition-delay: .36s; } .adb-console__list li:nth-child(5) { transition-delay: .5s; }
.adb-console__list i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: hsl(var(--h, 0) 70% 86%); }
.adb-console__list span { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adb-console__list img { width: 20px; height: 20px; }
.adb-console__list em { flex: none; padding: 3px 8px; border-radius: 100px; font-size: 11px; font-style: normal; font-weight: 600; color: #17733d; background: rgba(23,146,74,.1); }
.adb-console__list li.is-free { box-shadow: inset 0 0 0 1.5px rgba(186,19,26,.35); background: rgba(186,19,26,.03); }
.adb-console__list li.is-free i { background: repeating-linear-gradient(45deg, #f1d3d4 0 4px, #fff 4px 8px); }
.adb-console__list li.is-free em { color: var(--red); background: rgba(186,19,26,.08); }
@media (prefers-reduced-motion: reduce) { .adb-console__list li { opacity: 1; translate: 0; transition: none; } }

.adb-pricing .gw-plan__price { flex-wrap: wrap; }
.adb-pricing > .container > .ms-cmp-note { max-width: 860px; margin-inline: auto; margin-top: 26px; }
.adb .ms-pricing + section { margin-top: 0; padding-top: var(--sec); }

@media (max-width: 1024px) {
  .adb-ai__grid { grid-template-columns: 1fr; gap: 30px; }
  .adb-art { max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 680px) {
  .adb-ai__cards { grid-template-columns: 1fr; gap: 12px; }
  .adb-art__body { grid-template-columns: 40px 1fr; min-height: 320px; }
  .adb-art__panel { display: none; }
  .adb-art__prompt { font-size: 12px; }
  .adb-console { padding: 16px; }
}

/* Thẻ gói ứng dụng đơn lẻ: icon ứng dụng gắn cạnh ảnh đại diện */
.adb-plan__app { position: absolute; z-index: 2; left: calc(50% + 26px); bottom: 34px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.adb-plan__app img { width: 34px; height: 34px; }
